/* ==========================================================================
   Cloud reseller panel — design system
   Brand colours come from the admin's white-label settings (--brand).
   ========================================================================== */

:root {
  --brand: #4F46E5;
  --on-brand: #ffffff;
  --accent: #06B6D4;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, transparent);
  --brand-softer: color-mix(in srgb, var(--brand) 6%, transparent);
  --brand-strong: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-ring: color-mix(in srgb, var(--brand) 35%, transparent);

  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #F9FAFC;
  --surface-3: #F1F3F8;
  --border: #E5E8EF;
  --border-strong: #D5DAE4;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --faint: #94A3B8;

  --success: #059669; --success-soft: #ECFDF5;
  --warning: #D97706; --warning-soft: #FFFBEB;
  --danger: #DC2626;  --danger-soft: #FEF2F2;
  --info: #2563EB;    --info-soft: #EFF6FF;
  --neutral: #64748B; --neutral-soft: #F1F5F9;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px -8px rgba(15, 23, 42, .18), 0 4px 10px -4px rgba(15, 23, 42, .08);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sidebar-w: 256px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F17; --surface: #121826; --surface-2: #161D2D; --surface-3: #1B2336;
    --border: #232C40; --border-strong: #2E3950; --text: #E8ECF4; --text-2: #C3CBDA; --muted: #8C97AD; --faint: #64708A;
    --success-soft: rgba(5,150,105,.14); --warning-soft: rgba(217,119,6,.14); --danger-soft: rgba(220,38,38,.14);
    --info-soft: rgba(37,99,235,.15); --neutral-soft: rgba(100,116,139,.16);
    --success: #34D399; --warning: #FBBF24; --danger: #F87171; --info: #60A5FA; --neutral: #94A3B8;
    --brand-soft: color-mix(in srgb, var(--brand) 20%, transparent);
    --brand-softer: color-mix(in srgb, var(--brand) 12%, transparent);
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 16px 40px -10px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F17; --surface: #121826; --surface-2: #161D2D; --surface-3: #1B2336;
  --border: #232C40; --border-strong: #2E3950; --text: #E8ECF4; --text-2: #C3CBDA; --muted: #8C97AD; --faint: #64708A;
  --success-soft: rgba(5,150,105,.14); --warning-soft: rgba(217,119,6,.14); --danger-soft: rgba(220,38,38,.14);
  --info-soft: rgba(37,99,235,.15); --neutral-soft: rgba(100,116,139,.16);
  --success: #34D399; --warning: #FBBF24; --danger: #F87171; --info: #60A5FA; --neutral: #94A3B8;
  --brand-soft: color-mix(in srgb, var(--brand) 20%, transparent);
  --brand-softer: color-mix(in srgb, var(--brand) 12%, transparent);
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 16px 40px -10px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background-color: var(--bg); background-image: var(--bg-image, none); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--text); font-family: var(--font-head, var(--font)); font-weight: var(--head-weight, 650); letter-spacing: var(--head-tracking, -0.01em); }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 14px; }
p { margin: 0 0 .75em; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 4px; }
pre { background: var(--surface-3); padding: 12px 14px; border-radius: var(--radius-sm); overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
::selection { background: var(--brand-ring); }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar-bg, var(--surface)); border-right: 1px solid var(--sidebar-border, var(--border)); color: var(--sidebar-text, var(--text-2)); z-index: 40; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; min-height: 64px; }
.sidebar-brand a { display: flex; align-items: center; gap: 10px; color: var(--sidebar-brand, var(--text)); font-family: var(--font-head, var(--font)); font-weight: 700; font-size: 16px; text-decoration: none; min-width: 0; }
.sidebar-brand img { max-height: 34px; max-width: 180px; object-fit: contain; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light.has-dark { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light.has-dark { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
/* Themes with a dark sidebar show the dark-background logo there in light mode too. */
:root[data-sidebar="dark"] .sidebar .logo-light.has-dark { display: none; }
:root[data-sidebar="dark"] .sidebar .logo-dark { display: block; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.nav-section { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--sidebar-muted, var(--faint)); padding: 16px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--nav-radius, 8px); color: var(--sidebar-text, var(--text-2)); font-weight: 520; margin-bottom: 1px; text-decoration: none !important; }
.nav-item .icon { color: var(--sidebar-icon, var(--muted)); }
.nav-item:hover { background: var(--sidebar-hover, var(--surface-3)); color: var(--sidebar-hover-text, var(--text)); }
.nav-item.active { background: var(--sidebar-active-bg, var(--brand-soft)); color: var(--sidebar-active-text, var(--brand-strong)); box-shadow: var(--sidebar-active-shadow, none); }
:root[data-theme="dark"] .nav-item.active { color: var(--sidebar-active-text, color-mix(in srgb, var(--brand) 55%, #fff)); }
.nav-item.active .icon { color: var(--sidebar-active-icon, var(--brand)); }
.nav-item .count { margin-left: auto; background: var(--brand); color: var(--on-brand); border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 650; line-height: 18px; }
.sidebar-footer { padding: 14px; border-top: 1px solid var(--sidebar-border, var(--border)); }
.wallet-mini { background: var(--sidebar-card, var(--surface-2)); border: 1px solid var(--sidebar-border, var(--border)); border-radius: var(--radius); padding: 12px 14px; color: var(--sidebar-brand, var(--text)); }
.wallet-mini .label { font-size: 12px; color: var(--sidebar-muted, var(--muted)); }
.wallet-mini .amount { font-size: 18px; font-weight: 700; margin: 2px 0 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: var(--topbar-bg, color-mix(in srgb, var(--bg) 85%, transparent)); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--topbar-border, transparent); }
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .title { font-weight: 650; font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; }
.content { padding: 8px 28px 40px; width: 100%; max-width: 1320px; }
.content.wide { max-width: none; }
.footer { padding: 18px 28px 26px; color: var(--faint); font-size: 12.5px; margin-top: auto; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 14px 0 22px; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 10px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb .icon { width: 14px; height: 14px; }

.user-menu { position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; color: var(--text); font: inherit; }
.user-btn:hover { background: var(--surface); border-color: var(--border); }
.user-btn .meta { text-align: left; line-height: 1.2; }
.user-btn .meta small { color: var(--muted); font-size: 12px; display: block; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; color: var(--text-2); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-3); color: var(--text); }
.dropdown-menu .danger { color: var(--danger); }
.dropdown-menu .sep { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-menu .head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown-menu .head small { color: var(--muted); display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--btn-radius, 8px); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 560; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s, box-shadow .12s, opacity .12s; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--surface-3); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--btn-primary-bg, var(--brand)); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.btn-danger-outline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); box-shadow: none; }
:root[data-theme="dark"] .btn-soft { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.btn-soft:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn-block { width: 100%; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--muted) transparent var(--muted) transparent; animation: spin .7s linear infinite; }
.btn-primary.loading::after, .btn-danger.loading::after { border-color: #fff transparent #fff transparent; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards ---------- */
.card { background: var(--card-bg, var(--surface)); border: var(--card-border-w, 1px) solid var(--card-border, var(--border)); border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: var(--card-blur, none); }
.card + .card { margin-top: 18px; }
.grid > .card, .grid > .stack, .grid > div > .card:first-child { margin-top: 0; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 15px; }
.card-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.card-flush .table-wrap { border: 0; border-radius: 0; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; margin: 0 0 10px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .strong { font-weight: 650; }
.text-right { text-align: right; } .text-center { text-align: center; } .nowrap { white-space: nowrap; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Stats ---------- */
.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.stat .icon-wrap { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.stat .hint { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat.tone-success .icon-wrap { background: var(--success-soft); color: var(--success); }
.stat.tone-warning .icon-wrap { background: var(--warning-soft); color: var(--warning); }
.stat.tone-danger .icon-wrap { background: var(--danger-soft); color: var(--danger); }
.stat.tone-info .icon-wrap { background: var(--info-soft); color: var(--info); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; background: var(--neutral-soft); color: var(--neutral); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand-strong); }
.badge-warning .dot, .badge-info .dot { animation: pulse 1.6s ease-in-out infinite; }
.badge.no-pulse .dot { animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12.5px; font-weight: 520; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--brand-softer); }
.table tr.clickable { cursor: pointer; }
.table .cell-main { font-weight: 600; color: var(--text); }
.table .cell-sub { font-size: 12.5px; color: var(--muted); }
.table td.actions { text-align: right; white-space: nowrap; }
/* Alignment classes must beat the "th: left" default above, so headers sit over their numbers. */
.table th.text-right, .table td.text-right { text-align: right; }
.table th.text-center, .table td.text-center { text-align: center; }
.table td.text-right { font-variant-numeric: tabular-nums; }
.table td.text-right .input { text-align: right; }
.table td.text-right .input-prefix { margin-left: auto; }
.table-sm td { padding: 9px 14px; } .table-sm th { padding: 9px 14px; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
label, .label { display: block; font-weight: 580; font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.error-text { font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.input, .select, .textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--input-radius, 8px); background: var(--surface); color: var(--text); font: inherit; transition: border-color .12s, box-shadow .12s; }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); }
.input-sm { height: 32px; font-size: 13px; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--input-radius, 8px) 0 0 var(--input-radius, 8px); }
.input-group .btn { border-radius: 0 var(--btn-radius, 8px) var(--btn-radius, 8px) 0; margin-left: -1px; box-shadow: none; height: 38px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-prefix .input { padding-left: 28px; }
.mono-input { font-family: var(--mono); font-size: 12.5px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; margin: 0; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.check .desc { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
input[type="color"] { width: 46px; height: 38px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 520; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--brand-ring); }

input[type="range"] { width: 100%; accent-color: var(--brand); height: 6px; }
.range-wrap { display: flex; align-items: center; gap: 14px; }
.range-wrap .range-val { min-width: 76px; text-align: right; font-weight: 650; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid transparent; margin-bottom: 16px; background: var(--info-soft); color: var(--text-2); }
.alert .icon { margin-top: 1px; color: var(--info); }
.alert strong { color: var(--text); }
.alert-success { background: var(--success-soft); } .alert-success .icon { color: var(--success); }
.alert-warning { background: var(--warning-soft); } .alert-warning .icon { color: var(--warning); }
.alert-danger, .alert-error { background: var(--danger-soft); } .alert-danger .icon, .alert-error .icon { color: var(--danger); }
.alert .grow { flex: 1; min-width: 0; }
.alert .close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.banner-impersonate { background: var(--warning); color: #1f1300; padding: 8px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 13px; }
.banner-impersonate form { margin: 0; }
.banner-impersonate .btn { height: 28px; background: rgba(255,255,255,.85); border-color: transparent; color: #1f1300; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 580; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab .icon { width: 16px; height: 16px; }
.pills { display: inline-flex; background: var(--surface-3); padding: 3px; border-radius: 9px; gap: 2px; flex-wrap: wrap; }
.pill { border: 0; background: none; padding: 5px 12px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 580; color: var(--muted); cursor: pointer; text-decoration: none !important; }
.pill.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Key-value ---------- */
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 0; }
.kv > div { padding: 10px 0; border-bottom: 1px dashed var(--border); min-width: 0; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 560; word-break: break-word; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.copyable { display: inline-flex; align-items: center; gap: 6px; }
.copy-btn { background: none; border: 0; padding: 2px; color: var(--faint); cursor: pointer; border-radius: 4px; display: inline-grid; place-items: center; }
.copy-btn:hover { color: var(--brand); background: var(--brand-soft); }
.copy-btn .icon { width: 14px; height: 14px; }
.secret { font-family: var(--mono); letter-spacing: .02em; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon-wrap { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.empty .icon-wrap .icon { width: 26px; height: 26px; }
.empty h3 { color: var(--text); margin-bottom: 6px; font-size: 16px; }
.empty p { max-width: 420px; margin: 0 auto 16px; }

/* ---------- Option cards (deploy) ---------- */
.options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.options.cols-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.option { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .12s, box-shadow .12s, background .12s; text-align: left; font: inherit; color: inherit; width: 100%; }
.option:hover { border-color: var(--border-strong); }
.option.selected { border-color: var(--brand); background: var(--brand-softer); box-shadow: 0 0 0 3px var(--brand-ring); }
.option.disabled { opacity: .45; cursor: not-allowed; }
.option .title { font-weight: 650; color: var(--text); }
.option .desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.option .price { font-weight: 700; margin-top: 8px; color: var(--text); }
.option .price small { color: var(--muted); font-weight: 500; }
.option .tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: none; place-items: center; }
.option.selected .tick { display: grid; }
.option .tick .icon { width: 13px; height: 13px; stroke-width: 3; }
.option .flag { font-size: 22px; line-height: 1; }
.option .ribbon { position: absolute; top: -9px; left: 12px; background: var(--brand); color: var(--on-brand); font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.option select { margin-top: 8px; }
.os-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--os, #64748B); flex: none; font-size: 15px; object-fit: contain; }
img.os-logo { background: none; display: block; }
.os-logo-lg { width: 44px; height: 44px; border-radius: 12px; }
.os-logo-xl { width: 52px; height: 52px; border-radius: 14px; font-size: 21px; }
.app-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 3px; flex: none; }
.plan-specs { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.plan-specs span { display: flex; align-items: center; gap: 6px; }
.plan-specs .icon { width: 14px; height: 14px; color: var(--muted); }
.step { margin-bottom: 26px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.step-head h3 { font-size: 16px; }
.summary { position: sticky; top: 80px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.summary .line span:first-child { color: var(--text-2); }
.summary .total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 16px; font-weight: 700; }
.summary .big { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; }

/* ---------- Server list & detail ---------- */
.server-row { display: flex; align-items: center; gap: 14px; }
.server-row .name { font-weight: 650; }
.power-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; box-shadow: 0 0 0 3px var(--neutral-soft); }
.power-dot.on { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.power-dot.busy { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); animation: pulse 1.4s infinite; }
.power-dot.off { background: var(--faint); }
.power-dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.server-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.server-hero .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 6px; }
.server-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.server-hero .meta .icon { width: 14px; height: 14px; }
.gauge { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.gauge > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .4s; }
.gauge.warn > span { background: var(--warning); } .gauge.bad > span { background: var(--danger); }
.metric { padding: 16px 18px; }
.metric .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.metric .value { font-size: 20px; font-weight: 700; margin: 4px 0 8px; letter-spacing: -0.01em; }
.progress-steps { display: flex; flex-direction: column; gap: 10px; }
.progress-line { height: 4px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); width: 30%; animation: indet 1.4s ease-in-out infinite; border-radius: 99px; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

.chart { position: relative; width: 100%; height: 220px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .axis text { fill: var(--faint); font-size: 10.5px; }
.chart .grid line { stroke: var(--border); }
.chart .tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); font-size: 12.5px; padding: 8px 10px; border-radius: 9px; white-space: nowrap; transform: translate(-50%, 0); box-shadow: var(--shadow-lg); z-index: 3; min-width: 130px; }
.chart .tip .tip-time { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.chart .tip div { display: flex; align-items: center; gap: 6px; }
.chart .tip div b { margin-left: auto; padding-left: 10px; font-weight: 650; }
.chart .tip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend b { color: var(--text); font-weight: 650; }
.chart-empty { height: 220px; display: grid; place-items: center; color: var(--faint); text-align: center; }

.console-wrap { background: #0b0d12; border-radius: var(--radius); overflow: hidden; min-height: 420px; position: relative; display: flex; align-items: center; justify-content: center; }
.console-wrap .console-screen { width: 100%; height: 70vh; min-height: 420px; }
.console-wrap .console-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa4b6; text-align: center; padding: 20px; }
.console-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline .t-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; }
.timeline .t-icon.ok { background: var(--success-soft); color: var(--success); }
.timeline .t-icon.running { background: var(--warning-soft); color: var(--warning); }
.timeline .t-icon.failed { background: var(--danger-soft); color: var(--danger); }
.timeline .t-icon .icon { width: 14px; height: 14px; }

/* ---------- Tickets ---------- */
.messages { display: flex; flex-direction: column; gap: 14px; }
.message { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.message.staff { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.message .m-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.message.staff .m-head { background: var(--brand-softer); }
.message .m-body { padding: 14px 16px; white-space: pre-wrap; word-break: break-word; }
.message .m-files { padding: 0 16px 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px; z-index: 100; animation: fade .15s ease-out; }
.modal { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .18s ease-out; border: 1px solid var(--border); }
.modal.modal-lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; gap: 12px; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; flex-wrap: wrap; }
.modal .danger-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; margin-bottom: 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Toasts ---------- */
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--info); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; font-size: 13.5px; }
.toast.success { border-left-color: var(--success); } .toast.error { border-left-color: var(--danger); } .toast.warning { border-left-color: var(--warning); }
.toast .icon { margin-top: 1px; }
.toast.success .icon { color: var(--success); } .toast.error .icon { color: var(--danger); } .toast.warning .icon { color: var(--warning); } .toast.info .icon { color: var(--info); }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; min-height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-block { padding: 40px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--border-strong); border-top-color: var(--brand); animation: spin .7s linear infinite; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.cur { min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.pagination span.cur { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; height: 16px; }
.toolbar .search .input { padding-left: 34px; height: 34px; }
.toolbar .select { height: 34px; width: auto; }

/* ---------- Auth pages ---------- */
/* auth pages: see the "Sign-in pages" block at the end */
.otp-input { letter-spacing: .5em; text-align: center; font-size: 20px; height: 50px; font-family: var(--mono); }

/* ---------- Invoice ---------- */
.invoice-doc { background: #fff; color: #0f172a; max-width: 860px; margin: 0 auto; padding: 44px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.invoice-doc h1 { color: #0f172a; }
.invoice-doc .inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.invoice-doc .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.invoice-doc .inv-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 650; margin-bottom: 6px; }
.invoice-doc table { width: 100%; border-collapse: collapse; }
.invoice-doc th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; border-bottom: 2px solid #e2e8f0; padding: 10px 8px; }
.invoice-doc td { padding: 12px 8px; border-bottom: 1px solid #eef2f7; }
.invoice-doc .totals { margin-left: auto; width: 320px; max-width: 100%; margin-top: 18px; }
.invoice-doc .totals div { display: flex; justify-content: space-between; padding: 6px 8px; }
.invoice-doc .totals .grand { border-top: 2px solid #0f172a; font-weight: 750; font-size: 16px; margin-top: 6px; padding-top: 10px; }
.stamp { display: inline-block; border: 2.5px solid currentColor; padding: 4px 14px; border-radius: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 15px; transform: rotate(-6deg); }
.stamp.paid { color: #059669; } .stamp.unpaid { color: #d97706; } .stamp.cancelled, .stamp.refunded { color: #64748b; }

/* ---------- Misc ---------- */
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.color-swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); display: inline-block; vertical-align: middle; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); }
.notice-dot { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; position: absolute; top: 6px; right: 6px; border: 2px solid var(--bg); }
.rel { position: relative; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-weight: 540; text-decoration: none; }
.settings-nav a:hover { background: var(--surface-3); }
.settings-nav a.active { background: var(--brand-soft); color: var(--brand-strong); }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.margin-good { color: var(--success); font-weight: 650; } .margin-bad { color: var(--danger); font-weight: 650; }
.qr-box { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; border: 1px solid var(--border); }
.upload-drop { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 14px; text-align: center; color: var(--muted); cursor: pointer; }
.upload-drop:hover { border-color: var(--brand); color: var(--brand); }
.logo-preview { height: 48px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.logo-preview img { max-height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 35; }
  .menu-toggle { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { flex-direction: row; overflow-x: auto; }
  .settings-nav a { white-space: nowrap; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 16px; }
  .content { padding: 4px 16px 32px; }
  .footer { padding: 16px; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3 { grid-template-columns: minmax(0, 1fr); }
  .user-btn .meta { display: none; }
  .page-head { margin: 8px 0 16px; }
  .card-head, .card-body, .card-foot { padding-left: 16px; padding-right: 16px; }
  .table th:first-child, .table td:first-child { padding-left: 16px; }
  .table th:last-child, .table td:last-child { padding-right: 16px; }
  .invoice-doc { padding: 22px; }
  .invoice-doc .inv-parties { grid-template-columns: 1fr; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv > div.k { border-bottom: 0; padding-bottom: 0; }
  .hide-sm { display: none !important; }
  .banner-impersonate { padding: 8px 16px; }
  .options { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media print {
  .sidebar, .topbar, .footer, .no-print, #toasts, .banner-impersonate { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; }
  .invoice-doc { border: 0; padding: 0; }
}

/* Payment gateways (settings) */
.gateway-box { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--surface); }
.gateway-box > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.gateway-box > summary::-webkit-details-marker { display: none; }
.gateway-box[open] > summary { border-bottom: 1px solid var(--border); }
.gateway-body { padding: 16px; }
.gw-logo { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; flex: none; background: var(--brand); }
.gw-razorpay { background: #0C2651; } .gw-cashfree { background: #6933D3; } .gw-payu { background: #A6C307; } .gw-stripe { background: #635BFF; } .gw-paypal { background: #003087; }

/* Order page: size presets + sliders */
.size-card .card-body { padding: 22px 24px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2, #F1F3F8); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 22px; }
.seg button { position: relative; flex: 1 1 90px; border: 0; background: transparent; border-radius: 9px; padding: 8px 10px; cursor: pointer; color: var(--text-2, var(--text)); display: flex; flex-direction: column; align-items: center; gap: 1px; font: inherit; }
.seg button b { font-weight: 650; font-size: 14px; }
.seg button small { font-size: 12px; color: var(--muted); }
.seg button:hover:not(:disabled) { background: var(--surface); }
.seg button.active { background: var(--surface); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); color: var(--brand); }
.seg button.active small { color: var(--brand); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.seg-dot { position: absolute; top: 6px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.res-row { margin-bottom: 22px; }
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.res-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.res-label .icon { color: var(--brand); }
.res-label .muted { font-weight: 450; font-size: 13px; }
.res-value { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; cursor: text; }
.res-value small { color: var(--muted); font-size: 14px; }
.res-num { width: 4.2em; border: 1px solid transparent; background: transparent; text-align: right; font: inherit; font-size: 26px; font-weight: 700; color: var(--brand); border-radius: 8px; padding: 0 4px; -moz-appearance: textfield; }
.res-num::-webkit-inner-spin-button, .res-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.res-num:hover:not(:disabled), .res-num:focus { border-color: var(--border-strong); outline: none; background: var(--surface); }
.res-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; outline: none; margin: 6px 0;
  background: linear-gradient(to right, var(--brand) 0, var(--brand) var(--pct, 0%), var(--surface-3, #E8EBF2) var(--pct, 0%)); }
.res-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 5px solid var(--brand); box-shadow: 0 2px 6px rgba(15, 23, 42, .25); cursor: grab; }
.res-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 5px solid var(--brand); box-shadow: 0 2px 6px rgba(15, 23, 42, .25); cursor: grab; }
.res-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-ring); }
.res-range:disabled { opacity: .6; }
.res-ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 4px; }
.size-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; background: var(--surface-2, #F1F3F8); border-radius: 12px; padding: 16px; text-align: center; }
.size-strip span { display: block; font-size: 13px; color: var(--muted); }
.size-strip strong { display: block; font-size: 20px; font-weight: 700; margin-top: 2px; }
.size-strip strong small { font-size: 13px; color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .size-card .card-body { padding: 16px; } .res-num { font-size: 22px; } .size-strip strong { font-size: 17px; } }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.recovery-grid code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; text-align: center; font-size: 14px; letter-spacing: .04em; }
.code-block pre, pre.code { background: #0F172A; color: #E2E8F0; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; margin: 0; white-space: pre; }
.api-ref h2 { font-size: 19px; margin: 28px 0 10px; }
.api-ref .ep { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.api-ref .ep:last-child { border-bottom: 0; }
.api-ref .m { font-family: var(--mono); font-size: 11.5px; font-weight: 700; border-radius: 5px; padding: 2px 0; text-align: center; color: #fff; }
.api-ref .m-GET { background: #0EA5E9; } .api-ref .m-POST { background: #16A34A; } .api-ref .m-PATCH { background: #D97706; } .api-ref .m-DELETE { background: #DC2626; }
.api-ref .p { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.api-ref .d { grid-column: 2; font-size: 13px; color: var(--muted); }

/* Server page */
.os-logo-sm { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.metric-grid .metric + .metric { border-left: 1px solid var(--border); }
@media (max-width: 900px) { .metric-grid .metric:nth-child(3) { border-left: 0; } .metric-grid .metric:nth-child(n+3) { border-top: 1px solid var(--border); } }
.seg-sm { margin: 0; padding: 3px; border-radius: 10px; flex-wrap: nowrap; overflow-x: auto; }
.seg-sm button { flex: 0 0 auto; padding: 5px 12px; border-radius: 7px; }
.seg-sm button b { font-size: 13px; font-weight: 600; }
.access-item { padding: 10px 0; border-bottom: 1px dashed var(--border); min-width: 0; }
.access-label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-bottom: 3px; }
.access-value { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 560; }
.access-value .copy-btn { flex: none; }
.access-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.access-pair .access-item { border-bottom: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cmd-line { display: flex; align-items: center; gap: 8px; background: #0F172A; border: 1px solid var(--border); border-radius: 10px; padding: 6px 6px 6px 12px; }
.cmd-line code { flex: 1; color: #E2E8F0; background: none; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-line .btn { background: rgba(255,255,255,.08); border-color: transparent; color: #E2E8F0; }
.cmd-line .btn:hover { background: rgba(255,255,255,.16); }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.spec-grid > div { display: flex; align-items: center; gap: 10px; background: var(--surface-2, #F1F3F8); border-radius: 10px; padding: 12px; min-width: 0; }
.spec-grid > div > span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.spec-grid b { display: block; font-size: 15px; }
.spec-grid small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.addon-list li { display: flex; align-items: center; gap: 12px; }
.addon-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.addon-offers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.addon-offer { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--border-strong); background: transparent; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text-2, var(--text)); }
.addon-offer span { color: var(--muted); }
.addon-offer:hover { border-color: var(--brand); color: var(--brand); }
.bill-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.bill-price strong { font-size: 24px; font-weight: 750; }
.bill-price span { color: var(--muted); font-size: 13px; }
.chart-card .card-head h3 { display: inline-flex; align-items: center; gap: 8px; }
.chart-card .card-head h3 .icon { color: var(--brand); }
.chart-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-stats span { display: block; font-size: 12px; color: var(--muted); }
.chart-stats b { font-size: 18px; font-weight: 700; }
.os-options { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.app-options { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 420px; overflow-y: auto; padding: 2px; }
.rb-pick { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.rb-pick b { display: block; }
.rb-pick small { color: var(--muted); }
@media (max-width: 640px) { .access-pair { grid-template-columns: 1fr; } .access-pair .access-item { border-bottom: 1px dashed var(--border); } }
.scope-grid { display: grid; grid-template-columns: 1fr; gap: 2px; max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.scope-grid .check { margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.scope-grid .check:last-child { border-bottom: 0; }
.scope-grid .desc { font-family: var(--font, inherit); font-size: 12px; }
.gw-paytm_upi { background: #00BAF2; }
.upi-pay { text-align: center; }
.upi-qr { display: inline-flex; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--border); margin: 6px auto 10px; }
.upi-qr img, .upi-qr canvas { display: block; }
.upi-amount { font-size: 26px; font-weight: 750; letter-spacing: -0.01em; }
.upi-apps { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }
.upi-state { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; margin-top: 10px; }
.upi-timer { height: 4px; border-radius: 99px; background: var(--surface-3, #E8EBF2); overflow: hidden; margin-top: 12px; }
.upi-timer span { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }

/* Settings → Themes */
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.skin-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; margin: 0; }
.skin-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.skin-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.skin-mock { display: flex; height: 132px; background: var(--m-bg); border-bottom: 1px solid var(--border); }
.mock-side { width: 30%; background: var(--m-side); border-right: 1px solid var(--m-line); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.mock-side b { color: var(--m-side-text); font-size: 13px; margin-bottom: 4px; }
.mock-side i { display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--m-side-text) 28%, transparent); }
.mock-side i.on { background: var(--m-brand); }
.mock-main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.mock-top { height: 9px; width: 55%; border-radius: 4px; background: color-mix(in srgb, var(--m-text) 22%, transparent); }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-cards > div, .mock-wide { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: min(var(--m-r), 8px); padding: 6px; }
.mock-cards span { display: block; height: 6px; width: 60%; border-radius: 3px; background: color-mix(in srgb, var(--m-text) 30%, transparent); margin-bottom: 5px; }
.mock-cards em { display: block; height: 10px; width: 80%; border-radius: 3px; background: linear-gradient(90deg, var(--m-brand), var(--m-accent)); }
.mock-wide { display: flex; flex-direction: column; gap: 4px; }
.mock-wide span { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--m-text) 16%, transparent); }
.mock-wide span:nth-child(2) { width: 70%; }
.mock-btn { align-self: flex-end; width: 42%; height: 13px; border-radius: min(var(--m-btn-r), 7px); background: var(--m-brand); }
.skin-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.skin-info strong { font-size: 15px; }
.skin-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.dot-c { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }

/* ---------- Sign-in pages (bento) ---------- */
.auth-body { background: var(--bg); }
.auth-scene { --tile-r: 28px; --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 24px 22px; overflow: hidden; isolation: isolate; }
.auth-scene::before { content: ""; position: absolute; inset: -10%; z-index: -2;
  background: radial-gradient(40% 40% at 12% 18%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
              radial-gradient(38% 38% at 92% 85%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.auth-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 80%); }
.bento { width: 100%; max-width: 1180px; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(380px, 1.12fr);
  grid-template-areas: "hero hero form" "usage locs form" "os os form"; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--tile-r); padding: 22px 24px; min-width: 0;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -32px rgba(15,23,42,.28);
  animation: tileIn .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.tile:not(.tile-form):hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 32px 60px -34px rgba(15,23,42,.38); }
@keyframes tileIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tile-head .icon { color: var(--muted); }
.tile-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; }
.tile-foot { font-size: 12.5px; color: var(--muted); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: livePulse 2s infinite; flex: none; display: inline-block; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* hero tile: always dark, like the main website */
.tile-hero { grid-area: hero; display: flex; flex-direction: column; gap: 22px; padding: 28px 32px; overflow: hidden; isolation: isolate; color: #EEF2F8; background: #060912; border-color: rgba(255,255,255,.06); font-family: var(--display); }
.tile-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 65%),
              radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 65%); }
.tile-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; z-index: -1; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(255,255,255,.06) 23px 24px); -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%); }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none !important; }
.hero-brand img { max-height: 36px; max-width: 200px; object-fit: contain; border-radius: 7px; }
.hero-brand .brand-mark { background: rgba(255,255,255,.14); }
.hero-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(238,242,248,.78); font-size: 12.5px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.05); text-decoration: none !important; transition: background .15s, color .15s; }
.hero-back:hover { color: #fff; background: rgba(255,255,255,.12); }
.hero-copy h2 { font-family: var(--display); color: #fff; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin: 0; max-width: 560px; }
.hero-copy h2 em { font-style: normal; background: linear-gradient(95deg, color-mix(in srgb, var(--accent) 75%, #fff), color-mix(in srgb, var(--brand) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { margin: 12px 0 0; color: rgba(238,242,248,.68); font-size: 15.5px; max-width: 480px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(238,242,248,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-facts .icon { width: 14px; height: 14px; color: color-mix(in srgb, var(--accent) 70%, #fff); }

/* usage tile */
.tile-usage { grid-area: usage; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.usage-figure { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.usage-figure b { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.usage-figure small { font-size: 20px; color: var(--muted); }
.usage-figure span { font-size: 12.5px; color: var(--muted); }
.usage-chart { width: calc(100% + 48px); margin: 4px -24px 0; height: 70px; display: block; }
.usage-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.6s .5s cubic-bezier(.4,0,.2,1) forwards; }
.usage-area { opacity: 0; animation: fadeIn .8s 1.4s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* locations tile */
.tile-locs { grid-area: locs; display: flex; flex-direction: column; gap: 12px; }
.locs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: center; }
.locs li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.locs li .dot-live { animation-delay: calc(var(--d, 0) * .5s); }
.locs b { font-size: 14px; font-weight: 650; color: var(--text); }
.locs span { margin-left: auto; font-size: 12px; color: var(--muted); }

/* OS marquee tile */
.tile-os { grid-area: os; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.os-marquee { margin: 0 -24px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.os-track { display: flex; gap: 10px; width: max-content; animation: marquee 32s linear infinite; padding: 0 24px; }
.tile-os:hover .os-track { animation-play-state: paused; }
.os-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.os-pill img { width: 22px; height: 22px; border-radius: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* form tile */
.tile-form { grid-area: form; display: flex; flex-direction: column; justify-content: center; padding: 44px 42px 26px; }
.form-inner { margin: auto 0; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 16px; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 650; }
.tile-form h1 { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 10px; }
.tile-form .sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.tile-form .form-group { margin-bottom: 16px; }
.tile-form .form-group > label, .tile-form .row-between > label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.tile-form .input { height: 50px; border-radius: 14px; padding: 0 16px; font-size: 15px; background: var(--surface-2); border-color: var(--border); transition: border-color .15s, box-shadow .15s, background .15s; }
.tile-form .input:hover { border-color: var(--border-strong); }
.tile-form .input:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.tile-form .otp-input { height: 58px; font-size: 26px; }
.tile-form .btn-lg { height: 52px; border-radius: 14px; font-size: 15.5px; font-weight: 650; gap: 10px; border: 0; background: var(--brand); color: var(--on-brand);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 12px 28px -14px color-mix(in srgb, var(--brand) 90%, transparent); transition: transform .15s, box-shadow .15s, filter .15s; }
.tile-form .btn-lg:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 18px 34px -16px color-mix(in srgb, var(--brand) 95%, transparent); }
.tile-form .btn-lg .icon { transition: transform .15s; }
.tile-form .btn-lg:hover .icon { transform: translateX(3px); }
.tile-form .alt { margin: 20px 0 0; text-align: center; color: var(--muted); }
.tile-form .alt a { font-weight: 650; }
.tile-form .row-between a.small { font-weight: 600; }
.tile-form .alert { border-radius: 14px; }
.pw-field { position: relative; }
.pw-field .input { padding-right: 50px; }
.pw-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; border-radius: 10px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--text); background: var(--surface-3); }
.caps-hint { margin-top: 6px; font-size: 12.5px; color: var(--warning); font-weight: 600; }
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.auth-legal a { font-size: 12.5px; color: var(--muted); }
.auth-legal a:hover { color: var(--text); }
.scene-foot { margin: 0; font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tile, .usage-line, .usage-area, .os-track, .dot-live { animation: none !important; } .usage-line { stroke-dashoffset: 0; } .usage-area { opacity: 1; } }
@media (max-width: 1100px) {
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "hero hero" "form usage" "form locs" "os os"; }
}
@media (max-width: 760px) {
  .auth-scene { padding: 14px 12px 18px; justify-content: flex-start; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "form" "os"; gap: 12px; }
  .tile-usage, .tile-locs, .hero-facts { display: none; }
  .tile { border-radius: 22px; }
  .tile-hero { padding: 20px 20px 22px; gap: 16px; }
  .hero-copy h2 { font-size: 28px; }
  .hero-copy p { font-size: 14px; }
  .tile-form { padding: 28px 20px 20px; }
  .tile-form h1 { font-size: 32px; }
}
