:root{--bg:#08090d;--panel:#101117;--line:rgba(255,255,255,.085);--text:#f6f7fb;--muted:#8b90a0;--nav-h:78px}
*{box-sizing:border-box}html{background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 85% 6%,rgba(139,92,246,.12),transparent 28%),radial-gradient(circle at 5% 45%,rgba(45,212,191,.07),transparent 25%),var(--bg);padding-bottom:calc(var(--nav-h) + 24px)}
button,input{font:inherit}button{cursor:pointer}.noise{position:fixed;inset:0;pointer-events:none;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E")}
.topbar{height:72px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;background:rgba(8,9,13,.8);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.04)}
.brand{display:flex;gap:11px;align-items:center}.brand strong{display:block;font-size:14px}.brand small{font-size:10px;color:var(--muted)}
.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#b79cff,#7654db);box-shadow:0 8px 24px rgba(135,92,246,.25);font-weight:900}
.balance-pill{border:1px solid var(--line);background:rgba(255,255,255,.045);color:var(--text);padding:9px 13px;border-radius:12px;font-weight:750}
main{max-width:760px;margin:0 auto}.view{display:none;padding:18px}.view.active{display:block;animation:fade .24s ease}@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.hero{position:relative;overflow:hidden;border:1px solid var(--line);background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));border-radius:28px;padding:27px 24px 30px;min-height:245px}
.hero h1{font-size:36px;line-height:1.03;margin:24px 0 15px;letter-spacing:-.055em;max-width:520px}.hero h1 span,.page-head h1 span{color:#a98bff}.hero p{max-width:430px;color:#adb1bd;font-size:14px;line-height:1.55;margin:0;position:relative;z-index:2}
.eyebrow,.page-head>small,.panel>small,.metric small,.wallet small,.profile-card small,.section-title small{font-size:10px;letter-spacing:.17em;color:#a59cb8;font-weight:800}
.hero-orb{position:absolute;border-radius:50%}.orb-one{width:150px;height:150px;right:-38px;top:-30px;background:radial-gradient(circle at 30% 30%,#d7c8ff,#7652dc 46%,rgba(80,44,150,.1) 72%);opacity:.58}.orb-two{width:74px;height:74px;right:85px;bottom:-28px;background:radial-gradient(circle,#75ebce,#0a5147 72%);opacity:.48}
.search-wrap{height:52px;margin:18px 0 12px;border:1px solid var(--line);background:var(--panel);border-radius:16px;display:flex;align-items:center;padding:0 15px;gap:10px}.search-wrap span{font-size:24px;color:#878c9d}.search-wrap input{width:100%;background:transparent;border:0;outline:0;color:var(--text);font-size:14px}
.chips{display:flex;gap:8px;overflow:auto;padding:2px 0 8px;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid var(--line);background:rgba(255,255,255,.025);color:#9297a6;border-radius:12px;padding:9px 13px;font-size:12px}.chip.active{background:#fff;color:#090a0e;border-color:#fff;font-weight:800}
.section-title{display:flex;justify-content:space-between;align-items:flex-end;margin:20px 2px 13px}.section-title h2{font-size:22px;margin:5px 0 0}.section-title>span{font-size:11px;color:var(--muted)}
.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.product-card{position:relative;text-align:left;border:1px solid var(--line);background:linear-gradient(150deg,rgba(255,255,255,.055),rgba(255,255,255,.018));border-radius:20px;padding:16px;color:var(--text);min-height:205px;overflow:hidden}.product-card:active{transform:scale(.985)}
.product-card .badge{position:absolute;right:12px;top:12px;font-size:8px;letter-spacing:.1em;padding:5px 7px;border:1px solid var(--line);border-radius:8px;color:#aeb2c0}
.product-logo{width:47px;height:47px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#252837,#11131b);font-size:23px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);margin-bottom:18px}.product-logo.large{width:62px;height:62px;font-size:29px}
.product-card h3{margin:0 0 6px;font-size:17px}.product-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card footer{position:absolute;left:16px;right:16px;bottom:14px;display:flex;justify-content:space-between;align-items:center}.product-card footer small{font-size:9px;color:#767c8d}.product-card footer b{font-size:13px}
.product-card[data-accent="mint"] .product-logo{color:#71e5c5}.product-card[data-accent="orange"] .product-logo{color:#ffad72}.product-card[data-accent="blue"] .product-logo{color:#76a9ff}.product-card[data-accent="cyan"] .product-logo{color:#54d8f0}.product-card[data-accent="pink"] .product-logo{color:#ff8bb8}.product-card[data-accent="violet"] .product-logo{color:#ba91ff}.product-card[data-accent="lime"] .product-logo{color:#b8ed69}
.page-head{padding:18px 2px 24px}.page-head h1{font-size:37px;line-height:1.04;letter-spacing:-.055em;margin:10px 0}.page-head p{color:var(--muted);font-size:13px;line-height:1.5}.stack{display:flex;flex-direction:column;gap:10px}.stack.compact{margin-top:18px}
.empty{border:1px dashed rgba(255,255,255,.13);border-radius:20px;text-align:center;padding:40px 20px;color:var(--muted)}.empty b{display:block;color:var(--text);margin-bottom:6px}
.key-card,.transaction,.doc-card,.panel,.metric{border:1px solid var(--line);background:var(--panel);border-radius:19px;padding:16px}.key-card header,.transaction{display:flex;justify-content:space-between;gap:12px}.key-card h3{margin:0 0 4px}.key-card small,.transaction small,.doc-card p,.panel p{color:var(--muted);font-size:11px}
.secret-row{display:flex;gap:8px;align-items:center;margin-top:14px}.secret-row code,.copy-row code{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#090a0e;padding:12px;border-radius:12px;color:#c9b7ff;font-size:11px}.icon-button{border:1px solid var(--line);background:#1a1c25;color:white;border-radius:11px;width:41px;height:41px}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.metric strong{display:block;font-size:27px;margin-top:8px}.copy-row{display:flex;gap:8px;margin-top:12px}.rules{margin-top:10px}.rules h3{margin-top:0}.rules p b{display:inline-block;color:#a98bff;width:28px}
.doc-card summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:750}.doc-body{padding-top:15px}.doc-body code{display:block;background:#090a0e;border-radius:12px;padding:12px;margin:7px 0;color:#bca6ff;white-space:pre-wrap;font-size:11px}
.profile-card{display:flex;align-items:center;gap:15px;padding:18px 2px 22px}.profile-card h1{margin:5px 0 2px;font-size:25px}.profile-card p{margin:0;color:var(--muted);font-size:12px}.avatar{width:62px;height:62px;border-radius:21px;background:linear-gradient(145deg,#b796ff,#6d4dcc);display:grid;place-items:center;font-weight:900;font-size:18px;box-shadow:0 12px 35px rgba(126,81,221,.25)}
.wallet{border:1px solid var(--line);border-radius:24px;padding:21px;background:radial-gradient(circle at 100% 0,rgba(155,117,255,.22),transparent 42%),var(--panel)}.wallet strong{font-size:38px;display:block;margin:10px 0 18px}.primary-button{width:100%;border:0;background:linear-gradient(135deg,#aa84ff,#7554dd);color:white;border-radius:14px;padding:14px;font-weight:800;box-shadow:0 10px 28px rgba(118,81,221,.24)}
.menu-list{margin-top:13px;border:1px solid var(--line);border-radius:20px;overflow:hidden}.menu-list button{width:100%;border:0;border-bottom:1px solid var(--line);background:var(--panel);color:white;display:flex;align-items:center;gap:13px;padding:15px;text-align:left}.menu-list button:last-child{border-bottom:0}.menu-list button>span{width:35px;height:35px;border-radius:11px;background:#1c1e28;display:grid;place-items:center;color:#bda7ff}.menu-list button div{flex:1}.menu-list button b,.menu-list button small{display:block}.menu-list button b{font-size:13px}.menu-list button small{font-size:10px;color:var(--muted);margin-top:3px}.menu-list button i{font-style:normal;color:#777c8c;font-size:22px}
.transaction strong{font-size:13px}.transaction .positive{color:#67dfbd}.transaction .negative{color:#ff8896}
.bottom-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding:8px 10px calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:center;background:rgba(10,11,16,.91);backdrop-filter:blur(24px);border-top:1px solid var(--line)}.bottom-nav button{max-width:105px;flex:1;border:0;background:transparent;color:#676c7a;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 2px}.bottom-nav button span{height:25px;font-size:18px}.bottom-nav button small{font-size:9px}.bottom-nav button.active{color:#b99aff}
.modal{position:fixed;z-index:50;inset:0;background:rgba(0,0,0,.65);display:none;align-items:flex-end;backdrop-filter:blur(7px)}.modal.open{display:flex}.modal-sheet{position:relative;width:100%;max-width:760px;margin:0 auto;max-height:88vh;overflow:auto;background:#101117;border:1px solid var(--line);border-bottom:0;border-radius:28px 28px 0 0;padding:23px 18px calc(24px + env(safe-area-inset-bottom));animation:sheet .25s ease}.modal-sheet h2{font-size:28px;margin:8px 0}.modal-sheet>p{color:var(--muted);font-size:13px;line-height:1.5}.modal-close{position:absolute;right:16px;top:15px;width:35px;height:35px;border-radius:50%;border:1px solid var(--line);background:#191b24;color:white;font-size:21px}@keyframes sheet{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.package-list{display:flex;flex-direction:column;gap:8px;margin:20px 0}.package{border:1px solid var(--line);background:#151720;color:white;border-radius:15px;padding:13px;display:flex;justify-content:space-between;align-items:center;text-align:left}.package div b,.package div small,.package>span b,.package>span small{display:block}.package div small,.package>span small{font-size:10px;color:var(--muted);margin-top:4px}.package>span{text-align:right}.package.selected{border-color:#9e78f9;background:rgba(158,120,249,.1)}
.quantity-row{display:flex;align-items:center;justify-content:space-between;margin:17px 1px}.quantity-row>div{display:flex;align-items:center;gap:15px}.quantity-row button{border:1px solid var(--line);background:#191b24;color:white;width:34px;height:34px;border-radius:10px}.topup-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}.topup-options button{border:1px solid var(--line);background:#191b24;color:white;border-radius:15px;padding:17px;font-weight:800}
.toast{position:fixed;z-index:80;left:50%;top:85px;transform:translate(-50%,-15px);opacity:0;pointer-events:none;background:#f7f7fb;color:#090a0e;border-radius:13px;padding:11px 15px;font-size:12px;font-weight:750;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:650px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero h1{font-size:45px}}
