/* Web cabinet refresh aligned with the Mini App midnight palette. */
:root {
  color-scheme: dark;
  --page: #070d16;
  --surface: #0d1826;
  --surface-soft: #111f30;
  --surface-raised: #152538;
  --line: rgba(149, 190, 207, .13);
  --line-strong: rgba(149, 190, 207, .22);
  --ink: #f3f8fc;
  --ink-soft: #c5d3dd;
  --muted: #91a5b4;
  --cyan: #46d5ec;
  --blue: #22bcd7;
  --green: #57dfbd;
  --red: #fb8796;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  --shadow-small: 0 14px 36px rgba(0, 0, 0, .2);
  font-family: Inter, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html { min-width: 320px; background: var(--page); }
body {
  color: var(--ink);
  background:
    radial-gradient(ellipse 780px 500px at 73% -8%, rgba(18, 105, 135, .2), transparent 68%),
    radial-gradient(ellipse 540px 460px at 3% 34%, rgba(17, 68, 102, .13), transparent 70%),
    var(--page);
}
button, input, textarea { font-family: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid #61deed;
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .55; }

/* Sign in */
.auth-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  background: transparent;
}
.auth-screen::before {
  position: absolute;
  z-index: -1;
  top: 6%;
  left: -13rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(55, 188, 217, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(55, 188, 217, .025), 0 0 0 94px rgba(55, 188, 217, .018);
  content: "";
  pointer-events: none;
}
.auth-topbar {
  height: 76px;
  padding-inline: clamp(22px, 6vw, 96px);
  border-color: var(--line);
  background: rgba(7, 13, 22, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.auth-topbar .wordmark-image, .topbar .wordmark-image { padding: 4px 0; background: transparent; }
.auth-topbar .wordmark-image img, .topbar .wordmark-image img { width: 142.85%; }
.subtle-link, .auth-footer a, .auth-legal a { color: var(--ink-soft); }
.subtle-link:hover, .auth-footer a:hover, .auth-legal a:hover { color: var(--cyan); }
.auth-layout {
  width: min(1160px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .82fr);
  gap: clamp(48px, 8vw, 112px);
  padding-block: clamp(52px, 8vh, 96px);
}
.auth-intro { max-width: 590px; }
.eyebrow { color: var(--cyan); letter-spacing: .15em; }
.auth-intro h1 {
  margin-block: 22px 17px;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -.065em;
}
.auth-intro h1 span {
  color: transparent;
  background: linear-gradient(100deg, #b9f6e2 5%, #55d7e9 58%, #77aef8 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.auth-intro > p { max-width: 470px; color: #a9bac7; font-size: 15px; line-height: 1.7; }
.auth-points { gap: 15px; margin-top: 34px; }
.auth-points > div { gap: 13px; }
.point-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-color: rgba(70, 213, 236, .2);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(35, 173, 201, .18), rgba(28, 77, 115, .3));
  color: #72e2f1;
}
.auth-points b { color: #e8f2f7; font-size: 13px; }
.auth-points small, .auth-footnote { color: #8fa4b2; }
.auth-footnote { margin-top: 36px; }
.auth-card {
  position: relative;
  overflow: hidden;
  padding: 34px 34px 28px;
  border-color: rgba(127, 182, 204, .2);
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(17, 31, 46, .96), rgba(10, 19, 31, .98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .045);
}
.auth-card::before {
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(81, 223, 231, .65), transparent);
  content: "";
}
.auth-card h2 { margin: 0 0 7px; color: var(--ink); font-size: 25px; letter-spacing: -.045em; }
.auth-card-copy { color: var(--muted); }
.auth-methods { margin-block: 22px 21px; border: 1px solid rgba(149, 190, 207, .1); border-radius: 13px; background: rgba(3, 10, 18, .48); }
.method-tab { min-height: 42px; border-radius: 10px; color: #91a5b4; }
.method-tab:hover { color: var(--ink); }
.method-tab.active { background: linear-gradient(130deg, rgba(30, 121, 151, .45), rgba(25, 73, 112, .5)); color: #e9fbff; box-shadow: inset 0 0 0 1px rgba(73, 203, 223, .18), 0 4px 14px rgba(0, 0, 0, .18); }
.auth-form label, .dialog-body label { color: #c7d4dd; }
.input-wrap {
  min-height: 51px;
  border-color: rgba(141, 177, 194, .2);
  border-radius: 13px;
  background: rgba(5, 13, 22, .72);
}
.input-wrap:focus-within { border-color: rgba(79, 213, 232, .72); box-shadow: 0 0 0 4px rgba(45, 190, 213, .1); }
.input-wrap input { color: #eff9fc; }
.input-wrap input::placeholder { color: #6f8492; }
.auth-divider { color: #8197a5; }
.auth-legal { color: #8499a7; line-height: 1.6; }
.auth-legal a { text-decoration-color: rgba(120, 189, 206, .45); }
.auth-footer { color: #7f95a4; }

/* Shared header and navigation */
.topbar {
  height: 74px;
  padding-inline: clamp(22px, 5vw, 76px);
  border-color: rgba(149, 190, 207, .1);
  background: rgba(7, 13, 22, .84);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.topbar-right { gap: clamp(12px, 2vw, 25px); }
.topbar-help { color: #b4c5cf; }
.topbar-help:hover { color: var(--cyan); }
.account-chip {
  min-height: 42px;
  gap: 9px;
  padding: 4px 12px 4px 5px;
  border: 1px solid rgba(149, 190, 207, .13);
  border-radius: 999px;
  background: rgba(14, 26, 40, .72);
}
.avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(82, 215, 228, .24);
  border-radius: 50%;
  background: linear-gradient(145deg, #174a62, #10233a);
  color: #a5f0e1;
  font-weight: 800;
}
.account-label { max-width: 180px; overflow: hidden; color: #d3e0e7; text-overflow: ellipsis; white-space: nowrap; }
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: #a9bfcb;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.icon-button:hover { transform: translateY(-1px); border-color: rgba(70, 213, 236, .34); background: rgba(70, 213, 236, .08); color: #7ce5ef; }
.app-frame {
  width: min(1510px, 100%);
  min-height: calc(100vh - 74px);
  margin-inline: auto;
  grid-template-columns: 248px minmax(0, 1fr);
  background: transparent;
}
.sidebar {
  top: 74px;
  height: calc(100vh - 74px);
  padding: 30px 17px 20px;
  border-color: rgba(149, 190, 207, .1);
  background: linear-gradient(180deg, rgba(10, 19, 30, .7), rgba(8, 15, 25, .38));
}
.sidebar-label { color: #718a9b; font-size: 10px; letter-spacing: .16em; }
.nav-section-label { margin-top: 18px; border-color: rgba(149, 190, 207, .1); }
.side-nav { gap: 5px; margin-top: 18px; }
.nav-item {
  min-height: 46px;
  gap: 11px;
  padding-inline: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #91a5b4;
  font-size: 13px;
  font-weight: 650;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.nav-item:hover { transform: translateX(2px); border-color: rgba(107, 177, 199, .1); background: rgba(20, 45, 63, .58); color: #e5f0f5; }
.nav-item.active {
  border-color: rgba(62, 192, 216, .16);
  background: linear-gradient(105deg, rgba(20, 95, 119, .32), rgba(22, 49, 75, .38));
  box-shadow: inset 2px 0 0 #44d4e8, inset 0 1px rgba(255, 255, 255, .025);
  color: #74e2ef;
}
.nav-icon { color: #86a3b3; }
.nav-item.active .nav-icon { color: #6be0ec; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-support {
  padding: 17px 14px 15px;
  border-color: rgba(113, 173, 194, .14);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(16, 33, 49, .84), rgba(10, 21, 34, .86));
  box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}
.support-symbol { border-radius: 11px; }
.sidebar-support b { color: #e3eef3; font-size: 13px; }
.sidebar-support p { color: #8fa5b3; font-size: 11px; }
.sidebar-support a { color: #64d9e8; font-size: 11px; }
.sidebar-support a:hover { color: #a3f4e1; }
.sidebar-bottom { color: #8098a7; }
.sidebar-bottom .live-dot { background: #57dfbd; box-shadow: 0 0 0 4px rgba(87, 223, 189, .1), 0 0 12px rgba(87, 223, 189, .45); }

/* Page layout and reusable surfaces */
.main-content {
  min-width: 0;
  padding: clamp(28px, 3.8vw, 52px) clamp(28px, 4vw, 58px) 76px;
  background: transparent;
}
#main-content .portal-view { width: min(100%, 1120px); }
#main-content .portal-view-overview, #main-content .portal-view-plans { max-width: 1160px; }
#main-content .portal-view-devices, #main-content .portal-view-history,
#main-content .portal-view-referrals, #main-content .portal-view-support { max-width: 960px; }
#main-content .page-heading { align-items: flex-end; margin-bottom: 23px; }
#main-content .page-heading h1 { color: #f0f7fb; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.055em; }
#main-content .page-heading p { max-width: 720px; color: #94a9b7; font-size: 13px; line-height: 1.55; }
#main-content .eyebrow-small { color: #54d5e8; font-size: 10px; letter-spacing: .16em; }
#main-content .panel,
#main-content .subscription-card,
#main-content .device-row,
#main-content .device-slot,
#main-content .history-row {
  border-color: rgba(120, 175, 197, .16);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(15, 31, 47, .94), rgba(10, 21, 34, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 30px rgba(0, 0, 0, .16);
}
#main-content .card-label { color: #60d9e9; letter-spacing: .12em; }
#main-content .button-primary, .button-primary {
  border-color: transparent;
  background: linear-gradient(105deg, #83e8cb 0%, #4ed3df 58%, #4db5e8 100%);
  color: #06212b;
  box-shadow: 0 9px 24px rgba(19, 152, 174, .16), inset 0 1px rgba(255, 255, 255, .4);
}
#main-content .button-primary:hover, .button-primary:hover {
  background: linear-gradient(105deg, #a0f2d9, #61e0e7 58%, #68c5f0);
  box-shadow: 0 12px 28px rgba(19, 152, 174, .22), inset 0 1px rgba(255, 255, 255, .44);
}
#main-content .button-secondary, .button-secondary {
  border-color: rgba(139, 181, 199, .2);
  background: linear-gradient(145deg, rgba(23, 41, 59, .92), rgba(14, 27, 42, .96));
  color: #d4e2e9;
}
#main-content .button-secondary:hover, .button-secondary:hover { border-color: rgba(72, 202, 222, .36); background: #162d40; color: #effcff; }
#main-content .text-link, #main-content .text-button { color: #65d9e8; }
#main-content .empty-state { border-color: rgba(132, 178, 197, .16); border-radius: 18px; background: rgba(15, 29, 43, .68); color: #9bb0bd; }
#main-content .empty-state b { color: #e0edf3; }
#main-content .inline-alert { border-radius: 13px; }

/* Subscription home */
#main-content #view-home {
  max-width: 1160px;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr);
  gap: 16px 18px;
  padding-bottom: 34px;
}
#view-home .prod-home-heading { margin-bottom: 1px; }
#view-home .prod-home-heading h1 { color: #f1f8fb; font-size: clamp(29px, 3.4vw, 40px); letter-spacing: -.06em; }
#view-home .premium-sub-hero {
  min-height: 286px;
  padding: 24px 26px 20px;
  border-color: rgba(68, 199, 221, .28);
  border-radius: 25px;
  background:
    radial-gradient(circle at 92% 0%, rgba(34, 172, 204, .23), transparent 43%),
    linear-gradient(137deg, #0d2b40 0%, #0b1c2d 54%, #0b1728 100%);
  box-shadow: inset 0 1px rgba(204, 248, 255, .08), 0 20px 48px rgba(0, 0, 0, .25);
}
#view-home .premium-sub-hero::after {
  position: absolute;
  right: -60px;
  bottom: -112px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(96, 220, 233, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(96, 220, 233, .035), 0 0 0 56px rgba(96, 220, 233, .024);
  content: "";
  pointer-events: none;
}
#view-home .dash-top-row, #view-home .dash-sub-body, #view-home .dash-progress-bar, #view-home .miniapp-main-action { position: relative; z-index: 1; }
#view-home .sub-plan-badge { gap: 7px; color: #7ce3ec; font-size: 13px; }
#view-home .sub-plan-badge::before { color: #a7f2df; }
#view-home .sub-plan-badge span:last-child { color: #c9f4f2; }
#view-home .sub-status-pill { padding: 7px 12px; border-radius: 999px; font-size: 11px; }
#view-home .dash-sub-body { gap: 5px; }
#view-home .prod-sub-caption { color: #9ab4c3; font-size: 12px; }
#view-home .dash-days-wrap { gap: 9px; margin-top: 4px; }
#view-home .dash-days-num { font-size: clamp(48px, 5.2vw, 66px); letter-spacing: -.07em; }
#view-home .dash-days-unit { color: #b0edee; font-size: 17px; }
#view-home .dash-date-sub { color: #9bb1c0; font-size: 12px; }
#view-home .dash-progress-bar { height: 4px; background: rgba(231, 248, 255, .12); }
#view-home .dash-progress-fill { background: linear-gradient(90deg, #66e5c1, #43cee2, #4aaff1); }
#view-home .miniapp-main-action { min-height: 48px; border-radius: 14px; font-size: 13px; box-shadow: 0 8px 20px rgba(18, 148, 176, .16); }
#view-home .sub-quick-grid { gap: 14px; }
#view-home .sub-qcard {
  min-height: 132px;
  padding: 18px 19px;
  border-color: rgba(116, 176, 199, .15);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(17, 34, 51, .96), rgba(10, 22, 36, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 28px rgba(0, 0, 0, .15);
}
#view-home .sub-qcard:hover { transform: translateY(-3px); border-color: rgba(71, 205, 225, .36); box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 18px 34px rgba(0, 0, 0, .23); }
#view-home .sub-qcard-header { color: #a9bdc9; font-size: 12px; }
#view-home .sub-qcard-stat { font-size: clamp(23px, 2.3vw, 30px); letter-spacing: -.06em; }
#view-home .prod-card-art { right: 4px; bottom: 2px; opacity: .42; }
#view-home .home-card-banner, #view-home .miniapp-trial-banner {
  border-color: rgba(62, 200, 164, .19);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(9, 41, 42, .88), rgba(13, 28, 41, .88));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
#view-home .home-promo-btn {
  min-height: 96px;
  border-color: rgba(76, 171, 213, .2);
  border-radius: 21px;
  background: radial-gradient(circle at 90% 50%, rgba(38, 135, 188, .18), transparent 34%), linear-gradient(135deg, #10283b, #0b1829);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
#view-home .home-promo-btn:hover { transform: translateY(-2px); border-color: rgba(76, 196, 221, .4); box-shadow: 0 16px 32px rgba(0, 0, 0, .2); }
#view-home .home-promo-title { color: #effaff; font-size: 21px; }
#view-home .prod-promo-sub { color: #9fb6c5; }
#view-home .home-bottom-triad { gap: 12px; }
#view-home .home-triad-card {
  border-color: rgba(116, 176, 199, .14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 34, 51, .95), rgba(10, 21, 34, .98));
  transition: transform .18s ease, border-color .18s ease;
}
#view-home .home-triad-card:hover { transform: translateY(-2px); border-color: rgba(76, 196, 221, .3); }
#view-home .home-triad-art { height: 84px; }
#view-home .home-triad-art img { padding: 9px; }
#view-home .home-triad-foot { padding: 10px 12px; border-color: rgba(149, 190, 207, .09); }
#view-home .home-triad-label { color: #dce8ed; font-size: 11px; }
#view-home .home-triad-arrow { color: #65d9e8; }
#view-home .summer-devices {
  border-color: rgba(85, 174, 204, .16);
  border-radius: 21px;
  background: radial-gradient(circle at 88% 20%, rgba(22, 105, 153, .18), transparent 36%), linear-gradient(140deg, #0c2032, #0b1726);
}
#view-home .summer-devices-copy > span { color: #56d3e5; letter-spacing: .13em; }
#view-home .summer-devices-copy h2 { color: #eaf5f8; }
#view-home .summer-devices-copy > p { color: #9bb0bd; }
#view-home .summer-device { border-color: rgba(71, 194, 218, .18); border-radius: 11px; background: rgba(7, 26, 41, .76); }

/* Devices, account pages and payment history */
#main-content .portal-device-row, #main-content .portal-blocked-row {
  min-height: 72px;
  padding: 13px 15px;
  border-color: rgba(124, 177, 198, .15);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(16, 32, 48, .96), rgba(10, 21, 34, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .03);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
#main-content .portal-device-row:hover, #main-content .portal-blocked-row:hover { transform: translateY(-1px); border-color: rgba(74, 190, 213, .26); }
#main-content .portal-device-icon { border-color: rgba(70, 213, 236, .18); border-radius: 14px; background: rgba(49, 177, 200, .11); color: #6eddec; }
#main-content .portal-device-copy > b, #main-content .portal-blocked-copy > b { color: #eaf4f7; }
#main-content .portal-device-copy > small, #main-content .portal-blocked-copy > small { color: #94a9b6; }
#main-content .portal-device-status.is-connected { color: #64dfc1; }
#main-content .portal-device-status.is-waiting { color: #98aaba; }
#main-content .portal-device-menu > summary { border-color: rgba(127, 172, 191, .15); border-radius: 11px; background: rgba(255, 255, 255, .035); color: #a9bdc8; }
#main-content .portal-device-menu[open] > summary, #main-content .portal-device-menu > summary:hover { border-color: rgba(72, 195, 216, .28); color: #70deea; }
#main-content .portal-device-menu-items { border-color: rgba(124, 177, 198, .18); border-radius: 14px; background: rgba(12, 24, 37, .98); box-shadow: 0 18px 42px rgba(0, 0, 0, .34); }
#main-content .portal-device-menu-items button { color: #c8d8df; }
#main-content .portal-device-menu-items button:hover { background: rgba(67, 190, 214, .1); color: #effcff; }
#main-content .portal-device-menu-items button.is-danger { color: #ff9aa7; }
#main-content .portal-device-delete { border-color: rgba(229, 93, 111, .19); border-radius: 11px; background: rgba(135, 40, 54, .13); color: #e9959e; }
#main-content .portal-device-delete:hover { border-color: rgba(242, 113, 128, .4); background: rgba(135, 40, 54, .24); color: #ffafb7; }
#main-content .device-slot { border-style: dashed; border-color: rgba(115, 159, 180, .2); background: rgba(15, 29, 43, .43); color: #9ab0bd; }
#main-content .device-slot-number { border-color: rgba(73, 174, 203, .23); background: rgba(35, 124, 157, .16); color: #7edfea; }
#main-content .shared-subscription {
  gap: 15px;
  padding: 20px;
  border-color: rgba(69, 190, 215, .2);
  border-radius: 22px;
  background: radial-gradient(circle at 95% 3%, rgba(24, 124, 158, .12), transparent 34%), linear-gradient(145deg, rgba(15, 33, 49, .98), rgba(9, 20, 33, .99));
}
#main-content .shared-subscription-head h2 { color: #eaf5f8; }
#main-content .shared-subscription > p { color: #98adba; }
#main-content .shared-link-row { border-color: rgba(121, 176, 196, .17); border-radius: 13px; background: rgba(4, 13, 22, .54); }
#main-content .shared-link-row .dialog-input { border: 0; background: transparent; color: #84e3ed; }
#main-content .master-link-actions { border-color: rgba(149, 190, 207, .1); }
#main-content .master-link-actions .master-link-rotate { border-color: rgba(227, 101, 117, .22); background: rgba(130, 38, 52, .12); color: #f39aa4; }
#main-content .portal-history-list { gap: 9px; }
#main-content .portal-payment-row {
  min-height: 79px;
  padding: 15px 17px;
  border: 1px solid rgba(124, 177, 198, .15);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(16, 32, 48, .95), rgba(10, 21, 34, .98));
  transition: border-color .18s ease, transform .18s ease;
}
#main-content .portal-payment-row:hover { transform: translateY(-1px); border-color: rgba(72, 194, 216, .28); }
#main-content .payment-history-title { color: #e7f1f5; font-weight: 750; }
#main-content .payment-history-meta { color: #8fa5b4; }
#main-content .payment-history-status { border: 1px solid rgba(141, 177, 194, .12); border-radius: 999px; background: rgba(255, 255, 255, .045); color: #b1c2cc; }
#main-content .payment-history-status.is-success { border-color: rgba(64, 202, 163, .15); background: rgba(64, 202, 163, .09); color: #71e1bf; }
#main-content .payment-history-status.is-pending { border-color: rgba(240, 187, 86, .17); background: rgba(240, 187, 86, .09); color: #f1ca78; }
#main-content .payment-history-amount { color: #e7f1f5; font-variant-numeric: tabular-nums; }
#main-content .payment-history-empty { border-color: rgba(130, 176, 195, .22); border-radius: 15px; color: #96acba; }
#main-content .saved-method-panel { border-color: rgba(99, 194, 197, .17); border-radius: 18px; background: linear-gradient(145deg, #102a38, #0c1b2b); }
#main-content .promo-panel { border-color: rgba(115, 173, 195, .16); border-radius: 19px; }
#main-content .promo-form .dialog-input { min-height: 45px; border-radius: 12px; }
#main-content .portal-history-search input { border-color: rgba(134, 174, 193, .18); border-radius: 12px; background: rgba(5, 13, 22, .76); }
#main-content .portal-history-toolbar { color: #90a6b4; }
#main-content .history-row { padding: 14px 16px; }

/* Tariff selector and dialogs */
.portal-tariff-dialog {
  border-color: rgba(112, 184, 204, .18);
  border-radius: 25px;
  background: linear-gradient(150deg, rgba(17, 31, 47, .99), rgba(8, 17, 29, .995));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .54), inset 0 1px rgba(255, 255, 255, .045);
}
.portal-tariff-dialog-head { border-bottom: 1px solid rgba(132, 178, 197, .1); }
.portal-tariff-step { color: #65d9e8; }
.portal-tariff-dialog-head h2 { color: #eff8fb; }
.portal-tariff-dialog-head p { color: #98adba; }
.portal-tariff-dialog-scroll { scrollbar-width: thin; scrollbar-color: rgba(111, 157, 177, .32) transparent; }
.portal-tariff-dialog-scroll::-webkit-scrollbar { display: initial; width: 6px; }
.portal-tariff-dialog-scroll::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(111, 157, 177, .32); }
.portal-tariff-dialog .portal-plan-builder { border-color: rgba(72, 173, 201, .16); border-radius: 19px; background: rgba(10, 27, 42, .82); }
.portal-plan-step-number { border-color: rgba(69, 192, 214, .22); background: rgba(41, 149, 177, .13); color: #72ddeb; }
.portal-plan-step h3 { color: #eaf4f7; }
.portal-plan-step p { color: #94aab8; }
.portal-device-options .device-seg-btn,
.portal-period-options .period-card-btn,
.portal-pay-method {
  border-color: rgba(128, 174, 194, .16);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(17, 35, 51, .9), rgba(11, 23, 36, .94));
  color: #d4e2e8;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.portal-device-options .device-seg-btn:hover,
.portal-period-options .period-card-btn:hover,
.portal-pay-method:hover { transform: translateY(-1px); border-color: rgba(68, 199, 220, .32); }
.portal-device-options .device-seg-btn.selected,
.portal-period-options .period-card-btn.selected,
.portal-pay-method.selected {
  border-color: rgba(81, 211, 222, .6);
  background: linear-gradient(145deg, rgba(17, 89, 108, .46), rgba(18, 49, 70, .72));
  box-shadow: inset 0 0 0 1px rgba(74, 208, 220, .1), 0 8px 22px rgba(0, 0, 0, .14);
  color: #efffff;
}
.portal-device-options .device-seg-btn small,
.portal-period-options .period-card-btn small,
.portal-pay-method small { color: #91a9b7; }
.portal-plan-summary { border-color: rgba(75, 193, 211, .16); border-radius: 15px; background: rgba(8, 23, 37, .86); }
.portal-plan-summary b, .portal-plan-summary strong { color: #8de8d1; }
.portal-tariff-dialog-footer { border-top: 1px solid rgba(132, 178, 197, .11); background: rgba(9, 18, 30, .82); }
.portal-tariff-footer-total small { color: #90a7b5; }
.portal-tariff-footer-total b { color: #f0fafb; font-variant-numeric: tabular-nums; }
.portal-tariff-close, .portal-tariff-step-back { border-color: rgba(137, 177, 194, .16); border-radius: 11px; background: rgba(255, 255, 255, .04); color: #b9cad3; }
.portal-tariff-close:hover, .portal-tariff-step-back:hover { border-color: rgba(73, 199, 219, .3); color: #7ce2ec; }
.portal-tariff-dialog .promo-panel { border-color: rgba(115, 173, 195, .16); border-radius: 17px; }
.dialog {
  border-color: rgba(120, 177, 197, .2);
  border-radius: 22px;
  background: linear-gradient(150deg, #14263a, #0b1727);
  box-shadow: 0 28px 82px rgba(0, 0, 0, .52);
}
.dialog-head h3 { color: #eef7fa; }
.dialog-body { color: #a3b6c1; }
.dialog-close { border-color: rgba(133, 174, 193, .16); border-radius: 10px; background: rgba(255, 255, 255, .035); color: #adc0ca; }
.dialog-input { min-height: 45px; border-color: rgba(128, 172, 192, .2); border-radius: 12px; background: rgba(4, 12, 21, .72); color: #eef8fb; }
.toast { border-color: rgba(116, 182, 202, .2); border-radius: 14px; background: rgba(15, 31, 47, .96); box-shadow: 0 16px 42px rgba(0, 0, 0, .34); }

/* Mobile keeps the Mini App five tab navigation and compact card rhythm. */
@media (max-width: 980px) and (min-width: 761px) {
  .app-frame { grid-template-columns: 208px minmax(0, 1fr); }
  .main-content { padding-inline: 28px; }
  #main-content #view-home { grid-template-columns: minmax(0, 1fr) minmax(230px, .78fr); }
}
@media (max-width: 760px) {
  .auth-topbar { height: 64px; padding-inline: 19px; }
  .auth-topbar .wordmark-image img, .topbar .wordmark-image img { width: 142.85%; }
  .auth-layout { width: min(510px, calc(100% - 32px)); grid-template-columns: minmax(0, 1fr); padding-block: 34px 38px; gap: 26px; }
  .auth-intro, .auth-card { min-width: 0; }
  .auth-intro { text-align: center; }
  .auth-intro h1 { margin-block: 17px 12px; font-size: clamp(36px, 9vw, 48px); letter-spacing: -.06em; }
  .auth-intro > p { margin-inline: auto; font-size: 13px; }
  .auth-points { max-width: 390px; gap: 11px; margin: 20px auto 0; text-align: left; }
  .auth-points > div { gap: 10px; }
  .point-icon { width: 33px; height: 33px; flex-basis: 33px; border-radius: 11px; }
  .auth-points b { font-size: 12px; }
  .auth-points small { font-size: 10px; }
  .auth-footnote { margin-top: 16px; font-size: 11px; }
  .auth-card { padding: 27px 23px 23px; border-radius: 22px; }
  .auth-card h2 { font-size: 23px; }
  .topbar { height: 64px; padding-inline: 17px; }
  .topbar-right { gap: 9px; }
  .account-chip { min-height: 38px; padding-right: 9px; }
  .avatar { width: 29px; height: 29px; }
  .account-label { max-width: 116px; font-size: 11px; }
  .icon-button { width: 37px; height: 37px; }
  .app-frame { min-height: calc(100vh - 64px); }
  .sidebar { border-color: rgba(108, 165, 187, .15); background: rgba(7, 15, 25, .91) !important; box-shadow: 0 -12px 34px rgba(0, 0, 0, .34) !important; }
  .side-nav { border-color: rgba(107, 176, 197, .16) !important; background: rgba(8, 19, 31, .93) !important; box-shadow: 0 14px 40px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .06) !important; }
  .side-nav .nav-item { min-height: 55px; color: #8fa6b4; }
  .side-nav .nav-item.active { background: rgba(37, 127, 148, .17) !important; color: #76e0eb !important; }
  .main-content { padding: 24px 17px 118px !important; }
  #main-content .portal-view { width: 100%; }
  #main-content .page-heading { align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  #main-content .page-heading h1 { font-size: clamp(25px, 6vw, 31px); }
  #main-content .page-heading p { font-size: 12px; }
  #main-content #view-home { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 28px; }
  #view-home .premium-sub-hero { min-height: 245px; padding: 19px 18px 16px; border-radius: 22px; }
  #view-home .dash-days-num { font-size: clamp(48px, 14vw, 62px); }
  #view-home .sub-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #view-home .sub-qcard { min-height: 108px; padding: 14px 12px; border-radius: 17px; }
  #view-home .sub-qcard-stat { font-size: clamp(20px, 6vw, 26px); }
  #view-home .prod-card-art { width: 56px; height: 44px; opacity: .3; }
  #view-home .home-promo-btn { min-height: 86px; padding: 14px 16px; border-radius: 18px; }
  #view-home .home-promo-title { font-size: 19px; }
  #view-home .prod-promo-art { width: 90px; height: 62px; right: 6px; opacity: .55; }
  #view-home .home-bottom-triad { gap: 7px; }
  #view-home .home-triad-card { border-radius: 15px; }
  #view-home .home-triad-art { height: 58px; }
  #view-home .home-triad-foot { padding: 7px 8px; }
  #view-home .home-triad-label { font-size: 10px; }
  #view-home .summer-devices { padding: 14px; border-radius: 18px; }
  #view-home .summer-devices-copy > span, #view-home .summer-devices-copy h2, #view-home .summer-devices-copy > p { max-width: calc(100% - 104px); }
  #view-home .summer-devices-copy h2 { font-size: 16px; }
  #view-home .summer-devices-copy > p { font-size: 11px; }
  #view-home .summer-devices-mini { top: 34px; right: 9px; transform: scale(.72); transform-origin: top right; }
  #main-content .portal-view-devices, #main-content .portal-view-plans, #main-content .portal-view-history,
  #main-content .portal-view-referrals, #main-content .portal-view-support { padding-bottom: 25px; }
  #main-content .portal-device-row, #main-content .portal-blocked-row { gap: 8px; padding: 11px; border-radius: 15px; }
  #main-content .portal-device-main { gap: 9px; }
  #main-content .portal-device-copy > b { font-size: 13px; }
  #main-content .portal-device-copy > small { flex-wrap: wrap; font-size: 10px; }
  #main-content .portal-device-actions { gap: 5px; }
  #main-content .portal-device-delete, #main-content .portal-device-menu > summary { width: 33px; height: 33px; }
  #main-content .shared-subscription { padding: 15px; border-radius: 19px; }
  #main-content .shared-link-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 5px; }
  #main-content .shared-link-row .button { min-height: 40px; padding-inline: 8px; font-size: 10px; }
  #main-content .master-link-actions { gap: 7px; }
  #main-content .master-link-actions .button { min-height: 42px; padding-inline: 8px; font-size: 10px; }
  #main-content .portal-payment-row { gap: 10px; padding: 13px; }
  #main-content .payment-history-title { font-size: 12px; }
  #main-content .payment-history-meta { font-size: 10px; }
  #main-content .payment-history-amount { font-size: 12px; }
  #main-content #ref-code { font-size: 22px; }
  #main-content .side-page-card { padding: 16px; }
  #main-content .portal-history-dialog { width: 100%; }
  .portal-tariff-dialog { border-radius: 23px 23px 0 0; }
  .portal-tariff-dialog-head { padding-inline: 17px; }
  .portal-tariff-dialog-scroll { padding-inline: 14px; }
  .portal-tariff-dialog-footer { grid-template-columns: 1fr; gap: 9px; padding-inline: 14px; }
  .portal-tariff-dialog-footer .portal-plan-actions { display: grid; grid-template-columns: 1fr; }
  .portal-tariff-dialog-footer .portal-plan-actions .button { width: 100%; }
  .dialog-backdrop { padding: 14px; }
  .dialog { width: min(460px, 100%); padding: 20px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .auth-layout { width: calc(100% - 24px); }
  .auth-card { padding: 24px 18px 20px; }
  .topbar { padding-inline: 12px; }
  .topbar .wordmark-image img { width: 118px; }
  .account-chip { gap: 6px; padding-right: 7px; }
  .account-label { max-width: 84px; }
  .main-content { padding-inline: 13px !important; }
  #view-home .premium-sub-hero { min-height: 229px; padding-inline: 15px; }
  #view-home .sub-status-pill { gap: 5px; padding: 6px 9px; font-size: 10px; }
  #view-home .sub-qcard { min-height: 100px; padding-inline: 10px; }
  #view-home .sub-qcard-stat { font-size: 19px; white-space: nowrap; }
  #view-home .prod-card-art { width: 42px; height: 35px; opacity: .23; }
  #view-home .home-bottom-triad { gap: 5px; }
  #view-home .home-triad-art { height: 48px; }
  #view-home .home-triad-foot { padding-inline: 6px; }
  #view-home .home-triad-label { font-size: 9px; }
  #main-content .shared-link-row { grid-template-columns: minmax(0, 1fr) auto; }
  #main-content .shared-link-row > span:first-child { display: none; }
  #main-content .shared-link-row .dialog-input { padding-inline: 7px; font-size: 10px; }
  #main-content .shared-link-row .button { padding-inline: 7px; }
  #main-content .master-link-actions { grid-template-columns: 1fr; }
  #main-content .portal-device-copy > small { gap: 3px; }
}
@media (max-width: 360px) {
  #view-home .dash-days-num { font-size: 47px; }
  #view-home .sub-quick-grid { gap: 7px; }
  #view-home .sub-qcard { padding-inline: 8px; }
  #view-home .sub-qcard-header { font-size: 10px; }
  #view-home .sub-qcard-stat { font-size: 17px; }
  #main-content .portal-device-row, #main-content .portal-blocked-row { padding: 9px; }
  #main-content .portal-device-icon { width: 36px; height: 36px; }
  #main-content .portal-device-copy > small { max-width: 150px; }
  #main-content .portal-device-status { max-width: 130px; }
  #main-content .portal-device-actions { gap: 4px; }
  #main-content .portal-device-delete, #main-content .portal-device-menu > summary { width: 30px; height: 30px; }
  .portal-tariff-footer-total b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cabinet reference refresh: Mini App colors with the clearer desktop grid from the supplied example. */
#cabinet-shell {
  --cabinet-bg: #060b14;
  --cabinet-surface: #101726;
  --cabinet-surface-raised: #141d2e;
  --cabinet-accent: #20c8e2;
  --cabinet-ink: #f3f6fb;
  --cabinet-muted: #9aa9bd;
  --cabinet-line: rgba(255, 255, 255, .12);
  min-height: 100vh;
  background: var(--cabinet-bg);
  color: var(--cabinet-ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#cabinet-shell .topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 74px;
  padding-inline: 22px 30px;
  border-color: rgba(154, 169, 189, .12);
  background: rgba(6, 11, 20, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#cabinet-shell .topbar .wordmark-image {
  width: 156px;
  height: auto;
  aspect-ratio: 1517 / 226;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  background: #060b14;
}
#cabinet-shell .topbar .wordmark-image img { width: 142.85%; height: auto; }
#cabinet-shell .topbar-right { gap: 18px; }
#cabinet-shell .topbar-help { color: #aebdca; font-size: 12px; }
#cabinet-shell .topbar-help:hover { color: #76e2ef; }
#cabinet-shell .account-chip {
  min-height: 42px;
  padding: 4px 12px 4px 5px;
  border: 1px solid rgba(154, 169, 189, .16);
  border-radius: 999px;
  background: rgba(16, 23, 38, .82);
}
#cabinet-shell .avatar { background: rgba(32, 200, 226, .14); color: #72dfed; }
#cabinet-shell .account-label { color: #c7d2df; font-size: 12px; }
#cabinet-shell .icon-button {
  border-color: rgba(154, 169, 189, .2);
  background: #101726;
  color: #b7c5d4;
}
#cabinet-shell .app-frame {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 74px);
  margin: 0;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--cabinet-bg);
}
#cabinet-shell .sidebar {
  position: sticky;
  z-index: 20;
  top: 74px;
  width: 248px;
  height: calc(100vh - 74px);
  align-self: start;
  padding: 24px 16px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-color: rgba(154, 169, 189, .12);
  background: #080e18;
}
#cabinet-shell .sidebar::-webkit-scrollbar { display: none; }
#cabinet-shell .sidebar-label { color: #73869b; }
#cabinet-shell .side-nav { gap: 3px; margin-top: 12px; }
#cabinet-shell .nav-item {
  min-height: 44px;
  gap: 12px;
  padding-inline: 13px;
  border-radius: 13px;
  color: #a0afbf;
  font-size: 13px;
  font-weight: 700;
}
#cabinet-shell .nav-item:hover { background: rgba(255, 255, 255, .045); color: #edf5fb; }
#cabinet-shell .nav-item.active {
  background: linear-gradient(105deg, rgba(32, 200, 226, .14), rgba(32, 200, 226, .055));
  box-shadow: inset 2px 0 #20c8e2, inset 0 0 0 1px rgba(32, 200, 226, .14);
  color: #76e2ef;
}
#cabinet-shell .nav-icon, #cabinet-shell .nav-item.active .nav-icon { color: #55d7e8; }
#cabinet-shell .nav-section-label { margin-top: 16px; border-color: rgba(154, 169, 189, .12); }
#cabinet-shell .sidebar-support {
  padding: 13px 12px 12px;
  border-color: rgba(154, 169, 189, .14);
  border-radius: 18px;
  background: linear-gradient(145deg, #101a29, #0b1320);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
#cabinet-shell .support-symbol { width: 24px; height: 24px; margin-bottom: 8px; border-radius: 9px; background: rgba(32, 200, 226, .12); color: #52d8e9; }
#cabinet-shell .sidebar-support b { color: #e4edf5; font-size: 13px; }
#cabinet-shell .sidebar-support p { margin-block: 5px 8px; color: #9aa9bd; font-size: 10px; line-height: 1.4; }
#cabinet-shell .sidebar-support a { color: #54d7e8; font-size: 10px; line-height: 1.4; }
#cabinet-shell .sidebar-bottom { padding-top: 12px; color: #879bad; font-size: 10px; }
#cabinet-shell .main-content {
  grid-column: 2;
  min-width: 0;
  padding: clamp(40px, 3vw, 58px) clamp(24px, 3.2vw, 56px) 34px;
  background: var(--cabinet-bg);
}
#main-content .portal-view {
  width: min(100%, 1060px);
  margin-inline: auto;
}
#main-content .page-heading { margin-bottom: 20px; }
#main-content .page-heading h1 { color: var(--cabinet-ink); font-size: clamp(28px, 2.5vw, 36px); font-weight: 800; }
#main-content .page-heading p { color: #9aa9bd; }
#main-content .eyebrow-small { color: #56d5e7; }
#main-content .panel,
#main-content .subscription-card,
#main-content .device-row,
#main-content .device-slot,
#main-content .history-row,
#main-content .side-page-card {
  border-color: rgba(154, 169, 189, .15);
  border-radius: 20px;
  background: linear-gradient(145deg, #111b2a, #0d1522);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 30px rgba(0, 0, 0, .12);
}
#main-content .button-primary, #portal-modal-root .button-primary, #dialog-root .button-primary {
  border: 0;
  background: #20c8e2;
  color: #06151d;
  box-shadow: 0 8px 22px rgba(32, 200, 226, .14);
}
#main-content .button-primary:hover, #portal-modal-root .button-primary:hover, #dialog-root .button-primary:hover {
  background: #48d5e9;
  box-shadow: 0 10px 26px rgba(32, 200, 226, .2);
}
#main-content .button-secondary, #portal-modal-root .button-secondary, #dialog-root .button-secondary {
  border-color: rgba(154, 169, 189, .2);
  background: #141d2e;
  color: #d9e3ee;
}
#main-content .text-link, #main-content .text-button { color: #63dcec; }
#main-content .empty-state { border-color: rgba(154, 169, 189, .15); background: #0d1522; }

/* Home dashboard: one clear subscription card, two compact stats, then useful destinations. */
#main-content #view-home {
  position: relative;
  width: min(100%, 1060px);
  max-width: 1060px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr);
  gap: 16px 18px;
  padding-bottom: 28px;
}
#view-home .prod-home-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#view-home .premium-sub-hero {
  min-height: 286px;
  padding: 23px 24px 20px;
  border-color: rgba(83, 187, 207, .2);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(32, 200, 226, .09), transparent 38%),
    linear-gradient(140deg, #101e2d, #0d1725 76%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 16px 38px rgba(0, 0, 0, .2);
}
#view-home .premium-sub-hero::after { display: block; opacity: .55; }
#view-home .sub-plan-badge { color: #6fdde9; }
#view-home .sub-plan-badge span:last-child { color: #d7f2f5; }
#view-home .sub-status-pill { padding: 7px 12px; border-radius: 999px; font-size: 11px; }
#view-home .dash-sub-body { gap: 6px; }
#view-home .prod-sub-caption, #view-home .dash-date-sub { color: #a3b2c2; }
#view-home .dash-days-wrap { gap: 9px; margin-top: 5px; }
#view-home .dash-days-num { font-size: clamp(52px, 4.2vw, 66px); }
#view-home .dash-days-unit { color: #83dce7; }
#view-home .dash-progress-bar { height: 4px; background: rgba(226, 237, 247, .13); }
#view-home .dash-progress-fill { background: linear-gradient(90deg, #20c8e2, #45d6c8); }
#view-home .miniapp-main-action {
  min-height: 52px;
  border-radius: 15px;
  background: #20c8e2;
  color: #06151d;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(32, 200, 226, .16);
}
#view-home .miniapp-main-action:hover { background: #48d5e9; box-shadow: 0 10px 26px rgba(32, 200, 226, .22); }
#view-home .sub-quick-grid { gap: 14px; }
#view-home .sub-qcard {
  min-height: 136px;
  padding: 18px 106px 18px 20px;
  border-color: rgba(154, 169, 189, .15);
  border-radius: 21px;
  background: linear-gradient(145deg, #121e2d, #0e1724);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 10px 24px rgba(0, 0, 0, .14);
}
#view-home .sub-qcard:hover { border-color: rgba(32, 200, 226, .32); box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 16px 30px rgba(0, 0, 0, .2); }
#view-home .sub-qcard-header { color: #a9b8c8; font-size: 12px; }
#view-home .sub-qcard-stat { color: #f2f6fb; font-size: clamp(24px, 2.4vw, 31px); }
#view-home .prod-card-art { right: 10px; bottom: 8px; width: 88px; height: 62px; opacity: .54; }
#view-home .home-card-banner, #view-home .miniapp-trial-banner {
  border-color: rgba(65, 205, 171, .2);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(9, 42, 43, .84), rgba(14, 27, 39, .94));
}
#view-home .home-promo-btn {
  min-height: 96px;
  padding: 17px 22px;
  border-color: rgba(93, 158, 184, .19);
  border-radius: 21px;
  background:
    radial-gradient(circle at 90% 50%, rgba(32, 200, 226, .1), transparent 26%),
    linear-gradient(135deg, #121e2d, #0e1724);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 10px 25px rgba(0, 0, 0, .12);
}
#view-home .home-promo-btn:hover { transform: translateY(-2px); border-color: rgba(32, 200, 226, .32); }
#view-home .home-promo-title { color: #f3f6fb; font-size: 20px; }
#view-home .prod-promo-sub { color: #a3b2c2; }
#view-home .prod-promo-art { right: 18px; width: 112px; height: 76px; opacity: .62; }
#view-home .home-bottom-triad { gap: 12px; margin-top: 0; }
#view-home .home-triad-card {
  min-height: 132px;
  flex-direction: column;
  justify-content: initial;
  padding: 0;
  border-color: rgba(154, 169, 189, .15);
  border-radius: 20px;
  background: linear-gradient(145deg, #111b2a, #0d1522);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#view-home .home-triad-card:hover { transform: translateY(-2px); border-color: rgba(32, 200, 226, .3); box-shadow: 0 14px 28px rgba(0, 0, 0, .18); }
#view-home .home-triad-art { display: grid; height: 88px; place-items: center; }
#view-home .home-triad-art img { width: 100%; height: 100%; padding: 9px; object-fit: contain; }
#view-home .home-triad-foot { width: 100%; min-height: 40px; padding: 9px 13px; border-color: rgba(154, 169, 189, .1); }
#view-home .home-triad-label { color: #dbe6ee; font-size: 12px; }
#view-home .home-triad-arrow { color: #58d7e8; }
#view-home .summer-devices {
  min-height: 210px;
  padding: 22px 188px 20px 22px;
  border-color: rgba(93, 158, 184, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 20%, rgba(32, 200, 226, .08), transparent 28%),
    linear-gradient(135deg, #101c2b, #0d1623);
}
#view-home .summer-devices-copy > span { color: #4fd0e3; font-size: 10px; letter-spacing: .14em; }
#view-home .summer-devices-copy h2 { color: #edf4f9; font-size: 21px; }
#view-home .summer-devices-copy > p { max-width: 700px; color: #a3b2c2; font-size: 12px; }
#view-home .summer-device-list { gap: 7px; margin-top: 11px; }
#view-home .summer-device { min-height: 30px; border-color: rgba(32, 200, 226, .22); background: rgba(7, 19, 31, .78); }
#view-home .summer-devices-mini {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 115px;
  height: 68px;
  margin: 0;
  transform: translateY(-50%) scale(.92);
  transform-origin: center right;
}

#cabinet-shell :focus-visible, #portal-modal-root :focus-visible, #dialog-root :focus-visible {
  outline: 2px solid #5bd7e8;
  outline-offset: 3px;
}
#portal-modal-root .portal-tariff-dialog, #dialog-root .dialog {
  border-color: rgba(154, 169, 189, .2);
  background: linear-gradient(145deg, #131e2d, #0c1421);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

@media (max-width: 1180px) and (min-width: 981px) {
  #cabinet-shell .main-content { padding-inline: 34px; }
  #main-content .portal-view, #main-content #view-home { width: min(100%, 1060px); }
}
@media (max-width: 980px) and (min-width: 761px) {
  #cabinet-shell .app-frame { grid-template-columns: 208px minmax(0, 1fr); }
  #cabinet-shell .sidebar { width: 208px; }
  #cabinet-shell .main-content { grid-column: 2; }
  #cabinet-shell .main-content { padding-inline: 26px; }
  #cabinet-shell .sidebar { padding-inline: 12px; }
  #main-content .portal-view, #main-content #view-home { width: 100%; }
  #main-content #view-home { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 13px; }
  #view-home .premium-sub-hero { min-height: 268px; padding-inline: 19px; }
  #view-home .sub-qcard { min-height: 127px; padding-right: 82px; padding-left: 16px; }
  #view-home .prod-card-art { width: 72px; height: 54px; opacity: .45; }
  #view-home .summer-devices { padding-right: 152px; }
  #view-home .summer-devices-mini { right: 12px; transform: translateY(-50%) scale(.78); }
}
@media (max-width: 760px) {
  #cabinet-shell .topbar { height: 64px; padding-inline: 17px; }
  #cabinet-shell .topbar .wordmark-image { width: min(130px, 36vw); }
  #cabinet-shell .topbar-right { gap: 9px; }
  #cabinet-shell .account-chip { min-height: 38px; padding: 3px 9px 3px 4px; }
  #cabinet-shell .avatar { width: 29px; height: 29px; }
  #cabinet-shell .account-label { max-width: 116px; font-size: 11px; }
  #cabinet-shell .icon-button { width: 37px; height: 37px; }
  #cabinet-shell .app-frame { min-height: calc(100vh - 64px); }
  #cabinet-shell .sidebar { position: static; width: auto; height: auto; min-height: 0; padding: 0; overflow: visible; }
  #cabinet-shell .main-content { grid-column: auto; padding: 22px 17px 118px !important; }
  #main-content .portal-view, #main-content #view-home { width: 100%; max-width: none; }
  #main-content #view-home { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 25px; }
  #view-home .premium-sub-hero { min-height: 248px; padding: 20px 18px 17px; border-radius: 23px; }
  #view-home .dash-top-row { flex-direction: column-reverse; align-items: center; gap: 8px; }
  #view-home .dash-sub-body { align-items: center; text-align: center; }
  #view-home .dash-days-wrap { justify-content: center; }
  #view-home .dash-date-sub { text-align: center; }
  #view-home .dash-days-num { font-size: clamp(50px, 14vw, 64px); }
  #view-home .sub-quick-grid { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 10px; }
  #view-home .sub-qcard { min-height: 108px; padding: 14px 72px 14px 13px; border-radius: 18px; }
  #view-home .sub-qcard-stat { font-size: clamp(20px, 6vw, 26px); }
  #view-home .prod-card-art { right: 7px; bottom: 6px; width: 58px; height: 44px; opacity: .34; }
  #view-home .home-promo-btn { min-height: 86px; padding: 14px 17px; border-radius: 19px; }
  #view-home .home-promo-title { font-size: 19px; }
  #view-home .prod-promo-art { right: 8px; width: 90px; height: 62px; opacity: .55; }
  #view-home .home-bottom-triad { gap: 7px; }
  #view-home .home-triad-card { min-height: 104px; border-radius: 17px; }
  #view-home .home-triad-art { height: 62px; }
  #view-home .home-triad-art img { padding: 6px; }
  #view-home .home-triad-foot { min-height: 34px; padding: 7px 8px; }
  #view-home .home-triad-label { font-size: 10px; }
  #view-home .summer-devices { min-height: 170px; padding: 16px 126px 14px 16px; border-radius: 19px; }
  #view-home .summer-devices-copy > span, #view-home .summer-devices-copy h2, #view-home .summer-devices-copy > p { max-width: 100%; }
  #view-home .summer-devices-copy > span { font-size: 9px; }
  #view-home .summer-devices-copy h2 { font-size: 16px; }
  #view-home .summer-devices-copy > p { font-size: 11px; }
  #view-home .summer-device-list { gap: 5px; margin-top: 8px; }
  #view-home .summer-device { min-height: 25px; padding: 3px 6px 3px 4px; }
  #view-home .summer-device i { width: 16px; height: 16px; }
  #view-home .summer-device i svg { width: 11px; height: 11px; }
  #view-home .summer-device b { font-size: 10px; }
  #view-home .summer-devices-mini { top: 30px; right: 8px; transform: scale(.68); transform-origin: top right; }
}
@media (max-width: 420px) {
  html { min-width: 0; }
  #cabinet-shell .topbar { gap: 8px; padding-inline: 12px; }
  #cabinet-shell .topbar .wordmark-image { width: min(118px, 34vw); }
  #cabinet-shell .account-chip { gap: 6px; padding-right: 7px; }
  #cabinet-shell .account-label { max-width: clamp(52px, 21vw, 84px); }
  #cabinet-shell .main-content { padding-inline: 13px !important; }
  #view-home .premium-sub-hero { min-height: 235px; padding-inline: 15px; }
  #view-home .sub-status-pill { gap: 5px; padding: 6px 9px; font-size: 10px; }
  #view-home .sub-qcard { min-height: 101px; padding-inline: 10px; padding-right: 48px; }
  #view-home .sub-qcard-header { font-size: 10px; letter-spacing: -.015em; white-space: nowrap; }
  #view-home .sub-qcard-stat { font-size: 19px; white-space: nowrap; }
  #view-home .prod-card-art { width: 44px; height: 36px; opacity: .28; }
  #view-home .home-bottom-triad { gap: 5px; }
  #view-home .home-triad-card { min-height: 94px; }
  #view-home .home-triad-art { height: 54px; }
  #view-home .home-triad-foot { min-height: 32px; padding-inline: 6px; }
  #view-home .home-triad-label { font-size: 9px; }
  #view-home .summer-devices { padding-right: 112px; }
  #view-home .summer-devices-mini { right: 3px; transform: scale(.62); }
}
@media (max-width: 360px) {
  #view-home .dash-days-num { font-size: 47px; }
  #view-home .sub-quick-grid { gap: 7px; }
  #view-home .sub-qcard { padding-inline: 8px; padding-right: 52px; }
  #view-home .sub-qcard-header { font-size: 11px; }
  #view-home .sub-qcard-stat { font-size: 17px; }
  #view-home .home-triad-label { font-size: 8.5px; }
  #cabinet-shell .side-nav .nav-item { font-size: 9px; letter-spacing: -.02em; }
  #cabinet-shell .side-nav .nav-icon, #cabinet-shell .side-nav .nav-icon svg { width: 18px; height: 18px; }
}

/* Final Mini App parity: calm surfaces, readable destinations, and a true tablet stack. */
:root {
  font-family: Manrope, Inter, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --page: #070b14;
  --surface: #101726;
  --surface-soft: #111d2b;
  --surface-raised: #141d2e;
  --line: rgba(154, 169, 189, .13);
  --line-strong: rgba(154, 169, 189, .2);
}

body { background: #070b14; }
#cabinet-shell .topbar {
  background: rgba(7, 11, 20, .94);
  border-color: rgba(154, 169, 189, .12);
  box-shadow: none;
}
#cabinet-shell .account-chip {
  border-color: rgba(154, 169, 189, .16);
  background: #101926;
}
#main-content .panel,
#main-content .subscription-card,
#main-content .device-row,
#main-content .device-slot,
#main-content .history-row,
#main-content .side-page-card {
  border-color: rgba(154, 169, 189, .14);
  background: #101726;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

@media (min-width: 981px) {
  #main-content #view-home {
    width: min(100%, 1120px);
    max-width: 1120px;
  }
  #view-home .prod-home-heading {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    margin: 0 0 3px;
    padding: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  #view-home .prod-home-heading .eyebrow-small { display: block; margin-bottom: 8px; }
  #view-home .prod-home-heading h1 {
    margin: 0;
    color: #f3f6fb;
    font-size: clamp(30px, 2.5vw, 38px);
    line-height: 1.12;
    letter-spacing: -.055em;
  }
  #view-home .prod-home-heading p { margin: 7px 0 0; color: #9aa9bd; font-size: 13px; }
  #view-home .premium-sub-hero {
    min-height: 254px;
    padding: 23px 24px 20px;
    border-color: rgba(154, 169, 189, .16);
    background: linear-gradient(145deg, #111d2b, #0f1825);
    box-shadow: inset 0 1px rgba(255, 255, 255, .045);
  }
  #view-home .premium-sub-hero::after { display: none; }
  #view-home .sub-qcard {
    min-height: 116px;
    padding: 16px 17px;
    border-color: rgba(154, 169, 189, .14);
    border-radius: 18px;
    background: #111b29;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
  }
  #view-home .prod-card-art { display: none; }
  #view-home .home-promo-btn {
    min-height: 74px;
    padding: 12px 18px;
    border-color: rgba(154, 169, 189, .14);
    border-radius: 18px;
    background: #111b29;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
  }
  #view-home .home-promo-title { font-size: 18px; }
  #view-home .prod-promo-art { display: none; }
  #view-home .home-bottom-triad { gap: 10px; }
  #view-home .home-triad-card {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-color: rgba(154, 169, 189, .13);
    border-radius: 16px;
    background: #101a27;
    box-shadow: none;
  }
  #view-home .home-triad-art { width: 36px; height: 36px; flex: 0 0 36px; }
  #view-home .home-triad-art img { width: 30px; height: 30px; padding: 0; }
  #view-home .home-triad-foot { width: auto; min-height: 0; flex: 1; padding: 0; border: 0; }
  #view-home .home-triad-label { font-size: 12px; }
  #view-home .summer-devices {
    min-height: 0;
    padding: 18px 142px 18px 20px;
    border-color: rgba(154, 169, 189, .14);
    border-radius: 18px;
    background: #101a27;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
  }
  #view-home .summer-devices-copy h2 { font-size: 18px; }
  #view-home .summer-devices-mini { right: 20px; width: 92px; height: 58px; transform: translateY(-50%) scale(.78); }
}

@media (min-width: 761px) and (max-width: 980px) {
  #cabinet-shell .app-frame { grid-template-columns: 208px minmax(0, 1fr); }
  #cabinet-shell .sidebar { width: 208px; }
  #cabinet-shell .main-content { grid-column: 2; padding-inline: 24px; }
  #main-content #view-home { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #view-home .prod-home-heading { grid-column: 1; }
  #view-home .premium-sub-hero { grid-column: 1; min-height: 240px; }
  #view-home .sub-quick-grid { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  #view-home .home-bottom-triad { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  #view-home .prod-home-heading { display: none; }
  #view-home .premium-sub-hero::after { display: none; }
  #view-home .prod-card-art { display: none; }
  #view-home .sub-qcard { min-height: 94px; padding: 13px 11px; }
  #view-home .sub-qcard-stat { font-size: clamp(18px, 5.5vw, 23px); }
  #view-home .home-promo-btn { min-height: 70px; padding: 12px 14px; }
  #view-home .home-promo-title { font-size: 16px; }
  #view-home .prod-promo-art {
    display: grid;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(32, 200, 226, .2);
    border-radius: 12px;
    background: rgba(32, 200, 226, .08);
    opacity: 1;
  }
  #view-home .prod-promo-art::before { content: "✦"; color: #3bc9df; font-size: 18px; }
  #view-home .home-bottom-triad { display: grid; grid-template-columns: 1fr; gap: 7px; }
  #view-home .home-triad-card {
    min-height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 8px 12px;
    border-color: rgba(154, 169, 189, .14);
    border-radius: 14px;
    background: #101a27;
  }
  #view-home .home-triad-art { width: 36px; height: 36px; flex: 0 0 36px; }
  #view-home .home-triad-art img { width: 30px; height: 30px; padding: 0; }
  #view-home .home-triad-foot { width: auto; min-height: 0; flex: 1; padding: 0; border: 0; }
  #view-home .home-triad-label { font-size: 12px; }
  #view-home .summer-devices { min-height: 0; padding: 14px 94px 14px 14px; }
  #view-home .summer-devices-mini { top: 50%; right: 8px; width: 72px; height: 48px; transform: translateY(-50%) scale(.66); transform-origin: center right; }
}

/* Keep the plan summary as calm as the dashboard and Mini App. */
#view-topup #cur-sub-overview-card {
  min-height: 0;
  border-color: rgba(154, 169, 189, .16);
  background: linear-gradient(145deg, #111d2b, #0f1825);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045);
}
#view-topup #cur-sub-overview-card::after { display: none; }
#view-topup #cur-sub-overview-card .dash-progress-bar { background: rgba(255, 255, 255, .09); }
#view-topup .real-tariff-actions button {
  border-color: rgba(154, 169, 189, .16);
  border-radius: 15px;
}
#view-topup .real-tariff-secondary { background: #111b29; }
@media (max-width: 760px) {
  #view-home #home-sub-hero .sub-plan-badge { display: none; }
}

/* Give secondary tabs the same clear hierarchy as the dashboard. */
#main-content .portal-view-referrals .page-heading,
#main-content .portal-view-support .page-heading { margin-bottom: 4px; }
#main-content .portal-view-referrals .page-heading p,
#main-content .portal-view-support .page-heading p { margin-top: 6px; }
#main-content .referral-page-card { gap: 13px; }
#main-content .referral-link-panel {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(154, 169, 189, .13);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(7, 15, 27, .68), rgba(11, 22, 36, .8));
}
#main-content .referral-link-label { color: #8fa4b8; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
#main-content #ref-code { margin-top: 8px; font-size: 24px; letter-spacing: .08em; }
#main-content #ref-link { margin-top: 5px; color: #9aabba; }
#main-content #ref-bonus-hint { display: flex; flex-direction: column; gap: 4px; text-align: left; }
#main-content #ref-bonus-hint strong { color: #d9edf3; font-size: 12px; }
#main-content #ref-bonus-hint span { color: #9fb3c1; }
#main-content .ref-stats-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: hidden; }
#main-content .ref-stat-row { min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 17px 18px; border: 0; }
#main-content .ref-stat-row + .ref-stat-row { border-left: 1px solid rgba(154, 169, 189, .12); }
#main-content .ref-stat-label { line-height: 1.4; }
#main-content .ref-stat-value { color: #edf7fb; font-size: 22px; letter-spacing: -.035em; }
#main-content #support-open-btn { gap: 10px; }
#main-content #support-open-btn svg { width: 19px; height: 19px; flex: none; }
@media (max-width: 420px) {
  #main-content .referral-link-panel { padding: 13px; }
  #main-content #ref-code { font-size: 21px; }
  #main-content .ref-stat-row { padding: 14px 12px; }
  #main-content .ref-stat-label { font-size: 11px; }
  #main-content .ref-stat-value { font-size: 20px; }
}

/* FastVPN-inspired cabinet styling, using the existing VectraVPN screens and actions. */
:root {
  --page: #24252e;
  --surface: #30313b;
  --surface-soft: #30313b;
  --surface-raised: #363741;
  --line: rgba(220, 222, 232, .09);
  --line-strong: rgba(220, 222, 232, .14);
}
body,
#cabinet-shell { background: #24252e; }
#cabinet-shell .topbar {
  height: 72px;
  padding-inline: clamp(20px, 3vw, 48px);
  border-color: rgba(220, 222, 232, .05);
  background: #24252e;
}
#cabinet-shell .topbar-right { gap: 14px; }
#cabinet-shell .topbar-actions { display: flex; align-items: center; gap: 8px; }
#cabinet-shell .topbar-action {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: #30313b;
  color: #eef0f5;
  font: 700 12px/1 Manrope, Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
#cabinet-shell .topbar-action:hover { background: #3a3b46; transform: translateY(-1px); }
#cabinet-shell .topbar-action-primary { background: #e5e6ec; color: #24252e; }
#cabinet-shell .topbar-action-primary:hover { background: #f4f4f7; }
#cabinet-shell .topbar-support-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#cabinet-shell .account-chip {
  min-height: 42px;
  gap: 9px;
  padding: 4px 13px 4px 5px;
  border: 1px solid rgba(220, 222, 232, .08);
  border-radius: 14px;
  background: #30313b;
}
#cabinet-shell .avatar { background: #454752; color: #f1f2f6; }
#cabinet-shell .account-label { color: #e5e6ec; }
#cabinet-shell #logout-button {
  width: 42px;
  height: 42px;
  border-color: rgba(220, 222, 232, .06);
  border-radius: 13px;
  background: #30313b;
  color: #d7d9e1;
}
#cabinet-shell .app-frame { grid-template-columns: 244px minmax(0, 1fr); }
#cabinet-shell .sidebar {
  background: #24252e !important;
  border-right-color: rgba(220, 222, 232, .07);
}
#cabinet-shell .sidebar-label { color: #8f92a1; }
#cabinet-shell > .app-frame .sidebar > .sidebar-label { display: none; }
#cabinet-shell .side-nav { gap: 5px; margin-top: 20px; }
#cabinet-shell .nav-item {
  min-height: 50px;
  border-radius: 14px;
  color: #b5b7c3;
  font-size: 13px;
  font-weight: 650;
}
#cabinet-shell .nav-item:hover { background: #30313b; color: #f0f1f5; }
#cabinet-shell .nav-item.active { background: #e5e6ec; color: #24252e; box-shadow: none; }
#cabinet-shell .nav-icon,
#cabinet-shell .nav-item.active .nav-icon { color: currentColor; }
#cabinet-shell .sidebar-support {
  border-color: rgba(220, 222, 232, .09);
  border-radius: 17px;
  background: #2b2c35;
}
#cabinet-shell .support-symbol { background: #383944; color: #e5e6ec; }
#cabinet-shell .sidebar-support b { color: #e9eaf0; }
#cabinet-shell .sidebar-support p { color: #a8aab7; }
#cabinet-shell .sidebar-support a { color: #d3d5df; }
#cabinet-shell .sidebar-bottom { color: #9a9daa; }
#cabinet-shell .main-content { background: #24252e; }
#main-content .panel,
#main-content .subscription-card,
#main-content .device-row,
#main-content .device-slot,
#main-content .history-row,
#main-content .side-page-card,
#main-content .portal-payment-row,
#main-content .portal-history-dialog,
#main-content .portal-tariff-dialog {
  border-color: rgba(220, 222, 232, .08);
  background: #30313b;
  box-shadow: none;
}
#view-home .premium-sub-hero,
#view-home .sub-qcard,
#view-home .home-promo-btn,
#view-home .home-triad-card,
#view-home .summer-devices {
  border-color: rgba(220, 222, 232, .08);
  border-radius: 20px;
  background: #30313b;
  box-shadow: none;
}
#view-home .premium-sub-hero { background: #30313b; }
#view-home .sub-qcard:hover,
#view-home .home-promo-btn:hover,
#view-home .home-triad-card:hover { background: #363741; }
#view-home .sub-qcard-header,
#view-home .prod-sub-caption,
#view-home .dash-date-sub,
#view-home .prod-home-heading p,
#view-home .summer-devices-copy p { color: #b9bbc6; }
#view-home .dash-progress-bar { background: rgba(232, 233, 240, .11); }
#view-home .dash-progress-fill { background: #d7d9e2; }
#view-home .home-triad-label { color: #ededf2; }
#view-home .home-triad-arrow { color: #e5e6ec; }
#view-home .miniapp-main-action,
#view-topup .real-tariff-primary,
#main-content .button-primary {
  border-color: #e5e6ec;
  background: #e5e6ec;
  color: #24252e;
  box-shadow: none;
}
#view-home .miniapp-main-action:hover,
#view-topup .real-tariff-primary:hover,
#main-content .button-primary:hover { background: #f3f3f6; }
#main-content .page-heading h1,
#main-content .section-title-row h2 { color: #f0f1f5; }
#main-content .page-heading p,
#main-content .eyebrow-small { color: #b2b4c0; }
#main-content input,
#main-content select,
#main-content textarea {
  border-color: rgba(220, 222, 232, .11);
  background: #282932;
  color: #f0f1f5;
}

@media (max-width: 980px) {
  #cabinet-shell .app-frame { grid-template-columns: 208px minmax(0, 1fr); }
  #cabinet-shell .topbar { padding-inline: 17px; }
  #cabinet-shell .topbar-right { gap: 9px; }
  #cabinet-shell .topbar-actions { gap: 6px; }
  #cabinet-shell .topbar-action { min-height: 39px; padding-inline: 11px; font-size: 11px; }
  #cabinet-shell .account-chip { min-height: 39px; }
  #cabinet-shell #logout-button { width: 39px; height: 39px; }
}
@media (max-width: 760px) {
  #cabinet-shell .topbar-actions { display: none; }
  #cabinet-shell .sidebar { border: 0; }
  #cabinet-shell .side-nav { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; background: rgba(36, 37, 46, .97) !important; border-color: rgba(220, 222, 232, .1) !important; }
  #cabinet-shell .side-nav [data-view="history"] { display: flex !important; }
  #cabinet-shell .side-nav .nav-item { gap: 2px; padding-inline: 1px; color: #b5b7c3; font-size: 10px; }
  #cabinet-shell .side-nav .nav-item.active { background: #e5e6ec !important; color: #24252e !important; }
  #view-home .home-triad-card { background: #30313b; }
}

/* Keep keyboard focus on the code field without drawing a second inner frame. */
.code-input input:focus-visible { outline: 0; outline-offset: 0; box-shadow: none; }
#auth-screen .input-wrap input:focus-visible { outline: 0; outline-offset: 0; box-shadow: none; }
#auth-screen #email-status:empty { display: none; }

/* Compact, centered sign-in card inspired by the supplied reference. */
#auth-screen { min-height: 100svh; background: #050506; color: #ececf1; }
#auth-screen::before,
#auth-screen .auth-topbar,
#auth-screen .auth-footer,
#auth-screen .auth-intro { display: none; }
#auth-screen .auth-layout {
  width: min(376px, calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
#auth-screen .auth-card {
  width: 100%;
  padding: 30px 31px 28px;
  border: 1px solid #30313b;
  border-radius: 37px;
  background: #25262f;
  box-shadow: none;
}
#auth-screen .auth-card::before { display: none; }
#auth-screen .auth-card-wordmark {
  width: 132px;
  margin: 0 auto 30px;
  border-radius: 8px;
  background: #191a23;
}
#auth-screen .auth-card h2 {
  margin: 0 0 6px;
  color: #f1f1f5;
  font-size: 33px;
  line-height: 1.15;
  letter-spacing: -.055em;
}
#auth-screen .auth-card-copy { margin: 0 0 22px; color: #aaabb7; font-size: 13px; }
#auth-screen .auth-form label { margin-bottom: 9px; color: #d2d3dc; font-size: 13px; }
#auth-screen .input-wrap {
  min-height: 56px;
  padding-inline: 15px;
  border-color: #5a5c67;
  border-radius: 17px;
  background: transparent;
  color: #b7b9c4;
}
#auth-screen .input-wrap:focus-within { border-color: #90929d; box-shadow: 0 0 0 3px rgba(229, 230, 236, .07); }
#auth-screen .input-wrap input { color: #f0f0f4; font-size: 14px; }
#auth-screen .input-wrap input::placeholder { color: #858795; }
#auth-screen .button-full {
  min-height: 56px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  background: #e5e6ec;
  color: #25262f;
  box-shadow: none;
  font-size: 14px;
}
#auth-screen .button-full:hover { background: #f0f0f4; }
#auth-screen .form-note { color: #aaaebb; }
#auth-screen .form-note.error { color: #ff9298; }
#auth-screen .form-note.success { color: #90dfc5; }
#auth-screen .auth-divider { margin: 19px 0 16px; color: #8f91a0; font-size: 11px; }
#auth-screen .auth-divider::before,
#auth-screen .auth-divider::after { background: #3b3d47; }
#auth-screen .auth-telegram-option {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid #41434e;
  border-radius: 16px;
  background: transparent;
  color: #ececf1;
  font: 700 13px/1.2 Manrope, Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
#auth-screen .auth-telegram-option:hover { border-color: #5a5c67; background: #2b2c35; }
#auth-screen .auth-telegram-option svg { width: 21px; height: 21px; fill: #2aabe2; }
#auth-screen .auth-email-return {
  margin: 14px auto 0;
  color: #b4b6c1;
}
#auth-screen .auth-legal { margin: 22px 0 0; color: #999ba8; font-size: 10px; }
#auth-screen .auth-legal a { color: #d5d6de; text-decoration-color: #777987; }
#auth-screen #code-form .button-full { margin-top: 15px; }
#auth-screen .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#auth-screen .auth-card.is-code-step { position: relative; }
#auth-screen .auth-card.is-code-step .auth-card-wordmark { margin-bottom: 30px; }
#auth-screen .auth-card.is-code-step h2 { margin-bottom: 5px; }
#auth-screen .auth-card.is-code-step .auth-card-copy {
  margin: 0 0 19px;
  color: #aaabb7;
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#auth-screen .auth-card.is-code-step .auth-legal { display: none; }
#auth-screen #code-form { position: relative; padding-top: 1px; }
#auth-screen .code-back-button {
  position: absolute;
  top: -140px;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e5e6ec;
  cursor: pointer;
}
#auth-screen .code-back-button:hover { background: rgba(255, 255, 255, .07); }
#auth-screen .code-back-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#auth-screen .code-otp {
  position: relative;
  width: 100%;
  margin: 0 auto;
  outline: none;
}
#auth-screen .code-otp-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
#auth-screen .code-otp-cell {
  min-width: 0;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid #454752;
  border-radius: 15px;
  color: #f1f1f5;
  font-size: 24px;
  font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#auth-screen .code-otp:focus-within .code-otp-cell { border-color: #777985; }
#auth-screen .code-otp:focus-within .code-otp-cell:first-child { box-shadow: 0 0 0 2px rgba(229, 230, 236, .17); }
#auth-screen .code-otp input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  opacity: .015;
  cursor: text;
}
#auth-screen .code-otp input:focus-visible { outline: none; box-shadow: none; }
#auth-screen #code-form .button-full { margin-top: 16px; }
#auth-screen #code-status { min-height: 0; margin: 9px 0 0; text-align: center; }
#auth-screen #resend-code {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #e5e6ec;
  font: 600 13px/1.35 Manrope, Inter, system-ui, sans-serif;
  cursor: pointer;
}
#auth-screen #resend-code:disabled { color: #777985; cursor: default; }
#auth-screen #resend-code:not(:disabled):hover { color: #fff; }
@media (max-width: 420px) {
  #auth-screen .auth-layout { width: calc(100% - 32px); }
  #auth-screen .auth-card { padding: 28px 23px 26px; border-radius: 33px; }
}
@media (max-width: 360px) {
  #auth-screen .auth-layout { width: calc(100% - 24px); }
  #auth-screen .auth-card { padding: 26px 19px 24px; border-radius: 29px; }
  #auth-screen .auth-card h2 { font-size: 30px; }
}

/* Keep the reference layout while restoring VectraVPN's navy and cyan palette. */
:root {
  --page: #070b14;
  --surface: #0d1527;
  --surface-soft: #111b2e;
  --surface-raised: #16243a;
  --line: rgba(114, 190, 218, .12);
  --line-strong: rgba(114, 190, 218, .2);
}
body,
#cabinet-shell { background: #070b14; }
#cabinet-shell .topbar {
  border-color: rgba(137, 173, 197, .12);
  background: #080d17;
}
#cabinet-shell .topbar-action {
  border: 1px solid rgba(117, 171, 197, .16);
  background: #101b2c;
  color: #d7e3ee;
}
#cabinet-shell .topbar-action:hover { border-color: rgba(34, 211, 238, .34); background: #14263a; }
#cabinet-shell .topbar-action-primary {
  border-color: #20c7df;
  background: #20c7df;
  color: #04131e;
}
#cabinet-shell .topbar-action-primary:hover { background: #47d5e8; }
#cabinet-shell .account-chip,
#cabinet-shell #logout-button { border-color: rgba(117, 171, 197, .15); background: #0e1929; }
#cabinet-shell .avatar { background: #123247; color: #7ce9f1; }
#cabinet-shell .account-label { color: #dce8f2; }
#cabinet-shell #logout-button { color: #8fcbd8; }
#cabinet-shell .sidebar {
  background: #080e19 !important;
  border-right-color: rgba(117, 171, 197, .14);
}
#cabinet-shell .sidebar-label { color: #6f879d; }
#cabinet-shell .nav-item { color: #a8b8c9; }
#cabinet-shell .nav-item:hover { background: #101d2d; color: #e9f6fb; }
#cabinet-shell .nav-item.active {
  background: linear-gradient(110deg, rgba(22, 105, 130, .35), rgba(8, 41, 56, .52));
  color: #65e4f0;
  box-shadow: inset 0 0 0 1px rgba(37, 210, 231, .3), 0 6px 18px rgba(0, 0, 0, .16);
}
#cabinet-shell .nav-icon { color: #46d7e8; }
#cabinet-shell .nav-item.active .nav-icon { color: #65e4f0; }
#cabinet-shell .sidebar-support {
  border-color: rgba(117, 171, 197, .16);
  background: #0d1828;
}
#cabinet-shell .support-symbol { background: #123247; color: #65e4f0; }
#cabinet-shell .sidebar-support b { color: #e6f1f7; }
#cabinet-shell .sidebar-support p { color: #96a9bb; }
#cabinet-shell .sidebar-support a { color: #55d5e5; }
#cabinet-shell .sidebar-bottom { color: #788da2; }
#cabinet-shell .main-content { background: #070b14; }
#main-content .panel,
#main-content .subscription-card,
#main-content .device-row,
#main-content .device-slot,
#main-content .history-row,
#main-content .side-page-card,
#main-content .portal-payment-row,
#main-content .portal-history-dialog,
#main-content .portal-tariff-dialog {
  border-color: rgba(114, 190, 218, .13);
  background: #101b2c;
}
#view-home .premium-sub-hero,
#view-home .sub-qcard,
#view-home .home-promo-btn,
#view-home .home-triad-card,
#view-home .summer-devices {
  border-color: rgba(114, 190, 218, .14);
  background: #101b2c;
}
#view-home .sub-qcard:hover,
#view-home .home-promo-btn:hover,
#view-home .home-triad-card:hover { background: #14243a; }
#view-home .sub-qcard-header,
#view-home .prod-sub-caption,
#view-home .dash-date-sub,
#view-home .prod-home-heading p,
#view-home .summer-devices-copy p { color: #9bb4c8; }
#view-home .dash-progress-bar { background: rgba(149, 184, 207, .16); }
#view-home .dash-progress-fill { background: linear-gradient(90deg, #71e7d3, #27bedf); }
#view-home .home-triad-label { color: #e5f4f8; }
#view-home .home-triad-arrow { color: #4bd8e8; }
#view-home .miniapp-main-action,
#view-topup .real-tariff-primary,
#main-content .button-primary {
  border-color: #23c7df;
  background: linear-gradient(100deg, #78e6cf, #35bde7);
  color: #061521;
  box-shadow: 0 8px 22px rgba(19, 178, 211, .15);
}
#view-home .miniapp-main-action:hover,
#view-topup .real-tariff-primary:hover,
#main-content .button-primary:hover { background: linear-gradient(100deg, #8bf0db, #51cbed); }
#main-content .page-heading h1,
#main-content .section-title-row h2 { color: #f2f8fc; }
#main-content .page-heading p,
#main-content .eyebrow-small { color: #9db2c5; }
#main-content input,
#main-content select,
#main-content textarea {
  border-color: rgba(114, 190, 218, .2);
  background: #0b1524;
  color: #edf7fc;
}
@media (max-width: 760px) {
  #cabinet-shell .side-nav {
    background: rgba(8, 18, 31, .98) !important;
    border-color: rgba(91, 179, 207, .18) !important;
  }
  #cabinet-shell .side-nav .nav-item { color: #a8b8c9; }
  #cabinet-shell .side-nav .nav-item.active {
    background: rgba(18, 89, 111, .48) !important;
    color: #69e1ed !important;
  }
}

/* Login retains the compact card layout, with VectraVPN cyan focus and actions. */
#auth-screen { background: #050a13; color: #eff7fc; }
#auth-screen .auth-card {
  border-color: rgba(72, 165, 198, .27);
  background: linear-gradient(155deg, #101d2c, #0b1422);
  box-shadow: 0 26px 72px rgba(0, 0, 0, .34);
}
/* Use the same complete wordmark viewport as the cabinet header. */
#auth-screen .auth-card-wordmark {
  width: 196px;
  height: 32px;
  aspect-ratio: auto;
  border-radius: 0;
  background: transparent;
}
#auth-screen .auth-card-wordmark img {
  width: calc(142.85% - 17.14px);
  top: -79.2%;
  left: -17.4%;
}
#auth-screen .auth-card h2 { color: #f2f8fc; }
#auth-screen .auth-card-copy { color: #9bb8cc; }
#auth-screen .auth-form label { color: #bcd0df; }
#auth-screen .input-wrap {
  border-color: rgba(105, 172, 202, .27);
  background: rgba(4, 12, 22, .58);
  color: #55d7e7;
}
#auth-screen .input-wrap:focus-within {
  border-color: #29c5dd;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12), 0 0 24px rgba(34, 211, 238, .08);
}
#auth-screen .input-wrap input { color: #eff8fc; }
#auth-screen .input-wrap input::placeholder { color: #6e879b; }
#auth-screen .button-full {
  background: linear-gradient(100deg, #78e6cf, #35bde7);
  color: #061521;
  box-shadow: 0 9px 22px rgba(19, 178, 211, .16);
}
#auth-screen .button-full:hover { background: linear-gradient(100deg, #8bf0db, #51cbed); }
#auth-screen .form-note { color: #8ea9bd; }
#auth-screen .form-note.error { color: #ff9298; }
#auth-screen .form-note.success { color: #7de4c9; }
#auth-screen .auth-divider { color: #7d97aa; }
#auth-screen .auth-divider::before,
#auth-screen .auth-divider::after { background: rgba(115, 165, 190, .18); }
#auth-screen .auth-telegram-option {
  border-color: rgba(58, 183, 211, .3);
  background: rgba(9, 30, 48, .54);
  color: #e7f5fa;
}
#auth-screen .auth-telegram-option:hover { border-color: #28c3dd; background: #10283a; }
#auth-screen .auth-telegram-option svg { fill: #35c8e2; }
#auth-screen .telegram-fallback { margin-top: 12px; text-align: center; }
#auth-screen .auth-legal { color: #8199ad; }
#auth-screen .auth-legal a { color: #b8e9f1; text-decoration-color: rgba(60, 201, 222, .58); }
#auth-screen .code-back-button { color: #54d5e5; }
#auth-screen .code-back-button:hover { background: rgba(34, 211, 238, .1); }
#auth-screen .code-otp-cell { border-color: rgba(105, 172, 202, .32); color: #f0f8fc; }
#auth-screen .code-otp:focus-within .code-otp-cell { border-color: rgba(63, 201, 222, .62); }
#auth-screen .code-otp:focus-within .code-otp-cell:first-child {
  border-color: #3ad3e5;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, .2), 0 0 16px rgba(34, 211, 238, .11);
}
#auth-screen #resend-code { color: #50d7e6; }
#auth-screen #resend-code:disabled { color: #71879a; }
#auth-screen #resend-code:not(:disabled):hover { color: #91f2f5; }

/* Keep the cabinet controls on the page canvas without full-width header or rail panels. */
#cabinet-shell .topbar {
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#cabinet-shell .sidebar {
  border-right: 0 !important;
  background: transparent !important;
}
#cabinet-shell .topbar .wordmark-image {
  background: var(--page);
  border-radius: 0;
}
#cabinet-shell .topbar .wordmark-image img {
  top: -100%;
  left: -16.8%;
  width: 134%;
}

/* Account controls follow the left-rail profile pattern. */
#cabinet-shell .sidebar-account { position: relative; z-index: 45; margin-bottom: 4px; }
#cabinet-shell .account-menu-trigger {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #e4edf5;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
#cabinet-shell .account-menu-trigger:hover,
#cabinet-shell .account-menu-trigger[aria-expanded="true"] {
  border-color: rgba(117, 171, 197, .14);
  background: rgba(255, 255, 255, .045);
}
#cabinet-shell .account-menu-trigger .avatar { width: 36px; height: 36px; flex: 0 0 36px; }
#cabinet-shell .account-menu-trigger .account-label { flex: 1; min-width: 0; max-width: none; font-size: 12px; }
#cabinet-shell .account-menu-more { color: #91a5b4; font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: 1px; }
#cabinet-shell .account-menu-panel {
  position: absolute;
  z-index: 50;
  right: 0;
  bottom: calc(100% + 9px);
  left: 0;
  padding: 13px;
  border: 1px solid rgba(117, 171, 197, .18);
  border-radius: 16px;
  background: linear-gradient(145deg, #101a29, #0b1320);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}
#cabinet-shell .account-menu-panel[hidden] { display: none; }
#cabinet-shell .account-menu-heading { margin: 1px 3px 11px; color: #dce8f2; font-size: 12px; font-weight: 750; }
#cabinet-shell .account-menu-logout {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(251, 113, 133, .18);
  border-radius: 11px;
  background: rgba(190, 54, 76, .16);
  color: #ff929e;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
#cabinet-shell .account-menu-logout:hover { background: rgba(190, 54, 76, .25); }
#cabinet-shell .account-menu-logout svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#dialog-root .logout-confirm-button { border-color: #d8495c; background: #bd3b4c; color: #fff; box-shadow: none; }
#dialog-root .logout-confirm-button:hover { background: #d04759; }
@media (max-width: 760px) {
  #cabinet-shell .topbar-right { gap: 0; }
  #cabinet-shell .sidebar-account { position: fixed; z-index: 60; top: 7px; right: 10px; width: min(180px, calc(100vw - 145px)); margin: 0; }
  #cabinet-shell .account-menu-trigger { min-height: 50px; gap: 7px; padding: 5px 7px; }
  #cabinet-shell .account-menu-trigger .avatar { width: 34px; height: 34px; flex-basis: 34px; }
  #cabinet-shell .account-menu-trigger .account-label { max-width: none; font-size: 10px; }
  #cabinet-shell .account-menu-panel { top: calc(100% + 8px); right: 0; bottom: auto; left: auto; width: min(250px, calc(100vw - 24px)); }
}

/* Desktop cabinet refresh: subscription first, with a compact full-width composition. */
#cabinet-shell {
  background: #080d16;
  color: #edf4fa;
}
#cabinet-shell .topbar {
  height: 72px;
  border: 0;
  background: #080d16;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#cabinet-shell .app-frame {
  width: 100%;
  max-width: none;
  grid-template-columns: 236px minmax(0, 1fr);
  background: #080d16;
}
#cabinet-shell .sidebar {
  width: 236px;
  border: 0;
  background: #080d16;
}
#cabinet-shell .main-content {
  min-width: 0;
  padding: 36px clamp(24px, 3vw, 48px) 42px;
  background: #080d16;
}
#cabinet-shell .topbar-action {
  min-height: 42px;
  border: 1px solid rgba(139, 173, 194, .12);
  border-radius: 13px;
  background: #101a28;
  color: #dbe7f0;
}
#cabinet-shell .topbar-action:hover { border-color: rgba(67, 192, 211, .2); background: #142334; }
#cabinet-shell .topbar-action-primary { border-color: rgba(103, 199, 209, .18); background: #12303a; color: #a8eceb; }
#cabinet-shell .topbar-action-primary:hover { background: #173c47; }

@media (min-width: 761px) {
  #cabinet-shell .side-nav { display: grid; gap: 6px; margin-top: 24px; }
  #cabinet-shell .side-nav .nav-item {
    min-height: 48px;
    gap: 12px;
    padding-inline: 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #9aa9bb;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  }
  #cabinet-shell .side-nav .nav-item:hover { transform: translateX(2px); border-color: rgba(109, 147, 169, .1); background: #0e1825; color: #e8f1f7; }
  #cabinet-shell .side-nav .nav-item.active { border-color: rgba(45, 194, 209, .13); background: linear-gradient(100deg, #10303a, #101d2a); box-shadow: inset 2px 0 #3dc6d2; color: #78dce1; }
  #cabinet-shell .side-nav .nav-icon { color: #8fa7b8; }
  #cabinet-shell .side-nav .nav-item.active .nav-icon { color: #6ad6df; }
  #cabinet-shell .side-nav .nav-icon,
  #cabinet-shell .side-nav .nav-icon svg { width: 19px; height: 19px; }
  #cabinet-shell .sidebar-account { margin-top: auto; margin-bottom: 6px; }
  #cabinet-shell .account-menu-trigger {
    min-height: 66px;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(133, 166, 185, .1);
    border-radius: 15px;
    background: #0d1724;
  }
  #cabinet-shell .account-menu-trigger:hover,
  #cabinet-shell .account-menu-trigger[aria-expanded="true"] { border-color: rgba(55, 184, 203, .2); background: #101d2b; }
  #cabinet-shell .account-menu-trigger .avatar { width: 38px; height: 38px; flex-basis: 38px; border-color: rgba(57, 195, 209, .22); background: #12313b; color: #77dce3; }
  #cabinet-shell .account-menu-trigger .account-label { color: #e4edf4; font-size: 12px; }
  #cabinet-shell .account-menu-more { color: #8494a5; }
  #cabinet-shell .account-menu-panel { border-color: rgba(133, 166, 185, .13); background: #101a28; }
  #cabinet-shell .sidebar-bottom { padding-top: 12px; color: #718398; }
}

#main-content #view-home {
  display: grid;
  width: min(100%, 1020px);
  max-width: 1020px;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  margin-inline: auto;
  padding: 0 0 24px;
}
#view-home .prod-home-heading { grid-column: 1; margin: 0 0 2px; }
#view-home .prod-home-heading .eyebrow-small { display: block; margin-bottom: 8px; color: #68cfda; font-size: 10px; letter-spacing: .15em; }
#view-home .prod-home-heading h1 { color: #f2f6fb; font-size: clamp(32px, 3vw, 38px); line-height: 1.1; letter-spacing: -.055em; }
#view-home .prod-home-heading p { margin-top: 7px; color: #9eafc0; font-size: 13px; }

/* One horizontal subscription card; the two existing metrics form a separate row beneath it. */
#view-home .premium-sub-hero {
  position: relative;
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, .34fr);
  align-items: stretch;
  gap: 22px;
  min-height: 218px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(67, 175, 197, .16);
  border-radius: 21px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(27, 117, 142, .12), transparent 48%),
    linear-gradient(140deg, #101f30, #101a28 72%);
  box-shadow: inset 0 1px rgba(224, 249, 255, .035), 0 12px 30px rgba(0, 0, 0, .14);
}
#view-home .premium-sub-hero::after,
#view-home .sub-hero-glow { display: none; }
#view-home .subscription-overview-copy { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
#view-home .dash-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#view-home .sub-plan-badge { color: #88dfe1; font-size: 13px; }
#view-home .sub-plan-badge span:last-child { color: #deeff5; }
#view-home .sub-status-pill { padding: 6px 10px; border-color: rgba(145, 166, 184, .15); background: rgba(11, 21, 33, .55); color: #b9c6d2; font-size: 11px; }
#view-home .status-pulse-dot { box-shadow: none; }
#view-home .sub-status-pill.status-active { border-color: rgba(89, 204, 169, .18); background: rgba(50, 146, 120, .12); color: #8bd8bd; }
#view-home .sub-status-pill.status-expiring { border-color: rgba(222, 179, 93, .18); background: rgba(188, 137, 46, .12); color: #e4c47e; }
#view-home .sub-status-pill.status-expired { border-color: rgba(223, 106, 123, .16); background: rgba(170, 57, 76, .12); color: #e6a1aa; }
#view-home .dash-sub-body { display: flex; flex-direction: row; align-items: center; gap: 18px; margin: 0; }
#view-home .dash-days-wrap { flex: 0 0 auto; gap: 8px; margin: 0; }
#view-home .dash-days-num { color: #f4f8fc; font-size: clamp(52px, 4.8vw, 63px); line-height: .98; }
#view-home .dash-days-unit { color: #76d9de; font-size: 16px; }
#view-home .subscription-period-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#view-home .prod-sub-caption { color: #9cabbc; font-size: 12px; }
#view-home .dash-date-sub { margin: 0; color: #bdc9d4; font-size: 13px; line-height: 1.4; }
#view-home .dash-progress-bar { height: 3px; background: rgba(225, 238, 248, .12); }
#view-home .dash-progress-bar.is-empty { display: none; }
#view-home .dash-progress-fill { background: linear-gradient(90deg, #5dd6c5, #39bdd8); }
#view-home .vpn-access-sync-notice { border-color: rgba(75, 175, 197, .2); border-radius: 12px; background: rgba(10, 40, 53, .65); color: #c5e5eb; font-size: 12px; }
#view-home .subscription-overview-action {
  display: flex;
  align-items: center;
  padding-left: 22px;
  border-left: 1px solid rgba(143, 173, 191, .12);
}
#view-home .miniapp-main-action {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(105deg, #70ddc9, #47c4df);
  color: #071921;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 7px 18px rgba(25, 165, 187, .13);
}
#view-home .miniapp-main-action:hover { background: linear-gradient(105deg, #83e6d5, #59d0e8); box-shadow: 0 9px 22px rgba(25, 165, 187, .18); }
#view-home .miniapp-main-action span:last-child { flex: none; margin-left: 0; }

#view-home .sub-quick-grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 12px;
  margin: 0;
}
#view-home .sub-qcard {
  min-width: 0;
  min-height: 106px;
  padding: 16px 20px;
  border: 1px solid rgba(129, 165, 187, .12);
  border-radius: 17px;
  background: linear-gradient(145deg, #111d2b, #0e1825);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  text-align: left;
}
#view-home .sub-qcard:hover { transform: translateY(-2px); border-color: rgba(58, 188, 207, .25); background: #132131; }
#view-home .sub-qcard-header { justify-content: flex-start; min-height: 19px; margin: 0; color: #a4b5c5; font-size: 12px; font-weight: 650; }
#view-home .sub-qcard-header span:first-child { padding: 0; color: inherit; font-size: inherit; letter-spacing: 0; text-align: left; text-transform: none; }
#view-home .sub-qcard-stat { color: #f2f6fa; font-size: clamp(25px, 2.2vw, 30px); line-height: 1.1; }
#view-home .prod-card-art { right: 17px; bottom: 12px; width: 66px; height: 48px; opacity: .44; filter: saturate(.7); }

#view-home .miniapp-trial-banner,
#view-home .home-card-banner,
#view-home .home-promo-btn,
#view-home .home-bottom-triad,
#view-home .summer-devices { grid-column: 1; }
#view-home .miniapp-trial-banner,
#view-home .home-card-banner { border-color: rgba(92, 170, 184, .14); border-radius: 16px; background: #0e1b28; box-shadow: none; }
#view-home .home-promo-btn {
  min-height: 76px;
  padding: 14px 20px;
  border: 1px solid rgba(103, 159, 180, .13);
  border-radius: 17px;
  background: linear-gradient(110deg, #101d2a, #111e2b 70%, #102532);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
#view-home .home-promo-btn:hover { transform: translateY(-1px); border-color: rgba(58, 188, 207, .23); background: #132333; }
#view-home .home-promo-title { color: #f0f5f9; font-size: 17px; }
#view-home .prod-promo-sub { margin-top: 3px; color: #9fb0c0; font-size: 12px; }
#view-home .prod-promo-art { display: none; }
#view-home .home-bottom-triad { width: 100%; max-width: none; gap: 11px; margin: 0; }
#view-home .home-triad-card {
  min-width: 0;
  min-height: 72px;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid rgba(129, 165, 187, .11);
  border-radius: 15px;
  background: #101a27;
  box-shadow: none;
}
#view-home .home-triad-card:hover { transform: translateY(-2px); border-color: rgba(58, 188, 207, .22); background: #142333; }
#view-home .home-triad-art { width: 36px; height: 36px; flex: 0 0 36px; }
#view-home .home-triad-art img { width: 31px; height: 31px; padding: 0; filter: saturate(.78); }
#view-home .home-triad-foot { width: auto; min-height: 0; flex: 1; padding: 0; border: 0; }
#view-home .home-triad-label { color: #dce7f0; font-size: 12px; }
#view-home .home-triad-arrow { color: #51c9d6; }
#view-home .summer-devices {
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 17px 128px 17px 19px;
  border: 1px solid rgba(104, 155, 176, .12);
  border-radius: 18px;
  background: linear-gradient(125deg, #101b29, #0d1723 72%, #10212b);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
#view-home .summer-devices-copy > span { color: #67cbd6; font-size: 9px; letter-spacing: .12em; }
#view-home .summer-devices-copy h2 { color: #edf4f9; font-size: 17px; line-height: 1.3; }
#view-home .summer-devices-copy > p { max-width: 680px; color: #9eafbf; font-size: 12px; line-height: 1.45; }
#view-home .summer-device-list { gap: 6px; margin-top: 9px; }
#view-home .summer-device { min-height: 29px; padding: 3px 9px 3px 6px; border-color: rgba(113, 168, 187, .13); border-radius: 9px; background: #0c1723; }
#view-home .summer-device b { color: #dce7f0; font-size: 11px; }
#view-home .summer-device i { color: #74cbd4; }
#view-home .summer-devices-mini { top: 50%; right: 18px; width: 80px; height: 56px; transform: translateY(-50%) scale(.72); filter: saturate(.78); opacity: .72; }

@media (min-width: 761px) and (max-width: 1080px) {
  #cabinet-shell .app-frame { grid-template-columns: 220px minmax(0, 1fr); }
  #cabinet-shell .sidebar { width: 220px; }
  #cabinet-shell .main-content { padding-inline: 24px; }
  #view-home .premium-sub-hero { grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; padding-inline: 18px; }
  #view-home .subscription-overview-action { padding-left: 16px; }
}
@media (max-width: 760px) {
  #cabinet-shell .topbar { background: #080d16; }
  #cabinet-shell .main-content { background: #080d16; }
  #view-home .premium-sub-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; min-height: 0; padding: 17px; }
  #view-home .subscription-overview-copy { gap: 13px; }
  #view-home .dash-sub-body { gap: 12px; }
  #view-home .dash-days-num { font-size: clamp(46px, 13vw, 58px); }
  #view-home .subscription-overview-action { padding: 12px 0 0; border-top: 1px solid rgba(143, 173, 191, .12); border-left: 0; }
  #view-home .sub-quick-grid { gap: 8px; }
  #view-home .sub-qcard { min-height: 92px; padding: 13px; }
  #view-home .sub-qcard-stat { font-size: clamp(19px, 5vw, 24px); }
  #view-home .prod-card-art { right: 6px; bottom: 7px; width: 38px; height: 32px; opacity: .25; }
  #view-home .home-bottom-triad { gap: 6px; }
  #view-home .home-triad-card { min-height: 61px; gap: 5px; padding: 7px 6px; }
  #view-home .home-triad-art { width: 26px; height: 26px; flex-basis: 26px; }
  #view-home .home-triad-art img { width: 24px; height: 24px; }
  #view-home .home-triad-label { font-size: 10px; }
  #view-home .summer-devices { padding: 14px 96px 14px 14px; }
  #view-home .summer-devices-mini { right: 0; transform: translateY(-50%) scale(.58); }
}


/* Blue-forward Vectra palette: stronger midnight/navy surfaces with restrained cyan accents. */
#cabinet-shell,
#cabinet-shell .topbar,
#cabinet-shell .app-frame,
#cabinet-shell .sidebar,
#cabinet-shell .main-content { background-color: #070d1b; }
#cabinet-shell .topbar-action { border-color: rgba(111, 153, 214, .17); background: #101e38; color: #dceaff; }
#cabinet-shell .topbar-action:hover { border-color: rgba(83, 169, 244, .34); background: #172c4d; }
#cabinet-shell .topbar-action-primary { border-color: rgba(69, 178, 239, .3); background: #123e70; color: #e3f7ff; }
#cabinet-shell .topbar-action-primary:hover { background: #18538b; }
@media (min-width: 761px) {
  #cabinet-shell .side-nav .nav-item { color: #a8b8d3; }
  #cabinet-shell .side-nav .nav-item:hover { border-color: rgba(100, 155, 223, .2); background: #10213d; color: #eff6ff; }
  #cabinet-shell .side-nav .nav-item.active { border-color: rgba(56, 166, 236, .32); background: linear-gradient(105deg, #123963, #102342); box-shadow: inset 2px 0 #36b9f2; color: #8cddff; }
  #cabinet-shell .side-nav .nav-icon { color: #91a9d0; }
  #cabinet-shell .side-nav .nav-item.active .nav-icon { color: #4dc9fa; }
  #cabinet-shell .account-menu-trigger { border-color: rgba(104, 146, 205, .16); background: #0e1a31; }
  #cabinet-shell .account-menu-trigger:hover,
  #cabinet-shell .account-menu-trigger[aria-expanded="true"] { border-color: rgba(70, 161, 234, .3); background: #122442; }
  #cabinet-shell .account-menu-trigger .avatar { border-color: rgba(64, 164, 238, .32); background: #12365f; color: #82d5ff; }
  #cabinet-shell .account-menu-panel { border-color: rgba(105, 147, 205, .2); background: #101e38; }
}
#main-content #view-home { --blue-edge: rgba(85, 145, 218, .22); }
#view-home .prod-home-heading .eyebrow-small { color: #74c8ff; }
#view-home .premium-sub-hero {
  border-color: rgba(71, 143, 224, .3);
  background: radial-gradient(ellipse at 2% 0%, rgba(31, 117, 224, .25), transparent 53%), linear-gradient(135deg, #112b50 0%, #0e2040 58%, #0d1b34 100%);
  box-shadow: inset 0 1px rgba(208, 232, 255, .06), 0 14px 34px rgba(0, 3, 14, .24);
}
#view-home .subscription-overview-copy { justify-content: center; gap: 14px; }
#view-home .sub-plan-badge { color: #82caff; }
#view-home .dash-days-unit { color: #77c9ff; }
#view-home .dash-progress-fill { background: linear-gradient(90deg, #398af4, #36c6ed); }
#view-home .subscription-overview-action { border-color: rgba(124, 164, 220, .18); }
#view-home .miniapp-main-action { background: linear-gradient(105deg, #398df4, #32c4e8); color: #f7fcff; box-shadow: 0 8px 22px rgba(29, 112, 218, .2); }
#view-home .miniapp-main-action:hover { background: linear-gradient(105deg, #4b9eff, #42d0f0); }
#view-home .sub-qcard {
  border-color: rgba(95, 143, 205, .2);
  background: linear-gradient(145deg, #122442, #0e1b34);
  box-shadow: inset 0 1px rgba(222, 239, 255, .035);
}
#view-home .sub-qcard:hover { border-color: rgba(78, 157, 234, .36); background: #152b4b; }
#view-home .home-promo-btn,
#view-home .miniapp-trial-banner,
#view-home .home-card-banner { border-color: rgba(88, 143, 211, .2); background: linear-gradient(110deg, #10203b, #112747 72%, #10223f); }
#view-home .home-promo-btn:hover { border-color: rgba(75, 159, 235, .35); background: #142b4a; }
#view-home .home-bottom-triad .home-triad-card { border-color: rgba(92, 143, 207, .17); background: #0f1d36; }
#view-home .home-bottom-triad .home-triad-card:hover { border-color: rgba(72, 158, 232, .32); background: #142849; }
#view-home .home-triad-arrow,
#view-home .summer-device i { color: #56c5f6; }
#view-home .summer-devices { border-color: rgba(86, 143, 211, .2); background: linear-gradient(120deg, #10203b, #0e1c35 72%, #102747); }
#view-home .summer-devices-copy > span { color: #65c8ff; }
#view-home .summer-device { border-color: rgba(86, 150, 221, .22); background: #0b1830; }

/* Carry the blue home-card palette across the secondary cabinet tabs. */
#main-content .portal-view:not(.portal-view-home) .panel,
#main-content .portal-view:not(.portal-view-home) .subscription-card,
#main-content .portal-view:not(.portal-view-home) .device-row,
#main-content .portal-view:not(.portal-view-home) .device-slot,
#main-content .portal-view:not(.portal-view-home) .history-row,
#main-content .portal-view:not(.portal-view-home) .side-page-card,
#main-content .portal-view:not(.portal-view-home) .portal-payment-row,
#main-content .portal-view:not(.portal-view-home) .portal-device-row,
#main-content .portal-view:not(.portal-view-home) .portal-blocked-row,
#main-content .portal-view:not(.portal-view-home) .stat-card,
#main-content .portal-view:not(.portal-view-home) .support-link {
  border-color: rgba(76, 139, 213, .24);
  background: linear-gradient(145deg, #122442, #0e1b34);
  box-shadow: inset 0 1px rgba(222, 239, 255, .035), 0 12px 30px rgba(0, 0, 0, .16);
}

#main-content .portal-view-plans .premium-sub-hero {
  border-color: rgba(54, 151, 240, .38);
  background: radial-gradient(ellipse at 4% 0%, rgba(23, 111, 221, .34), transparent 56%), linear-gradient(120deg, #103a68, #0e2a50 57%, #0b1d3a);
}

#main-content .portal-view-plans .promo-panel {
  border-color: rgba(76, 139, 213, .24);
  background: linear-gradient(110deg, #102a4d, #12345d 72%, #10284c);
}

#main-content .portal-view-plans .vpn-usage-card {
  border-color: rgba(76, 139, 213, .32);
  background: linear-gradient(145deg, #10294b, #0e2140);
}

#main-content .portal-view-plans .portal-recent-history-row:hover {
  border-color: rgba(75, 174, 250, .48);
  background: linear-gradient(145deg, #163967, #10294b);
}

/* Stronger blue contrast pass: remove the remaining neutral-gray appearance. */
#cabinet-shell { background: #050b19; }
#cabinet-shell .topbar,
#cabinet-shell .app-frame,
#cabinet-shell .sidebar,
#cabinet-shell .main-content { background: #070f21; }
#cabinet-shell .topbar-action { border-color: rgba(84, 149, 236, .22); background: #102347; color: #e5efff; }
#cabinet-shell .topbar-action:hover { background: #173463; }
#cabinet-shell .topbar-action-primary { border-color: rgba(69, 177, 250, .38); background: #14508c; color: #fff; }
#cabinet-shell .topbar-action-primary:hover { background: #1b65a7; }
#cabinet-shell .side-nav .nav-item { color: #b1c4e2; }
#cabinet-shell .side-nav .nav-item:hover { border-color: rgba(70, 151, 242, .25); background: #11274a; color: #fff; }
#cabinet-shell .side-nav .nav-item.active { border-color: rgba(59, 172, 247, .38); background: linear-gradient(105deg, #134a7d, #12325d); box-shadow: inset 3px 0 #3bbcff; color: #fff; }
#cabinet-shell .side-nav .nav-icon,
#cabinet-shell .side-nav .nav-item.active .nav-icon { color: #58c8ff; }
#cabinet-shell .account-menu-trigger { border-color: rgba(79, 135, 213, .2); background: #0c1b38; }
#cabinet-shell .account-menu-trigger .avatar { border-color: rgba(62, 170, 245, .32); background: #123c6a; color: #9be0ff; }
#view-home .premium-sub-hero { border-color: rgba(54, 151, 240, .38); background: radial-gradient(ellipse at 4% 0%, rgba(23, 111, 221, .34), transparent 56%), linear-gradient(120deg, #103a68, #0e2a50 57%, #0b1d3a); }
#view-home .sub-qcard { border-color: rgba(67, 135, 216, .28); background: linear-gradient(145deg, #12315a, #0d2141); }
#view-home .sub-qcard:hover { border-color: rgba(75, 174, 250, .48); background: #163967; }
#view-home .home-promo-btn { border-color: rgba(73, 144, 222, .27); background: linear-gradient(110deg, #102a4d, #12345d 72%, #10284c); }
#view-home .home-promo-btn:hover { border-color: rgba(76, 173, 245, .42); background: #153967; }
#view-home .home-bottom-triad .home-triad-card { border-color: rgba(76, 139, 213, .24); background: #0e2344; }
#view-home .home-bottom-triad .home-triad-card:hover { border-color: rgba(72, 169, 244, .42); background: #15355e; }
#view-home .home-triad-art img,
#view-home .home-triad-arrow,
#view-home .summer-device i { color: #56c5ff; filter: saturate(1.3); }
#view-home .summer-devices { border-color: rgba(69, 136, 218, .27); background: linear-gradient(115deg, #10294b, #0d2040 72%, #112d52); }
#view-home .summer-device { border-color: rgba(77, 153, 230, .25); background: #0b1b37; }

/* Secondary cabinet tabs use the same blue primary actions as the home screen. */
#main-content .portal-view:not(.portal-view-home) .button-primary,
#main-content .portal-view-plans .real-tariff-primary,
#portal-modal-root .button-primary,
#dialog-root .button-primary {
  border-color: rgba(77, 167, 244, .36);
  background: linear-gradient(105deg, #247ce4, #20b8df);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 105, 218, .24);
}

#main-content .portal-view:not(.portal-view-home) .button-primary:hover,
#main-content .portal-view-plans .real-tariff-primary:hover,
#portal-modal-root .button-primary:hover,
#dialog-root .button-primary:hover {
  background: linear-gradient(105deg, #318af3, #2ac8ec);
}
#view-home .miniapp-main-action { border: 1px solid rgba(126, 210, 255, .2); background: linear-gradient(105deg, #247ce4, #20b8df); color: #fff; box-shadow: 0 8px 24px rgba(22, 105, 218, .26); }
#view-home .miniapp-main-action:hover { background: linear-gradient(105deg, #318af3, #2ac8ec); }
#view-home .sub-plan-badge,
#view-home .dash-days-unit,
#view-home .prod-home-heading .eyebrow-small,
#view-home .summer-devices-copy > span { color: #62c7ff; }

/* Final high-specificity overrides for nested legacy surfaces in secondary tabs. */
#main-content .portal-view-plans #cur-sub-overview-card {
  border-color: rgba(54, 151, 240, .42) !important;
  background: radial-gradient(ellipse at 4% 0%, rgba(23, 111, 221, .34), transparent 56%), linear-gradient(120deg, #103a68, #0e2a50 57%, #0b1d3a) !important;
  box-shadow: inset 0 1px rgba(208, 232, 255, .06), 0 14px 34px rgba(0, 3, 14, .24) !important;
}

#main-content .portal-view-referrals .referral-link-panel {
  border-color: rgba(76, 139, 213, .3) !important;
  background: linear-gradient(145deg, #10294b, #0d2141) !important;
}

#main-content .portal-view-referrals #ref-bonus-hint {
  border-color: rgba(76, 139, 213, .3) !important;
  background: linear-gradient(145deg, #10294b, #0d2141) !important;
}

#portal-modal-root .portal-history-dialog {
  border-color: rgba(76, 139, 213, .4) !important;
  background: radial-gradient(ellipse at 88% 0%, rgba(23, 111, 221, .22), transparent 42%), linear-gradient(150deg, #10294b, #0b1d36 78%) !important;
}

/* Compact profile card in the account menu, matching the existing sidebar avatar. */
#cabinet-shell .account-menu-panel {
  left: 0;
  right: auto;
  width: min(250px, calc(100vw - 24px));
  padding: 12px;
  border-color: rgba(105, 147, 205, .24);
  background: linear-gradient(150deg, #10213d, #0d1930);
}
#cabinet-shell .account-menu-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-bottom: 10px;
  padding: 4px 3px 10px;
  border-bottom: 1px solid rgba(114, 151, 197, .14);
}
#cabinet-shell .account-menu-profile .avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-color: rgba(64, 164, 238, .32);
  background: #12365f;
  color: #82d5ff;
}
#cabinet-shell .account-menu-identity {
  min-width: 0;
  overflow: hidden;
  color: #e8f1fb;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#cabinet-shell .account-menu-logout {
  min-height: 44px;
  border-color: rgba(251, 113, 133, .16);
  background: rgba(190, 54, 76, .14);
  color: #ff929e;
}
@media (max-width: 760px) {
  #cabinet-shell .account-menu-panel { left: auto; right: 0; }
}

/* Keep the profile menu aligned with the sidebar and make its logout action clear. */
#cabinet-shell .account-menu-panel {
  left: 0;
  right: auto;
  width: 100%;
  min-width: 0;
}
#cabinet-shell .account-menu-profile { min-width: 0; }
#cabinet-shell .account-menu-identity {
  display: block;
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#cabinet-shell .account-menu-logout {
  justify-content: flex-start;
  border-color: rgba(245, 83, 106, .52) !important;
  background: linear-gradient(105deg, #a92e45, #c33b50) !important;
  color: #fff !important;
}
#cabinet-shell .account-menu-logout:hover {
  background: linear-gradient(105deg, #bd354d, #d7475c) !important;
}
#cabinet-shell .sidebar-bottom.sidebar-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-top: 11px;
  line-height: 1.35;
}
#cabinet-shell .sidebar-legal-links a {
  color: #93a9c3;
  font-size: 10px;
  text-decoration: none;
}
#cabinet-shell .sidebar-legal-links a:hover {
  color: #c6ddf7;
  text-decoration: underline;
}
@media (max-width: 760px) {
  #cabinet-shell .account-menu-panel {
    left: auto;
    right: 0;
    width: min(250px, calc(100vw - 24px));
  }
}

/* Profile popover uses the same compact, two-line identity hierarchy as FastVPN. */
#cabinet-shell .account-menu-profile { gap: 11px; min-height: 58px; }
#cabinet-shell .account-menu-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
#cabinet-shell .account-menu-identity {
  width: 100%;
  color: #e8eef8;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}
#cabinet-shell .account-menu-meta {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #91a2ba;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#cabinet-shell #logout-button.account-menu-logout {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 97, 108, .12) !important;
  border-radius: 12px;
  background: #39252d !important;
  color: #ff666d !important;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}
#cabinet-shell #logout-button.account-menu-logout:hover {
  background: #492831 !important;
}
#cabinet-shell #logout-button.account-menu-logout svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: currentColor;
}

/* Leave the account identity in the rail without a surrounding card. */
#cabinet-shell .account-menu-trigger,
#cabinet-shell .account-menu-trigger:hover,
#cabinet-shell .account-menu-trigger[aria-expanded="true"] {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
#cabinet-shell .account-menu-trigger:focus-visible {
  outline: 2px solid #36b9f2;
  outline-offset: 2px;
}

#view-home .prod-home-heading .eyebrow-small { display: none !important; }

/* Match the reference rail's compact logo and navigation rhythm. */
@media (min-width: 761px) {
  #cabinet-shell .topbar { padding-left: 5px; }
  #cabinet-shell .topbar .wordmark-image {
    position: absolute;
    top: calc(50% + 5px);
    left: 5px;
    width: 152px;
    transform: translateY(-50%);
  }
  #cabinet-shell .sidebar { padding: 10px 9px 12px; }
  #cabinet-shell .side-nav { gap: 8px; margin-top: 24px; }
  #cabinet-shell .side-nav .nav-item {
    min-height: 52px;
    gap: 12px;
    padding-inline: 16px;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 650;
  }
}

/* Keep the brand in the header's flex row so it never collides with actions. */
#cabinet-shell .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 9px 20px;
}
#cabinet-shell .topbar .wordmark-image {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 152px;
  width: 152px;
  margin: 0;
  transform: none;
}
#cabinet-shell .topbar-right { flex: 0 0 auto; margin-left: auto; }
#cabinet-shell .topbar-actions { flex-wrap: nowrap; }
#cabinet-shell .topbar .wordmark-image {
  flex-basis: 184px;
  width: 184px;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}
#cabinet-shell .topbar .wordmark-image img {
  background: transparent !important;
  mix-blend-mode: screen;
}

/* Align the top actions above the dashboard card edge on wide screens. */
@media (min-width: 1200px) {
  #cabinet-shell .topbar-right { transform: translateX(calc(-8cm - 30px)); }
}

/* Raise the complete dashboard, including its heading, below the top bar. */
@media (min-width: 761px) {
  #cabinet-shell #main-content #view-home { margin-top: -24px; }
}

/* Use one page frame and heading rhythm across all cabinet tabs. */
#main-content .portal-view:not(.portal-view-home) {
  width: min(100%, 1080px);
  max-width: 1080px;
  margin: 0 auto;
}
#main-content .portal-view:not(.portal-view-home) .page-heading {
  display: block;
  margin: 0 0 18px;
}
#main-content .portal-view:not(.portal-view-home) .page-heading .eyebrow-small { display: none; }
#main-content .portal-view:not(.portal-view-home) .page-heading h1 {
  margin: 0;
  color: #f3f6fb;
  font-size: clamp(30px, 2.5vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.055em;
}
#main-content .portal-view:not(.portal-view-home) .page-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #9aa9bd;
  font-size: 13px;
  line-height: 1.5;
}
#main-content .portal-view-referrals,
#main-content .portal-view-support { gap: 16px; }
#main-content .portal-view-referrals .page-heading,
#main-content .portal-view-support .page-heading { margin-bottom: 0; }
#main-content .portal-view-plans .tariff-page { width: 100%; max-width: none; }
#main-content .portal-view:not(.portal-view-home) .panel,
#main-content .portal-view:not(.portal-view-home) .subscription-card,
#main-content .portal-view:not(.portal-view-home) .device-row,
#main-content .portal-view:not(.portal-view-home) .device-slot,
#main-content .portal-view:not(.portal-view-home) .history-row,
#main-content .portal-view:not(.portal-view-home) .side-page-card,
#main-content .portal-view:not(.portal-view-home) .portal-payment-row,
#main-content .portal-view:not(.portal-view-home) .portal-device-row,
#main-content .portal-view:not(.portal-view-home) .portal-blocked-row,
#main-content .portal-view:not(.portal-view-home) .stat-card,
#main-content .portal-view:not(.portal-view-home) .support-link { border-radius: 18px; }
@media (min-width: 761px) {
  #cabinet-shell #main-content .portal-view:not(.portal-view-home) { margin-top: -24px; }
}

/* One shared content width for the home dashboard and every cabinet tab. */
#main-content #view-home,
#main-content .portal-view:not(.portal-view-home) {
  width: min(100%, 980px);
  max-width: 980px;
}