/* Opt-in Liquid Glass-inspired neutral beta. All application behavior and classic styles stay shared. */
.appearance-settings { padding: 20px; margin-bottom: 16px; }
.appearance-settings h2 { font-size: 16px; margin: 0 0 8px; }
.appearance-settings p { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.appearance-options { display: flex; gap: 8px; margin: 14px 0; }
.appearance-options button { flex: 1; min-width: 0; min-height: 48px; padding: 10px; font: inherit; font-size: 13px; border-radius: 10px; border: 1px solid var(--divider); color: var(--text-primary); background: var(--bg-surface-raised); cursor: pointer; }
.appearance-options button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.appearance-options button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.appearance-beta { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-left: 5px; }
.appearance-settings [hidden], #classicThemeSettings[hidden] { display: none !important; }
html[data-design="modern"] {
  color-scheme: light;
  --bg-app: #f6f7f9; --bg-surface: #ffffff; --bg-surface-raised: #f0f1f4; --bg-surface-soft: #f8f9fb;
  --text-primary: #181b22; --text-secondary: #535b6b; --text-tertiary: #687184;
  --accent: #252b37; --accent-strong: #111827; --accent-soft: #edf0f5; --accent-soft-border: #c9ced9;
  --accent-rgb: 37,43,55; --accent-strong-rgb: 17,24,39;
  --divider: #e0e3e9; --glass-border: #e0e3e9; --glass: #f0f1f4; --glass-strong: #e9ecf1; --glass-tint: #f0f1f4;
  --glass-shine: inset 0 1px 0 rgba(255,255,255,.9); --glass-blur: 24px; --glass-sat: 1.4; --panel: rgba(255,255,255,.52);
  --liquid-surface: rgba(255,255,255,.52); --liquid-edge: rgba(255,255,255,.82); --liquid-shadow: 0 12px 36px -22px rgba(38,48,74,.34), inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(65,78,105,.08);
  --liquid-glint: rgba(255,255,255,.62); --liquid-fill: rgba(255,255,255,.34);
  --warning: #915500; --warning-soft: #fff3dc; --success: #315caa; --success-soft: #edf3ff;
  --btn-text: #ffffff; --link: #315caa; --radius-lg: 32px; --radius-md: 24px; --radius-sm: 18px; --radius-pill: 999px;
}
html[data-design="modern"][data-color-scheme="dark"] {
  color-scheme: dark;
  --bg-app: #101114; --bg-surface: #191b20; --bg-surface-raised: #252830; --bg-surface-soft: #15171b;
  --text-primary: #f0f1f4; --text-secondary: #b0b6c4; --text-tertiary: #9aa2b2;
  --accent: #e7eaf0; --accent-strong: #ffffff; --accent-soft: #292e39; --accent-soft-border: #515968;
  --accent-rgb: 231,234,240; --accent-strong-rgb: 255,255,255;
  --divider: #333740; --glass-border: #333740; --glass: #252830; --glass-strong: #30343e; --glass-tint: #252830;
  --panel: rgba(30,34,44,.58); --glass-shine: inset 0 1px 0 rgba(255,255,255,.2);
  --liquid-surface: rgba(30,34,44,.58); --liquid-edge: rgba(255,255,255,.16); --liquid-shadow: 0 16px 44px -22px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04);
  --liquid-glint: rgba(255,255,255,.1); --liquid-fill: rgba(255,255,255,.06); --btn-text: #191b20; --link: #a8c7ff;
  --warning: #efbe70; --warning-soft: #352b1e; --success: #a8c7ff; --success-soft: #202e45;
}
html[data-design="modern"] body { color-scheme: inherit; background: var(--bg-app); color: var(--text-primary); }
html[data-design="modern"] :is(.app-bg,.frog-avatar,.login-frog,.maint-frog-wrap,.maint-glow,.ref-banner-art,.offer-confetti,.offer-chest,.offer-glow,.intro-scene,.empty-devices > .glyph) { display: none !important; }
html[data-design="modern"] :is(.status-card,.section,.group,.trial-notice,.sheet,.low-balance-sheet,.ref-banner,.offer-card,.login-card) { background: linear-gradient(145deg,var(--liquid-glint),transparent 42%),var(--liquid-surface); border: 1px solid var(--liquid-edge); box-shadow: var(--liquid-shadow); backdrop-filter: blur(var(--glass-blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4); }
html[data-design="modern"] :is(.status-card,.ref-banner,.trial-notice,.offer-card)::before,
html[data-design="modern"] :is(.status-card,.ref-banner,.trial-notice,.offer-card)::after { display: none; }
html[data-design="modern"] :is(h1,h2,h3,.balance,.wiz-title,.section-title,.offer-title,.trial-notice-title,.ref-banner-title,.ref-stat-value,.days-badge,.name,.btn) { font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Segoe UI",sans-serif; letter-spacing: -.02em; }
html[data-design="modern"] :is(.btn,.pay-card,.icon-btn,.trust-btn,.promo-inner button) { border-radius: 999px; box-shadow: var(--liquid-shadow); text-shadow: none; }
html[data-design="modern"] :is(.btn-primary,.promo-inner button) { background: var(--accent); color: var(--btn-text); border: 1px solid var(--accent); }
html[data-design="modern"] :is(.btn-primary,.btn-ghost,.pay-card)::before,
html[data-design="modern"] :is(.btn-primary,.btn-ghost,.pay-card)::after { display: none; }
html[data-design="modern"] .btn-ghost { background: linear-gradient(145deg,var(--liquid-glint),transparent),var(--liquid-fill); color: var(--text-primary); border: 1px solid var(--liquid-edge); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
html[data-design="modern"] :is(input,textarea,select) { background-color: var(--bg-surface-soft); color: var(--text-primary); border-color: var(--divider); border-radius: 22px; }
html[data-design="modern"] :is(input,textarea)::placeholder { color: var(--text-tertiary); opacity: 1; }
html[data-design="modern"] :is(button,a,input,textarea,summary):focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
html[data-design="modern"] .balance { font-size: clamp(28px,7vw,40px); font-weight: 700; }
html[data-design="modern"] .balance span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
html[data-design="modern"] .status-top { align-items: flex-start; }
html[data-design="modern"] .gauge-wrap { width: 84px; height: 84px; flex: 0 0 84px; }
html[data-design="modern"] .ring { width: 84px; height: 84px; }
html[data-design="modern"] .days-badge { left: 50%; top: 50%; bottom: auto; transform: translate(-50%,-50%); background: none; border: none; color: var(--text-primary); font-size: 10px; padding: 0; }
html[data-design="modern"] .gauge-track { stroke: var(--divider); }
html[data-design="modern"] .gauge-wrap::after { content: "VPN"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text-secondary); pointer-events: none; }
html[data-design="modern"] .gauge-wrap:has(.days-badge:not(.hidden))::after { display: none; }
html[data-design="modern"] :is(.ref-banner,.router-banner) { min-height: 0; padding: 20px; }
html[data-design="modern"] :is(.ref-banner-copy,.ref-banner-content) { max-width: none; padding-right: 0; }
html[data-design="modern"] .empty-devices { padding: 24px 20px; }
html[data-design="modern"] .login-field input { padding-left: 14px; }
html[data-design="modern"] .low-balance-sheet { border-radius: 36px 36px 0 0; }
html[data-design="modern"] :is(.status-pill,.plan-strip,.days-badge,.device-row .glyph.sm) { background-color: var(--bg-surface-raised); color: var(--text-secondary); }
html[data-design="modern"] .status-pill .dot { background: currentColor; box-shadow: none; }
html[data-design="modern"] .device-row { min-height: 76px; }
html[data-design="modern"] :is(.trial-notice-title,.ref-banner-title,.wiz-title) { font-weight: 650; }
html[data-design="modern"] .theme-list { display: none; }
@media (prefers-reduced-motion: reduce) { html[data-design="modern"] * { scroll-behavior: auto !important; } }

html[data-design="modern"] .offer-hero { display: none; }
html[data-design="modern"] .offer-stage { min-height: 0; padding-top: 32px; }
html[data-design="modern"] .offer-stage::before { content: "✦"; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; background: var(--bg-surface-raised); color: var(--text-primary); border-radius: 16px; font-size: 32px; }
html[data-design="modern"] .status-pill { border-color: var(--divider); }
html[data-design="modern"] .status-pill.on { background: var(--success-soft); color: var(--success); border-color: var(--divider); }
html[data-design="modern"] .status-pill.warn { background: var(--warning-soft); color: var(--warning); }
html[data-design="modern"] :is(.pay-amount,.pay-days,.pay-rate,.topup-amount,.ref-banner-btn,.offer-row,.maint-title,.bill-amount) { font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Segoe UI",sans-serif; }
html[data-design="modern"] :is(.ref-banner-btn,.support-send) { background: var(--bg-surface-raised); color: var(--text-primary); border: 1px solid var(--divider); box-shadow: var(--liquid-shadow); border-radius: 999px; }
html[data-design="modern"] .ref-banner-btn.primary { background: var(--accent); color: var(--btn-text); }
html[data-design="modern"] :is(#app,.state,.sheet,dialog) * { font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Segoe UI",sans-serif; }
html[data-design="modern"] .ref-banner-pill { background: var(--bg-surface-raised); color: var(--text-secondary); }
html[data-design="modern"] :is(.view-head,.web-back)::before { background: var(--bg-app); backdrop-filter: none; -webkit-backdrop-filter: none; mask-image: none; -webkit-mask-image: none; }
html[data-design="modern"] :is(.view-head,.web-back)::after { display: none; }
html[data-design="modern"] :is(.bad,.dev-danger) { color: #b42318; }
html[data-design="modern"][data-color-scheme="dark"] :is(.bad,.dev-danger) { color: #ffb4a9; }
html[data-design="modern"] .pay-card { background: linear-gradient(145deg,var(--liquid-glint),transparent),var(--liquid-fill); border-color: var(--liquid-edge); }
html[data-design="modern"] .pay-card.on { background: var(--accent-soft); border-color: var(--accent); }
html[data-design="modern"] .low-balance-amounts .pay-card { min-height: 56px; padding: 12px 8px; align-items: center; justify-content: center; }
html[data-design="modern"] .offer-cta { font-style: normal; transform: none; }

/* Static neutral wallpaper gives the transparent material depth without a mascot. */
html[data-design="modern"] body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 8% 16%,rgba(151,174,209,.38),transparent 52%),radial-gradient(ellipse at 95% 56%,rgba(188,177,207,.35),transparent 50%),radial-gradient(ellipse at 28% 96%,rgba(171,195,214,.4),transparent 52%);
}
html[data-design="modern"][data-color-scheme="dark"] body::before {
  background: radial-gradient(ellipse at 4% 20%,rgba(79,108,147,.3),transparent 54%),radial-gradient(ellipse at 98% 55%,rgba(107,89,128,.25),transparent 52%),radial-gradient(ellipse at 28% 96%,rgba(69,104,127,.3),transparent 50%);
}
html[data-design="modern"] :is(.view-head,.web-back)::before { background: transparent; }
html[data-design="modern"] .home-nav .account-row { border-radius: 999px; background: linear-gradient(145deg,var(--liquid-glint),transparent),var(--liquid-surface); border: 1px solid var(--liquid-edge); box-shadow: var(--liquid-shadow); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 10px 12px; }
html[data-design="modern"] .icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--liquid-fill); }
html[data-design="modern"] .balance { font-size: clamp(36px,9vw,48px); font-weight: 650; letter-spacing: -.045em; }
html[data-design="modern"] .status-card { padding: 26px 22px 22px; }
html[data-design="modern"] :is(.btn-primary,.ref-banner-btn.primary,.promo-inner button,.dev-lbtn.primary) { background: linear-gradient(155deg,rgba(255,255,255,.15),transparent 65%),var(--accent); border-color: var(--liquid-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.3),0 8px 20px -12px rgba(25,35,60,.5); }
html[data-design="modern"] :is(.btn,.ref-banner-btn,.icon-btn,.appearance-options button) { transition: transform .18s ease,background-color .18s ease,box-shadow .18s ease; }
html[data-design="modern"] :is(.btn,.ref-banner-btn,.icon-btn,.appearance-options button):active { transform: scale(.96); }
html[data-design="modern"] .appearance-options { padding: 5px; border-radius: 999px; background: var(--liquid-fill); border: 1px solid var(--liquid-edge); box-shadow: inset 0 1px 5px rgba(25,35,60,.08); }
html[data-design="modern"] .appearance-options button { border: 1px solid transparent; border-radius: 999px; background: transparent; min-height: 44px; }
html[data-design="modern"] .appearance-options button[aria-pressed="true"] { background: var(--liquid-surface); border-color: var(--liquid-edge); box-shadow: var(--liquid-shadow); }
html[data-design="modern"] .gauge-wrap, html[data-design="modern"] .offer-stage::before { border-radius: 50%; background: var(--liquid-fill); box-shadow: var(--liquid-shadow); }
html[data-design="modern"] .empty-devices { padding: 20px; }
html[data-design="modern"] .sheet { border-radius: 30px; }
html[data-design="modern"] .low-balance-sheet { background: linear-gradient(145deg,var(--liquid-glint),transparent),var(--liquid-surface); }
html[data-design="modern"] .app-main-bar { background: transparent; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-design="modern"] { --liquid-surface: var(--bg-surface); --liquid-fill: var(--bg-surface-raised); }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-design="modern"] { --liquid-surface: var(--bg-surface); --liquid-fill: var(--bg-surface-raised); --glass-blur: 0px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-design="modern"] :is(.btn,.ref-banner-btn,.icon-btn,.appearance-options button) { transition: none; transform: none; }
}

/* Compact reference composition. Navigation lives in the profile menu. */
.modern-only { display: none; }
html[data-design="modern"] .modern-only { display: block; }
html[data-design="modern"] #app { max-width: 480px; padding-bottom: 28px; }
html[data-design="modern"] #view-home.view:not(.hidden) { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
html[data-design="modern"] #view-home .home-col { display: contents; }
html[data-design="modern"] .home-nav { margin: 0; padding-bottom: 0; }
html[data-design="modern"] .home-nav .account-row { padding: 9px 12px; border-radius: 22px; box-shadow: inset 0 1px 0 var(--liquid-edge); }
html[data-design="modern"] .home-nav .avatar { width: 32px; height: 32px; }
html[data-design="modern"] .home-nav .name { font-size: 13px; }
html[data-design="modern"] .home-nav .login { font-size: 10px; }
html[data-design="modern"] .home-nav .icon-btn { background: transparent; border: 0; box-shadow: none; }
html[data-design="modern"] .modern-overview { width: 100%; text-align: center; padding: 10px 0 2px; }
html[data-design="modern"] .modern-overview .modern-eyebrow { display: none; }
html[data-design="modern"] .modern-remaining { font-size: 64px; line-height: 1; letter-spacing: -.055em; font-weight: 750; font-variant-numeric: tabular-nums; }
html[data-design="modern"] .modern-remaining-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin-top: 14px; }
html[data-design="modern"] #view-home .status-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(155px,1.8fr); align-items: center; gap: 0 12px; padding: 12px 14px 12px 24px; margin: 0; border-radius: 28px; }
html[data-design="modern"] #view-home :is(.status-top,.status-copy) { display: contents; }
html[data-design="modern"] #view-home :is(.gauge-wrap,#ctaAdd,#statusPill,#statusNote) { display: none; }
html[data-design="modern"] #view-home .balance { grid-area: 1 / 1; font-size: 23px; font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; }
html[data-design="modern"] #view-home .balance span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; margin: 3px 0 0; }
html[data-design="modern"] #view-home .status-actions { grid-area: 1 / 2; margin: 0; }
html[data-design="modern"] #topupBtn { width: 100%; min-height: 46px; padding: 12px; font-size: 13px; color: var(--btn-text); background: var(--accent); border-color: var(--liquid-edge); }
html[data-design="modern"] #view-home :is(#trustBtn,#trustOpen,#trialHomeBtn) { grid-column: 1 / -1; }
html[data-design="modern"] #view-home :is(.section,.trial-notice) { margin: 0; }
html[data-design="modern"] #devicesBlock { position: relative; padding: 20px; min-height: 94px; }
html[data-design="modern"] #devicesBlock .section-head { margin: 0; min-height: 26px; padding-right: 45px; }
html[data-design="modern"] #devicesBlock .h { font-size: 21px; font-weight: 800; letter-spacing: -.04em; text-transform: uppercase; }
html[data-design="modern"] #devicesBlock .count { font-size: 19px; color: var(--text-secondary); }
html[data-design="modern"] .modern-device-rate { font-size: 10px; color: var(--text-secondary); margin: 4px 0 0; }
html[data-design="modern"] :is(#addDevice,#addDeviceEmpty) { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; font-size: 0; border-radius: 50%; color: var(--btn-text); background: var(--accent); border: 1px solid var(--liquid-edge); box-shadow: var(--liquid-shadow); }
html[data-design="modern"] :is(#addDevice,#addDeviceEmpty)::after { content: "+"; display: block; font-size: 32px; font-weight: 400; }
html[data-design="modern"] #emptyDevices { padding: 0; }
html[data-design="modern"] #emptyDevices :is(.t,.d,#coachReplay) { display: none; }
html[data-design="modern"] .device-row { min-height: 66px; padding: 16px 0 0; }
html[data-design="modern"] .device-row .glyph.sm { width: 42px; height: 42px; background: var(--liquid-fill); border-color: var(--liquid-edge); }
html[data-design="modern"] .device-row .meta .n { font-size: 14px; }
html[data-design="modern"] #view-home :is(#refHomeCard,#homePromoCard) { position: relative; overflow: visible; padding: 22px; min-height: 132px; border-radius: 30px; }
html[data-design="modern"] .modern-card-art { position: absolute; width: 156px; height: 156px; pointer-events: none; top: -13px; right: -9px; }
html[data-design="modern"] #refHomeCard .modern-card-art { left: -13px; right: auto; transform: rotate(-8deg); }
html[data-design="modern"] #refHomeCard .ref-banner-copy { padding: 0; margin-left: 112px; max-width: none; }
html[data-design="modern"] #refHomeCard .modern-invite-title { padding: 0; font-size: 20px; line-height: 1.1; text-transform: uppercase; font-weight: 800; letter-spacing: -.04em; }
html[data-design="modern"] #refHomeCard :is(.ref-banner-title,.ref-banner-pill,.ref-banner-note,#refHomeCopy) { display: none; }
html[data-design="modern"] #refHomeCard .ref-banner-actions { margin: 18px 0 0 112px; display: flex; width: auto; gap: 6px; }
html[data-design="modern"] #refHomeCard .ref-banner-btn { min-height: 42px; padding: 10px 12px; font-size: 12px; background: var(--liquid-fill); color: var(--text-primary); border-color: var(--liquid-edge); }
html[data-design="modern"] #refHomeShare { flex: 1; }
html[data-design="modern"] #refHomeShare svg { display: none; }
html[data-design="modern"] #modernReferralDetails { flex: 0 0 42px; width: 42px; font-size: 20px !important; padding: 0 !important; }
html[data-design="modern"] #homePromoCard .modern-eyebrow { display: none; }
html[data-design="modern"] #homePromoCard .section-head { padding-right: 115px; margin-bottom: 18px; }
html[data-design="modern"] #homePromoCard .h { font-size: 22px; text-transform: uppercase; font-weight: 800; letter-spacing: -.035em; }
html[data-design="modern"] #homePromoOpen { width: auto; min-height: 42px; padding: 10px 20px; font-size: 12px; }
html[data-design="modern"] #view-home .home-help { display: none; }
html[data-design="modern"] body::before { background: radial-gradient(ellipse at 50% 38%,rgba(169,189,209,.38),transparent 62%); }
html[data-design="modern"][data-color-scheme="dark"] body::before { background: radial-gradient(ellipse at 50% 38%,rgba(97,126,151,.19),transparent 60%); }
html[data-design="modern"] { --liquid-edge: rgba(255,255,255,.58); --liquid-shadow: inset 0 1px 0 rgba(255,255,255,.6),0 12px 28px -24px rgba(30,40,60,.3); }
html[data-design="modern"][data-color-scheme="dark"] { --liquid-edge: rgba(255,255,255,.10); --liquid-surface: rgba(105,125,145,.09); --liquid-shadow: inset 0 1px 0 rgba(255,255,255,.10),0 12px 28px -24px rgba(0,0,0,.4); }
@media (max-width: 359px) {
 html[data-design="modern"] #refHomeCard .ref-banner-copy,html[data-design="modern"] #refHomeCard .ref-banner-actions { margin-left: 84px; }
 html[data-design="modern"] .modern-card-art { width: 130px; height: 130px; }
 html[data-design="modern"] #refHomeCard .modern-invite-title { font-size: 17px; }
 html[data-design="modern"] #view-home .status-card { padding-left: 16px; grid-template-columns: minmax(0,1fr) minmax(140px,1.8fr); }
}

@media (prefers-reduced-transparency: reduce) {
 html[data-design="modern"] { --liquid-surface: var(--bg-surface); --liquid-fill: var(--bg-surface-raised); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
 html[data-design="modern"] { --liquid-surface: var(--bg-surface); --liquid-fill: var(--bg-surface-raised); }
}

html[data-design="modern"] #addDevice { justify-content: center; gap: 0; }
html[data-design="modern"] #addDevice .add-device-plus { display: none; }
