:root {
  --bg: #080a0f;
  --panel: #11141b;
  --panel-2: #151922;
  --line: rgba(255,255,255,.075);
  --muted: #7d8491;
  --text: #f4f6f8;
  --lime: #bbf451;
  --lime-dark: #91c832;
  --green: #60e5ae;
  --purple: #9077ff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 80% -10%, rgba(171,238,76,.075), transparent 28%), var(--bg); font-family: Manrope, system-ui, sans-serif; min-height: 100vh; }
button, a { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; padding: 30px 18px 24px; border-right: 1px solid var(--line); background: rgba(9,11,16,.82); backdrop-filter: blur(18px); display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; padding: 4px 10px; }
.brand strong { display: block; font-size: 17px; letter-spacing: .14em; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .18em; margin-top: 2px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--lime); box-shadow: 0 0 25px rgba(187,244,81,.18); transform: rotate(-5deg); }
.brand-mark span { width: 15px; height: 19px; border: 2px solid #10140b; border-radius: 8px 8px 11px 11px; position: relative; }
.brand-mark span:after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #10140b; left: 3.5px; top: 4px; }
.nav { display: grid; gap: 7px; margin-top: 56px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #777e8b; border-radius: 13px; padding: 12px 13px; display: flex; align-items: center; gap: 13px; text-align: left; font-weight: 700; cursor: pointer; transition: .2s; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--text); background: #1a1e27; box-shadow: inset 3px 0 0 var(--lime); }
.nav-item .icon { font-size: 21px; width: 22px; color: currentColor; }
.nav-count { margin-left: auto; color: #13170c; background: var(--lime); width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }
.mini-status { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; }
.mini-status small, .mini-status strong { display: block; }
.mini-status small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.mini-status strong { font-size: 10px; margin-top: 3px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; }
.user-mini { border: 0; border-top: 1px solid var(--line); background: transparent; padding: 15px 6px 0; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.user-mini span:nth-child(2) { flex: 1; }
.user-mini strong, .user-mini small { display: block; }
.user-mini strong { font-size: 12px; }.user-mini small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, #262c38, #171a21); border: 1px solid var(--line); font-weight: 800; color: var(--lime); }
.content { margin-left: 252px; padding: 54px clamp(28px,5vw,84px) 80px; }
.page { display: none; width: min(100%, 1050px); margin: 0 auto; animation: pageIn .35s ease; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.eyebrow, .label { color: var(--lime); font-weight: 800; font-size: 10px; letter-spacing: .15em; }
h1 { margin: 8px 0 6px; font-size: clamp(29px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.1; }
h2 { letter-spacing: -.025em; }
.page-heading p, .section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.ghost-button, .secondary-button, .primary-button, .text-button { border: 0; cursor: pointer; font-weight: 800; transition: .2s; }
.ghost-button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; }
.secondary-button, .primary-button { border-radius: 11px; padding: 12px 17px; }
.secondary-button { background: #1a1e27; border: 1px solid var(--line); }
.primary-button { background: var(--lime); color: #15190e; box-shadow: 0 7px 22px rgba(187,244,81,.11); }
.primary-button:hover { background: #cdfd71; transform: translateY(-1px); }
.secondary-button:hover { background: #232833; }
.text-button { padding: 0; background: none; color: var(--lime); }
.card { background: linear-gradient(145deg, rgba(19,23,31,.97), rgba(14,17,23,.97)); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.subscription-card, .connect-card { padding: 23px; min-height: 220px; }
.card-top, .card-bottom { display: flex; justify-content: space-between; align-items: center; }
.muted, .card-bottom { color: var(--muted); font-size: 11px; }
.pill { padding: 7px 10px; border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.pill.success { color: var(--green); background: rgba(55,219,157,.09); }.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 5px; }
.days { display: flex; align-items: center; gap: 12px; margin-top: 17px; }.days strong { font-size: 59px; line-height: 1; letter-spacing: -.07em; }.days span { color: var(--muted); font-size: 12px; }
.progress { height: 5px; border-radius: 8px; background: #252a33; overflow: hidden; margin: 17px 0 13px; }.progress i { display: block; height: 100%; background: var(--lime); border-radius: inherit; box-shadow: 0 0 12px var(--lime); }
.connect-card { display: flex; flex-direction: column; justify-content: space-between; }.connect-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }.connect-row > div:nth-child(2) { flex: 1; }.connect-row strong, .connect-row small { display: block; }.connect-row small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.server-flag { width: 42px; height: 42px; display: grid; place-items: center; color: #f04f4f; border-radius: 12px; background: #202531; font-weight: 900; font-size: 11px; }
.connect-button { border: 0; border-radius: 12px; padding: 13px 16px; background: var(--lime); color: #11150c; font-size: 11px; font-weight: 800; cursor: pointer; }.connect-button span { display: inline-block; width: 7px; height: 7px; background: #12160d; border-radius: 50%; margin-right: 5px; }.connect-button.connected { color: var(--green); background: rgba(96,229,174,.1); }.connect-button.connected span { background: var(--green); box-shadow: 0 0 8px var(--green); }
.connect-card > p { margin: 0; color: var(--muted); font-size: 10px; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin: 38px 0 16px; }.section-title h2 { font-size: 21px; margin: 0 0 3px; }
.key-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.key-card { border: 1px solid var(--line); border-radius: 17px; background: #10131a; padding: 17px; }
.key-head { display: flex; align-items: center; gap: 12px; }.key-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(96,229,174,.08); color: var(--green); display: grid; place-items: center; font-size: 19px; }.key-head > div:nth-child(2) { flex: 1; }.key-head strong, .key-head small { display: block; }.key-head strong { font-size: 13px; }.key-head small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.copy-button { border: 1px solid var(--line); background: #181c24; border-radius: 9px; padding: 8px 10px; cursor: pointer; font-size: 10px; font-weight: 700; }.key-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); }.key-meta b { color: var(--text); }
.promo-card { margin-top: 18px; padding: 27px 30px; overflow: hidden; position: relative; min-height: 210px; }.promo-card h2 { font-size: 27px; margin: 10px 0 7px; }.promo-card p { color: var(--muted); margin: 0 0 22px; font-size: 12px; }.promo-art { position: absolute; width: 280px; height: 280px; right: -20px; top: -35px; display: grid; place-items: center; }.gift { width: 76px; height: 76px; border-radius: 25px; background: var(--lime); color: #171b10; display: grid; place-items: center; font-size: 30px; font-weight: 900; transform: rotate(-8deg); box-shadow: 0 0 55px rgba(187,244,81,.24); }.orbit { position: absolute; border: 1px solid rgba(187,244,81,.15); border-radius: 50%; }.orbit-one { inset: 35px; }.orbit-two { inset: 0; }
.key-list { display: grid; gap: 12px; }.key-list .key-card { padding: 21px; }.key-actions { display: flex; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }.key-actions button { border: 1px solid var(--line); background: #171b23; border-radius: 9px; padding: 8px 11px; font-size: 9px; cursor: pointer; }.key-actions button.danger { color: #ff7d87; margin-left: auto; }
.info-card { margin-top: 20px; padding: 20px; border: 1px solid rgba(187,244,81,.15); background: rgba(187,244,81,.035); border-radius: 16px; display: flex; gap: 13px; align-items: center; }.info-card > span { width: 31px; height: 31px; border-radius: 9px; background: rgba(187,244,81,.1); color: var(--lime); display: grid; place-items: center; font-weight: 800; }.info-card div { flex: 1; }.info-card strong { font-size: 12px; }.info-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.plan-toggle { padding: 4px; background: #11141b; border: 1px solid var(--line); border-radius: 12px; display: flex; width: max-content; margin-bottom: 22px; }.plan-toggle button { border: 0; background: transparent; color: var(--muted); padding: 9px 18px; border-radius: 9px; font-size: 10px; font-weight: 800; cursor: pointer; }.plan-toggle button.active { color: var(--text); background: #252a34; }.plan-toggle span { color: var(--lime); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.plan-card { position: relative; border: 1px solid var(--line); background: #11141b; padding: 24px; border-radius: 19px; }.plan-card.featured { border-color: rgba(187,244,81,.55); box-shadow: 0 0 35px rgba(187,244,81,.05); }.popular { position: absolute; right: 14px; top: 14px; color: #15190e; background: var(--lime); border-radius: 99px; padding: 5px 8px; font-size: 7px; font-weight: 900; letter-spacing: .08em; }.plan-card h3 { font-size: 19px; margin: 12px 0 6px; }.price strong { font-size: 27px; letter-spacing: -.04em; }.price span { color: var(--muted); font-size: 9px; }.plan-card ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 11px; color: #adb2bb; font-size: 11px; }.plan-card li:before { content: '✓'; color: var(--lime); margin-right: 8px; }.plan-card button { width: 100%; }
.payment-note { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 17px; border-top: 1px solid var(--line); }.payment-note > span { color: var(--lime); }.payment-note strong { font-size: 11px; }.payment-note p { color: var(--muted); font-size: 9px; margin: 3px 0 0; }
.profile-card { padding: 25px; }.profile-main { display: flex; align-items: center; gap: 14px; }.avatar.large { width: 57px; height: 57px; border-radius: 17px; font-size: 20px; }.profile-main h2 { margin: 0; font-size: 18px; }.profile-main p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.profile-main .pill { margin-left: auto; }.stats { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }.stats div { border-right: 1px solid var(--line); padding-left: 22px; }.stats div:first-child { padding-left: 0; }.stats div:last-child { border: 0; }.stats span,.stats strong { display: block; }.stats span { color: var(--muted); font-size: 8px; letter-spacing: .08em; }.stats strong { font-size: 15px; margin-top: 5px; }.stats .green { color: var(--green); }
.settings-list { display: grid; gap: 10px; margin-top: 17px; }.settings-list button { border: 1px solid var(--line); background: #11141b; border-radius: 15px; padding: 16px; display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer; }.settings-list button > span:nth-child(2) { flex: 1; }.settings-list strong,.settings-list small { display: block; }.settings-list strong { font-size: 12px; }.settings-list small { color: var(--muted); margin-top: 3px; font-size: 9px; }.settings-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; color: var(--lime); background: rgba(187,244,81,.06); }.settings-list b { color: var(--muted); }
.bottom-nav, .mobile-header { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); z-index: 100; display: grid; place-items: center; padding: 20px; }.modal-backdrop[hidden] { display: none; }.modal { width: min(100%, 390px); border: 1px solid var(--line); background: #151922; border-radius: 23px; padding: 30px; text-align: center; position: relative; box-shadow: 0 30px 80px #000; }.modal-close { position: absolute; right: 13px; top: 12px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }.modal-icon { width: 52px; height: 52px; margin: 0 auto 15px; border-radius: 16px; background: rgba(187,244,81,.1); color: var(--lime); display: grid; place-items: center; font-size: 22px; }.modal h2 { margin: 0 0 7px; }.modal p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0 0 20px; }.modal .primary-button { width: 100%; }.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%,20px); background: var(--text); color: #111; border-radius: 99px; padding: 10px 16px; z-index: 120; font-size: 10px; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 820px) {
  body { background: var(--bg); }
  .sidebar { display: none; }
  .content { margin: 0; padding: calc(74px + env(safe-area-inset-top)) 16px calc(91px + env(safe-area-inset-bottom)); }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; position: fixed; inset: 0 0 auto; height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; z-index: 30; background: rgba(8,10,15,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
  .mobile-header .brand { padding: 0; }.mobile-header .brand-mark { width: 31px; height: 31px; border-radius: 9px; }.mobile-header .brand-mark span { transform: scale(.8); }.mobile-header .brand strong { font-size: 14px; }.mobile-header .avatar-button { border: 0; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4,1fr); position: fixed; z-index: 30; inset: auto 0 0; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); background: rgba(13,16,22,.95); border-top: 1px solid var(--line); backdrop-filter: blur(17px); }
  .bottom-nav button { border: 0; background: none; color: #68707c; display: grid; gap: 2px; justify-items: center; cursor: pointer; }.bottom-nav button > span { font-size: 21px; line-height: 1.2; }.bottom-nav small { font-size: 8px; font-weight: 700; }.bottom-nav button.active { color: var(--lime); }
  .page-heading { margin-bottom: 24px; align-items: flex-end; }.page-heading .ghost-button span { display: none; }
  h1 { font-size: 29px; }.page-heading p { font-size: 11px; }
  .hero-grid, .key-grid, .plans-grid { grid-template-columns: 1fr; }
  .subscription-card, .connect-card { min-height: 190px; padding: 20px; }
  .days strong { font-size: 50px; }
  .section-title { margin-top: 30px; }
  .key-grid .key-card:nth-child(2) { display: none; }
  .promo-card { padding: 23px; min-height: 230px; }.promo-card > div:first-child { position: relative; z-index: 2; max-width: 67%; }.promo-card h2 { font-size: 23px; }.promo-art { width: 210px; height: 210px; right: -58px; top: 6px; }
  .page[data-page="keys"] .page-heading { align-items: end; }.page[data-page="keys"] .page-heading .primary-button { padding: 11px 12px; font-size: 10px; }
  .info-card { align-items: flex-start; }.info-card .text-button { display: none; }
  .plans-grid { gap: 11px; }.plan-card { padding: 21px; }.plan-card ul { margin: 18px 0; }
  .profile-main .pill { display: none; }.stats div { padding-left: 12px; }.stats strong { font-size: 13px; }
}

@media (max-width: 390px) {
  .connect-row { flex-wrap: wrap; }.connect-button { width: 100%; margin-top: 3px; }
  .promo-card > div:first-child { max-width: 78%; }.promo-art { opacity: .7; }
  .info-card { padding: 16px; }
}
