:root{color-scheme:dark;--bg:#090a0d;--card:#15161c;--line:#292b34;--muted:#8f929f;--text:#f8f8fb;--green:#36df8b;--purple:#8173ff;--danger:#ff657a}
.service-logo{width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:none;color:#111;font-weight:900;font-size:18px;border:2px solid #fff}.country-logo{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:#20222a;border:2px solid #40434f;font-size:23px}.country-logo.initials{font-size:12px;font-weight:850;color:#d9d7ff}.profile-card,.wallet-card{display:flex;align-items:center;gap:14px;background:#15161c;border:1px solid #292b34;border-radius:19px;padding:17px;margin-bottom:12px}.profile-avatar{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#8173ff,#4e45aa);font-size:23px;font-weight:900}.profile-name{font-size:18px;font-weight:800;margin-bottom:4px}.wallet-card{justify-content:space-between}.wallet-card strong{display:block;font-size:29px;color:#36df8b;margin-top:5px}.primary.compact{width:auto;padding:12px 15px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.stats-grid div{padding:18px;background:#15161c;border:1px solid #292b34;border-radius:16px}.stats-grid b{font-size:20px;display:block}.stats-grid span{font-size:12px;color:#8f929f}.support-card{display:flex;justify-content:space-between;text-decoration:none;color:#fff;background:#191827;border:1px solid #37325d;border-radius:16px;padding:16px}.sheet{position:fixed;inset:0;background:#000b;z-index:90;display:flex;align-items:flex-end;justify-content:center}.sheet-card{position:relative;width:min(560px,100%);padding:24px 17px 28px;background:#17181e;border:1px solid #292b34;border-radius:24px 24px 0 0}.sheet-card h2{margin:0 0 6px}.sheet-close{position:absolute;right:16px;top:15px;width:34px;height:34px;border:0;border-radius:50%;background:#272932;color:#fff;font-size:23px}.topup-label{display:block;color:#8f929f;margin:19px 0 12px}.topup-label input{width:100%;margin-top:8px;padding:15px;border:1px solid #292b34;border-radius:13px;background:#0e0f13;color:#fff;font-size:18px}.providers{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:13px}.providers button{padding:12px 5px;background:#22232a;border:1px solid #292b34;border-radius:11px;color:#fff}.providers button.active{border-color:#8173ff;background:#292542;color:#cfcaff}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:15px Inter,system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh;padding-bottom:84px}
header{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 14px;position:sticky;top:0;background:rgba(9,10,13,.94);backdrop-filter:blur(18px);z-index:10}
.brand{font-weight:750;font-size:13px;background:#141519;border:1px solid #292b31;border-radius:18px;padding:8px 13px}
.brand i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 9px var(--green);margin-right:7px}
.icon-button,.balance{border:0;color:#fff;background:transparent}
.icon-button{font-size:35px;width:38px;visibility:hidden}
.balance{font-weight:750;background:#1d1f27;border-radius:13px;padding:8px 10px;color:var(--green)}
main{max-width:560px;margin:auto;padding:22px 14px}
.screen{display:none}
.screen.active{display:block;animation:in .2s ease}
@keyframes in{from{opacity:.2;transform:translateY(5px)}
}
h1{font-size:20px;margin:0 0 14px;display:inline-block}
.step{display:inline-grid;place-items:center;width:27px;height:27px;margin-right:7px;background:linear-gradient(135deg,var(--purple),#4d43b7);border-radius:9px;font-weight:800}
.search{height:52px;background:#1b1b22;border:1px solid transparent;border-radius:15px;display:flex;align-items:center;padding:0 16px;margin-bottom:12px}
.search:focus-within{border-color:#6259c9}
.search input{border:0;outline:0;background:transparent;color:#fff;font:inherit;width:100%;font-size:16px}
.search span{font-size:26px;color:var(--muted)}
.list{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:var(--card)}
.row{min-height:64px;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:#fff;display:flex;align-items:center;text-align:left;padding:11px 15px;gap:13px;font:inherit}
.row:last-child{border-bottom:0}
.row:active{background:#22232b}
.logo{width:39px;height:39px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;font-size:13px;font-weight:900;background:var(--logo,#6259c9);flex:0 0 auto;box-shadow:0 0 0 1px #333}
.row-text{flex:1;min-width:0}
.row-title{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-sub{font-size:12px;color:var(--muted);margin-top:4px}
.chevron{font-size:22px;color:#747786}
.more{display:block;width:100%;margin-top:12px;padding:13px;border:1px solid var(--line);background:#17181d;color:#fff;border-radius:13px}
.selected-pill{display:block;width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c5c0ff;background:#1a1830;border:1px solid #37325d;border-radius:10px;padding:8px 11px;margin:-4px 0 14px}
.price{font-size:18px;font-weight:800;color:var(--green)}
.stock{color:var(--muted);font-size:12px}
.activation-card{text-align:center;border:1px solid var(--line);background:linear-gradient(180deg,#171820,#111216);border-radius:24px;padding:34px 20px}
.pulse{width:13px;height:13px;background:var(--green);box-shadow:0 0 0 10px #36df8b16,0 0 22px var(--green);border-radius:50%;margin:0 auto 24px}
.muted{color:var(--muted)}
.phone{display:block;width:100%;border:0;background:none;color:#fff;font-size:28px;font-weight:800;margin:9px 0}
.timer{color:#babcc6;margin:14px}
.code{font-size:36px;letter-spacing:7px;font-weight:900;color:var(--green);padding:16px}
.primary{width:100%;border:0;border-radius:14px;padding:15px;background:linear-gradient(135deg,#7769f7,#5d54d2);color:#fff;font-weight:800;font-size:15px}
.actions{display:flex;gap:9px;margin-top:10px}
.actions button{flex:1;padding:13px;border:1px solid var(--line);border-radius:13px;background:#1a1b21;color:#fff}
.actions .danger{color:var(--danger)}
nav{position:fixed;bottom:0;left:0;right:0;height:72px;background:rgba(13,14,18,.97);border-top:1px solid var(--line);display:flex;justify-content:center;z-index:20;padding-bottom:env(safe-area-inset-bottom)}
nav button,nav a{max-width:150px;flex:1;border:0;background:none;color:#7f828e;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:20px;gap:3px}
nav span{font-size:11px}
nav .active{color:#9b91ff}
.overlay{position:fixed;inset:0;background:#08090ccd;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:100;gap:13px}
.spinner{width:32px;height:32px;border:3px solid #343641;border-top-color:var(--green);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
.toast{position:fixed;left:15px;right:15px;bottom:88px;padding:13px 15px;background:#292b35;border:1px solid #3d3f49;border-radius:13px;text-align:center;z-index:110}
.empty{padding:28px;text-align:center;color:var(--muted)}
.hidden{display:none!important}
.service-logo{overflow:hidden}.service-logo img{width:27px;height:27px;object-fit:contain}.service-logo .brand-fallback{display:none}.service-logo.fallback img{display:none}.service-logo.fallback .brand-fallback{display:block}.country-logo img{width:100%;height:100%;object-fit:cover}.pager{display:flex;align-items:center;justify-content:center;gap:14px;margin:13px 0}.pager button{width:42px;height:36px;border:1px solid #292b34;border-radius:11px;background:#17181e;color:#fff;font-size:22px}.pager button:disabled{opacity:.3}.pager span{min-width:55px;text-align:center;color:#8f929f;font-size:13px}
@media(min-width:700px){body{background:#0e0f13}
header,nav{left:50%;right:auto;width:560px;transform:translateX(-50%)}
main{background:var(--bg);min-height:calc(100vh - 72px)}
}

/* 2026 visual refresh — independent light, editorial layout */
:root{color-scheme:light;--bg:#f5f7fb;--card:#fff;--line:#e4e8f0;--muted:#768095;--text:#14203a;--green:#1463ff;--purple:#1463ff;--danger:#e6495e}
body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;padding-bottom:96px}
body::before{content:"";position:fixed;inset:0 0 auto;height:210px;background:linear-gradient(125deg,#e7efff 0,#f5f7fb 65%);z-index:-1}
header{height:68px;padding:0 18px;background:rgba(245,247,251,.88);border:0;backdrop-filter:blur(20px)}
.brand{padding:0;border:0;background:none;color:#14203a;font-size:18px;font-weight:900;letter-spacing:-.04em}
.brand span{color:#1463ff}
.icon-button{color:#14203a;font-size:31px}
.balance{padding:9px 12px;color:#fff;background:#14203a;border-radius:999px;font-size:12px}
main{padding:27px 16px}
.eyebrow{margin:0 0 6px;color:#1463ff;font-size:10px;font-weight:900;letter-spacing:.15em}
h1{display:block;margin:0 0 20px;color:#14203a;font-size:29px;line-height:1.08;letter-spacing:-.045em}
.search{height:58px;margin-bottom:16px;padding:0 17px;border:1px solid #e1e6ef;border-radius:20px;background:#fff;box-shadow:0 9px 25px rgba(35,53,90,.06)}
.search:focus-within{border-color:#1463ff;box-shadow:0 0 0 3px rgba(20,99,255,.1)}
.search input{color:#14203a;font-size:15px}
.list{display:grid;gap:9px;overflow:visible;border:0;background:transparent}
.row{min-height:70px;padding:11px 13px;border:1px solid #e6eaf1!important;border-radius:18px;background:#fff;color:#14203a;box-shadow:0 6px 18px rgba(31,48,82,.045)}
.row:active{background:#f0f5ff;transform:scale(.99)}
.service-logo,.country-logo{border-radius:14px;border:1px solid #e8ebf2;background:#f7f9fc}
.row-title{font-weight:800}.row-sub,.stock{color:#768095}.chevron{color:#aab2c2}
.selected-pill{width:100%;margin:-5px 0 15px;padding:12px 14px;color:#1452be;background:#e8f0ff;border:0;border-radius:13px;font-weight:700}
.price{color:#1463ff}.pager button{color:#14203a;background:#fff;border-color:#e1e6ef}.pager span{color:#768095}
.activation-card{padding:30px 20px;border:1px solid #e2e7f0;border-radius:28px;background:#fff;color:#14203a;box-shadow:0 18px 50px rgba(38,53,88,.09)}
.phone{color:#14203a}.timer{color:#768095}.code{color:#1463ff}
.primary{background:#1463ff;border-radius:16px;box-shadow:0 8px 20px rgba(20,99,255,.22)}
.actions button{color:#14203a;background:#f6f8fc;border-color:#e3e7ef}
.profile-card,.wallet-card,.stats-grid div{background:#fff;border-color:#e4e8f0;color:#14203a;box-shadow:0 6px 18px rgba(31,48,82,.04)}
.profile-avatar{background:#1463ff}.wallet-card strong{color:#1463ff}.support-card{color:#14203a;background:#e9f1ff;border:0}
nav{left:12px;right:12px;bottom:10px;height:70px;padding:0 7px;border:1px solid #e0e5ee;border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 14px 40px rgba(31,48,82,.15);backdrop-filter:blur(18px)}
nav button,nav a{color:#9aa3b3;font-size:18px}nav .active{color:#1463ff}nav span{font-size:10px;font-weight:750}
.sheet-card{color:#14203a;background:#fff;border-color:#e3e7ef}.sheet-close{color:#14203a;background:#eef1f6}.topup-label{color:#768095}.topup-label input{color:#14203a;background:#f6f8fb;border-color:#e2e7ef}.providers button{color:#566076;background:#f3f5f9;border-color:#e2e6ed}.providers button.active{color:#1452be;background:#e6efff;border-color:#1463ff}
.overlay{background:rgba(234,239,248,.88);color:#14203a}.spinner{border-color:#dce2ec;border-top-color:#1463ff}.toast{color:#fff;background:#14203a;border:0}.empty{color:#768095}
@media(min-width:700px){body{background:#edf1f7}header,nav{width:536px}main{background:transparent}}

/* Subtle motion */
header{animation:sms-header-in .42s cubic-bezier(.2,.8,.2,1) both}
.screen.active{animation:sms-screen-in .3s cubic-bezier(.2,.8,.2,1)}
.screen.active .row{animation:sms-card-in .38s cubic-bezier(.2,.8,.2,1) both}
.screen.active .row:nth-child(2){animation-delay:.045s}.screen.active .row:nth-child(3){animation-delay:.09s}.screen.active .row:nth-child(4){animation-delay:.135s}.screen.active .row:nth-child(5){animation-delay:.18s}.screen.active .row:nth-child(n+6){animation-delay:.21s}
.balance,.primary,.actions button,.providers button,nav button,nav a{transition:transform .16s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease}
.balance:active,.primary:active,.actions button:active,.providers button:active{transform:scale(.96)}
nav .active{animation:sms-nav-pop .28s cubic-bezier(.2,.9,.25,1.25)}
.service-logo,.country-logo{transition:transform .22s ease}.row:active .service-logo,.row:active .country-logo{transform:rotate(-3deg) scale(1.06)}
@keyframes sms-header-in{from{opacity:0;transform:translateY(-10px)}}
@keyframes sms-screen-in{from{opacity:0;transform:translateY(9px)}}
@keyframes sms-card-in{from{opacity:0;transform:translateY(12px) scale(.985)}}
@keyframes sms-nav-pop{50%{transform:translateY(-3px) scale(1.04)}}
@media(prefers-reduced-motion:reduce){header,.screen.active,.screen.active .row,nav .active{animation:none!important}.balance,.primary,.actions button,.providers button,nav button,nav a,.service-logo,.country-logo{transition:none!important}}

/* Dark palette — same layout and interaction model */
:root{color-scheme:dark;--bg:#08131f;--card:#0f2030;--line:rgba(151,196,222,.14);--muted:#829bab;--text:#edf8ff;--green:#3fa7ff;--purple:#3fa7ff;--danger:#ff647c}
html,body{background:#08131f}
body{color:var(--text);background:linear-gradient(180deg,#0a1927 0,#08131f 42%)}
body::before{height:230px;background:radial-gradient(circle at 82% 0,rgba(63,167,255,.16),transparent 58%)}
header{background:rgba(8,19,31,.88)}
.brand,.icon-button,h1{color:#edf8ff}.brand span,.eyebrow,.price,.code,.wallet-card strong{color:#3fa7ff}
.balance{color:#eaf8ff;background:#112b40;border:1px solid rgba(63,167,255,.18)}
.search{border-color:rgba(151,196,222,.14);background:#0d2030;box-shadow:0 12px 30px rgba(0,0,0,.17)}
.search:focus-within{border-color:#3fa7ff;box-shadow:0 0 0 3px rgba(63,167,255,.11)}.search input{color:#edf8ff}.search input::placeholder{color:#5f7b8d}
.row{border-color:rgba(151,196,222,.12)!important;background:#0e2131;color:#edf8ff;box-shadow:0 8px 22px rgba(0,0,0,.13)}.row:active{background:#142c40}
.service-logo,.country-logo{border-color:rgba(151,196,222,.12);background:#132a3d}.row-sub,.stock,.pager span,.timer,.topup-label,.empty{color:#829bab}.chevron{color:#527084}
.selected-pill{color:#8acbff;background:rgba(63,167,255,.11)}
.pager button{color:#dceef8;background:#0e2131;border-color:rgba(151,196,222,.14)}
.activation-card{border-color:rgba(151,196,222,.14);background:#0e2131;color:#edf8ff;box-shadow:0 22px 55px rgba(0,0,0,.24)}.phone{color:#edf8ff}
.primary{background:#298ef0;box-shadow:0 9px 24px rgba(41,142,240,.24)}.actions button{color:#dceef8;background:#132a3d;border-color:rgba(151,196,222,.14)}
.profile-card,.wallet-card,.stats-grid div{color:#edf8ff;background:#0e2131;border-color:rgba(151,196,222,.13);box-shadow:0 8px 22px rgba(0,0,0,.13)}.profile-avatar{background:#298ef0}.support-card{color:#dceeff;background:rgba(63,167,255,.1)}
nav{border-color:rgba(151,196,222,.16);background:rgba(11,29,43,.95);box-shadow:0 18px 45px rgba(0,0,0,.34)}nav button,nav a{color:#617d8e}nav .active{color:#3fa7ff}
.sheet-card{color:#edf8ff;background:#0e2131;border-color:rgba(151,196,222,.14)}.sheet-close{color:#dceef8;background:#173044}.topup-label input{color:#edf8ff;background:#091a28;border-color:rgba(151,196,222,.14)}.providers button{color:#94acbb;background:#12293b;border-color:rgba(151,196,222,.13)}.providers button.active{color:#82c8ff;background:rgba(63,167,255,.1);border-color:#3fa7ff}
.overlay{color:#edf8ff;background:rgba(5,14,23,.9)}.spinner{border-color:#1b3446;border-top-color:#3fa7ff}.toast{color:#edf8ff;background:#173044;border:1px solid rgba(151,196,222,.13)}
@media(min-width:700px){body{background:#06101a}}


