/* Aseman — "Sky" design system (v1.7).
   Light, calm SaaS surfaces; the one loud thing is that everything is alive: live sparklines on every
   server, numbers that count to their new value, a pulsing activity feed. Brand colours (--primary /
   --accent) are still injected at runtime from settings (white-label). */

@font-face { font-family: "Estedad"; src: url("/static/fonts/estedad-arabic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Estedad"; src: url("/static/fonts/estedad-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --primary: var(--brand-primary, #2F5BFF); --accent: var(--brand-accent, #0EA5A0); --radius: var(--brand-radius, 14px);
  --r-sm: 10px; --r-xs: 8px;
  --brand-solid: var(--brand-primary, #2F5BFF); /* gradients keep the real brand colour in both themes */
  --bg: #EEF1F6; --surface: #FFFFFF; --surface-2: #F7F9FC; --sunk: #E9EDF4;
  --line: #DCE1EA; --line-2: #C3CAD8; --line-soft: #E8ECF2;
  --text: #0E1324; --text-2: #4B5470; --text-3: #8B93AB;
  --ok: #0E9F6E; --warn: #E08A00; --err: #E5484D; --info: #2F6BFF;
  --live: var(--accent);
  --primary-soft: color-mix(in srgb, var(--primary) 8%, transparent);
  --primary-ink: color-mix(in srgb, var(--primary) 82%, black);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --focus: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
  --sh-1: 0 1px 2px rgba(16, 24, 48, .06), 0 1px 3px rgba(16, 24, 48, .04);
  --sh-2: 0 1px 2px rgba(16, 24, 48, .04), 0 10px 28px -14px rgba(16, 24, 48, .18);
  --elev: 0 24px 64px -24px rgba(16, 24, 48, .35), 0 2px 6px rgba(16, 24, 48, .06);
  --display: "Estedad", Tahoma, sans-serif;
  --figures: "Estedad", Tahoma, sans-serif;
  --body: "Estedad", Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* kept for components that still reference the old palette */
  --lajevard: var(--text); --firouzeh: var(--accent); --saffron: var(--warn); --anar: var(--err);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0E17; --surface: #121726; --surface-2: #161C2E; --sunk: #0F1320;
  --line: #222A40; --line-2: #2E3854; --line-soft: #1A2134;
  --text: #ECEFF7; --text-2: #A9B1C8; --text-3: #6F7891;
  --ok: #2BC48A; --warn: #F5A524; --err: #F2555A; --info: #6E95FF;
  --primary: color-mix(in srgb, var(--brand-primary, #2F5BFF) 62%, white);
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  --primary-ink: color-mix(in srgb, var(--primary) 80%, white);
  --sh-1: 0 1px 0 rgba(0, 0, 0, .3); --sh-2: 0 12px 30px -16px rgba(0, 0, 0, .7);
  --elev: 0 30px 80px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); font-size: 14.5px; line-height: 1.8; color: var(--text); background: var(--bg);
  font-variation-settings: "wght" 420; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
b, strong { font-weight: 650; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.45; font-weight: 700; letter-spacing: 0; }
h1 { font-size: 1.7rem; font-weight: 800; } h2 { font-size: 1.22rem; } h3 { font-size: 1.02rem; } h4 { font-size: .93rem; }
p { margin: 0 0 .8em; max-width: 72ch; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
div.ltr { display: block; text-align: right; }
td.ltr, th.ltr { display: table-cell; }
.mono { font-family: var(--mono); font-size: .86em; font-variant-ligatures: none; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); } .small { font-size: .86em; } .tiny { font-size: .77em; }
.ok-t { color: var(--ok); } .err-t { color: var(--err); } .warn-t { color: var(--warn); }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.gauto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.mt { margin-top: 18px; } .mt2 { margin-top: 30px; } .mb { margin-bottom: 18px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* =====================================================================
   Shell: quiet white sidebar, glass top bar
   ===================================================================== */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin;
  background: var(--surface); border-inline-start: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 14px; color: var(--text); }
.brand span { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.brand img { height: 30px; }
.brand-ver { margin-inline-start: auto; font-size: .7rem; color: var(--text-3); background: var(--sunk); border-radius: 999px; padding: 0 8px; line-height: 1.9; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.logo-mark svg { width: 34px; height: 34px; }
.nav { padding: 4px 12px 12px; flex-shrink: 0; }
.nav-sec { color: var(--text-3); font-size: .78rem; font-weight: 600; padding: 16px 12px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; margin-bottom: 1px; color: var(--text-2);
  text-decoration: none; border-radius: var(--r-sm); font-size: .93rem; font-weight: 520; transition: background .15s, color .15s; }
.nav a:hover { background: var(--sunk); color: var(--text); }
.nav a.on { background: var(--primary-soft); color: var(--primary-ink); font-weight: 650; }
.nav a.on::before { content: ""; position: absolute; inset-inline-start: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.nav a.on svg { opacity: 1; color: var(--primary); }
.nav .badge { margin-inline-start: auto; }
/* wallet card at the foot of the sidebar */
.fuel { flex-shrink: 0; margin: auto 14px 16px; padding: 16px; border-radius: var(--radius); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand-solid) 70%, #7AA2FF) 0%, var(--brand-solid) 55%, color-mix(in srgb, var(--brand-solid) 70%, black) 100%); }
.fuel .lbl { color: rgba(255,255,255,.75); font-size: .8rem; }
.fuel .amt { font-family: var(--figures); font-weight: 800; font-size: 1.35rem; line-height: 1.5; }
.fuel .amt small { font-family: var(--body); color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 500; }
.fuel .bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; margin: 10px 0 6px; }
.fuel .bar i { height: 5px; background: rgba(255,255,255,.22); border-radius: 2px; }
.fuel .bar i.on { background: #fff; }
.fuel .bar i.on.low { background: #FFC36B; }
.fuel .note { color: rgba(255,255,255,.78); font-size: .76rem; }
.fuel .btn { width: 100%; margin-top: 12px; background: rgba(255,255,255,.16); border-color: transparent; color: #fff; backdrop-filter: blur(4px); }
.fuel .btn:hover { background: rgba(255,255,255,.26); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.search-btn { display: flex; align-items: center; gap: 10px; height: 40px; background: var(--surface); border: 1px solid var(--line); color: var(--text-3);
  border-radius: var(--r-sm); padding: 0 12px; min-width: 340px; cursor: pointer; font: inherit; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.search-btn:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
kbd { font-family: var(--mono); font-size: .7rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--text-2); background: var(--surface-2); }
.who-chip { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: .85rem; color: var(--text-2); max-width: 220px; }
.who-chip .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 700; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent)); }
.who-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 30px 32px 80px; max-width: 1400px; width: 100%; margin-inline: auto; animation: enter .35s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.burger { display: none; }
.announce { background: var(--text); color: var(--bg); padding: 8px 32px; font-size: .88rem; }
.impersonate { background: var(--warn); color: #1B1300; padding: 6px 32px; font-weight: 650; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 0 0 auto; width: 280px; z-index: 50; transform: translateX(100%); transition: transform .25s var(--ease); }
  .side.open { transform: none; box-shadow: var(--elev); }
  .burger { display: inline-flex; }
  .search-btn { min-width: 0; flex: none; padding: 0 10px; }
  .topbar .lbl, .topbar .who-chip span { display: none; }
  .who-chip { padding: 3px; }
  .content { padding: 20px 14px 64px; }
  .topbar { padding: 0 12px; }
}

/* live activity button + popover in the top bar */
.act-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: var(--sh-1); }
.act-btn:hover { border-color: var(--line-2); }
.act-btn .ring { width: 18px; height: 18px; flex: none; }
.act-btn .ring circle { fill: none; stroke-width: 3; }
.act-btn .ring .bg { stroke: var(--line); } .act-btn .ring .fg { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.act-btn.busy .ring { animation: spin 2.4s linear infinite; }
.act-pop { position: absolute; top: 56px; inset-inline-end: 0; width: min(380px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--elev); padding: 8px; z-index: 30; animation: pop .18s var(--ease); }
.act-pop h4 { margin: 6px 10px 8px; font-size: .86rem; color: var(--text-3); font-weight: 600; }
.feed { display: flex; flex-direction: column; }
.feed-it { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); animation: feedin .4s var(--ease); }
.feed-it:hover { background: var(--surface-2); }
.feed-it .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--sunk); color: var(--text-2); }
.feed-it .ic svg { width: 15px; height: 15px; }
.feed-it.running .ic { background: var(--primary-soft); color: var(--primary); }
.feed-it.done .ic { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.feed-it.failed .ic { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.feed-it .t { font-size: .87rem; font-weight: 600; line-height: 1.5; }
.feed-it .m { font-size: .76rem; color: var(--text-3); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-it .pbar { height: 4px; border-radius: 4px; background: var(--sunk); overflow: hidden; margin-top: 5px; }
.feed-it .pbar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width .6s var(--ease); }
.feed-it.running .pbar i { background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); background-size: 60px 100%; background-color: var(--primary);
  animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: -60px 0; } to { background-position: 200px 0; } }
@keyframes feedin { from { opacity: 0; transform: translateY(-4px); } }

/* =====================================================================
   Surfaces
   ===================================================================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--sh-1); }
.card.flat { background: transparent; box-shadow: none; } .card.pad0 { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.card-h h3 { margin: 0; font-weight: 700; font-size: 1.02rem; }
.card.pad0 > .card-h { padding: 16px 22px 14px; margin-bottom: 0; }
a.card, .card.click { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
a.card:hover, .card.click:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); text-decoration: none; }
.panel-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* KPI strip: separate cards; the first one carries the brand colour */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.strip > div { position: relative; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: var(--sh-1);
  overflow: hidden; animation: rise .5s var(--ease) both; }
.strip > div:nth-child(2) { animation-delay: .05s; } .strip > div:nth-child(3) { animation-delay: .1s; } .strip > div:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.strip .k { color: var(--text-3); font-size: .84rem; font-weight: 520; }
.strip .v { font-family: var(--figures); font-weight: 800; font-size: clamp(1.2rem, 1.75vw, 1.75rem); line-height: 1.45; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .v small { font-family: var(--body); font-size: .76rem; font-weight: 500; color: var(--text-3); margin-inline-start: 5px; }
.strip .s { color: var(--text-3); font-size: .8rem; }
.strip > div:has(.spk) { padding-bottom: 50px; }
.strip .spk { position: absolute; inset-inline: 0; bottom: 0; height: 42px; opacity: .9; pointer-events: none; }
.strip .lead { color: #fff; border: 0;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--brand-solid) 65%, #8FB0FF) 0%, var(--brand-solid) 50%, color-mix(in srgb, var(--brand-solid) 75%, black) 100%); }
.strip .lead .k, .strip .lead .s, .strip .lead .v small { color: rgba(255,255,255,.78); } .strip .lead .v { color: #fff; }
.strip .lead a { color: #fff; }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr 1fr; gap: 10px; } .strip .v { font-size: 1.35rem; } }

.kpi { position: relative; overflow: hidden; padding: 18px 20px; }
.kpi .lbl { color: var(--text-3); font-size: .84rem; }
.kpi .val { font-family: var(--figures); font-weight: 800; font-size: 1.6rem; line-height: 1.5; }
.kpi .sub { color: var(--text-3); font-size: .8rem; }
.kpi .ico { position: absolute; inset-inline-end: 18px; top: 18px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi .ico svg { width: 18px; height: 18px; }
.hero { color: #fff; border: 0; position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--brand-solid) 65%, #8FB0FF) 0%, var(--brand-solid) 50%, color-mix(in srgb, var(--brand-solid) 75%, black) 100%); }
.hero .muted { color: rgba(255,255,255,.8); }

/* =====================================================================
   Server list (class names kept from the rack era)
   ===================================================================== */
.rack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); overflow: hidden; }
.unit { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1.5fr) minmax(0, .95fr) minmax(150px, 1fr) minmax(0, 1fr) minmax(0, .75fr) auto; align-items: center; gap: 16px;
  min-height: 68px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .15s; }
.unit:last-child { border-bottom: 0; }
.unit:hover { background: var(--surface-2); }
.unit:focus-visible { box-shadow: inset var(--focus); }
.unit .leds { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; display: inline-block; position: relative; }
.led.ok { background: var(--ok); }
.led.ok::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: halo 2.2s ease-out infinite; }
.led.warn { background: var(--warn); } .led.err { background: var(--err); } .led.info { background: var(--info); }
.led.busy { background: var(--info); animation: led 1s ease-in-out infinite; }
.led.act { display: none; }
@keyframes halo { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes led { 50% { opacity: .3; } }
.unit .name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.unit .name b { display: block; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit .name .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.unit .plate { display: inline-flex; border-radius: 6px; font-size: .76rem; background: var(--sunk); width: max-content; max-width: 100%; }
.unit .plate span { padding: 0 8px; white-space: nowrap; color: var(--text-2); font-weight: 600; }
.unit .cost { font-size: .86rem; white-space: nowrap; line-height: 1.5; }
.unit .spec { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.unit .spec .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.unit .ctl { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.unit:hover .ctl, .unit:focus-within .ctl { opacity: 1; }
.unit .live { display: flex; align-items: center; gap: 10px; min-width: 0; }
.unit .live .spark { flex: 1; min-width: 60px; max-width: 110px; }
.unit .live .pct { font-family: var(--figures); font-weight: 700; font-size: .9rem; direction: ltr; min-width: 44px; text-align: left; }
.unit .live .pct small { color: var(--text-3); font-weight: 500; font-size: .72rem; }
.rack.boot .unit { animation: rise .45s var(--ease) both; }
.rack.boot .unit:nth-child(2) { animation-delay: .04s; } .rack.boot .unit:nth-child(3) { animation-delay: .08s; } .rack.boot .unit:nth-child(4) { animation-delay: .12s; }
.rack.boot .unit:nth-child(5) { animation-delay: .16s; } .rack.boot .unit:nth-child(n+6) { animation-delay: .2s; }
.rack .blank { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; color: var(--text-3); font-size: .86rem; text-decoration: none;
  border-top: 1px dashed var(--line-2); transition: color .15s, background .15s; }
.rack .blank:hover { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.rack-empty { padding: 48px 16px; text-align: center; color: var(--text-2); }
.rack-empty h3 { color: var(--text); font-size: 1.15rem; }
@media (max-width: 1250px) { .unit { grid-template-columns: 14px minmax(0, 1.5fr) minmax(0, 1fr) minmax(140px, 1fr) minmax(0, .8fr) auto; } .unit .spec { display: none; } }
@media (max-width: 900px) {
  .unit { grid-template-columns: 14px minmax(0, 1fr) auto; padding: 10px 14px; }
  .unit .hide-m { display: none; }
  .unit .ctl { opacity: 1; }
}

/* =====================================================================
   Controls
   ===================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  box-shadow: var(--sh-1); transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s; }
.btn:hover { border-color: var(--text-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 1px 2px rgba(16,24,48,.1), 0 6px 16px -6px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn.primary:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
:root[data-theme="dark"] .btn.primary { color: #0B0E17; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--sunk); }
.btn.sm { height: 34px; padding: 0 12px; font-size: .86rem; border-radius: var(--r-xs); }
.btn.xs { height: 26px; padding: 0 8px; font-size: .8rem; border-radius: 6px; }
.btn.icon { width: 40px; padding: 0; } .btn.sm.icon { width: 34px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .spin { width: 15px; height: 15px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-weight: 600; font-size: .86rem; color: var(--text-2); }
.field .hint { font-size: .78rem; color: var(--text-3); }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(16, 24, 48, .05);
  color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
select.input { appearance: none; padding-inline-end: 34px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B93AB' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 10px center / 16px; }
.input:disabled { background: var(--sunk); color: var(--text-3); cursor: not-allowed; }
.input::placeholder { color: var(--text-3); opacity: .8; }
textarea.input { height: auto; padding: 10px 13px; min-height: 96px; resize: vertical; line-height: 1.7; }
.input:hover { border-color: var(--text-3); }
.input:focus { border-color: var(--primary); box-shadow: var(--focus); }
.input.ltr-in { direction: ltr; text-align: left; font-family: var(--mono); font-size: .86rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .2s var(--ease); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { inset-inline-start: 19px; }
.switch input:focus-visible + i { box-shadow: var(--focus); }
.seg { display: inline-flex; flex-wrap: wrap; border-radius: var(--r-sm); padding: 3px; gap: 2px; background: var(--sunk); }
.seg button { white-space: nowrap; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .88rem; padding: 5px 14px; border-radius: var(--r-xs); color: var(--text-2); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16,24,48,.12); }

/* option tiles */
.opt { position: relative; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; background: var(--surface); cursor: pointer; text-align: start;
  font: inherit; color: inherit; width: 100%; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; box-shadow: var(--sh-1); }
.opt:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--sh-2); }
.opt.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.opt.on::after { content: ""; position: absolute; top: 12px; inset-inline-end: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.opt:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.opt .t { font-weight: 700; }
.os-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--mono); font-weight: 700; font-size: .82rem; flex: none; }
.price { font-family: var(--figures); font-size: 1.2rem; font-weight: 800; }
.price small { font-family: var(--body); font-weight: 400; color: var(--text-3); font-size: .74rem; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; font-size: .84rem; color: var(--text-2); margin: 8px 0; }
.specs b { color: var(--text); font-weight: 650; }
.ribbon { position: absolute; top: 10px; inset-inline-start: 12px; background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: color-mix(in srgb, var(--warn) 80%, black);
  font-size: .7rem; font-weight: 700; padding: 0 8px; border-radius: 999px; }
.step-h { display: flex; align-items: center; gap: 12px; margin: 32px 0 14px; }
.step-h .n { width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--figures); font-weight: 800; font-size: .95rem; color: var(--primary);
  background: var(--primary-soft); border-radius: 50%; }
.step-h h3 { margin: 0; font-size: 1.08rem; }
.sticky-sum { position: sticky; top: 88px; }
.summary { border-top: 3px solid var(--primary); }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.app-tile { display: flex; flex-direction: column; gap: 6px; text-align: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; font: inherit; color: inherit; position: relative; box-shadow: var(--sh-1); transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.app-tile:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-2); }
.app-tile.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.app-logo { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; font-weight: 700; }
.app-tile .t { font-weight: 700; }
.app-tile .d { color: var(--text-2); font-size: .82rem; line-height: 1.7; }
.app-tile .m { color: var(--text-3); font-size: .76rem; margin-top: auto; }

/* =====================================================================
   Tables
   ===================================================================== */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: start; color: var(--text-3); font-weight: 600; font-size: .79rem; padding: 11px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: end; }
.empty { text-align: center; padding: 52px 20px; color: var(--text-3); }
.empty svg { width: 44px; height: 44px; opacity: .4; margin-bottom: 8px; }
.matrix td.cell { text-align: center; padding: 8px; }
.matrix .chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; padding: 1px 9px; border-radius: 999px; background: var(--sunk); white-space: nowrap; }

/* =====================================================================
   Pills / tags
   ===================================================================== */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; height: 25px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--text-2); background: var(--sunk); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); position: relative; }
.pill.ok { color: color-mix(in srgb, var(--ok) 85%, var(--text)); background: color-mix(in srgb, var(--ok) 11%, transparent); } .pill.ok i { background: var(--ok); }
.pill.ok i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: halo 2.2s ease-out infinite; }
.pill.warn { color: color-mix(in srgb, var(--warn) 85%, var(--text)); background: color-mix(in srgb, var(--warn) 13%, transparent); } .pill.warn i { background: var(--warn); }
.pill.err { color: var(--err); background: color-mix(in srgb, var(--err) 10%, transparent); } .pill.err i { background: var(--err); }
.pill.info { color: var(--info); background: color-mix(in srgb, var(--info) 10%, transparent); } .pill.info i { background: var(--info); }
.pill.busy i { animation: led 1s ease-in-out infinite; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--err); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface); }
.tag { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--sunk); color: var(--text-2); font-size: .77rem; line-height: 1.8; font-weight: 520; }
.copy { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 6px; padding: 0 5px; transition: background .12s; }
.copy:hover { background: var(--primary-soft); }
.copy svg { width: 13px; height: 13px; opacity: .55; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text-3); padding: 10px 14px; cursor: pointer; white-space: nowrap; border-radius: 8px 8px 0 0; transition: color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--primary); }
.tabs button.on::after { content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); animation: grow .25s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }

/* =====================================================================
   Overlays
   ===================================================================== */
.overlay { position: fixed; inset: 0; background: rgba(14, 19, 36, .42); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .18s; }
.modal { background: var(--surface); border-radius: 18px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--elev); border: 1px solid var(--line); animation: pop .22s var(--ease); }
.modal.wide { width: min(900px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-h h3 { margin: 0; font-weight: 700; font-size: 1.1rem; }
.modal-b { padding: 22px 24px; } .modal-f { padding: 14px 24px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }
.drawer { position: fixed; top: 10px; bottom: 10px; inset-inline-start: 10px; width: min(520px, calc(100% - 20px)); background: var(--surface); z-index: 101; box-shadow: var(--elev);
  display: flex; flex-direction: column; animation: slide .25s var(--ease); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.drawer .modal-b { overflow-y: auto; flex: 1; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } } @keyframes slide { from { transform: translateX(-28px); opacity: 0; } }
.toasts { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--elev);
  min-width: 260px; max-width: 440px; animation: toast .3s var(--ease); font-weight: 520; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--info); flex: none; }
.toast.ok::before { background: var(--ok); } .toast.err::before { background: var(--err); } .toast.warn::before { background: var(--warn); }
@keyframes toast { from { transform: translateY(14px); opacity: 0; } }
.palette { width: min(640px, 100%); align-self: start; margin-top: 12vh; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 58px; font-size: 1.05rem; padding: 0 22px; box-shadow: none !important; }
.palette .items { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette .it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.palette .it.on, .palette .it:hover { background: var(--primary-soft); color: var(--primary-ink); }
.palette .it svg { width: 17px; height: 17px; color: var(--text-3); }

/* =====================================================================
   Misc widgets
   ===================================================================== */
.alert { padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; background: var(--surface); }
.alert:has(> svg), .alert:has(> .spin), .alert:has(> .grow) { display: flex; gap: 10px; align-items: flex-start; }
.alert > svg { width: 19px; height: 19px; flex: none; margin-top: 4px; }
.alert.info { border-color: color-mix(in srgb, var(--info) 22%, var(--line)); background: color-mix(in srgb, var(--info) 6%, var(--surface)); }
.alert.warn { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.alert.err { border-color: color-mix(in srgb, var(--err) 28%, var(--line)); background: color-mix(in srgb, var(--err) 6%, var(--surface)); }
.alert.ok { border-color: color-mix(in srgb, var(--ok) 28%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.meter { height: 7px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .7s var(--ease); }
.meter i.warn { background: var(--warn); } .meter i.err { background: var(--err); }
.code { background: #0E1324; color: #D6DEFF; font-family: var(--mono); font-size: .8rem; border-radius: var(--r-sm); padding: 14px 16px; direction: ltr; text-align: left;
  overflow: auto; white-space: pre; max-height: 460px; margin: 0; line-height: 1.65; }
.code.wrap { white-space: pre-wrap; word-break: break-all; }
.chart { width: 100%; height: 170px; display: block; }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 2 4; }
.chart text { fill: var(--text-3); font-size: 10px; font-family: var(--body); }
.chart rect { transition: opacity .15s; }
.cost-live { font-family: var(--figures, var(--body)); font-size: 1.85rem; font-weight: 700; color: var(--text); }
.dot-sep { display: inline-flex; align-items: center; }
.dot-sep::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); margin: 0 10px; }
.console-wrap { background: #000; border-radius: var(--radius); overflow: hidden; min-height: 480px; display: grid; place-items: center; box-shadow: var(--sh-2); }
.console-wrap > div { width: 100%; height: 100%; }
.srv-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.srv-ico svg { width: 22px; height: 22px; }
.srv-ico .led { position: absolute; bottom: -2px; inset-inline-start: -2px; border: 2px solid var(--bg); width: 13px; height: 13px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.skel { background: linear-gradient(90deg, var(--sunk), var(--surface-2), var(--sunk)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; min-height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }

.hbars { display: flex; flex-direction: column; gap: 11px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; gap: 12px; align-items: center; font-size: .86rem; }
.hbar .track { height: 10px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--primary); border-radius: 99px; animation: barin .8s var(--ease) both; transform-origin: right; }
.hbar:nth-child(4n+2) .track i { background: var(--accent); } .hbar:nth-child(4n+3) .track i { background: #8B5CF6; } .hbar:nth-child(4n) .track i { background: var(--warn); }
@keyframes barin { from { transform: scaleX(0); } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }

.captcha { display: flex; gap: 10px; align-items: flex-end; }
.captcha img { height: 46px; border-radius: 8px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.captcha .q { font-family: var(--mono); font-size: 1.1rem; padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: 8px; direction: ltr; }

/* =====================================================================
   Auth: live sky panel + form
   ===================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(90% 80% at 20% 10%, color-mix(in srgb, var(--brand-solid) 55%, #9DB8FF) 0%, var(--brand-solid) 45%, color-mix(in srgb, var(--brand-solid) 55%, #0B1030) 100%); }
.auth-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-end: -160px; bottom: -200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%); filter: blur(10px); animation: drift 14s ease-in-out infinite alternate; }
.auth-art::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; inset-inline-start: -120px; top: -140px;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.08); } }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .wordmark { font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1.2; margin: 0; color: #fff; font-weight: 900; }
.auth-art .tagline { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 30ch; margin-top: 12px; }
.auth-art ul { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; max-width: 460px; }
.auth-art li { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); color: rgba(255,255,255,.92); }
.auth-art li b { font-weight: 800; color: #fff; min-width: 74px; }
.auth-art .foot { color: rgba(255,255,255,.65); font-size: .82rem; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-form form { width: min(400px, 100%); animation: enter .4s var(--ease); }
.auth-form h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.auth-form .lead { color: var(--text-2); margin-bottom: 26px; }
.auth-form .btn.primary { height: 46px; font-size: 1rem; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { padding: 28px 24px; min-height: auto; } .auth-art ul, .auth-art .foot { display: none; }
  .auth-art .wordmark { font-size: 2.8rem; } }

.invoice { background: #fff; color: #111; padding: 32px; border-radius: var(--radius); }
.invoice table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.invoice td, .invoice th { border: 1px solid #ddd; padding: 8px; }
@media print { .side, .topbar, .no-print, .toasts, .announce { display: none !important; } .shell { display: block; } .content { padding: 0; animation: none; } body { background: #fff; } }
.testpay { display: block; }

@media (max-width: 900px) {
  .grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .sticky-sum { position: static; }
  .page-head > .row { width: 100%; }
}

/* ---------- time-series charts ---------- */
.tchart { position: relative; width: 100%; direction: ltr; }
.tchart-svg { display: block; touch-action: pan-y; cursor: crosshair; }
.tchart-grid { stroke: var(--line-soft); }
.tchart-tick { stroke: var(--line-2); }
.tchart-y, .tchart-x { fill: var(--text-3); font-size: 11px; font-family: var(--figures); }
.tchart-ref { stroke: var(--warn); stroke-dasharray: 4 4; opacity: .7; }
.tchart-reft { fill: var(--warn); font-size: 10.5px; font-family: var(--body); direction: rtl; unicode-bidi: plaintext; }
.tchart-cross { stroke: var(--text-3); stroke-dasharray: 3 3; }
.tchart-empty { display: grid; place-items: center; color: var(--text-3); font-size: 13px; direction: rtl; border: 1px dashed var(--line); border-radius: var(--radius); }
.tchart-legend { direction: rtl; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.tchart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.tchart-legend i, .tchart-tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-left: 6px; vertical-align: middle; }
.tchart-legend b { font-weight: 500; }
.tchart-val { font-family: var(--figures); font-weight: 700; color: var(--text); direction: ltr; unicode-bidi: isolate; }
.tchart-tip { position: absolute; top: 30px; z-index: 5; direction: rtl; pointer-events: none; min-width: 170px; padding: 9px 12px; font-size: 12.5px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.tchart-tip-t { color: var(--text-3); font-size: 11.5px; margin-bottom: 4px; font-family: var(--figures); }
.tchart-tip b { font-family: var(--figures); }
.tchart-now .pulse { transform-box: fill-box; transform-origin: center; animation: tpulse 1.8s ease-out infinite; }
@keyframes tpulse { 0% { opacity: .55; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
.spark path.line { transition: d .6s var(--ease); }

.mtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mtile { padding: 16px 18px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: var(--sh-1); }
.mtile .k { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mtile .v { font-family: var(--figures); font-size: 1.5rem; font-weight: 800; line-height: 1.5; color: var(--text); direction: ltr; text-align: right; white-space: nowrap; }
.mtile .v small { font-size: .75rem; font-weight: 500; color: var(--text-3); margin-inline-start: 4px; }
.mtile .s { font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.mtile .s b { font-family: var(--figures); color: var(--text-2); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--live); font-weight: 650; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: ldot 1.6s infinite; }
.live-dot.off { color: var(--text-3); } .live-dot.off::before { background: var(--text-3); animation: none; }
@keyframes ldot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@media (max-width: 900px) { .mtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* dashboard */
.dash { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--text); font-size: .86rem; font-weight: 600;
  transition: border-color .15s, background .15s, transform .15s; }
.quick a:hover { border-color: var(--primary); background: var(--primary-soft); text-decoration: none; transform: translateY(-1px); }
.quick a svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* bar chart */
.bars { display: flex; align-items: flex-end; justify-content: flex-end; gap: 5px; }
.bar { position: relative; flex: 1; max-width: 34px; height: var(--h); background: var(--c); border-radius: 6px 6px 2px 2px; opacity: .85;
  transform-origin: bottom; animation: barup .7s var(--ease) both; transition: opacity .15s; }
.bar:hover { opacity: 1; }
.bar .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .74rem; padding: 3px 8px; border-radius: 6px;
  background: var(--text); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.bar:hover .tip { opacity: 1; }
@keyframes barup { from { transform: scaleY(0); } }
.rack .blank svg { width: 16px; height: 16px; }

/* settings forms, Virtualizor-style: titled panels with label | control rows */
.form-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); overflow: hidden; }
.form-sec > h3 { margin: 0; padding: 14px 22px; font-size: .98rem; font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; }
.form-sec > h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }
.frow { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: 28px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.frow:last-child { border-bottom: 0; }
.frow:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.frow .fl label { font-weight: 650; font-size: .92rem; color: var(--text); }
.frow .fl .hint { font-size: .79rem; color: var(--text-3); line-height: 1.7; margin-top: 2px; }
.frow .fc { max-width: 560px; min-width: 0; }
.swatch { width: 44px; height: 42px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
@media (max-width: 800px) { .frow { grid-template-columns: 1fr; gap: 8px; } }
/* sticky save bar */
.savebar { position: sticky; bottom: 16px; z-index: 15; margin-top: 22px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-2); }
.savebar > span { flex: 1; font-size: .88rem; color: var(--text-3); }
.savebar.on { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.savebar.on > span { color: var(--primary-ink); font-weight: 600; }

/* password field: input + show/copy/generate, strength meter */
.pwf { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 1px 2px rgba(16,24,48,.05);
  transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.pwf:focus-within { border-color: var(--primary); box-shadow: var(--focus); }
.pwf .input { border: 0; box-shadow: none !important; flex: 1; min-width: 0; border-radius: 0; background: transparent; }
.pwf output.input { display: flex; align-items: center; font-size: .95rem; letter-spacing: .02em; user-select: all; color: var(--text); }
.pwf-b { display: inline-flex; align-items: center; gap: 6px; border: 0; border-inline-start: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  padding: 0 12px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.pwf-b:hover { background: var(--sunk); color: var(--text); }
.pwf-b svg { width: 16px; height: 16px; }
.pwf-b.gen { color: var(--primary); }
.pwf-b.gen:hover { background: var(--primary-soft); }
.pwf-b.gen:active svg { transform: rotate(180deg); transition: transform .3s var(--ease); }
.pwm { margin-top: 8px; font-size: .82rem; }
.pwm .bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 4px; }
.pwm .bars i { height: 5px; border-radius: 3px; background: var(--sunk); transition: background .3s var(--ease); }
.pwm.s0 .bars i.on { background: var(--err); } .pwm.s0 b { color: var(--err); }
.pwm.s1 .bars i.on { background: #F97316; } .pwm.s1 b { color: #F97316; }
.pwm.s2 .bars i.on { background: var(--warn); } .pwm.s2 b { color: var(--warn); }
.pwm.s3 .bars i.on { background: var(--ok); } .pwm.s3 b { color: var(--ok); }
.pwm.s4 .bars i.on { background: var(--ok); } .pwm.s4 b { color: var(--ok); }
.pwm .row { gap: 10px; justify-content: flex-start; }
.pwm b { white-space: nowrap; }

/* =====================================================================
   v1.8 — payments: gateway picker, receipts, crypto checkout, Jalali date
   ===================================================================== */
.paylist { display: grid; gap: 10px; margin-top: 14px; }
.pay-grp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pay-gl { width: 100%; display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--text-3); font-weight: 600; }
.pay-gl svg { width: 15px; height: 15px; }
.pay-opt { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: .84rem; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: border .15s; }
.pay-opt:hover { border-color: var(--line-2); }
.pay-opt.on { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.pay-opt.on i { border: 4.5px solid var(--primary); }
.pay-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.jdate { display: grid; grid-template-columns: .8fr 1.3fr 1fr; gap: 6px; }
.accts { display: grid; gap: 6px; margin-bottom: 12px; }
.acct { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: .86rem; }
.acct span { flex: 1; } .acct.on { border-color: var(--primary); background: var(--primary-soft); }
.drop { display: flex; align-items: center; gap: 10px; padding: 16px; margin-top: 12px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm);
  color: var(--text-2); cursor: pointer; font-size: .85rem; }
.drop:hover { border-color: var(--primary); color: var(--text); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.crypto-pay { max-width: 620px; display: grid; gap: 16px; }
.cp-st { display: flex; align-items: center; justify-content: space-between; }
.cp-amt { text-align: center; padding: 18px; border-radius: var(--radius); background: var(--sunk); display: grid; gap: 8px; justify-items: center; }
.cp-amt .big { font: 800 2.1rem/1 var(--figures, var(--body)); letter-spacing: .01em; }
.cp-amt .big small { font-size: .9rem; color: var(--text-3); }
.cp-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
@media (max-width: 560px) { .cp-row { grid-template-columns: 1fr; gap: 4px; } }
.gw-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gw-card > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; }
.gw-card > summary::-webkit-details-marker { display: none; }
.gw-card > summary b { flex: 1; font-weight: 600; }
.gw-card[open] > summary { border-bottom: 1px solid var(--line-soft); }
.gw-body { padding: 4px 16px 12px; }
.gw-body .frow { padding: 10px 0; }
.gw-grp-t { margin: 8px 0 2px; font-size: .82rem; color: var(--text-3); font-weight: 600; }

/* ---- v1.8 usage: rings, meters, traffic bars, add-ons ---- */
.card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.usage { display: flex; align-items: center; gap: 22px; }
@media (max-width: 480px) { .usage { flex-direction: column; align-items: stretch; } .usage .ring { align-self: center; } }
.usage-t { flex: 1; display: grid; gap: 8px; min-width: 0; }
.u-row { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.u-row span { color: var(--text-2); } .u-row b { margin-inline-start: auto; font-weight: 700; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--line-2); flex: none; vertical-align: middle; }
.dot.used { background: var(--brand-solid, var(--primary)); } .dot.free { background: color-mix(in srgb, var(--ok) 55%, var(--surface)); }
.dot.in { background: var(--primary); } .dot.out { background: var(--accent); }
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; }
.ring-bg { stroke: var(--sunk); }
.ring-fg { stroke: var(--ok); animation: ringIn 1.1s var(--ease, cubic-bezier(.2,.8,.2,1)) both; transition: stroke-dashoffset .6s var(--ease, ease); }
.ring.warn .ring-fg { stroke: var(--warn); } .ring.err .ring-fg { stroke: var(--err); }
@keyframes ringIn { from { stroke-dashoffset: var(--c, 1000); } }
.ring-c { position: relative; text-align: center; display: grid; line-height: 1.15; }
.ring-c b { font-size: 1.55rem; font-weight: 800; } .ring-c span { font-size: .74rem; color: var(--text-3); }
.meter-line { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; margin-top: 6px; }
.meter-line i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .6s var(--ease, ease); }
.meter-line.warn i { background: var(--warn); } .meter-line.err i { background: var(--err); }
.fs-list { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.tbars { display: flex; align-items: flex-end; gap: 3px; height: 200px; padding-top: 6px; direction: ltr; }
.tb { flex: 1; min-width: 3px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; }
.tb-s { display: flex; flex-direction: column; border-radius: 4px 4px 1px 1px; overflow: hidden; min-height: 2px; background: var(--sunk); transform-origin: bottom; animation: barUp .7s var(--ease, ease) both; }
.tb-s i { display: block; min-height: 0; } .tb-s .i { background: var(--primary); } .tb-s .o { background: var(--accent); }
.tb:hover .tb-s { filter: brightness(1.08); box-shadow: 0 0 0 2px var(--focus); }
.tb span { font-size: .62rem; color: var(--text-3); text-align: center; height: 12px; }
@keyframes barUp { from { transform: scaleY(0); } }
.range-pick .field { margin: 0; } .range-pick .field label { font-size: .72rem; }
.addons { display: grid; gap: 12px; }
.addon { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 12px; }
.addon-h { display: flex; align-items: center; gap: 12px; }
.addon-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.addon-ic svg { width: 20px; height: 20px; }
.addon-v { margin-inline-start: auto; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.addon-v b { font-size: 1.35rem; font-weight: 800; }
.addon-ctl { display: flex; align-items: center; gap: 10px; direction: ltr; }
.addon-ctl input[type=range] { flex: 1; accent-color: var(--primary); }
.addon-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px; border-radius: var(--r-sm); background: var(--sunk); }
.addon-sum .big { font-size: 1.4rem; font-weight: 800; } .addon-sum .big small { font-size: .8rem; font-weight: 500; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .ring-fg, .tb-s { animation: none; } }

/* =====================================================================
   v1.8 storefront (public home + in-panel store)
   ===================================================================== */
.sf { --sf-w: 1160px; color: var(--text); }
.sf:not(.in-panel) { min-height: 100vh; background:
  radial-gradient(1200px 520px at 85% -120px, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
  radial-gradient(900px 420px at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--bg); }
.sf-top, .sf-hero, .sf:not(.in-panel) .sf-sec, .sf-foot { max-width: var(--sf-w); margin-inline: auto; padding-inline: 24px; }
.sf-top { display: flex; align-items: center; gap: 28px; height: 72px; }
.sf-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 1.1rem; }
.sf-brand svg { width: 34px; height: 34px; }
.sf-top nav { display: flex; gap: 22px; } .sf-top nav a { color: var(--text-2); text-decoration: none; font-size: .92rem; }
.sf-top nav a:hover { color: var(--text); }
.sf-auth { margin-inline-start: auto; display: flex; gap: 8px; }
@media (max-width: 720px) { .sf-top nav { display: none; } }
.sf-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 56px 72px; }
@media (max-width: 900px) { .sf-hero { grid-template-columns: 1fr; padding-block: 28px 40px; } }
.sf-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.05rem); line-height: 1.32; font-weight: 800; letter-spacing: -.01em; margin: 0 0 18px; max-width: 16ch; }
.sf-hero p { font-size: 1.08rem; line-height: 2; color: var(--text-2); max-width: 46ch; margin: 0 0 26px; }
.sf-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; max-width: 560px; }
.sf-points li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-2); }
.sf-points svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
@media (max-width: 520px) { .sf-points { grid-template-columns: 1fr; } }
.sf-pick { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 24px; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--primary) 45%, transparent), var(--sh-2);
  display: grid; gap: 18px; }
.sf-pick.sk { min-height: 380px; background: linear-gradient(90deg, var(--surface), var(--sunk), var(--surface)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.sf-pick-h { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-3); }
.sf-live { display: inline-flex; align-items: center; gap: 7px; }
.sf-pick-r { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-pick-r button { font: inherit; font-size: .85rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; }
.sf-pick-r button.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.sf-pick-p { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.sf-pick-p > div { background: var(--surface-2, var(--sunk)); padding: 16px; display: grid; gap: 2px; }
.sf-pick-p b { font-size: 1.75rem; font-weight: 800; }
.sf-pick-p span { font-size: .78rem; color: var(--text-3); }
.sf-pick-s { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .88rem; color: var(--text-2); }
.sf-pick-s b { color: var(--text); }
.sf-pick .btn.lg { height: 48px; font-size: 1rem; justify-content: center; }
.sf-pick small { color: var(--text-3); text-align: center; font-size: .76rem; }
.sf-sec { padding-block: 40px; }
.sf.in-panel .sf-sec { padding-block: 8px 28px; }
.sf-sec-h { margin-bottom: 22px; } .sf-sec-h h2 { font-size: 1.5rem; margin: 0 0 6px; } .sf-sec-h p { margin: 0; color: var(--text-2); }
.sf-ctl { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 20px; }
.sf-kinds button { display: inline-flex; align-items: center; gap: 7px; } .sf-kinds svg { width: 16px; height: 16px; }
.sf-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sf-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, box-shadow .15s; }
.sf-plan:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.sf-plan.hot { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.sf-plan header { display: flex; align-items: center; justify-content: space-between; } .sf-plan h3 { margin: 0; font-size: 1.05rem; }
.sf-tag { font-size: .72rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px; }
.sf-price { display: flex; align-items: baseline; gap: 6px; } .sf-price b { font-size: 1.85rem; font-weight: 800; }
.sf-price span { color: var(--text-3); font-size: .82rem; }
.sf-alt { font-size: .78rem; color: var(--text-3); margin-top: -8px; }
.sf-specs { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line-soft); display: grid; gap: 9px; flex: 1; }
.sf-specs li { display: flex; justify-content: space-between; font-size: .88rem; } .sf-specs span { color: var(--text-3); }
.sf-plan .btn { justify-content: center; }
.sf-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sf-tr { display: grid; grid-template-columns: 1.5fr 1.3fr .7fr 1.1fr 1.1fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line-soft); font-size: .88rem; }
.sf-tr.head { border-top: 0; background: var(--sunk); font-size: .76rem; color: var(--text-3); font-weight: 600; }
.sf-tr small { display: block; color: var(--text-3); font-size: .74rem; margin-top: 2px; }
.sf-tr.out { opacity: .55; } .sf-tp b { font-size: 1.05rem; }
@media (max-width: 900px) { .sf-tr { grid-template-columns: 1fr 1fr; } .sf-tr.head { display: none; } .sf-tr > span:first-child { grid-column: 1 / -1; } }
.sf-empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); text-align: center; }
.sf-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sf-loc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.sf-loc div { flex: 1; display: grid; } .sf-loc small { color: var(--text-3); font-size: .78rem; } .sf-loc > span { font-size: .76rem; color: var(--text-3); }
.sf-loc.off { opacity: .7; }
.sf-faq { display: grid; gap: 10px; max-width: 820px; }
.sf-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 18px; }
.sf-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::after { content: "+"; float: left; color: var(--text-3); font-weight: 400; }
.sf-faq details[open] summary::after { content: "−"; }
.sf-faq p { margin: 0 0 16px; color: var(--text-2); line-height: 1.9; }
.sf-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 34px 44px; margin-top: 30px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--text-2); }
.sf-foot > div { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.delivery pre { background: var(--sunk); padding: 12px; border-radius: var(--r-sm); white-space: pre-wrap; margin: 0 0 8px; font-size: .85rem; }
.drop svg { width: 22px; height: 22px; flex: none; color: var(--primary); }
.jdate { grid-template-columns: 1fr 1.5fr 1.4fr; }
.jdate select { min-width: 0; padding-inline-end: 8px; }
.addon-ctl input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(to right, var(--primary) var(--p, 0%), var(--sunk) var(--p, 0%)); }
.addon-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); box-shadow: var(--sh-1); }
.addon-ctl input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.addon-ctl input[type=range]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.col.metrics { gap: 20px; }
.range-card .range-pick { align-items: flex-end; gap: 16px; }
.range-card .range-pick .small { flex: 1; min-width: 200px; padding-bottom: 8px; }
.usage-row { margin-top: 20px; }
/* v1.8.1 app install progress */
.app-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
.app-prog { display: grid; gap: 8px; }
.app-log { margin: 0; max-height: 380px; overflow: auto; background: #0F1626; color: #D7E0F0; padding: 14px; border-radius: var(--r-sm);
  font: .76rem/1.7 var(--mono), var(--body); white-space: pre-wrap; word-break: break-word; unicode-bidi: plaintext; text-align: start; }
.cost-live small { font-size: .85rem; font-weight: 500; color: var(--text-3); }

/* OS picker: versions of the chosen OS */
.opt.open { border-color: var(--primary); }
.os-vers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2, var(--surface)); }
.os-vers > span { margin-inline-end: 4px; }
.os-ver { border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .9rem; direction: ltr; unicode-bidi: plaintext; }
.os-ver:hover { border-color: var(--line-2); }
.os-ver.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.os-ver:focus-visible, .opt:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* app list: fast-install state per node */
.fast-cell { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.fast-nodes { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fast-nodes .pill { cursor: pointer; border: 0; font: inherit; font-size: .78rem; }
.badge-fast { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--ok, #12805c); background: color-mix(in srgb, var(--ok, #12805c) 12%, transparent); padding: 2px 8px; border-radius: 999px; }
.app-tile .badge-fast { margin-inline-start: auto; align-self: flex-start; white-space: nowrap; }
