:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  --bg: #070709;
  --bg-elev: #0d0d0f;
  --surface: #111113;
  --card: #131315;
  --card-hover: #19191b;
  --line: rgba(161, 161, 163, 0.16);
  --line-soft: rgba(161, 161, 163, 0.09);
  --muted: #9b9b9d;
  --text: #f5f5f7;
  --accent: #7d7d7f;
  --accent-bright: #b8b8ba;
  --accent-soft: rgba(125, 125, 127, 0.16);
  --accent-border: rgba(162, 162, 164, 0.42);
  --green: #2EE59D;
  --green-bg: rgba(46, 229, 157, 0.12);
  --green-border: rgba(46, 229, 157, 0.36);
  --warn: #F6C36A;
  --warn-bg: rgba(246, 195, 106, 0.12);
  --warn-border: rgba(246, 195, 106, 0.35);
  --danger: #FF788A;
  --danger-bg: rgba(255, 120, 138, 0.12);
  --danger-border: rgba(255, 120, 138, 0.38);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: clip; }
h1,h2,h3,h4,p { margin: 0; }
h1,h2,h3,h4,strong { font-weight: 600; }
h1 { font-size: clamp(34px, 4.9vw, 56px); letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -0.03em; line-height: 1.18; }
h3 { font-size: 16.5px; letter-spacing: -0.015em; }
a { color: var(--accent-bright); text-decoration: none; }
button, .button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted, small { color: var(--muted); }
small { font-size: 0.86rem; }
.loading { text-align: center; margin: 22vh 20px; color: var(--muted); }

/* Ambient Cosmos & Grid Backdrop */
.site {
  position: relative;
  min-height: 100svh;
  background: var(--bg);
}
.site::before {
  content: "";
  position: fixed;
  inset: -12vh -10vw auto -10vw;
  height: 110vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 48% 36% at 22% 14%, rgba(125, 125, 127, 0.24), transparent 70%),
    radial-gradient(ellipse 40% 34% at 80% 18%, rgba(158, 158, 160, 0.11), transparent 72%),
    radial-gradient(ellipse 38% 32% at 52% 68%, rgba(46, 229, 157, 0.05), transparent 72%);
  animation: auroraDrift 15s ease-in-out infinite alternate;
}
.site::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(184, 184, 186, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 184, 186, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 78% 58% at 50% 24%, #000 18%, transparent 80%);
}
.site > * { position: relative; z-index: 1; }

/* Header / Topbar */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 7, 9, 0.78);
  border-bottom: 1px solid var(--line-soft);
}
.topbar {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 13px clamp(16px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-text .accent {
  background: linear-gradient(125deg, #ceced0, #7d7d7f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  color: var(--muted);
  font-size: 13.8px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background-color .15s;
}
.topnav a:hover { color: var(--text); background: rgba(125, 125, 127, 0.12); }
.top-actions { display: flex; align-items: center; gap: 9px; }

.lang-pill {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.lang-pill button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background-color .15s, color .15s;
}
.lang-pill button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

/* Buttons & Inputs */
.button, button.action {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 18px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #171719;
  font-size: 14px;
  font-weight: 550;
  transition: transform .16s var(--ease-out), border-color .18s, background-color .18s, box-shadow .18s;
}
.button:hover, button.action:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
  background: #1f1f21;
}
.button:active, button.action:active { transform: translateY(0) scale(.98); }
.button.primary, button.primary {
  background: linear-gradient(135deg, #949496, #676769);
  color: #FFFFFF;
  border-color: rgba(206, 206, 208, 0.35);
  box-shadow: 0 10px 26px rgba(125, 125, 127, 0.28);
}
.button.primary::after, button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.28) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.button.primary:hover::after, button.primary:hover::after { transform: translateX(130%); }
.button.primary:hover, button.primary:hover {
  box-shadow: 0 14px 34px rgba(125, 125, 127, 0.42);
  border-color: rgba(220, 220, 222, 0.6);
}
.button.ghost, button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.ghost:hover, button.ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.button.sm, button.sm { min-height: 36px; padding: 6px 13px; font-size: 13px; border-radius: 8px; }
button:disabled, .button.disabled { opacity: 0.48; cursor: default; pointer-events: none; }
button.danger { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-border); }
button.danger:hover { background: rgba(255, 120, 138, 0.2); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.link-button { background: none; border: 0; color: var(--accent-bright); padding: 0; text-decoration: underline; }
.link-button:hover { color: #FFFFFF; }

label { display: grid; gap: 6px; font-size: 13.5px; color: var(--text); }
input:not([type=checkbox]), select, textarea {
  width: 100%;
  padding: 10px 13px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b0b0d;
  color: var(--text);
  transition: border-color .16s, box-shadow .16s;
}
input:not([type=checkbox]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(125, 125, 127, 0.22);
}
input[type=checkbox]:not(.switch) { accent-color: var(--accent); width: 16px; height: 16px; }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 8px; }
.error { color: var(--danger); font-size: 13.5px; }
.error:empty { display: none; }

/* Pills & Status Badges */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill.accent { background: var(--accent-soft); border-color: var(--accent-border); color: #e4e4e6; }
.pill.pro { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); flex: none; }
.dot.good { background: var(--green); box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.55); animation: pulseDot 2.3s ease-out infinite; }
.dot.wait { background: var(--warn); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.2px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.good { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.status.wait { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn); }
.status.bad { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }

/* Landing Container & Hero */
.container { width: min(100%, 1180px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.landing-hero {
  padding: clamp(46px, 6.5vw, 82px) 0 clamp(44px, 6vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}
.hero-copy { display: grid; gap: 20px; align-content: start; }
.hero-copy > * { animation: heroRise .55s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-grad {
  background: linear-gradient(120deg, #FFFFFF 12%, #cbcbcd 55%, #7d7d7f 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { color: var(--muted); font-size: 16.5px; max-width: 46ch; line-height: 1.62; }
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 6px;
}
.hero-metric { display: grid; gap: 2px; }
.hero-metric strong { font-size: 18px; color: #FFFFFF; letter-spacing: -0.02em; }
.hero-metric span { font-size: 12.2px; color: var(--muted); }

/* Live Interactive 1:1 Hertz Tweak Desktop App Preview */
.app-preview {
  position: relative;
  border-radius: 16px;
  background: #09090b;
  border: 1px solid rgba(169, 169, 171, 0.3);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.68), 0 0 60px rgba(125, 125, 127, 0.16);
  overflow: hidden;
  animation: studioEnter .68s var(--ease-out) .08s both;
  transition: transform .3s var(--ease-out), border-color .25s;
}
.app-preview:hover { transform: translateY(-3px); border-color: rgba(184, 184, 186, 0.52); }
.preview-titlebar {
  height: 36px;
  padding: 0 14px;
  background: #0c0c0e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-brand { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.preview-brand img { width: 16px; height: 16px; }
.preview-win-dots { display: flex; gap: 6px; }
.preview-win-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.preview-shell {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 344px;
}
.preview-sidebar {
  background: #08080a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview-group-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6d;
  padding: 6px 8px 2px;
}
.preview-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.2px;
  text-align: left;
  transition: background-color .15s, color .15s;
}
.preview-nav-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.preview-nav-btn[aria-selected="true"] {
  background: linear-gradient(90deg, #7d7d7f, #525254);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(125, 125, 127, 0.3);
}
.preview-main {
  padding: 16px 18px;
  background: radial-gradient(circle at 82% 16%, rgba(125, 125, 127, 0.14), transparent 52%), #0b0b0d;
  display: grid;
  gap: 12px;
  align-content: start;
  animation: tabEnter .24s var(--ease-out) both;
}
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.preview-head h3 { font-size: 16px; }
.preview-tweak-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.preview-card {
  padding: 11px 12px;
  border-radius: 10px;
  background: #131315;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color .18s, background-color .18s;
}
.preview-card.is-on { border-color: rgba(162, 162, 164, 0.45); background: #18181a; }
.preview-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: var(--accent-bright); }
.preview-card strong { font-size: 12.6px; display: block; line-height: 1.25; }
.preview-card small { font-size: 11px; display: block; line-height: 1.35; }
.mini-switch {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #2a2a2c;
  position: relative;
  transition: background-color .18s;
  flex: none;
}
.mini-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d6d6d8;
  transition: transform .18s var(--ease-out), background-color .18s;
}
.preview-card.is-on .mini-switch { background: var(--accent); }
.preview-card.is-on .mini-switch::after { transform: translateX(14px); background: #FFFFFF; }

.preview-preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.preview-preset-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.preview-preset-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-preset-card.vendor img { object-fit: contain; padding: 14px 8px 46px; }
.preview-preset-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(8, 8, 10, 0.94) 100%);
}
.preview-preset-card span { position: relative; z-index: 1; font-size: 12px; font-weight: 700; color: #FFFFFF; }
.preview-potato-box {
  padding: 12px;
  border-radius: 11px;
  background: #131315;
  border: 1px solid rgba(119, 185, 0, 0.35);
  display: grid;
  gap: 10px;
}
.preview-potato-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.preview-potato-btn {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0d0d0f;
  color: var(--text);
  font-size: 11.5px;
  text-align: left;
}
.preview-potato-btn[aria-pressed="true"] {
  border-color: #77B900;
  background: rgba(119, 185, 0, 0.14);
}
.code-line {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: #C7FFE2;
  background: #09090b;
  border: 1px solid rgba(46, 229, 157, 0.25);
  border-radius: 8px;
  padding: 7px 10px;
}

/* Landing Sections */
.landing-section { padding: clamp(52px, 6.5vw, 88px) 0; border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 10px; max-width: 60ch; margin-bottom: 32px; }
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  position: relative;
  padding: 24px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform .24s var(--ease-out), border-color .24s, box-shadow .24s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45); }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
}
.feature-icon svg { width: 20px; height: 20px; }

/* Pricing Compare */
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.tier-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .24s var(--ease-out), border-color .24s;
}
.tier-card:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.tier-card.featured {
  border-color: var(--accent-border);
  background: linear-gradient(155deg, rgba(125, 125, 127, 0.2) 0%, var(--card) 52%);
  box-shadow: 0 24px 60px rgba(125, 125, 127, 0.14);
}
.tier-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tier-price { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 14.2px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: #dfdfe1; }
.check-list li.is-locked { color: #6f6f71; }
.check-mark { color: var(--green); font-weight: 700; flex: none; }
.lock-mark { color: #6f6f71; flex: none; }
.tier-foot { margin-top: auto; padding-top: 8px; display: grid; gap: 10px; }

/* FAQ & Footer */
.faq-list { display: grid; gap: 11px; max-width: 820px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-bright); font-size: 19px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: 14.3px; }
.landing-footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Auth & Customer / Admin Portal */
.auth {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse 75% 42% at 50% 8%, rgba(125, 125, 127, 0.22) 0%, var(--bg) 60%);
}
.auth-panel { width: 100%; max-width: 440px; display: grid; gap: 18px; animation: heroRise .35s var(--ease-out) both; }
.auth-panel > .brand { justify-content: center; }
.auth-panel .card {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
}
.auth-panel h1 { font-size: 28px; }

.portal-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 28px) 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.rail {
  position: sticky;
  top: 82px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail nav { display: grid; gap: 4px; }
.navitem {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  text-align: left;
  transition: background-color .15s, color .15s;
}
.navitem svg { width: 17px; height: 17px; flex: none; }
.navitem:hover { background: rgba(255,255,255,.04); color: var(--text); }
.navitem[aria-current="page"] { background: linear-gradient(90deg, rgba(125, 125, 127, 0.35), rgba(125, 125, 127, 0.14)); color: #FFFFFF; }
.workspace { display: grid; gap: 22px; min-width: 0; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-header h1 { font-size: clamp(24px, 3vw, 32px); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  padding: 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(125, 125, 127, 0.2), var(--card) 64%);
  border: 1px solid var(--accent-border);
}
.hero-left { display: flex; align-items: center; gap: 16px; }
.hero-left img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.metric-list { display: grid; gap: 11px; margin: 0; }
.metric-list > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.metric-list dt { color: var(--muted); font-size: 13.5px; }
.metric-list dd { margin: 0; text-align: right; word-break: break-word; font-weight: 500; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: 12.5px; color: var(--muted); }
.table-tools { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-card { padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; }
.kpi-value { font-size: 22px; font-weight: 700; }
.select-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.divider-top { border-top: 1px solid var(--line-soft); padding-top: 16px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  padding: 11px 16px;
  border-radius: 10px;
  background: #1a1a1c;
  border: 1px solid var(--accent-border);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
dialog {
  max-width: 540px;
  width: min(94vw, 540px);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 24px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}
dialog::backdrop { background: rgba(4, 4, 6, 0.74); backdrop-filter: blur(6px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.key { min-height: 82px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.switch {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #2c2c2e;
  position: relative;
  border: 1px solid var(--line);
  cursor: pointer;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform .18s var(--ease-out);
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }

/* Reveal & Keyframes */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.no-animations *, .no-animations *::before, .no-animations *::after { animation: none !important; transition: none !important; }

@keyframes auroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.04); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes studioEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes tabEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.55); }
  75% { box-shadow: 0 0 0 7px rgba(46, 229, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); }
}

@media (max-width: 960px) {
  .landing-hero, .bento-grid, .compare-grid, .portal-layout, .grid, .kpi-grid { grid-template-columns: 1fr; }
  .rail { position: static; }
  .preview-shell { grid-template-columns: 1fr; }
  .preview-sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .preview-group-label { display: none; }
  .preview-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .topnav { display: none; }
  .preview-tweak-grid { grid-template-columns: 1fr; }
}

.rail-group { display: grid; gap: 3px; }
.rail-group + .rail-group { border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 7px; }
.rail-group > span { padding: 3px 12px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.admin-stat {
  position: relative; display: grid; gap: 8px; padding: 17px 18px; border-radius: 12px; text-align: left;
  border: 1px solid var(--line); background: linear-gradient(140deg, #1e1e20, var(--card) 70%);
  color: var(--muted); transition: border-color .2s, transform .2s;
}
.admin-stat:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.admin-stat strong { font-size: 26px; font-weight: 650; color: var(--text); }
.admin-stat span:last-child { position: absolute; bottom: 17px; right: 17px; color: #b7b7b9; }
.recent-registrations { display: grid; }
.recent-registrations > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.recent-registrations small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.account-access { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 620px) {
  .admin-stats { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .admin-stat { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 8px 34px 8px 12px; }
  .admin-stat strong { font-size: 19px; }
  .admin-stat span:last-child { bottom: auto; right: 12px; }
}
