:root {
  color-scheme: dark;
  --page: #070b14;
  --surface: #0d1527;
  --surface-soft: #111b2e;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --ink: #f8fafc;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --blue: #1677ee;
  --blue-dark: #2563eb;
  --cyan: #22d3ee;
  --green: #34d399;
  --green-soft: rgba(16, 185, 129, .14);
  --amber: #fbbf24;
  --amber-soft: rgba(245, 158, 11, .14);
  --red: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --shadow-small: 0 12px 36px rgba(0, 0, 0, .24);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); min-height: 100vh; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.hidden { display: none !important; }
.wordmark { display: inline-flex; align-items: baseline; gap: 5px; font: 800 23px/1 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -1.35px; white-space: nowrap; }
.wordmark span { color: var(--ink); }
.wordmark b { color: var(--cyan); font-weight: 800; }
.wordmark-image { align-items: center; padding: 5px 9px; border-radius: 10px; background: #070b14; }
.wordmark-image img { display: block; width: 136px; height: auto; }
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; background: #070b14; }
.auth-topbar { height: 76px; padding: 0 clamp(22px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(223, 229, 238, .8); }
.subtle-link { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.subtle-link span { color: var(--muted); margin-left: 5px; }
.auth-layout { width: min(1130px, calc(100% - 44px)); margin: auto; padding: 54px 0 62px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .82fr); align-items: center; gap: clamp(48px, 9vw, 125px); }
.auth-intro { max-width: 540px; }
.eyebrow { color: #12829a; font-size: 11px; font-weight: 800; letter-spacing: 1.35px; display: flex; align-items: center; gap: 10px; }
.eyebrow i, .live-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #1fb589; box-shadow: 0 0 0 4px rgba(31, 181, 137, .12); }
.auth-intro h1 { margin: 22px 0 16px; font: 800 clamp(38px, 5vw, 60px)/1.09 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -3.3px; }
.auth-intro h1 span { color: #66758c; }
.auth-intro > p { max-width: 460px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.auth-points { margin-top: 42px; display: grid; gap: 21px; }
.auth-points > div { display: flex; align-items: center; gap: 14px; }
.point-icon { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border: 1px solid #dbe7f6; border-radius: 12px; background: #fff; color: var(--blue); font-weight: 800; box-shadow: 0 3px 10px rgba(40, 67, 112, .04); }
.auth-points b, .auth-points small { display: block; }
.auth-points b { font-size: 13px; font-weight: 700; }
.auth-points small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.auth-footnote { margin-top: 46px; color: #8c97a8; font-size: 12px; }
.auth-card { padding: 35px 34px 27px; border: 1px solid rgba(222, 228, 236, .9); border-radius: 20px; background: rgba(255,255,255,.93); box-shadow: var(--shadow); }
.auth-card-brand { display: flex; align-items: center; gap: 9px; color: #738097; font-weight: 700; font-size: 12px; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: white; background: linear-gradient(145deg, #12bfd0, #286be5); font: 800 14px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.auth-card-logo { display: block; width: 28px; height: 28px; object-fit: contain; padding: 2px; border-radius: 7px; background: #07101a; }
.auth-card h2 { margin: 25px 0 6px; font: 800 24px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -.8px; }
.auth-card-copy { margin: 0; color: var(--muted); font-size: 13px; }
.auth-methods { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 24px 0 22px; border-radius: 11px; background: #f1f4f8; }
.method-tab { min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: #68768b; font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.method-tab.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(27, 43, 73, .08); }
.auth-form label { display: block; margin-bottom: 8px; color: #354158; font-size: 12px; font-weight: 700; }
.input-wrap { min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: white; color: #8e99aa; transition: border .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: #6da0f3; box-shadow: 0 0 0 3px rgba(36, 104, 232, .1); }
.input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.input-wrap input::placeholder { color: #a4adbb; }
.input-wrap.code-input { padding: 0 10px; }
.code-input input { text-align: center; letter-spacing: .42em; font: 700 20px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; padding-left: .42em; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 17px; border-radius: 10px; border: 1px solid transparent; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .16s, background .16s, box-shadow .16s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .66; transform: none; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 7px 16px rgba(36, 104, 232, .2); }
.button-primary:hover { background: var(--blue-dark); }
.button-full { width: 100%; margin-top: 13px; }
.form-note { min-height: 17px; margin: 11px 0 0; color: #8c97a8; font-size: 11px; line-height: 1.55; }
.form-note.error { color: var(--red); }
.form-note.success { color: var(--green); }
.text-button { display: block; margin: 12px auto 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; cursor: pointer; }
.telegram-pane { min-height: 135px; text-align: center; }
.telegram-pane > p:first-child { color: var(--ink-soft); font-size: 13px; }
.telegram-widget { display: flex; min-height: 54px; justify-content: center; align-items: center; padding: 8px 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: #9aa4b3; font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.privacy-note { margin: 0; padding: 10px 12px; border: 1px solid #edf0f4; border-radius: 9px; background: #fafbfd; color: #788397; font-size: 10px; line-height: 1.6; }
.auth-legal { margin: 15px 0 0; color: #9ba4b2; font-size: 10px; line-height: 1.6; text-align: center; }
.auth-legal a { color: #63748c; text-decoration: underline; text-decoration-color: #c3ccd8; text-underline-offset: 2px; }
.auth-footer { min-height: 53px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(22px, 7vw, 112px); border-top: 1px solid rgba(223, 229, 238, .8); color: #9aa4b3; font-size: 11px; }
.auth-footer a { color: #65748a; font-weight: 700; }

.cabinet-shell { min-height: 100vh; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 4.7vw, 72px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-help { color: #68768b; font-size: 12px; font-weight: 700; }
.topbar-help span { color: #9ba5b4; margin-left: 4px; }
.account-chip { display: flex; align-items: center; gap: 9px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e6f0ff; color: #2867d8; font-size: 12px; font-weight: 800; }
.account-label { max-width: 210px; overflow: hidden; color: #536078; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #6d7a8e; cursor: pointer; transform: rotate(45deg); }
.app-frame { width: 100%; min-height: calc(100vh - 68px); margin: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: calc(100vh - 68px); min-height: 620px; padding: 30px 17px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fafbfd; }
.sidebar-label { padding: 0 12px; color: #98a3b3; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.side-nav { display: grid; gap: 5px; margin-top: 15px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #637087; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; transition: .15s; }
.nav-item:hover { background: #f0f3f8; color: var(--ink); }
.nav-item.active { background: #eaf1fd; color: #215fc9; }
.nav-icon { width: 18px; color: #7f8ca1; text-align: center; font-size: 17px; line-height: 1; }
.nav-item.active .nav-icon { color: var(--blue); }
.sidebar-spacer { flex: 1; min-height: 36px; }
.sidebar-support { padding: 16px 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.support-symbol { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 8px; background: #eef5ff; color: #286be2; font: 800 13px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.sidebar-support b { font-size: 12px; }
.sidebar-support p { margin: 6px 0 11px; color: #8792a5; font-size: 10px; line-height: 1.55; }
.sidebar-support a { color: var(--blue); font-size: 10px; font-weight: 800; }
.sidebar-support a span { margin-left: 3px; }
.sidebar-bottom { padding: 18px 4px 0; display: flex; align-items: center; gap: 8px; color: #9aa4b3; font-size: 10px; }
.sidebar-bottom .live-dot { width: 6px; height: 6px; }
.main-content { min-width: 0; padding: 38px clamp(22px, 4.4vw, 66px) 70px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { margin: 0; font: 800 27px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -1.1px; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.eyebrow-small { margin-bottom: 8px; color: #16849a; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; }
.section-title-row { margin: 30px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-title-row h2 { margin: 0; font: 800 17px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -.5px; }
.section-title-row p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.text-link { color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; border: 0; background: transparent; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 15px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-small); }
.subscription-card { position: relative; overflow: hidden; min-height: 200px; padding: 23px 24px; color: white; background: linear-gradient(112deg, #193d7b, #2868cf 68%, #3388da); border: 0; box-shadow: 0 14px 31px rgba(38, 94, 183, .18); }
.subscription-card::after { content: ""; position: absolute; top: -85px; right: -38px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 73px rgba(255,255,255,.025); pointer-events: none; }
.subscription-card .card-label { color: rgba(255,255,255,.73); font-size: 10px; font-weight: 700; letter-spacing: .4px; }
.subscription-card h2 { position: relative; z-index: 1; margin: 13px 0 3px; font: 800 24px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -.6px; }
.subscription-card .sub-date { position: relative; z-index: 1; color: rgba(255,255,255,.75); font-size: 11px; }
.subscription-meta { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 25px; }
.subscription-meta .meta-block small { display: block; color: rgba(255,255,255,.68); font-size: 10px; }
.subscription-meta .meta-block b { display: block; margin-top: 5px; font-size: 13px; }
.button-light { color: #2157aa; background: white; border-color: rgba(255,255,255,.7); box-shadow: none; }
.balance-card { padding: 21px; display: flex; flex-direction: column; justify-content: space-between; }
.balance-head { display: flex; align-items: center; justify-content: space-between; color: #8290a3; font-size: 11px; font-weight: 700; }
.balance-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #e1e9f6; border-radius: 9px; background: #f2f7ff; color: var(--blue); font-weight: 800; }
.balance-value { margin-top: 15px; font: 800 30px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -1.3px; }
.balance-card .button { margin-top: 16px; align-self: flex-start; }
.trial-banner { margin-top: 15px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d4ebe1; border-radius: 13px; background: linear-gradient(105deg, #f0faf5, #fbfefc); }
.trial-banner h3 { margin: 0; font-size: 13px; font-weight: 800; }
.trial-banner p { margin: 5px 0 0; color: #708277; font-size: 11px; line-height: 1.5; }
.trial-banner .button { flex: 0 0 auto; background: #13845e; color: white; }
.stats-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
.stat-card { padding: 17px 18px; }
.stat-title { color: #8490a2; font-size: 10px; font-weight: 700; }
.stat-value { margin-top: 10px; font: 800 20px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -.6px; }
.stat-caption { margin-top: 4px; color: #a0aaba; font-size: 10px; }
.quick-device-list { display: grid; gap: 9px; }
.device-row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.device-symbol { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; border-radius: 11px; background: #eef5ff; color: #286be2; font-size: 16px; }
.device-info { min-width: 0; flex: 1; }
.device-info b { display: block; overflow: hidden; color: #354157; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.device-info small { display: block; margin-top: 4px; color: #96a1b1; font-size: 10px; }
.device-actions { display: flex; align-items: center; gap: 6px; }
.small-action { min-width: 30px; min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #637087; font-size: 10px; font-weight: 700; cursor: pointer; }
.small-action:hover { border-color: #b6c9e7; color: var(--blue); }
.small-action.danger:hover { border-color: #f0c6c6; color: var(--red); }
.empty-state { padding: 34px 22px; border: 1px dashed #d9e0e9; border-radius: 12px; color: #8995a7; background: rgba(255,255,255,.55); font-size: 12px; text-align: center; line-height: 1.7; }
.empty-state b { display: block; margin-bottom: 5px; color: #46536a; font-size: 13px; }
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.plan-card { position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow-small); }
.plan-card.featured { border-color: #8db5f5; box-shadow: 0 0 0 1px #dbe8fb, var(--shadow-small); }
.plan-card h3 { margin: 0; font: 800 15px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.plan-period { margin-top: 5px; color: #8b97a8; font-size: 10px; }
.plan-price { margin-top: 19px; font: 800 25px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -.8px; }
.plan-price small { color: #8b97a8; font: 500 10px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.plan-details { display: grid; gap: 9px; min-height: 70px; margin: 16px 0; color: #647188; font-size: 10px; }
.plan-details span::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 800; }
.plan-card .button { width: 100%; }

.support-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:16px; padding:24px; }
.support-panel h2 { margin:8px 0 7px; font:800 19px/1.3 "Outfit",sans-serif; letter-spacing:-.4px; }
.support-panel p { max-width:610px; margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.support-panel .button { flex:0 0 auto; }
.support-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.referral-panel { padding: 22px; }
.referral-panel p { max-width: 760px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.referral-link-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 17px; }
.referral-link-row input { min-width: 0; }
.referral-stats { margin-top: 15px; }
.support-link { display:grid; grid-template-columns:38px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; column-gap:12px; row-gap:4px; padding:17px; color:var(--text); text-decoration:none; transition:border-color .18s, transform .18s, box-shadow .18s; }
.support-link:hover { transform:translateY(-2px); border-color:#b5c9ea; box-shadow:var(--shadow-small); }
.support-link-icon { grid-row:1 / span 2; display:grid; width:36px; height:36px; place-items:center; border:1px solid #cce3f2; border-radius:11px; color:#0786a6; background:#edfaff; font-weight:800; }
.support-link b { font:750 13px/1.35 "Outfit",sans-serif; }
.support-link span:last-child { color:var(--muted); font-size:11px; line-height:1.5; }
.plan-pay-buttons { display: grid; gap: 7px; }
.plan-pay-buttons .button + .button { margin-top: 0; }
.saved-card-action { color: #087e99; border-color: #c4e4ed; background: #f4fcfe; }
.saved-method-panel { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; margin: 0 0 16px; padding: 17px; }
.saved-method-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #c4e4ed; border-radius: 11px; color: #087e99; background: #f0fbfe; font-size: 18px; }
.saved-method-copy h3 { margin: 5px 0 4px; font: 800 13px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.saved-method-copy p { max-width: 700px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.saved-method-actions { display: grid; justify-items: end; gap: 3px; }
.saved-method-actions .button { min-height: 36px; padding: 0 12px; font-size: 10px; }
.saved-method-actions .text-button { margin: 4px 0 0; font-size: 10px; }
.danger-text { color: var(--red); }
.payment-confirm-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; }
.payment-confirm-summary > div { display: grid; gap: 3px; }
.payment-confirm-summary small { color: #12819a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.payment-confirm-summary b { color: var(--ink); font-size: 12px; }
.payment-confirm-summary span { color: var(--muted); font-size: 10px; }
.payment-confirm-summary strong { flex: 0 0 auto; color: var(--ink); font: 800 18px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.consent-row { display: grid !important; grid-template-columns: 17px minmax(0,1fr); align-items: start; gap: 9px; margin: 14px 0 0 !important; padding: 11px; border: 1px solid #d8e5ef; border-radius: 9px; background: #f7fbfd; cursor: pointer; }
.consent-row input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: #0aa7c6; }
.consent-row span { display: grid; gap: 3px; }
.consent-row b { color: #425168; font-size: 10px; }
.consent-row small { color: #7d899a; font-size: 9px; font-weight: 500; line-height: 1.45; }
.topup-panel { padding: 17px; display: grid; gap: 18px; }
.topup-presets { display: flex; flex-wrap: wrap; gap: 9px; }
.topup-choice { min-width: 143px; padding: 10px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fcfdff; }
.topup-choice > b { font: 800 13px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.topup-custom { padding-top: 15px; border-top: 1px solid var(--line); }
.topup-custom label { display: block; margin-bottom: 7px; color: #6c798d; font-size: 10px; font-weight: 700; }
.topup-custom .dialog-input { max-width: 240px; }
.topup-custom .plan-pay-buttons { display: flex; flex-wrap: wrap; margin-top: 10px; }
.promo-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,390px); align-items: end; gap: 18px; margin: 0 0 16px; padding: 17px; }
.promo-panel p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.promo-form { display: flex; align-items: center; gap: 8px; }
.promo-form .dialog-input { min-width: 0; text-transform: uppercase; }
.promo-form .button { flex: 0 0 auto; }
.portal-promo-feedback { grid-column: 1 / -1; margin: -8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.portal-promo-feedback[hidden] { display: none; }
.portal-promo-feedback.is-success { color: #62dfbd; }
.portal-promo-feedback.is-error { color: #ff8d9b; }
.plan-price del { margin-left: 4px; color: #9aa4b3; font: 600 12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.badge { position: absolute; top: 15px; right: 14px; padding: 5px 7px; border-radius: 7px; background: #eef5ff; color: #286be2; font-size: 9px; font-weight: 800; }
.history-list { display: grid; gap: 8px; }
.history-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.history-row b { display: block; color: #38455c; font-size: 11px; }
.history-row small { display: block; margin-top: 4px; color: #98a2b1; font-size: 10px; }
.history-amount { font-weight: 800; font-size: 12px; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 7px; background: #f0f2f5; color: #69768a; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-pill.success { background: var(--green-soft); color: var(--green); }
.status-pill.pending { background: var(--amber-soft); color: var(--amber); }
.status-pill.error { background: #fff0f0; color: var(--red); }
.loading-state { padding: 65px 16px; color: #8592a5; text-align: center; font-size: 12px; }
.inline-alert { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #dbe6f7; border-radius: 9px; background: #f3f7fe; color: #65758e; font-size: 11px; line-height: 1.55; }
.inline-alert.error { border-color: #f0d3d3; background: #fff7f7; color: #a94949; }
.inline-alert.success { border-color: #d2eadd; background: #f2fbf6; color: #247858; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(20, 30, 48, .38); backdrop-filter: blur(4px); }
.dialog { width: min(450px,100%); padding: 22px; border: 1px solid rgba(255,255,255,.5); border-radius: 15px; background: white; box-shadow: 0 25px 80px rgba(15, 30, 56, .2); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-head h3 { margin: 0; font: 800 17px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.dialog-close { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #79869a; cursor: pointer; }
.dialog-body { margin-top: 16px; color: #66748a; font-size: 12px; line-height: 1.6; }
.dialog-body label { display: block; margin: 12px 0 7px; color: #4c5a70; font-size: 11px; font-weight: 700; }
.dialog-input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; color: var(--ink); font-size: 12px; }
.dialog-input:focus { border-color: #6da0f3; box-shadow: 0 0 0 3px rgba(36, 104, 232, .1); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.button-secondary { border-color: var(--line); background: white; color: #617087; }
.qr-image { display: block; width: min(260px, 100%); height: auto; margin: 12px auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 22px; max-width: min(500px,calc(100% - 32px)); padding: 12px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: #202c41; color: white; font-size: 11px; opacity: 0; transform: translate(-50%,12px); pointer-events: none; transition: .22s ease; box-shadow: 0 12px 35px rgba(20, 30, 50, .2); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 980px) {
  .auth-layout { gap: 46px; }
  .app-frame { grid-template-columns: 205px minmax(0,1fr); }
  .main-content { padding-right: 25px; padding-left: 25px; }
  .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .auth-topbar { height: 62px; padding: 0 18px; }
  .auth-topbar .wordmark { font-size: 20px; }
  .auth-layout { width: min(500px,calc(100% - 28px)); padding: 35px 0 34px; grid-template-columns: 1fr; gap: 28px; }
  .auth-intro { text-align: center; }
  .auth-intro h1 { margin-top: 16px; font-size: 39px; letter-spacing: -2.2px; }
  .auth-intro > p { margin: auto; font-size: 13px; }
  .auth-points { display: none; }
  .auth-footnote { margin-top: 15px; font-size: 10px; }
  .auth-card { padding: 26px 21px 21px; border-radius: 16px; }
  .auth-footer { padding: 0 20px; }
  .topbar { height: 60px; padding: 0 16px; }
  .topbar .wordmark { font-size: 20px; }
  .topbar-right { gap: 12px; }
  .topbar-help { display: none; }
  .account-label { max-width: 116px; font-size: 10px; }
  .avatar { width: 29px; height: 29px; }
  .app-frame { min-height: calc(100vh - 60px); display: block; padding-bottom: 67px; }
  .sidebar { position: fixed; z-index: 10; inset: auto 0 0; height: 64px; min-height: 0; padding: 5px 8px max(5px,env(safe-area-inset-bottom)); display: block; border: 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -5px 18px rgba(31,46,72,.05); }
  .sidebar-label, .sidebar-spacer, .sidebar-support, .sidebar-bottom { display: none; }
  .side-nav { height: 100%; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2px; margin: 0; }
  .nav-item { min-width: 0; min-height: 0; padding: 4px 2px; flex-direction: column; justify-content: center; gap: 3px; border-radius: 8px; font-size: 9px; }
  .nav-icon { width: auto; font-size: 16px; }
  .main-content { padding: 27px 16px 32px; }
  .page-heading { margin-bottom: 19px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { font-size: 11px; }
  .support-panel { align-items: stretch; flex-direction: column; gap: 15px; padding: 18px; }
  .support-panel .button { width: 100%; }
  .support-links { grid-template-columns: 1fr; gap: 9px; }
  .saved-method-panel { grid-template-columns: 38px minmax(0,1fr); gap: 10px; padding: 15px; }
  .saved-method-icon { width: 34px; height: 34px; }
  .saved-method-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; justify-items: initial; gap: 10px; }
  .saved-method-actions .text-button { margin: 0; }
  .promo-panel { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .promo-form { align-items: stretch; flex-direction: column; }
  .promo-form .button { width: 100%; }
  .referral-panel { padding: 18px; }
  .referral-link-row { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .subscription-card { min-height: 187px; padding: 19px; }
  .subscription-card h2 { font-size: 21px; }
  .subscription-meta { margin-top: 22px; }
  .balance-card { min-height: 145px; padding: 17px; }
  .balance-value { margin-top: 8px; font-size: 27px; }
  .trial-banner { align-items: flex-start; flex-direction: column; }
  .trial-banner .button { width: 100%; }
  .stats-row { gap: 8px; }
  .stat-card { padding: 13px 11px; }
  .stat-value { font-size: 17px; }
  .stat-title, .stat-caption { font-size: 9px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 17px; }
  .history-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
  .history-row .status-pill { grid-column: 1 / -1; justify-self: start; }
  .device-row { align-items: flex-start; gap: 9px; padding: 11px; }
  .device-symbol { width: 33px; height: 33px; flex-basis: 33px; }
  .device-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 104px; }
  .small-action { min-width: 29px; padding: 0 7px; }
  .section-title-row { margin-top: 23px; }
}

/* Cabinet tariff flow: compact overview with an explicit, accessible configurator. */
.tariff-page { max-width: 920px; }
.tariff-page .page-heading { margin-bottom: 20px; }
.tariff-page .subscription-card { min-height: 0; padding: 21px 23px 16px; }
.tariff-page .subscription-card-main { margin-top: 14px; }
.tariff-page .subscription-card h2 { font-size: clamp(29px, 3.2vw, 38px); line-height: 1.08; }
.tariff-page .subscription-card-footer.miniapp-inline-metrics { margin-top: 16px; }
.tariff-choice-card { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin: 16px 0; padding: 23px 24px; border-color: rgba(90, 125, 163, .2); border-radius: 17px; background: linear-gradient(140deg, rgba(15, 28, 47, .98), rgba(11, 19, 33, .98)); box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }
.tariff-choice-copy { min-width: 0; }
.tariff-choice-kicker { color: #83a2bd; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.tariff-choice-copy h2 { margin: 8px 0 5px; color: #f2f7fc; font-size: clamp(17px, 2vw, 21px); line-height: 1.25; letter-spacing: -.35px; }
.tariff-choice-copy p { max-width: 570px; margin: 0; color: #9db0c3; font-size: 12px; line-height: 1.55; }
.tariff-config-open { flex: 0 0 208px; min-height: 48px; justify-content: space-between; padding-inline: 18px; border: 0; background: linear-gradient(105deg, #39d2d0, #2c81e8); color: #071622; box-shadow: 0 8px 20px rgba(26, 151, 214, .16); }
.tariff-config-open:hover { background: linear-gradient(105deg, #56e1d9, #438eec); }
.tariff-page .saved-method-panel { margin-top: 16px; }
.portal-tariff-overlay { position: fixed; z-index: 35; inset: 0; display: grid; align-items: end; justify-items: center; padding: 14px 12px 0; }
.portal-tariff-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(3, 8, 17, .78); backdrop-filter: blur(9px); cursor: default; }
.portal-tariff-dialog { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(590px, 100%); height: min(calc(92dvh - 50px), 850px); max-height: min(calc(92dvh - 50px), 850px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-bottom: 0; border-radius: 26px 26px 0 0; background: rgba(14, 20, 34, .97); box-shadow: 0 -16px 48px rgba(0, 0, 0, .5); outline: none; animation: tariff-dialog-enter .22s ease-out both; }
.portal-tariff-grab { width: 40px; height: 4px; flex: 0 0 4px; margin: 10px auto 0; border-radius: 99px; background: #50788c; }
.portal-tariff-dialog-head { position: relative; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 21px 12px; border-bottom: 0; background: transparent; }
.portal-tariff-dialog-head > div { width: 100%; min-width: 0; }
.portal-tariff-step-back { position: absolute; z-index: 1; top: 8px; left: 21px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; background: transparent; color: #9bb4c5; font-size: 19px; line-height: 1; }
.portal-tariff-step-back[hidden] { display: none !important; }
.portal-tariff-dialog-head:has(.portal-tariff-step-back:not([hidden])) > div { padding-left: 38px; }
.portal-tariff-dialog-head h2 { margin: 4px 0 2px; color: #f4f9fc; font-size: 25px; line-height: 1.1; letter-spacing: -.045em; }
.portal-tariff-dialog-head p { color: #9bb4c5; }
.portal-tariff-dialog-head .portal-tariff-close { position: absolute; top: 8px; right: 21px; }
.portal-tariff-dialog-head > div > span { color: #63d6e5; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.portal-tariff-dialog-head h2 { margin: 6px 0 3px; color: #f4f8fc; font-size: 22px; line-height: 1.2; letter-spacing: -.5px; }
.portal-tariff-dialog-head p { margin: 0; color: #9aafc2; font-size: 12px; line-height: 1.45; }
.portal-tariff-close { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid rgba(148, 163, 184, .19); border-radius: 10px; background: rgba(255, 255, 255, .035); color: #bfcede; font-size: 23px; line-height: 1; cursor: pointer; }
.portal-tariff-close:hover { border-color: rgba(103, 232, 249, .48); color: #75e4ef; }
.portal-tariff-dialog-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 21px 8px; scrollbar-width: none; scrollbar-color: transparent transparent; }
.portal-tariff-dialog-scroll::-webkit-scrollbar { display: none; }
.portal-tariff-dialog-scroll .promo-panel { grid-template-columns: minmax(0, 1fr) minmax(230px, 310px); gap: 15px; margin: 0 0 14px; padding: 14px 15px; border-color: rgba(148, 163, 184, .13); background: #0e1727; box-shadow: none; }
.portal-tariff-dialog-scroll .promo-panel p { font-size: 11px; }
.portal-tariff-dialog-scroll .portal-plan-builder { max-width: none; padding: 10px 12px 12px; border-color: #23546d; border-radius: 17px; background: #0b2034; box-shadow: none; }
.portal-tariff-dialog-scroll .portal-payment-step { padding: 0; border: 0; border-radius: 0; background: transparent; }
.portal-tariff-dialog-scroll .portal-plan-step:not(:first-child) { margin-top: 18px; }
.portal-tariff-dialog-scroll .portal-payment-step .portal-plan-summary { margin: 0 0 18px; padding: 10px 12px; border-color: #23546d; border-radius: 16px; background: #0b2034; }
.portal-tariff-dialog-scroll .portal-payment-step .portal-plan-step { margin: 0 0 12px; }
.portal-tariff-dialog-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 21px max(18px, env(safe-area-inset-bottom)); border-top: 0; background: transparent; }
.portal-tariff-footer-total { display: grid; gap: 3px; flex: 0 0 auto; }
.portal-tariff-footer-total small { color: #97adbf; font-size: 11px; }
.portal-tariff-footer-total b { color: #eef9ff; font-size: 20px; }
.portal-tariff-dialog-footer .portal-plan-actions { margin: 0; }
.portal-tariff-dialog-footer .portal-plan-actions .button { min-height: 44px; }
.portal-tariff-dialog .portal-plan-step h3 { font-size: 14px; }
.portal-tariff-dialog .portal-plan-step p { font-size: 12px; }
.portal-tariff-dialog .portal-device-options .device-seg-btn small { font-size: 12px; }
.portal-tariff-dialog .portal-period-options .period-card-btn > span { font-size: 12px; }
.portal-tariff-dialog .portal-period-options .period-card-btn small { font-size: 11px; }
.portal-tariff-dialog .portal-pay-method b { font-size: 12px; }
.portal-tariff-dialog .portal-pay-method small { font-size: 11px; }
.portal-tariff-dialog .portal-plan-summary small { font-size: 11px; }
.portal-tariff-dialog :focus-visible { outline: 2px solid #51d7e8; outline-offset: 3px; }
@keyframes tariff-dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .portal-tariff-dialog { animation: none; } }

@media (min-width: 721px) {
  .portal-tariff-overlay { align-items: center; padding: 24px; }
  .portal-tariff-dialog { height: auto; max-height: min(calc(100dvh - 48px), 850px); border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; box-shadow: 0 24px 72px rgba(0, 0, 0, .56); }
  .portal-tariff-grab { display: none; }
  .portal-tariff-dialog-scroll { flex: 0 1 auto; max-height: calc(100dvh - 250px); }
}

@media (max-width: 720px) {
  .tariff-page .subscription-card { padding: 17px 16px 14px; border-radius: 16px; }
  .tariff-page .subscription-card-main { margin-top: 12px; }
  .tariff-page .subscription-card h2 { font-size: 30px; }
  .tariff-choice-card { display: grid; gap: 16px; margin: 12px 0; padding: 17px; border-radius: 15px; }
  .tariff-config-open { width: 100%; min-height: 46px; }
  .portal-tariff-overlay { padding: 0; }
  .portal-tariff-dialog { width: 100%; height: calc(92dvh - 50px); max-height: calc(92dvh - 50px); border-radius: 23px 23px 0 0; border-bottom: 0; animation: tariff-dialog-enter .2s ease-out both; }
  .portal-tariff-dialog-head { min-height: 72px; padding: 7px 17px 11px; }
  .portal-tariff-dialog-head h2 { font-size: 22px; }
  .portal-tariff-step-back { top: 7px; left: 17px; }
  .portal-tariff-dialog-head .portal-tariff-close { top: 7px; right: 17px; }
  .portal-tariff-dialog-head h2 { font-size: 19px; }
  .portal-tariff-dialog-scroll { padding: 0 13px 8px; }
  .portal-tariff-dialog-scroll .promo-panel { grid-template-columns: 1fr; gap: 10px; padding: 13px; }
  .portal-tariff-dialog-scroll .promo-form { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .portal-tariff-dialog-scroll .promo-form .button { min-width: 96px; padding-inline: 12px; }
  .portal-tariff-dialog-scroll .portal-plan-builder { padding: 10px 11px 12px; }
  .portal-tariff-dialog-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 8px 14px max(18px, env(safe-area-inset-bottom)); }
  .portal-tariff-footer-total b { font-size: 18px; }
  .portal-tariff-dialog-footer .portal-plan-actions { display: flex; justify-content: flex-end; }
  .portal-tariff-dialog-footer .portal-plan-actions .button-primary { min-width: 0; width: 100%; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* VectraVPN landing-page brand theme */
body { background: var(--page); }
.auth-screen {
  color: var(--ink);
  background: var(--page);
}
.auth-topbar, .auth-footer { border-color: var(--line); }
.subtle-link, .auth-footer a, .auth-legal a { color: var(--ink-soft); }
.auth-intro h1, .auth-card h2, .page-heading h1, .section-title-row h2,
.support-panel h2, .sidebar-support b, .plan-card h3, .dialog-head h3,
.balance-value, .stat-value, .plan-price, .saved-method-copy h3 { color: var(--ink); }
.eyebrow, .eyebrow-small { color: var(--cyan); }
.auth-intro h1 span { color: #94a3b8; }
.auth-intro > p, .telegram-pane > p:first-child, .sidebar-support p,
.page-heading p, .section-title-row p, .support-panel p, .referral-panel p,
.saved-method-copy p, .promo-panel p { color: var(--muted); }
.auth-points small, .auth-footnote, .auth-card-brand, .auth-card-copy,
.form-note, .auth-divider, .auth-legal, .auth-footer, .sidebar-bottom,
.balance-head, .stat-title, .stat-caption, .plan-period, .plan-price small,
.plan-details, .history-row small, .loading-state { color: var(--muted); }
.point-icon, .support-symbol, .balance-icon, .device-symbol, .support-link-icon,
.saved-method-icon, .badge {
  border-color: rgba(34, 211, 238, .2);
  background: rgba(34, 211, 238, .09);
  color: var(--cyan);
  box-shadow: none;
}
.auth-card, .panel, .plan-card, .sidebar-support, .dialog {
  border-color: var(--line);
  background: linear-gradient(155deg, rgba(15, 23, 42, .94), rgba(10, 16, 29, .97));
  box-shadow: var(--shadow-small);
}
.auth-card { box-shadow: var(--shadow); }
.auth-methods { background: rgba(255, 255, 255, .055); }
.method-tab { color: var(--muted); }
.method-tab.active { background: #172235; color: var(--ink); box-shadow: 0 3px 12px rgba(0, 0, 0, .24); }
.auth-form label, .topup-custom label, .dialog-body label { color: var(--ink-soft); }
.input-wrap, .dialog-input, .topup-choice {
  border-color: var(--line-strong);
  background: rgba(7, 11, 20, .72);
  color: var(--muted);
}
.input-wrap input, .dialog-input { color: var(--ink); }
.input-wrap input::placeholder { color: #64748b; }
.input-wrap:focus-within, .dialog-input:focus {
  border-color: rgba(34, 211, 238, .62);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}
.button-primary {
  background: linear-gradient(110deg, #06b6d4, #2563eb);
  box-shadow: 0 9px 26px rgba(6, 182, 212, .2), 0 0 30px rgba(37, 99, 235, .13);
}
.button-primary:hover { background: linear-gradient(110deg, #22d3ee, #3b82f6); }
.text-button, .text-link, .sidebar-support a, .topbar-help { color: var(--cyan); }
.form-note.error, .danger-text { color: var(--red); }
.form-note.success { color: var(--green); }
.auth-divider::before, .auth-divider::after { background: var(--line); }
.privacy-note { border-color: var(--line); background: rgba(255, 255, 255, .035); color: var(--muted); }
.auth-legal a { text-decoration-color: rgba(148, 163, 184, .5); }
.topbar { border-color: var(--line); background: rgba(7, 11, 20, .88); backdrop-filter: blur(16px); }
.topbar-help span { color: var(--muted); }
.avatar { background: rgba(34, 211, 238, .13); color: var(--cyan); }
.account-label { color: var(--ink-soft); }
.icon-button, .dialog-close, .button-secondary, .small-action {
  border-color: var(--line-strong); background: rgba(255, 255, 255, .045); color: var(--ink-soft);
}
.app-frame { background: var(--page); }
.sidebar { border-color: var(--line); background: #0b1120; }
.sidebar-label { color: #64748b; }
.nav-item { color: var(--muted); }
.nav-item:hover { background: rgba(255, 255, 255, .055); color: var(--ink); }
.nav-item.active { background: linear-gradient(100deg, rgba(6, 182, 212, .14), rgba(37, 99, 235, .12)); color: var(--cyan); }
.nav-icon, .nav-item.active .nav-icon { color: var(--cyan); }
.sidebar-bottom { color: var(--muted); }
.subscription-card {
  border: 1px solid rgba(34, 211, 238, .22);
  background: radial-gradient(ellipse at 84% 18%, rgba(6, 182, 212, .2), transparent 38%),
    linear-gradient(120deg, #0d1527, #101d35 70%, #0b1425);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28), 0 0 34px rgba(6, 182, 212, .07);
}
.button-light { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .09); color: var(--ink); }
.balance-icon { color: var(--cyan); }
.trial-banner { border-color: rgba(16, 185, 129, .22); background: linear-gradient(110deg, rgba(16, 185, 129, .11), rgba(15, 23, 42, .7)); }
.trial-banner p { color: #a7c8bb; }
.trial-banner .button { background: #059669; color: white; }
.device-row, .history-row { border-color: var(--line); background: rgba(15, 23, 42, .68); }
.device-info b, .history-row b { color: var(--ink-soft); }
.device-info small { color: var(--muted); }
.small-action:hover { border-color: rgba(34, 211, 238, .42); color: var(--cyan); }
.small-action.danger:hover { border-color: rgba(251, 113, 133, .38); color: var(--red); }
.empty-state { border-color: rgba(148, 163, 184, .22); background: rgba(255, 255, 255, .025); color: var(--muted); }
.empty-state b { color: var(--ink-soft); }
.plan-card.featured { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 0 1px rgba(34, 211, 238, .15), var(--shadow-small); }
.plan-details span::before { color: var(--green); }
.support-link { color: var(--ink); }
.support-link:hover { border-color: rgba(34, 211, 238, .38); box-shadow: var(--shadow-small); }
.saved-card-action { border-color: rgba(34, 211, 238, .28); background: rgba(34, 211, 238, .08); color: var(--cyan); }
.payment-confirm-summary, .consent-row {
  border-color: var(--line); background: rgba(255, 255, 255, .035);
}
.payment-confirm-summary small { color: var(--cyan); }
.payment-confirm-summary b, .payment-confirm-summary strong, .consent-row b { color: var(--ink-soft); }
.consent-row small { color: var(--muted); }
.consent-row input { accent-color: var(--cyan); }
.topup-choice > b { color: var(--ink); }
.topup-custom { border-color: var(--line); }
.plan-price del { color: var(--muted); }
.badge { color: var(--cyan); }
.status-pill { background: rgba(148, 163, 184, .12); color: var(--ink-soft); }
.status-pill.success { background: var(--green-soft); color: var(--green); }
.status-pill.pending { background: var(--amber-soft); color: var(--amber); }
.status-pill.error { background: rgba(251, 113, 133, .13); color: var(--red); }
.inline-alert { border-color: rgba(56, 189, 248, .2); background: rgba(56, 189, 248, .07); color: var(--ink-soft); }
.inline-alert.error { border-color: rgba(251, 113, 133, .24); background: rgba(251, 113, 133, .08); color: #fda4af; }
.inline-alert.success { border-color: rgba(52, 211, 153, .22); background: rgba(52, 211, 153, .08); color: #6ee7b7; }
.dialog-backdrop { background: rgba(2, 6, 15, .76); }
.dialog-body { color: var(--muted); }
.qr-image { border-color: var(--line); background: white; }
.sidebar { scrollbar-color: #334155 transparent; }
@media (max-width: 720px) {
  .sidebar { border-top-color: var(--line); background: rgba(7, 11, 20, .97); box-shadow: 0 -8px 28px rgba(0, 0, 0, .3); backdrop-filter: blur(16px); }
}

/* Cabinet navigation and subscription flow aligned with the Mini App */
.topbar { position: sticky; top: 0; z-index: 15; }
.sidebar { background: #0b1120; }
.nav-section-label { margin: 18px 12px 4px; padding: 13px 0 0; border-top: 1px solid var(--line); }
.nav-item { min-height: 45px; border-radius: 11px; }
.nav-item.active { box-shadow: inset 2px 0 0 var(--cyan); }
.nav-icon { display: grid; width: 20px; height: 20px; place-items: center; flex: 0 0 20px; }
.nav-icon svg, .device-symbol svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active .nav-icon svg { stroke-width: 2; }
.subscription-card { min-height: 0; padding: 22px 24px 17px; border: 1px solid rgba(34, 211, 238, .24); border-radius: 20px; background: radial-gradient(ellipse at 87% 8%, rgba(6, 182, 212, .19), transparent 38%), linear-gradient(135deg, #0b2035, #0d1830 68%, #101b32); box-shadow: 0 16px 42px rgba(0, 0, 0, .28), 0 0 34px rgba(6, 182, 212, .06); }
.subscription-card::after { top: -118px; right: -70px; opacity: .62; }
.subscription-card-head, .subscription-card-main { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.subscription-card-head .card-label { color: #8fa9bc; font-size: 10px; letter-spacing: .9px; }
.subscription-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 6px 10px; border: 1px solid rgba(52, 211, 153, .2); border-radius: 999px; background: rgba(16, 185, 129, .1); color: #6ee7c1; font-size: 11px; font-weight: 800; }
.subscription-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.subscription-status.expiring { border-color: rgba(251, 191, 36, .24); background: rgba(245, 158, 11, .1); color: #fcd34d; }
.subscription-status.inactive { border-color: var(--line-strong); background: rgba(148, 163, 184, .08); color: #a7b3c6; }
.subscription-account { align-self: flex-start; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #9aafc1; font-size: 10px; white-space: nowrap; }
.subscription-card-main { align-items: flex-end; margin-top: 18px; }
.subscription-count-label { color: #9bb1c3; font-size: 12px; }
.subscription-card h2 { margin: 4px 0 0; color: #f5fbff; font-size: clamp(30px, 4vw, 40px); line-height: 1; letter-spacing: -1.4px; }
.subscription-card .sub-date { margin-top: 8px; color: #9eb3c5; font-size: 11px; }
.subscription-card-main .button { flex: 0 0 auto; min-height: 42px; border-radius: 11px; }
.subscription-card-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 19px; padding-top: 13px; border-top: 1px solid rgba(148, 163, 184, .15); color: #94aabd; font-size: 11px; }
.subscription-card-footer b { margin-left: 4px; color: #e1edf6; font-weight: 750; }
.shared-subscription { display: grid; gap: 11px; margin-bottom: 17px; padding: 15px; border: 1px solid #174965; border-radius: 18px; background: linear-gradient(145deg, #0d263b, #091a2b); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.shared-subscription-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shared-subscription-head>div { display: grid; gap: 3px; min-width: 0; }
.shared-subscription-head strong { color: var(--ink); font-size: 14px; font-weight: 800; }
.shared-subscription-head>div>span { color: var(--muted); font-size: 10px; }
.shared-badge { padding: 6px 9px; border: 1px solid rgba(34, 211, 238, .2); border-radius: 999px; background: rgba(34, 211, 238, .07); color: #8ce9f5; font-size: 10px; font-weight: 750; white-space: nowrap; }
.shared-link-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 45px; padding: 5px 6px 5px 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,11,20,.78); color: #79dced; }
.shared-link-row input { min-width: 0; color: #78dced; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 11px; }
.shared-link-row .button { min-width: 104px; min-height: 34px; padding: 6px 9px; border-radius: 10px; font-size: 10px; }
.shared-connect-button { min-height: 46px; border-radius: 12px; font-weight: 800; }
.shared-client-more { margin-top: -4px; color: var(--muted); font-size: 10px; }
.shared-client-more summary { width: fit-content; cursor: pointer; }
.shared-client-more button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 38px; margin-top: 8px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(255,255,255,.035); color: var(--ink-soft); font-size: 11px; font-weight: 700; cursor: pointer; }
.master-link-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(148,163,184,.14); }
.master-link-actions .button { min-height: 40px; border-radius: 11px; font-size: 10px; font-weight: 750; }
.master-link-rotate { color: #fda4af!important; border-color: rgba(244,63,94,.2)!important; background: rgba(244,63,94,.06)!important; }
.master-qr-container { display: grid; justify-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7,11,20,.55); }
.master-qr-container img { width: min(220px,100%); border-radius: 8px; background: white; }
.master-qr-container p { margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.devices-list-heading { margin-top: 27px; }
.devices-list-heading h2 { display: flex; align-items: center; gap: 9px; }
.device-count { padding: 4px 8px; border: 1px solid rgba(34, 211, 238, .2); border-radius: 999px; background: rgba(34, 211, 238, .07); color: #8ce9f5; font: 700 10px/1.2 "Inter", sans-serif; letter-spacing: 0; }
.device-slot { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px dashed rgba(148, 163, 184, .2); border-radius: 14px; background: rgba(255, 255, 255, .018); color: #9aafc1; font-size: 11px; }
.device-slot-number { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .045); color: #71849a; font-size: 10px; font-weight: 750; }
.device-slot small { margin-left: auto; color: #71849a; font-size: 10px; }
.device-actions .small-action { min-width: 34px; }
.referral-link-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.referral-link-row .button { min-height: 42px; white-space: nowrap; }
.referral-link-row a[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.plans-history-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; padding: 13px 15px; border-radius: 12px; }
.plans-history-link > span { display: grid; gap: 4px; }
.plans-history-link b { color: var(--ink-soft); font-size: 12px; }
.plans-history-link small { color: var(--muted); font-size: 10px; }
.plans-history-link .text-link, .history-heading-actions .text-link { flex: 0 0 auto; }
.history-heading-actions { display: flex; align-items: center; gap: 15px; }
@media (max-width: 720px) {
  .nav-section-label, .nav-item[data-view="history"] { display: none !important; }
  .side-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-item { box-shadow: none !important; }
  .nav-icon { width: 20px; height: 20px; flex-basis: auto; }
  .nav-icon svg { width: 19px; height: 19px; }
  .subscription-card { padding: 18px 17px 14px; border-radius: 18px; }
  .subscription-card-main { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 15px; }
  .subscription-card-main .button { width: 100%; }
  .subscription-card h2 { font-size: 32px; }
  .subscription-card-footer { gap: 6px 14px; margin-top: 15px; font-size: 10px; }
  .shared-subscription { padding: 14px; }
  .plans-history-link { align-items: flex-start; flex-direction: column; }
  .history-heading-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* Home and tariff pages follow the Mini App's subscription-first card layout. */
.home-page-heading { margin-bottom: 17px; }
.subscription-card-head { align-items: center; }
.subscription-plan-name { display: flex; align-items: center; gap: 8px; color: #72e6f5; font-size: 13px; font-weight: 800; }
.subscription-plan-name > span { color: #53d8f1; font-size: 17px; }
.subscription-card-main { align-items: stretch; flex-direction: column; gap: 16px; }
.subscription-main-action { width: 100%; min-height: 46px; justify-content: space-between; border: 0; border-radius: 12px; background: linear-gradient(105deg, #64e5d2, #23c5dc); color: #071625; font-weight: 850; }
.subscription-main-action:hover { background: linear-gradient(105deg, #7aefdf, #49d4e5); }
.miniapp-account-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.miniapp-metric-card { min-width: 0; min-height: 88px; display: flex; align-items: center; gap: 12px; padding: 14px; border-color: rgba(34, 211, 238, .22); border-radius: 16px; background: linear-gradient(135deg, #0b2035, #0d1830); }
.miniapp-metric-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid rgba(34, 211, 238, .45); border-radius: 11px; color: var(--cyan); font-size: 19px; }
.miniapp-metric-card .stat-title { color: #8ca8bd; font-size: 9px; white-space: nowrap; }
.miniapp-metric-card .stat-value { margin-top: 5px; color: #f4faff; font-size: 21px; line-height: 1.1; }
.home-promo-card { width: 100%; min-height: 86px; display: flex; align-items: center; gap: 15px; margin-top: 13px; padding: 14px 18px; border: 1px solid rgba(34, 211, 238, .24); border-radius: 17px; background: linear-gradient(110deg, rgba(8, 41, 63, .95), rgba(12, 27, 49, .98)); color: var(--ink); text-align: left; cursor: pointer; }
.home-promo-card:hover, .home-quick-action:hover { border-color: rgba(34, 211, 238, .55); box-shadow: 0 8px 24px rgba(6, 182, 212, .09); }
.home-promo-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; border: 1px dashed #22d3ee; border-radius: 13px; background: rgba(6, 182, 212, .1); color: #54dff0; font: 800 23px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.home-promo-card > span:nth-child(2) { display: grid; gap: 4px; }
.home-promo-card b { color: #f5fbff; font-size: 16px; }
.home-promo-card small { color: #92adc1; font-size: 11px; }
.home-promo-arrow { margin-left: auto; color: var(--cyan); font-size: 22px; }
.home-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.home-quick-action { min-width: 0; min-height: 103px; display: grid; align-content: start; justify-items: start; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #0d1628; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.home-quick-action > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(34, 211, 238, .35); border-radius: 9px; background: rgba(6, 182, 212, .08); color: var(--cyan); font-size: 17px; }
.home-quick-action b { font-size: 11px; }
.home-quick-action small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.subscription-card-footer.miniapp-inline-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 17px; padding-top: 14px; }
.miniapp-inline-metrics > span { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: 8px; }
.miniapp-inline-metrics > span > i { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(34, 211, 238, .38); border-radius: 10px; color: var(--cyan); font-size: 15px; font-style: normal; }
.miniapp-inline-metrics > span > small { color: #91aabe; font-size: 9px; }
.miniapp-inline-metrics > span > b { margin: 2px 0 0; color: #f4faff; font-size: 12px; }
.miniapp-inline-metrics > span > b small { margin-left: 3px; color: #91aabe; font-size: 9px; font-weight: 500; }
.tariff-summary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; }
.tariff-summary-actions .button { width: 100%; }
.tariff-summary-actions .button-primary { border: 0; background: linear-gradient(105deg, #08b8cf, #2874ed); box-shadow: 0 8px 20px rgba(14, 165, 233, .18); }
.tariff-options-heading { scroll-margin-top: 90px; }
.saved-method-panel { margin-top: 16px; }

@media (max-width: 720px) {
  .home-page-heading { margin-bottom: 13px; }
  .home-quick-actions { gap: 8px; }
  .home-quick-action { min-height: 95px; padding: 11px; }
  .home-quick-action small { font-size: 8px; }
  .miniapp-metric-card { min-height: 79px; gap: 9px; padding: 11px 9px; }
  .miniapp-metric-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 16px; }
  .miniapp-metric-card .stat-title { font-size: 8px; }
  .miniapp-metric-card .stat-value { font-size: 18px; }
  .tariff-summary-actions { grid-template-columns: 1fr; }
  .subscription-card-footer.miniapp-inline-metrics { gap: 8px; }
  .miniapp-inline-metrics > span { grid-template-columns: 28px minmax(0, 1fr); column-gap: 6px; }
  .miniapp-inline-metrics > span > i { width: 28px; height: 28px; }
}

/* Mini App home copied into the browser cabinet, then widened for desktop. */
.cabinet-shell {
  background: #070b14;
}
.app-frame { background: transparent; }
.miniapp-home-hero { max-width: 920px; }
.miniapp-home-hero .subscription-card { min-height: 248px; display: flex; flex-direction: column; justify-content: space-between; }
.miniapp-home-hero .subscription-card-main { margin-top: 22px; }
.miniapp-home-hero .subscription-card h2 { font-size: clamp(38px, 5vw, 54px); }
.miniapp-home-hero .subscription-main-action { max-width: 420px; }
.miniapp-account-metrics { max-width: 920px; }
.home-promo-card { max-width: 920px; position: relative; overflow: hidden; }
.home-promo-card::after { content: ""; position: absolute; right: 18px; top: 50%; width: 86px; height: 64px; transform: translateY(-50%); background: url("/assets/icon-style-concepts/home-promo-cutout.webp") center / contain no-repeat; opacity: .86; pointer-events: none; }
.home-promo-arrow { margin-right: 80px; }
.miniapp-supported-devices {
  position: relative; isolation: isolate; min-height: 145px; max-width: 920px; display: flex; flex-direction: column; justify-content: center;
  gap: 10px; margin-top: 12px; padding: 18px 190px 18px 20px; overflow: hidden; border: 1px solid rgba(34, 211, 238, .2); border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 34, 54, .98), rgba(9, 20, 38, .98));
}
.miniapp-supported-devices h2 { margin: 5px 0 0; color: #eaf7ff; font-size: 17px; line-height: 1.25; letter-spacing: -.35px; }
.miniapp-supported-devices p { max-width: 560px; margin: 5px 0 0; color: #9ab1c3; font-size: 11px; line-height: 1.55; }
.miniapp-supported-devices > img { position: absolute; z-index: -1; right: 8px; bottom: -10px; width: 180px; height: 138px; object-fit: contain; }
.miniapp-platform-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.miniapp-platform-list span { padding: 5px 9px; border: 1px solid rgba(91, 183, 220, .28); border-radius: 9px; background: rgba(6, 21, 35, .7); color: #b7d1e1; font-size: 10px; font-weight: 650; }
.home-bottom-triad { max-width: 920px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.home-triad-card { min-width: 0; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 8px 10px; overflow: hidden; border: 1px solid rgba(34, 211, 238, .19); border-radius: 15px; background: linear-gradient(145deg, rgba(12, 31, 50, .96), rgba(10, 20, 36, .98)); color: #d9e9f4; font: inherit; text-align: center; cursor: pointer; }
.home-triad-card:hover { border-color: rgba(34, 211, 238, .48); background: linear-gradient(145deg, rgba(13, 42, 65, .98), rgba(10, 25, 44, .99)); }
.home-triad-card img { width: min(100%, 92px); height: 46px; object-fit: contain; }
.home-triad-card > span { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 750; }
.home-triad-card > span b { color: var(--cyan); font-size: 16px; line-height: .8; }
.miniapp-trial-banner { max-width: 920px; }
.portal-plan-builder { max-width: 920px; padding: 19px; border: 1px solid rgba(34, 211, 238, .22); border-radius: 20px; background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(8, 16, 30, .98)); box-shadow: 0 16px 42px rgba(0, 0, 0, .22); }
.portal-plan-step { display: flex; align-items: center; gap: 11px; margin: 3px 0 13px; }
.portal-plan-step:not(:first-child) { margin-top: 22px; }
.portal-plan-step-number { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border: 1px solid rgba(34, 211, 238, .38); border-radius: 9px; background: rgba(6, 182, 212, .1); color: #67e8f9; font-size: 12px; font-weight: 850; }
.portal-plan-step h3 { margin: 0; color: #eaf7ff; font-size: 13px; }
.portal-plan-step p { margin: 3px 0 0; color: #91aabe; font-size: 10px; line-height: 1.4; }
.portal-device-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.portal-device-options .device-seg-btn { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 12px; background: rgba(255, 255, 255, .035); color: #c5d7e4; cursor: pointer; }
.portal-device-options .device-seg-btn span { font-size: 19px; font-weight: 850; }
.portal-device-options .device-seg-btn small { color: #9bb1c3; font-size: 10px; }
.portal-device-options .device-seg-btn.selected { border-color: rgba(34, 211, 238, .65); background: linear-gradient(120deg, rgba(6, 182, 212, .17), rgba(37, 99, 235, .12)); color: #67e8f9; box-shadow: 0 0 0 1px rgba(34, 211, 238, .1); }
.portal-device-options .device-seg-btn.selected small { color: #b4eaf2; }
.portal-period-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.portal-period-options .period-card-btn { min-width: 0; min-height: 92px; display: grid; justify-items: start; align-content: space-between; gap: 7px; padding: 11px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 12px; background: rgba(255, 255, 255, .035); color: #dceaf4; text-align: left; cursor: pointer; }
.portal-period-options .period-card-btn > span { font-size: 11px; font-weight: 750; }
.portal-period-options .period-card-btn small { color: #55ddc0; font-size: 9px; }
.portal-period-options .period-card-btn b { font-size: 16px; }
.portal-period-options .period-card-btn.selected { border-color: rgba(34, 211, 238, .65); background: linear-gradient(145deg, rgba(6, 182, 212, .15), rgba(37, 99, 235, .11)); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .08); }
.portal-plan-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 13px 14px; border: 1px solid rgba(34, 211, 238, .17); border-radius: 12px; background: rgba(6, 182, 212, .055); }
.portal-plan-summary > div { display: grid; gap: 4px; color: #e6f4fc; font-size: 11px; font-weight: 750; }
.portal-plan-summary small { color: #91aabe; font-size: 10px; font-weight: 500; }
.portal-plan-summary > b { color: #67e8f9; font-size: 20px; white-space: nowrap; }
.portal-renewal-current { display: grid; gap: 7px; margin: 3px 0 17px; padding: 12px 14px; border: 1px solid rgba(34, 211, 238, .2); border-radius: 13px; background: rgba(6, 182, 212, .06); }
.portal-renewal-current > small { color: #7f9caf; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.portal-renewal-current > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-renewal-current b { color: #eaf7ff; font-size: 14px; }
.portal-renewal-current span { padding: 5px 9px; border: 1px solid rgba(34, 211, 238, .18); border-radius: 999px; color: #67e8f9; font-size: 10px; font-weight: 700; }
.portal-trial-transition-alert { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; margin: 12px 0 4px; padding: 10px 12px; border-color: rgba(245, 158, 11, .34); border-radius: 12px; background: rgba(245, 158, 11, .09); color: #f5d38a; }
.portal-trial-transition-alert > span { font-size: 16px; line-height: 1.35; }
.portal-trial-transition-alert strong { display: block; color: #f7d78e; font-size: 11px; }
.portal-trial-transition-alert p { margin: 3px 0 0; color: #d2b87c; font-size: 10px; line-height: 1.45; }
.portal-payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.portal-pay-method { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 12px; background: rgba(255, 255, 255, .035); color: #dceaf4; text-align: left; cursor: pointer; }
.portal-pay-method.selected { border-color: rgba(34, 211, 238, .65); background: rgba(6, 182, 212, .09); }
.portal-pay-method-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(6, 182, 212, .12); color: #67e8f9; font-size: 16px; font-weight: 800; }
.portal-pay-method-icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.portal-pay-method[data-provider="crypto"] { grid-column: 1 / -1; }
.portal-pay-method-crypto { color: #f59e0b; background: rgba(245, 158, 11, .12); font-size: 20px; }
.portal-pay-method > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.portal-pay-method b { font-size: 11px; }
.portal-pay-method small { color: #91aabe; font-size: 9px; }
.portal-pay-method > i { width: 13px; height: 13px; flex: 0 0 13px; margin-left: auto; border: 1px solid rgba(148, 163, 184, .45); border-radius: 50%; }
.portal-pay-method.selected > i { border: 4px solid #22d3ee; background: #e6fbff; }
.portal-plan-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 15px; }
.portal-plan-actions .button { min-height: 45px; }
.portal-plan-actions .button-primary { min-width: min(100%, 240px); justify-content: space-between; border: 0; background: linear-gradient(105deg, #64e5d2, #23c5dc); color: #071625; box-shadow: 0 8px 20px rgba(14, 165, 233, .18); }
.portal-plan-actions .button-primary:hover { background: linear-gradient(105deg, #7aefdf, #49d4e5); }
.portal-plan-actions .button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 720px) {
  .miniapp-home-hero .subscription-card { min-height: 0; }
  .miniapp-home-hero .subscription-card h2 { font-size: 38px; }
  .miniapp-home-hero .subscription-main-action { max-width: none; }
  .home-promo-card::after { right: 12px; width: 66px; height: 54px; opacity: .7; }
  .home-promo-arrow { margin-right: 58px; }
  .miniapp-supported-devices { min-height: 155px; padding: 16px 100px 16px 15px; border-radius: 17px; }
  .miniapp-supported-devices h2 { font-size: 14px; }
  .miniapp-supported-devices p { font-size: 10px; }
  .miniapp-supported-devices > img { right: -31px; bottom: -2px; width: 132px; height: 110px; opacity: .72; }
  .miniapp-platform-list { gap: 5px; }
  .miniapp-platform-list span { padding: 4px 6px; font-size: 9px; }
  .home-bottom-triad { gap: 6px; }
  .home-triad-card { min-height: 72px; padding: 7px 4px; border-radius: 12px; }
  .home-triad-card img { width: 70px; height: 36px; }
  .home-triad-card > span { gap: 2px; font-size: 9px; }
  .portal-plan-builder { padding: 15px; border-radius: 17px; }
  .portal-period-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-period-options .period-card-btn { min-height: 79px; }
  .portal-payment-options { grid-template-columns: 1fr; }
  .portal-plan-actions { display: grid; grid-template-columns: 1fr; }
  .portal-plan-actions .button { width: 100%; }
  .referral-link-row { grid-template-columns: 1fr; }
  .device-slot { gap: 8px; padding: 9px 11px; }
  .device-slot small { font-size: 9px; }
}

@media (max-width: 360px) {
  .topbar { gap: 8px; padding-inline: 12px; }
  .topbar-right { gap: 8px; }
  .account-chip { position: relative; }
  .account-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .icon-button { flex: 0 0 32px; width: 32px; height: 32px; }
}

.portal-view { width: min(100%, 1120px); margin-inline: auto; }
.portal-view-overview, .portal-view-plans { max-width: 920px; }
.portal-view .page-heading p { font-size: 13px; }
.miniapp-home-hero .subscription-card { min-height: 218px; }
.miniapp-home-hero .subscription-card::after { opacity: .28; }
.miniapp-home-hero .subscription-card-main { margin-top: 16px; }
.miniapp-home-hero .subscription-card h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.06; }
.miniapp-home-hero .subscription-card .sub-date { font-size: 12px; }
.miniapp-metric-card .stat-title { font-size: 11px; line-height: 1.3; white-space: normal; }
.home-promo-card { min-height: 78px; }
.home-promo-card small { font-size: 12px; }
.miniapp-supported-devices p { font-size: 12px; }
.miniapp-platform-list span { font-size: 11px; }
.home-triad-card > span { font-size: 12px; }
.miniapp-trial-banner p { font-size: 12px; line-height: 1.5; }

@media (max-width: 720px) {
  .miniapp-home-hero .subscription-card { min-height: 0; padding: 18px 17px; }
  .miniapp-home-hero .subscription-card h2 { font-size: clamp(29px, 8.8vw, 34px); line-height: 1.08; }
  .miniapp-home-hero .subscription-card-main { margin-top: 15px; }
  .miniapp-metric-card .stat-title { font-size: 10px; }
  .miniapp-supported-devices h2 { font-size: 15px; }
  .miniapp-supported-devices p { font-size: 11px; }
  .miniapp-platform-list span { font-size: 10px; }
  .home-triad-card > span { font-size: 11px; }
}

@media (min-width: 721px) {
  .nav-item { font-size: 13px; }
  .sidebar-support p, .sidebar-support a { font-size: 12px; line-height: 1.5; }
}
.portal-view .stat-card .stat-title, .portal-view .stat-card .stat-caption { font-size: 12px; line-height: 1.35; }
.portal-view .referral-panel p, .portal-view .support-panel p, .portal-view .shared-subscription > p, .portal-view .saved-method-panel p { font-size: 13px; line-height: 1.55; }
.portal-view .section-title-row p, .portal-view .empty-state, .portal-view .inline-alert { font-size: 13px; line-height: 1.5; }
.portal-view .history-row small { font-size: 12px; }

.wordmark-image { position: relative; display: block; width: min(184px, 42vw); height: auto; aspect-ratio: 1517 / 226; overflow: hidden; padding: 0; border-radius: 8px; background: #070b14; flex: 0 0 auto; }
.wordmark-image img { position: absolute; top: -110.2%; left: -21.36%; width: 142.85%; max-width: none; height: auto; object-fit: initial; mix-blend-mode: screen; }
.auth-card h2 { margin-top: 0; }
