/* Aikographics design system — light modern SaaS theme */
:root {
  --bg-0: #f6f8fc;
  --bg-1: #eef2fa;
  --bg-2: #e6ecf7;
  --card: #ffffff;
  --card-solid: #ffffff;
  --elev: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(59, 91, 246, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 50px rgba(59, 91, 246, 0.16), 0 4px 14px rgba(15, 23, 42, 0.06);
  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  /* theme-dependent surfaces */
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.94);
  --hover-bg: rgba(15, 23, 42, 0.045);
  --tint-bg: #eef2ff;
  --tint-border: #c7d2fe;
  --tint-text: #4f46e5;
  --tint-text-2: #6d28d9;
  --bad-bg: #fef2f2;
  --bad-border: #fecaca;
  --safe-bg: linear-gradient(135deg, #eef2ff, #f5f3ff);
  --safe-border: #e0e7ff;
  --live-color: #059669;
  --live-bg: #ecfdf5;
  --live-border: #a7f3d0;
  --chart-grid: #edf1f7;
  --chart-text: #9aa4b8;
  --chart-center: #f8fafd;
}

/* ---------- dark theme ---------- */
html[data-theme="dark"] {
  --bg-0: #0b1220;
  --bg-1: #101a2e;
  --bg-2: #16233c;
  --card: #121d33;
  --card-solid: #101a2e;
  --elev: #16223a;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e6ecf7;
  --text-dim: #9aa7bf;
  --text-faint: #64748f;
  --accent: #5b93ff;
  --accent-2: #a78bfa;
  --grad: linear-gradient(135deg, #4f7df7 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 147, 255, 0.16), rgba(139, 92, 246, 0.16));
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --shadow: 0 10px 30px rgba(2, 6, 18, 0.5), 0 2px 8px rgba(2, 6, 18, 0.4);
  --shadow-lg: 0 20px 50px rgba(2, 6, 18, 0.62), 0 4px 14px rgba(2, 6, 18, 0.45);
  --nav-bg: rgba(11, 18, 32, 0.82);
  --nav-bg-scrolled: rgba(11, 18, 32, 0.94);
  --hover-bg: rgba(148, 163, 184, 0.09);
  --tint-bg: rgba(99, 102, 241, 0.18);
  --tint-border: rgba(129, 140, 248, 0.42);
  --tint-text: #a5b4fc;
  --tint-text-2: #c4b5fd;
  --bad-bg: rgba(220, 38, 38, 0.14);
  --bad-border: rgba(248, 113, 113, 0.38);
  --safe-bg: linear-gradient(135deg, rgba(79, 125, 247, 0.15), rgba(139, 92, 246, 0.13));
  --safe-border: rgba(129, 140, 248, 0.32);
  --live-color: #34d399;
  --live-bg: rgba(52, 211, 153, 0.12);
  --live-border: rgba(52, 211, 153, 0.35);
  --chart-grid: #1e2c46;
  --chart-text: #64748f;
  --chart-center: #101a2e;
}
html[data-theme="dark"] .badge-green { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
html[data-theme="dark"] .badge-amber { background: rgba(251, 191, 36, 0.13); color: #fcd34d; }
html[data-theme="dark"] .badge-red { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
html[data-theme="dark"] .badge-blue { background: rgba(91, 147, 255, 0.16); color: #93c5fd; }
html[data-theme="dark"] .badge-grey { background: rgba(148, 163, 184, 0.14); color: var(--text-dim); }
/* logo wordmark is dark-on-transparent: flip luminance, keep hue */
html[data-theme="dark"] .topnav-logo img,
html[data-theme="dark"] .footer-brand img { filter: invert(0.92) hue-rotate(180deg); }
/* smooth theme transitions (skip for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  body.theme-anim, body.theme-anim .card, body.theme-anim .topnav, body.theme-anim .modal,
  body.theme-anim input, body.theme-anim textarea, body.theme-anim select {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #2563eb; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
::selection { background: rgba(139, 92, 246, 0.22); }

.container { width: min(1200px, 92vw); margin: 0 auto; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.text-grad {
  background: linear-gradient(120deg, #4f7df7 0%, #8b5cf6 35%, #38bdf8 60%, #4f7df7 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tgShift 6s linear infinite;
}
@keyframes tgShift { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .text-grad { animation: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s;
  color: var(--text); background: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32); position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%; transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); pointer-events: none; }
.btn-primary:hover:not(:disabled)::after { left: 135%; transition: left 0.55s ease; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(99, 102, 241, 0.42); transform: translateY(-1px); color: #fff; }
.btn-ghost { border-color: var(--border-strong); background: var(--card); color: var(--text-dim); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: rgba(59, 130, 246, 0.05); }
.btn-danger { background: var(--card); border-color: rgba(220, 38, 38, 0.35); color: var(--red); }
.btn-danger:hover:not(:disabled) { background: rgba(220, 38, 38, 0.06); }
.btn-green { background: var(--card); border-color: rgba(22, 163, 74, 0.35); color: var(--green); }
.btn-green:hover:not(:disabled) { background: rgba(22, 163, 74, 0.06); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- top navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 900;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.04);
}
.topnav-inner {
  width: min(1280px, 94vw); margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 26px;
}
.topnav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topnav-logo img { height: 34px; width: auto; display: block; }
.topnav-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.topnav-links a:hover { color: var(--text); background: var(--hover-bg); }
.topnav-links a.active { color: var(--tint-text-2); background: var(--grad-soft); font-weight: 600; }
.topnav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }

.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-user-btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; overflow: hidden;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.nav-user-meta b { font-size: 13px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-meta span { font-size: 11.5px; color: var(--text-dim); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nav-caret { color: var(--text-faint); font-size: 10px; }
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--elev); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a, .nav-dropdown button {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 9px 12px; border: 0; background: none; border-radius: 8px;
  color: var(--text-dim); font: 500 13.5px var(--font); cursor: pointer; text-align: left;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--bg-0); color: var(--text); }
.nav-dropdown .dd-sep { height: 1px; background: var(--border); margin: 5px 8px; }

/* ---------- cards / panels ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.panel-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.panel-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--card);
  color: var(--text); font: 400 14px var(--font); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.textarea { resize: vertical; min-height: 90px; }

/* input + inline action button (auth modal send-code) */
.input-row { display: flex; gap: 10px; align-items: stretch; }
.input-row .input { flex: 1; min-width: 0; }
.input-row .btn { flex-shrink: 0; align-self: stretch; padding-left: 14px; padding-right: 14px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; padding: 12px 16px; font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 700;
  border-bottom: 1px solid var(--border); background: var(--bg-0);
  white-space: nowrap;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 0.12s; }
.tbl tbody tr:hover { background: var(--hover-bg); }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.selected { background: rgba(59, 130, 246, 0.08); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.02em; white-space: nowrap;
}
.badge-green { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.badge-amber { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.badge-red { background: rgba(220, 38, 38, 0.09); color: #b91c1c; }
.badge-blue { background: rgba(59, 130, 246, 0.1); color: #1d4ed8; }
.badge-grey { background: rgba(100, 116, 139, 0.12); color: var(--text-dim); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.35); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.18s ease;
}
.modal {
  width: min(430px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--elev); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 28px;
  animation: riseIn 0.22s ease;
}
.modal-wide { width: min(560px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-close {
  border: 0; background: var(--bg-0); color: var(--text-dim);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px;
}
.modal-close:hover { background: var(--bg-1); color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

/* auth modal specifics */
.auth-modal {
  width: min(1040px, calc(100vw - 40px));
  max-height: min(720px, calc(100vh - 40px));
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-radius: 24px;
  border-color: rgba(148, 163, 184, 0.2);
  background: #f8fafc;
}
.auth-visual {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #06101d url('/assets/img/hero-gpu.jpg') center / cover no-repeat;
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(420px 280px at 12% 8%, rgba(59, 130, 246, 0.24), transparent 72%),
    linear-gradient(180deg, rgba(5, 13, 25, 0.58) 0%, rgba(5, 13, 25, 0.8) 58%, rgba(5, 13, 25, 0.96) 100%);
}
.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(125, 176, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 176, 255, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent 10%, #000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 58%, transparent 100%);
}
.auth-visual-brand { display: flex; align-items: center; gap: 12px; }
.auth-visual-brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(28, 119, 255, 0.38)); }
.auth-visual-brand strong { display: block; font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; }
.auth-visual-brand span { display: block; margin-top: 5px; color: rgba(219, 234, 254, 0.62); font-family: var(--mono); font-size: 8px; letter-spacing: 0.19em; }
.auth-visual-copy { max-width: 360px; margin: auto 0 58px; }
.auth-visual-copy h2 { margin: 0 0 16px; color: #fff; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.035em; }
.auth-visual-copy p { max-width: 330px; margin: 0; color: rgba(226, 236, 250, 0.7); font-size: 14px; line-height: 1.75; }
#auth-visual-action {
  min-width: 160px;
  margin-top: 28px;
  padding: 12px 24px;
  border: 1px solid rgba(226, 236, 250, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  font: 600 13px var(--font);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
#auth-visual-action:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.8); transform: translateY(-1px); }
.auth-visual-support { display: flex; width: fit-content; align-items: center; gap: 7px; margin-top: 32px; color: rgba(226, 236, 250, 0.72); font-size: 12.5px; }
.auth-visual-support:hover { color: #fff; }
.auth-visual-support span { color: #7dd3fc; }
.auth-visual-foot { display: flex; align-items: center; gap: 8px; color: rgba(219, 234, 254, 0.5); font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; }
.auth-visual-foot i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px rgba(52, 211, 153, 0.9); }
.auth-visual-foot b { margin-left: auto; color: rgba(110, 231, 183, 0.82); font-weight: 600; }
.auth-panel { min-height: 0; overflow-y: auto; color: #0f172a; background: #f8fafc; }
.auth-panel-inner { min-height: 100%; padding: 30px clamp(34px, 4.5vw, 58px) 26px; display: flex; flex-direction: column; }
.auth-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 46px; }
.auth-panel-top > span { color: #94a3b8; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; }
.auth-close { background: #fff; border: 1px solid #e2e8f0; color: #64748b; }
.auth-close:hover { background: #eef4fb; color: #0f172a; }
.auth-panel-heading h3 { margin: 0 0 10px; color: #0b1220; font-size: clamp(32px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.035em; }
.auth-panel-heading p { max-width: 390px; margin: 0; color: #64748b; font-size: 13px; line-height: 1.65; }
.auth-mode-switch { display: none; }
.auth-panel form { max-width: 430px; margin-top: 26px; }
.auth-panel .field { margin-bottom: 13px; }
.auth-panel .field label { margin-bottom: 4px; color: #64748b; font-size: 10.5px; font-weight: 600; letter-spacing: 0.035em; }
.auth-panel .input {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #d6dfeb;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  box-shadow: none;
}
.auth-panel .input:focus { border-color: #3b82f6; box-shadow: 0 1px 0 #3b82f6; }
.auth-panel .input::placeholder { color: #a7b2c3; }
.auth-panel .input-row { gap: 12px; align-items: flex-end; }
.auth-panel .input-row .btn {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #eaf2fb;
  color: #2468b4;
  font-size: 11.5px;
}
.auth-panel .input-row .btn:hover { background: #dceafb; color: #1559a2; }
.auth-panel .field .faint { color: #7890aa !important; }
.auth-form-meta { min-height: 24px; margin: 2px 0 0; text-align: right; }
#auth-submit {
  width: min(200px, 100%);
  min-height: 47px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2e75c5, #59a8d7);
  box-shadow: 0 10px 24px rgba(48, 126, 190, 0.24);
  font-size: 13.5px;
}
#auth-submit:hover { box-shadow: 0 12px 28px rgba(48, 126, 190, 0.34); }
.auth-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: #2d72bd; font: 600 12.5px var(--font);
}
.auth-link:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #94a3b8; font-size: 11.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
#google-btn-wrap { display: flex; justify-content: center; min-height: 0; }

/* language row inside auth modal */
.auth-lang { margin-top: auto; padding-top: 22px; border-top: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; color: #94a3b8; }
.auth-lang span { font-size: 14px; }
.auth-lang button {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 8px;
  padding: 4px 9px; font: 600 10.5px var(--font); color: #64748b; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.auth-lang button:hover { border-color: #93b3d6; color: #2d72bd; }
.auth-lang button.active { color: #fff; background: #2d72bd; border-color: transparent; }

@media (max-width: 760px) {
  .auth-modal {
    width: min(520px, calc(100vw - 20px));
    min-height: 0;
    max-height: calc(100vh - 20px);
    grid-template-columns: 1fr;
    overflow-y: auto;
    border-radius: 18px;
  }
  .auth-visual { min-height: 210px; padding: 22px; display: block; }
  .auth-visual-brand img { width: 34px; height: 34px; }
  .auth-visual-brand strong { font-size: 18px; }
  .auth-visual-copy { margin: 34px 0 0; }
  .auth-visual-copy h2 { margin-bottom: 0; font-size: 25px; }
  .auth-visual-copy p, #auth-visual-action, .auth-visual-support, .auth-visual-foot { display: none; }
  .auth-panel { overflow: visible; }
  .auth-panel-inner { min-height: auto; padding: 24px 24px 22px; }
  .auth-panel-top { margin-bottom: 20px; }
  .auth-panel-heading h3 { font-size: 30px; }
  .auth-mode-switch { display: flex; gap: 20px; margin-top: 20px; border-bottom: 1px solid #e2e8f0; }
  .auth-mode-switch button {
    position: relative;
    padding: 0 0 10px;
    border: 0;
    background: none;
    color: #8a9bb0;
    cursor: pointer;
    font: 600 12px var(--font);
  }
  .auth-mode-switch button.active { color: #1f66ad; }
  .auth-mode-switch button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: #2d72bd; }
  .auth-panel form { margin-top: 19px; }
  #auth-submit { width: 100%; }
}
@media (max-width: 420px) {
  .auth-visual { min-height: 180px; }
  .auth-visual-copy { margin-top: 24px; }
  .auth-visual-copy h2 { font-size: 22px; }
  .auth-panel-inner { padding: 21px 18px 20px; }
}

/* language switcher in topnav */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); cursor: pointer;
  font: 600 12.5px var(--font); color: var(--text-dim);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lang-btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  background: var(--elev); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 950;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 8px 12px; border: 0; background: none; border-radius: 8px;
  color: var(--text-dim); font: 500 13.5px var(--font); cursor: pointer; text-align: left;
}
.lang-dropdown button:hover { background: var(--bg-0); color: var(--text); }
.lang-dropdown button.active { background: var(--grad-soft); color: var(--tint-text-2); font-weight: 600; }

/* ---------- toast ---------- */
#toast-root { position: fixed; top: 78px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 380px; padding: 13px 18px; border-radius: 12px;
  background: var(--elev); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px; color: var(--text);
  animation: toastIn 0.25s ease;
}
.toast.ok { border-color: rgba(22, 163, 74, 0.4); }
.toast.err { border-color: rgba(220, 38, 38, 0.4); }
.toast .t-icon { flex-shrink: 0; margin-top: 1px; }
.toast.ok .t-icon { color: var(--green); }
.toast.err .t-icon { color: var(--red); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all 0.3s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } }

/* ---------- page scaffolding ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; width: min(1200px, 92vw); margin: 0 auto; padding: 36px 0 70px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 28px; margin-bottom: 6px; }
.page-head p { color: var(--text-dim); margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card { padding: 20px; position: relative; overflow: hidden; }
.stat-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); opacity: 0.9;
}
.stat-card .s-label { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.stat-card .s-value { font-size: 26px; font-weight: 800; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-card .s-sub { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--text-faint); }
.empty-state .e-icon { font-size: 34px; margin-bottom: 10px; opacity: 0.6; }
.loading-row { text-align: center; padding: 34px; color: var(--text-faint); font-size: 13.5px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pager .pg-info { font-size: 13px; color: var(--text-dim); font-family: var(--mono); }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); margin-top: auto; }
.footer-inner { width: min(1200px, 92vw); margin: 0 auto; padding: 44px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 13.5px; max-width: 320px; margin: 0; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 34px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: var(--text-faint); font-size: 12.5px;
}

/* utility layout */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-2 { margin-bottom: 20px; }

/* ---------- GPU plan cards (index + compute) ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.plan-card { display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s; }
.plan-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.4); box-shadow: var(--shadow-lg); }
.plan-top { margin-bottom: 12px; }
.plan-tag {
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  background: var(--tint-bg); border: 1px solid var(--tint-border); color: var(--tint-text);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
}
.plan-name { font-size: 22px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.plan-desc { color: var(--text-dim); font-size: 13px; line-height: 1.6; min-height: 42px; }
.plan-stock {
  display: inline-flex; align-items: center; align-self: flex-start;
  margin-top: 10px; padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, .32); background: rgba(16, 185, 129, .1);
  color: #34d399; font-size: 11px; font-weight: 700;
}
.plan-stock.sold-out { border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .1); color: #f87171; }
.plan-yield {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px 0; padding: 9px 12px; border: 1px solid var(--live-border);
  border-radius: 10px; background: var(--live-bg); color: var(--live-color); font-size: 12px;
}
.plan-yield b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 800; }
.plan-yield--modal { margin: 0 0 16px; padding: 11px 14px; font-size: 13px; }
.plan-amount-field { margin-top: 16px; }
.plan-amount-range { color: var(--accent); font-family: var(--mono); font-size: 11.5px; font-weight: 700; }
.plan-amount-input-wrap {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  min-height: 48px; padding: 0 14px; border: 1px solid var(--border-strong);
  border-radius: 11px; background: var(--bg-0);
}
.plan-amount-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(99,102,241,.14); }
.plan-amount-input-wrap > span { color: var(--text-faint); font: 700 14px var(--mono); }
.plan-amount-input-wrap .input {
  min-width: 0; flex: 1; padding: 11px 0; border: 0; background: transparent; box-shadow: none;
  font-size: 15px; font-weight: 800;
}
.plan-divider { height: 1px; background: var(--border); margin: 14px 0 6px; }
.plan-specs { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.plan-specs li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--border-strong);
}
.plan-specs li:last-child { border-bottom: 0; }
.plan-specs li span { color: var(--text-dim); }
.plan-specs li b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* plan config modal */
.spec-box { background: var(--bg-0); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.spec-box b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.plan-feats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.feat-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.dur-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dur-card {
  border: 1px solid var(--border-strong); background: var(--card); border-radius: 12px;
  padding: 14px 10px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  font-family: var(--font); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.dur-card:hover { border-color: #818cf8; transform: translateY(-2px); }
.dur-card.active { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), var(--shadow); }
.dur-card b { font-size: 16px; font-weight: 700; color: var(--text); }
.dur-card .dur-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 800; color: var(--tint-text); }
.dur-card small { font-size: 11px; color: var(--text-faint); }
@media (max-width: 520px) { .dur-grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .topnav-inner { gap: 12px; }
  .topnav-links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-user-meta b { max-width: 80px; }
  .page-head h1 { font-size: 23px; }
}

/* ================= motion layer ================= */

/* page load fade-in */
.page { animation: pageIn 0.45s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }

/* scroll-in reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* nav: solidify on scroll */
.topnav { transition: background 0.25s ease, box-shadow 0.25s ease; }
.topnav.scrolled { background: var(--nav-bg-scrolled); box-shadow: 0 6px 24px rgba(2, 6, 18, 0.12); }

/* nav links: gradient underline slide */
.topnav-links a { position: relative; }
.topnav-links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.topnav-links a:hover::after, .topnav-links a.active::after { transform: scaleX(1); }

/* footer links: underline slide */
.footer-col a { width: fit-content; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1.5px no-repeat; transition: background-size 0.25s ease, color 0.15s ease; }
.footer-col a:hover { background-size: 100% 1.5px; }

/* buttons: glow breathing + ripple */
.btn { position: relative; overflow: hidden; }
.btn-primary:hover:not(:disabled) { animation: btnGlow 1.6s ease-in-out infinite; }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32); }
  50% { box-shadow: 0 8px 32px rgba(139, 92, 246, 0.55); }
}
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.45); transform: scale(0);
  animation: rippleAnim 0.55s ease-out forwards;
}
.btn .ripple.rp-dark { background: rgba(79, 70, 229, 0.18); }
@keyframes rippleAnim { to { transform: scale(2.8); opacity: 0; } }

/* badges pop in */
.badge { animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes badgePop { from { transform: scale(0.6); opacity: 0; } }

/* table rows stagger entrance */
.row-in { animation: rowIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

/* card hover lift */
.task-card, .stat-card, .cov-region, .wallet-forms .card, .legal-doc {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.task-card:hover, .stat-card:hover, .cov-region:hover, .wallet-forms .card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(99, 102, 241, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .page { animation: none !important; }
  .topnav-links a::after, .footer-col a { transition: none !important; }
  .btn-primary:hover:not(:disabled) { animation: none !important; }
  .badge, .row-in { animation: none !important; }
}

/* ---------- C2C / Spot pages ---------- */
.tabs { display: inline-flex; gap: 6px; background: var(--bg-1); padding: 5px; border-radius: 12px; margin-bottom: 24px; }
.tabs button { padding: 10px 26px; border: 0; border-radius: 9px; cursor: pointer; background: none; color: var(--text-dim); font: 600 14px var(--font); transition: background 0.18s, color 0.18s, box-shadow 0.18s; }
.tabs button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35); }

.step-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; }
.step-label .step-no {
  width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--card); cursor: pointer; font: 600 13px var(--font); color: var(--text-dim);
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}
.chip small { font-weight: 500; color: var(--text-faint); margin-left: 6px; font-size: 11.5px; }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip.active { background: var(--grad-soft); border-color: #818cf8; color: var(--tint-text); }
.chip.active small { color: var(--tint-text-2); }

.merchant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.merchant-card { cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.merchant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.merchant-card.active { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), var(--shadow); }
.merchant-card .m-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.merchant-card .m-stats { display: flex; gap: 18px; margin: 12px 0; }
.merchant-card .m-stats b { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; }
.merchant-card .m-stats span { font-size: 11.5px; color: var(--text-faint); }
.merchant-card .m-limit { font-size: 12.5px; color: var(--text-dim); }

.convert-preview {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--grad-soft); border: 1px solid var(--tint-border); border-radius: 12px;
  padding: 13px 18px; margin-top: 14px; font-size: 14px;
}
.convert-preview b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 18px; color: var(--tint-text); }
.convert-preview.bad { background: var(--bad-bg); border-color: var(--bad-border); }
.convert-preview.bad b { color: var(--red); }

.pay-info {
  background: var(--bg-0); border: 1px dashed var(--border-strong); border-radius: 12px;
  padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word; color: var(--text);
}
.safety-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--safe-bg);
  border: 1px solid var(--safe-border); margin-bottom: 26px;
}
.safety-card .s-icon { font-size: 26px; line-height: 1; }
.safety-card h4 { margin: 0 0 6px; font-size: 15px; }
.safety-card ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 13px; line-height: 1.7; }

.order-flow-card { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), var(--shadow); }
.match-pulse {
  width: 72px; height: 72px; margin: 8px auto 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99, 102, 241, 0.18); color: var(--tint-text); font-weight: 800;
  box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.08);
  animation: matchPulse 1.6s ease-out infinite;
}
@keyframes matchPulse { 50% { box-shadow: 0 0 0 16px rgba(99, 102, 241, 0); } }
.match-wait { font-family: var(--mono); color: var(--tint-text); margin-top: 10px; }
.voucher-preview { display: block; max-width: 240px; max-height: 160px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--border); }

/* spot metal picker */
.metal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metal-card { cursor: pointer; text-align: center; padding: 28px 20px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.metal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.metal-card.active { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), var(--shadow); }
.metal-card .m-badge {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font: 800 20px var(--font); color: #fff;
}
.metal-card .m-badge.gold { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35); }
.metal-card .m-badge.silver { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 6px 18px rgba(100, 116, 139, 0.35); }
.metal-card .m-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 800; }
.metal-card .m-unit { font-size: 12px; color: var(--text-faint); }

/* assets quick-service entry cards */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 34px; }
.svc-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(99, 102, 241, 0.35); color: var(--text); }
.svc-card .svc-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.svc-card .svc-icon.alt { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35); }
.svc-card b { display: block; font-size: 15px; }
.svc-card span { font-size: 12.5px; color: var(--text-dim); }
.svc-card .svc-arrow { margin-left: auto; color: var(--text-faint); font-size: 18px; transition: transform 0.18s; }
.svc-card:hover .svc-arrow { transform: translateX(4px); color: var(--accent); }

@media (max-width: 700px) {
  .metal-grid, .svc-grid { grid-template-columns: 1fr; }
  .merchant-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- custom solution page / pricing CTA banner ---------- */
.sol-hero {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(135deg, #eef2ff 0%, #ede9ff 45%, #f3e8ff 100%);
  color: var(--text); padding: 64px 56px; box-shadow: var(--shadow-lg);
}
.sol-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000 30%, transparent 75%);
}
.sol-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 300px at 85% 15%, rgba(139, 92, 246, 0.16), transparent 65%),
    radial-gradient(380px 280px at 10% 90%, rgba(59, 130, 246, 0.12), transparent 65%);
}
.sol-hero > * { position: relative; }
.sol-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tint-text); margin-bottom: 14px; }
.sol-hero h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; max-width: 620px; color: var(--text); }
.sol-hero p { color: var(--text-dim); max-width: 560px; font-size: 15.5px; }
.sol-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  background: var(--grad); color: #fff; border-radius: 999px; padding: 13px 26px;
  font: 700 14px var(--font); border: 0; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: transform 0.16s, box-shadow 0.16s;
}
.sol-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45); color: #fff; }
.sol-hero.compact { padding: 44px 48px; }
.sol-hero.compact h2 { font-size: clamp(21px, 2.6vw, 30px); }

@media (max-width: 640px) { .sol-hero { padding: 40px 26px; } }

/* ---------- process steps (solution page) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-card { text-align: left; }
.process-card .p-no {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  margin-bottom: 12px; box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.process-card b { display: block; font-size: 15px; margin-bottom: 5px; }
.process-card p { margin: 0; font-size: 13px; color: var(--text-dim); }
@media (max-width: 700px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- API docs page ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.docs-side { position: sticky; top: 84px; padding: 10px 8px; }
.docs-side .ds-group { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding: 14px 12px 6px; }
.docs-side a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-dim); font-size: 13.5px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.docs-side a:hover { background: var(--hover-bg); color: var(--text); }
.docs-side a.active { background: var(--grad-soft); color: var(--tint-text-2); font-weight: 600; }
.ep-block { margin-bottom: 38px; scroll-margin-top: 84px; }
.ep-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ep-head h3 { margin: 0; font-size: 19px; }
.method-badge { font: 800 12px var(--mono); padding: 4px 11px; border-radius: 8px; letter-spacing: 0.05em; }
.method-get { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.method-post { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.ep-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.url-bar {
  display: flex; align-items: center; gap: 10px; background: #0f172a; color: #c4b5fd;
  border-radius: 10px; padding: 11px 14px; font-family: var(--mono); font-size: 13px;
  overflow-x: auto; margin-bottom: 16px;
}
.url-bar .u-path { white-space: nowrap; }
.code-wrap { position: relative; background: #0f172a; border-radius: 12px; overflow: hidden; margin: 14px 0 20px; }
.code-wrap pre { margin: 0; padding: 16px 18px; color: #dbe4ff; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; overflow-x: auto; }
.code-tabs { display: flex; gap: 2px; background: #0b1224; padding: 8px 10px 0; }
.code-tabs button {
  border: 0; background: none; color: #8b96c9; font: 600 12.5px var(--font);
  padding: 8px 14px; border-radius: 8px 8px 0 0; cursor: pointer; border-bottom: 2px solid transparent;
}
.code-tabs button:hover { color: #cbd5ff; }
.code-tabs button.active { color: #fff; border-bottom-color: #8b5cf6; background: rgba(139, 92, 246, 0.14); }
.copy-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
  color: #cbd5ff; border-radius: 8px; padding: 5px 10px; font: 600 11.5px var(--font); cursor: pointer;
  transition: background 0.15s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.15); }
.copy-btn.copied { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
/* json highlight */
.j-key { color: #93c5fd; }
.j-str { color: #86efac; }
.j-num { color: #fbbf24; }
.j-bool { color: #f472b6; }
.j-null { color: #f87171; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .docs-side .ds-group { display: none; }
  .docs-side a { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- v1-style compute page ---------- */
.cmp-hero {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(135deg, #eef2ff 0%, #e8edff 52%, #f3eaff 100%);
  color: var(--text); padding: 72px 56px 0; box-shadow: var(--shadow-lg);
}
.cmp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 30%, #000 30%, transparent 78%);
}
.cmp-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(480px 320px at 82% 10%, rgba(139, 92, 246, 0.16), transparent 65%),
    radial-gradient(420px 300px at 8% 85%, rgba(245, 158, 11, 0.1), transparent 65%);
}
.cmp-hero > * { position: relative; }
.cmp-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--tint-border); background: rgba(255, 255, 255, 0.6);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tint-text);
}
.cmp-hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin: 22px 0 12px; max-width: 780px; color: var(--text); }
.cmp-hero h1 .acc { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cmp-industries { color: var(--text-dim); font-size: 15px; letter-spacing: 0.04em; }
.cmp-sells { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 8px; }
.cmp-sells span { display: inline-flex; align-items: center; gap: 8px; color: #b45309; font-weight: 700; font-size: 14.5px; }
.cmp-sells span::before { content: '◆'; font-size: 10px; color: #d97706; }
.cmp-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 14px; }
.cmp-cta-main {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; font: 700 15px var(--font);
  border: 0; cursor: pointer; box-shadow: 0 10px 28px rgba(234, 88, 12, 0.4); transition: transform 0.16s, box-shadow 0.16s;
}
.cmp-cta-main:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(234, 88, 12, 0.5); color: #fff; }
.cmp-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 12px;
  border: 1px solid var(--border-strong); color: var(--text-dim); font: 600 15px var(--font); transition: background 0.16s, border-color 0.16s;
}
.cmp-cta-ghost:hover { background: var(--hover-bg); color: var(--text); }
.cmp-disclaimer { color: var(--text-faint); font-size: 12px; max-width: 640px; }
.cmp-stats {
  display: flex; gap: 0; margin: 44px -56px 0; border-top: 1px solid var(--border-strong);
}
.cmp-stats > div { flex: 1; padding: 22px 56px; border-left: 1px solid var(--border-strong); }
.cmp-stats > div:first-child { border-left: 0; }
.cmp-stats b { display: block; font-size: 26px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text); }
.cmp-stats span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 700px) {
  .cmp-hero { padding: 44px 24px 0; }
  .cmp-stats { flex-direction: column; margin: 34px -24px 0; }
  .cmp-stats > div { border-left: 0; border-top: 1px solid var(--border-strong); padding: 16px 24px; }
}

/* tier cards with CSS GPU art */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.tier-card .t-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tier-pop {
  position: absolute; top: 16px; right: -34px; transform: rotate(45deg); z-index: 3;
  background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 40px; box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}
.gpu-art {
  height: 130px; position: relative; display: flex; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(135deg, #131c44, #1e2a66); overflow: hidden;
}
.gpu-art::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(147, 165, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 165, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.gpu-art .fan {
  width: 54px; height: 54px; border-radius: 50%; position: relative;
  background: conic-gradient(from 0deg, #2a3a7d, #4156b8, #2a3a8d, #5468d4, #2a3a7d);
  border: 3px solid rgba(180, 195, 255, 0.35);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5), 0 0 18px rgba(99, 102, 241, 0.35);
  animation: fanSpin 6s linear infinite;
}
.gpu-art .fan::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; background: #0d1434; border: 2px solid rgba(180, 195, 255, 0.4); }
.gpu-art.fans-1 .fan:nth-child(n+2), .gpu-art.fans-2 .fan:nth-child(n+3), .gpu-art.fans-3 .fan:nth-child(n+4) { display: none; }
.tier-card:nth-child(2) .gpu-art { background: linear-gradient(135deg, #1e1b4b, #4c1d95); }
.tier-card:nth-child(3) .gpu-art { background: linear-gradient(135deg, #111d45, #6d28d9); }
.tier-card:nth-child(4) .gpu-art { background: linear-gradient(135deg, #0f2740, #155e75); }
.tier-card:nth-child(5) .gpu-art { background: linear-gradient(135deg, #1a1442, #4338ca); }
.tier-card:nth-child(6) .gpu-art { background: linear-gradient(135deg, #251238, #9d174d); }
@keyframes fanSpin { to { transform: rotate(360deg); } }
.tier-name { font-size: 17px; font-weight: 800; margin: 0 0 2px; }
.tier-gpus { font-size: 13px; color: var(--tint-text); font-weight: 700; margin-bottom: 12px; }
.tier-matched { font-size: 12.5px; color: var(--text-dim); margin: 12px 0 14px; flex: 1; }
.tier-price { font-size: 26px; font-weight: 800; color: #ea580c; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tier-price-note { font-size: 11.5px; color: var(--text-faint); margin: 2px 0 14px; }

@media (max-width: 960px) { .tier-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gpu-art .fan { animation: none !important; } .mon-bar > div { transition: none !important; } }

/* ---------- live telemetry cards (compute page) ---------- */
.tel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tel-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tel-sub { font-size: 11.5px; color: var(--text-faint); margin: 0 0 4px; }
.tel-title { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.tel-live {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: var(--live-color); background: var(--live-bg); border: 1px solid var(--live-border); border-radius: 999px; padding: 4px 11px;
  letter-spacing: 0.06em;
}
.tel-dot { position: relative; width: 7px; height: 7px; }
.tel-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #34d399; opacity: 0.75; animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
.tel-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #10b981; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.tel-stats { display: flex; flex-wrap: wrap; margin-top: 14px; }
.tel-stat { flex: 1; min-width: 120px; padding: 0 6px; }
.tel-stat .l { font-size: 11.5px; color: var(--text-faint); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tel-stat .v { font-size: 22px; font-weight: 800; color: var(--text); margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tel-stat .v .u { font-size: 11px; font-weight: 500; color: var(--text-faint); margin-left: 3px; }
.tel-stat .d { font-size: 11px; font-weight: 600; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.tel-stat .d.up { color: #16a34a; }
.tel-stat .d.down { color: #dc2626; }
.tel-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.tel-ranges { display: flex; background: var(--bg-1); border-radius: 999px; padding: 3px; }
.tel-ranges button {
  border: 0; background: transparent; padding: 5px 13px; border-radius: 999px;
  font: 600 12px var(--font); color: var(--text-faint); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.tel-ranges button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(2, 6, 18, 0.18); }
.tel-legend { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.tel-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tel-legend i { width: 9px; height: 9px; border-radius: 3px; }
.tel-chart { position: relative; height: 210px; margin: 0 -4px; transition: opacity 0.25s ease; }
.tel-chart canvas { display: block; width: 100%; height: 100%; }
.tel-foot {
  display: flex; align-items: center; margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.tel-card {
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.tel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: 0 22px 48px -30px rgba(16, 185, 129, 0.78);
}
.tel-card:active { transform: translateY(-1px) scale(0.995); }
.tel-card:focus-visible { outline: 2px solid #34d399; outline-offset: 3px; }
.tel-click-fx {
  position: absolute; inset: 0; z-index: 4; overflow: hidden;
  border-radius: inherit; pointer-events: none;
}
.tel-wave {
  position: absolute; left: var(--tel-x, 50%); top: var(--tel-y, 50%);
  width: 18px; height: 18px; border: 1.5px solid rgba(52, 211, 153, 0.72);
  border-radius: 999px; transform: translate(-50%, -50%); opacity: 0;
}
.tel-wave-b { border-color: rgba(34, 211, 238, 0.52); }
.tel-scanline {
  position: absolute; inset: -22% auto -22% -45%; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.05) 24%, rgba(52, 211, 153, 0.32) 50%, rgba(34, 211, 238, 0.1) 72%, transparent);
  filter: blur(1px); transform: skewX(-15deg); opacity: 0;
}
.tel-hit-frame {
  position: absolute; inset: 0; border: 1px solid rgba(52, 211, 153, 0.7);
  border-radius: inherit; opacity: 0;
  box-shadow: inset 0 0 34px rgba(16, 185, 129, 0.12), 0 0 28px rgba(16, 185, 129, 0.14);
}
.tel-hit-node {
  position: absolute; right: 12px; top: 9px; color: rgba(110, 231, 183, 0.82);
  font: 700 8px/1 var(--mono); letter-spacing: 0.18em; opacity: 0;
}
.tel-card.is-bursting { animation: tel-card-hit 0.68s cubic-bezier(0.22, 1, 0.36, 1) both; }
.tel-card.is-bursting .tel-wave-a { animation: tel-wave 0.72s cubic-bezier(0.16, 1, 0.3, 1) both; }
.tel-card.is-bursting .tel-wave-b { animation: tel-wave 0.84s 0.07s cubic-bezier(0.16, 1, 0.3, 1) both; }
.tel-card.is-bursting .tel-scanline { animation: tel-scanline 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.tel-card.is-bursting .tel-hit-frame { animation: tel-hit-frame 0.66s ease-out both; }
.tel-card.is-bursting .tel-hit-node { animation: tel-hit-node 0.68s ease-out both; }
.tel-card.is-bursting .tel-stat .v { color: #6ee7b7; text-shadow: 0 0 18px rgba(52, 211, 153, 0.65); }
.tel-card.is-bursting .tel-stat,
.tel-card.is-bursting .tel-chart { animation: tel-metric-flash 0.55s ease-out both; }
.tel-card.is-bursting .tel-chart { animation-delay: 0.06s; }
.tel-stat .v, .tel-chart canvas { transition: color 0.2s ease, filter 0.2s ease, text-shadow 0.2s ease; }
.tel-card.is-bursting .tel-chart canvas { filter: brightness(1.18) saturate(1.28); }
@keyframes tel-wave {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.25); }
  70% { opacity: 0.42; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}
@keyframes tel-scanline {
  0% { left: -45%; opacity: 0; }
  18% { opacity: 1; }
  100% { left: 108%; opacity: 0; }
}
@keyframes tel-hit-frame {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes tel-card-hit {
  0% { transform: scale(0.987); }
  30% { transform: translateY(-2px) scale(1.004); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes tel-metric-flash {
  0% { opacity: 0.78; transform: translateY(2px); filter: brightness(1); }
  36% { opacity: 1; transform: translateY(-1px); filter: brightness(1.28); }
  100% { opacity: 1; transform: translateY(0); filter: brightness(1); }
}
@keyframes tel-hit-node {
  0% { opacity: 0; transform: translateY(-4px); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translateY(5px); }
}
@media (max-width: 960px) { .tel-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tel-chart { height: 170px; } .tel-stat .v { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .tel-card, .tel-card:hover, .tel-card:active,
  .tel-card.is-bursting, .tel-card.is-bursting .tel-wave,
  .tel-card.is-bursting .tel-scanline, .tel-card.is-bursting .tel-hit-frame,
  .tel-card.is-bursting .tel-hit-node, .tel-card.is-bursting .tel-stat,
  .tel-card.is-bursting .tel-chart {
    animation: none !important; transition: none !important; transform: none !important;
  }
  .tel-dot::before { animation: none !important; }
  .tel-chart { transition: none !important; }
}

/* ---------- theme toggle button ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--card); color: var(--text-dim);
  cursor: pointer; padding: 0; transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.theme-toggle:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }

/* ---------- dark overrides for hero blocks (light theme uses soft indigo panels) ---------- */
html[data-theme="dark"] .cmp-hero { background: linear-gradient(135deg, #081028 0%, #101a4a 52%, #241a6e 100%); color: #fff; box-shadow: 0 24px 60px rgba(30, 40, 140, 0.35); }
html[data-theme="dark"] .cmp-hero::before { background-image: linear-gradient(rgba(147, 165, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(147, 165, 255, 0.06) 1px, transparent 1px); }
html[data-theme="dark"] .cmp-hero::after { background: radial-gradient(480px 320px at 82% 10%, rgba(139, 92, 246, 0.38), transparent 65%), radial-gradient(420px 300px at 8% 85%, rgba(245, 158, 11, 0.16), transparent 65%); }
html[data-theme="dark"] .cmp-badge { border-color: rgba(196, 181, 253, 0.35); background: rgba(255, 255, 255, 0.06); color: #c4b5fd; }
html[data-theme="dark"] .cmp-hero h1 { color: #fff; }
html[data-theme="dark"] .cmp-hero h1 .acc { background: linear-gradient(135deg, #7aa5ff, #c4b5fd); -webkit-background-clip: text; background-clip: text; }
html[data-theme="dark"] .cmp-industries { color: #a9b3e8; }
html[data-theme="dark"] .cmp-sells span { color: #fbbf24; }
html[data-theme="dark"] .cmp-sells span::before { color: #f59e0b; }
html[data-theme="dark"] .cmp-cta-ghost { border-color: rgba(255, 255, 255, 0.3); color: #e5e9ff; }
html[data-theme="dark"] .cmp-cta-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
html[data-theme="dark"] .cmp-disclaimer { color: #8b93c9; }
html[data-theme="dark"] .cmp-stats { border-top-color: rgba(147, 165, 255, 0.16); }
html[data-theme="dark"] .cmp-stats > div { border-left-color: rgba(147, 165, 255, 0.16); }
html[data-theme="dark"] .cmp-stats b { color: #fff; }
html[data-theme="dark"] .cmp-stats span { color: #8b93c9; }
html[data-theme="dark"] .sol-hero { background: linear-gradient(135deg, #17134a 0%, #241a6e 45%, #3b2178 100%); color: #fff; box-shadow: 0 24px 60px rgba(76, 56, 220, 0.3); }
html[data-theme="dark"] .sol-hero::before { background-image: linear-gradient(rgba(196, 181, 253, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 181, 253, 0.07) 1px, transparent 1px); }
html[data-theme="dark"] .sol-hero::after { background: radial-gradient(420px 300px at 85% 15%, rgba(139, 92, 246, 0.4), transparent 65%), radial-gradient(380px 280px at 10% 90%, rgba(59, 130, 246, 0.3), transparent 65%); }
html[data-theme="dark"] .sol-eyebrow { color: #c4b5fd; }
html[data-theme="dark"] .sol-hero h2 { color: #fff; }
html[data-theme="dark"] .sol-hero p { color: #c9c3ec; }
html[data-theme="dark"] .sol-cta { background: #fff; color: #312e81; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
html[data-theme="dark"] .sol-cta:hover { color: #4f46e5; }

/* ============ Winnipeg planned project (project.html + homepage #project) ============ */
  .wpg-hero { text-align: center; padding: 84px 0 14px; }
  .wpg-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    border: 1px solid rgba(217, 119, 6, 0.4); background: rgba(217, 119, 6, 0.08);
    font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
  }
  .wpg-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(217, 119, 6, 0.7); animation: pulse 2.2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.35; } }
  .wpg-hero h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin: 22px 0 10px; }
  .wpg-sub { color: var(--text-dim); font-size: 14.5px; margin-bottom: 0; }
  .wpg-sub .mono { font-size: 13px; }

  .wpg-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 20px; align-items: stretch; }
  .wpg-grid > div { display: flex; flex-direction: column; }
  .wpg-grid > div > .card { flex: 1; }
  img.wpg-fig { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--border); }
  .wpg-cap { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); margin-top: 10px; }
  .wpg-tag-card { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--tint-text); background: var(--tint-bg); border: 1px solid var(--tint-border); border-radius: 6px; padding: 3px 9px; margin-bottom: 10px; }
  .wpg-panel h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; }
  .wpg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
  .wpg-row:last-child { border-bottom: 0; }
  .wpg-row .k { color: var(--text-dim); }
  .wpg-row .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
  .wpg-row .no { font-family: var(--mono); color: var(--tint-text); font-weight: 700; font-size: 12px; }
  .wpg-tag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
  .wpg-tag.amber { color: var(--amber); background: rgba(217, 119, 6, 0.12); border: 1px solid rgba(217, 119, 6, 0.35); }
  .wpg-tag.green { color: var(--green); background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.35); }
  .wpg-lv { font-weight: 700; font-size: 12px; }
  .wpg-lv.lv-ok { color: var(--green); }
  .wpg-lv.lv-sub { color: var(--amber); }

  .wpg-appeal { border-color: rgba(217, 119, 6, 0.35); }
  .wpg-appeal h4 { color: var(--amber); }
  .wpg-appeal p { font-size: 13px; color: var(--text-dim); line-height: 1.75; margin: 0 0 10px; }
  .wpg-appeal p strong { color: var(--text); }
  .wpg-appeal .fr { font-size: 12.5px; }
  .wpg-appeal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .wpg-appeal-cols .fr { margin: 0; padding-left: 28px; border-left: 1px dashed var(--border-strong); }
  @media (max-width: 960px) {
    .wpg-appeal-cols { grid-template-columns: 1fr; }
    .wpg-appeal-cols .fr { margin-top: 14px; padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--border-strong); }
  }

  /* community vote */
  .wpg-vote { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border-strong); }
  .wpg-vote-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .wpg-vote-head b { font-size: 15px; color: var(--text); }
  .wpg-vote-sub { color: var(--text-faint); font-size: 12.5px; }
  .wpg-vote-btns { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
  .wpg-vbtn { flex: 1; min-width: 140px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-0); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
  .wpg-vbtn:hover { transform: translateY(-2px); border-color: var(--accent); }
  .wpg-vbtn .vi { font-size: 16px; }
  .wpg-vbtn .vc { font-size: 13px; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
  .wpg-vbtn.v-support.on { border-color: rgba(34,197,94,.6); background: rgba(34,197,94,.12); box-shadow: 0 0 18px rgba(34,197,94,.22); }
  .wpg-vbtn.v-support.on .vc { color: #4ade80; }
  .wpg-vbtn.v-neutral.on { border-color: rgba(148,163,184,.6); background: rgba(148,163,184,.12); box-shadow: 0 0 18px rgba(148,163,184,.18); }
  .wpg-vbtn.v-neutral.on .vc { color: #cbd5e1; }
  .wpg-vbtn.v-oppose.on { border-color: rgba(239,68,68,.6); background: rgba(239,68,68,.12); box-shadow: 0 0 18px rgba(239,68,68,.22); }
  .wpg-vbtn.v-oppose.on .vc { color: #f87171; }
  .wpg-vote-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--bg-0); border: 1px solid var(--border); margin-top: 14px; }
  .wpg-vote-bar i { display: block; height: 100%; width: 0; transition: width .6s cubic-bezier(.22,1,.36,1); }
  .wpg-vote-bar .vb-s { background: linear-gradient(90deg,#16a34a,#4ade80); }
  .wpg-vote-bar .vb-n { background: linear-gradient(90deg,#64748b,#94a3b8); }
  .wpg-vote-bar .vb-o { background: linear-gradient(90deg,#dc2626,#f87171); }
  .wpg-vote-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-faint); }
  @media (max-width: 640px) {
    .wpg-vote-btns { flex-direction: column; }
    .wpg-vbtn { min-width: 0; width: 100%; }
  }

  .wpg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .wpg-table th { text-align: left; padding: 10px 12px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--border); background: var(--bg-0); white-space: nowrap; }
  .wpg-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-dim); vertical-align: top; }
  .wpg-table td:first-child { color: var(--text); font-weight: 500; }
  .wpg-table tbody tr:last-child td { border-bottom: 0; }
  .wpg-doc-note { font-size: 12.5px; color: var(--text-faint); margin: 14px 0 0; line-height: 1.7; }
  .wpg-doc-links { font-size: 12.5px; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
  .wpg-cert-badges { display: flex; gap: 14px; align-items: center; margin: 4px 0 16px; }
  .wpg-cert-badges img { height: 56px; width: auto; border-radius: 8px; border: 1px solid var(--border); background: #fff; padding: 4px; }

  .wpg-section { margin-top: 44px; }
  .wpg-section h3 { font-size: 19px; margin: 0 0 14px; }
  .wpg-disclaimer { margin-top: 44px; font-size: 12px; color: var(--text-faint); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 16px; }

  @media (max-width: 960px) { .wpg-grid { grid-template-columns: 1fr; } }

/* ============ plan card GPU chip visual（按档位差异化） + single-CTA ============ */
.plan-actions { grid-template-columns: 1fr; }
.plan-visual { position: relative; height: 88px; margin: -2px 0 12px; display: flex; align-items: center; justify-content: center; }

.gpu-vis { --gv-h: 262; }
.gv-orbit { position: absolute; width: 78px; height: 78px; border-radius: 50%;
  border: 1.5px dashed hsl(var(--gv-h) 80% 62% / 0.45);
  box-shadow: 0 0 14px hsl(var(--gv-h) 85% 60% / 0.12), inset 0 0 10px hsl(var(--gv-h) 85% 60% / 0.08);
  animation: gvSpin 11s linear infinite; }
.gv-orbit::before { content: ''; position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: hsl(var(--gv-h) 90% 66%); box-shadow: 0 0 8px hsl(var(--gv-h) 90% 66%), 0 0 18px hsl(var(--gv-h) 90% 60% / 0.6); }
.gv-chip { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; padding: 6px;
  background:
    radial-gradient(circle at 30% 25%, hsl(var(--gv-h) 70% 26% / 0.55), transparent 60%),
    linear-gradient(145deg, hsl(var(--gv-h) 55% 13% / 0.95), hsl(calc(var(--gv-h) + 42) 50% 7% / 0.98));
  border: 1px solid hsl(var(--gv-h) 80% 62% / 0.55);
  box-shadow: 0 0 16px hsl(var(--gv-h) 85% 60% / 0.3), inset 0 0 12px hsl(var(--gv-h) 80% 55% / 0.16);
  transition: box-shadow 0.25s ease, transform 0.25s ease; }
.gv-fan { border-radius: 50%; flex-shrink: 0;
  background: repeating-conic-gradient(from 0deg,
    hsl(var(--gv-h) 88% 64% / 0.95) 0deg 22deg,
    hsl(calc(var(--gv-h) + 42) 85% 58% / 0.35) 22deg 36deg,
    transparent 36deg 72deg);
  -webkit-mask: radial-gradient(circle, transparent 0 3.5px, #000 4.5px);
  mask: radial-gradient(circle, transparent 0 3.5px, #000 4.5px);
  animation: gvSpin var(--fd, 3s) linear infinite; animation-delay: var(--fo, 0s); }
.gv-bars { position: absolute; right: calc(50% - 64px); bottom: 8px; z-index: 1;
  display: flex; gap: 3px; align-items: flex-end; height: 24px; }
.gv-bar { width: 4px; height: 30%; border-radius: 2px;
  background: linear-gradient(to top, hsl(var(--gv-h) 85% 55% / 0.95), hsl(calc(var(--gv-h) + 42) 88% 66% / 0.95));
  box-shadow: 0 0 6px hsl(var(--gv-h) 85% 60% / 0.4);
  animation: gvEq var(--bd, 1s) ease-in-out var(--bo, 0s) infinite alternate; }
@keyframes gvSpin { to { transform: rotate(360deg); } }
@keyframes gvEq { from { height: 18%; opacity: 0.55; } to { height: 100%; opacity: 1; } }
.plan-card:hover .gv-chip { transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 26px hsl(var(--gv-h) 88% 62% / 0.5), inset 0 0 14px hsl(var(--gv-h) 85% 58% / 0.26); }
.plan-card:hover .gv-fan { animation-duration: calc(var(--fd, 3s) / 2.2); }
.plan-card:hover .gv-orbit { animation-duration: 4.5s; border-color: hsl(var(--gv-h) 85% 66% / 0.7); }
@media (prefers-reduced-motion: reduce) { .gv-orbit, .gv-fan, .gv-bar { animation: none; } .gv-bar { height: 60%; } }

/* ============ floating live-support bubble ============ */
.cs-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45); transition: transform .2s ease, box-shadow .2s ease; }
.cs-fab::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(139, 92, 246, 0.55); animation: csPing 2.6s ease-out infinite; }
@keyframes csPing { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.cs-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6); color: #fff; }
@media (prefers-reduced-motion: reduce) { .cs-fab::after { animation: none; } }
