/* Flashline — visual system
   Palette: cool paper, ink navy, signal orange, electric blue, pale mint.
   Type: Space Grotesk / Instrument Serif / IBM Plex Sans / IBM Plex Mono. */

:root {
  --ink: #0b1220;
  --ink-2: #121d30;
  --ink-3: #1b2a42;
  --paper: #f2f6f4;
  --paper-2: #e8efec;
  --panel: #ffffff;
  --line: #d7e1dd;
  --line-strong: #b9c9c3;
  --signal: #ff4d2e;
  --signal-2: #ff7a5c;
  --beam: #1f6feb;
  --mint: #b8f2d0;
  --mint-2: #ddfbea;
  --amber: #f5c84c;
  --muted: #5d6f6a;
  --muted-2: #84938f;
  --danger: #d92d20;
  --ok: #0f7b4f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 30px 90px rgba(11, 18, 32, 0.16);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

pre {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--beam);
  outline-offset: 2px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------- buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 77, 46, 0.24);
}

.btn-primary:hover {
  background: #f04326;
  box-shadow: 0 14px 30px rgba(255, 77, 46, 0.3);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-2);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn-mint {
  background: var(--mint);
  color: var(--ink);
}

.btn-mint:hover {
  background: #a3edc2;
}

.btn-danger {
  border-color: #f3c5bd;
  background: #fff1ee;
  color: var(--danger);
}

.btn-danger:hover {
  background: #ffe7e2;
}

.btn-sm {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 11px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
}

.btn .arrow {
  transition: transform 0.16s ease;
}

.btn:hover .arrow {
  transform: translateX(2px);
}

/* ----------------------------------- header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(185, 201, 195, 0.55);
  background: rgba(242, 246, 244, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(184, 242, 208, 0.15);
}

.logo-mark svg {
  width: 17px;
  height: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  content: "";
}

/* ------------------------------------ hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 52px;
  background: linear-gradient(180deg, #f7faf8 0%, var(--paper) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 22%, transparent 76%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(15, 123, 79, 0.12);
}

.hero-title {
  margin: 20px 0 22px;
  font-family: var(--display);
  font-size: clamp(3.1rem, 6.2vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.hero-title .serif {
  display: inline-block;
  color: var(--signal);
  font-size: 1.06em;
  letter-spacing: -0.03em;
  line-height: 0.8;
}

.hero-sub {
  max-width: 570px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.hero-art {
  position: relative;
  min-width: 0;
}

.terminal-glow {
  position: absolute;
  inset: 12% 2% -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 77, 46, 0.24), transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(31, 111, 235, 0.22), transparent 55%);
  filter: blur(42px);
  pointer-events: none;
}

.terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 242, 208, 0.16);
  border-radius: 18px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #101a2c;
  color: #9fb0c8;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-dots i:nth-child(2) {
  background: #febc2e;
}

.terminal-dots i:nth-child(3) {
  background: #28c840;
}

.terminal-badge {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(184, 242, 208, 0.2);
  border-radius: 999px;
  color: var(--mint);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.terminal-body {
  min-height: 278px;
  padding: 20px 20px 16px;
  background:
    radial-gradient(circle at 85% 10%, rgba(31, 111, 235, 0.14), transparent 40%),
    var(--ink);
}

.terminal-command {
  margin-bottom: 15px;
  color: #8fb3ff;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-command .prompt {
  color: #5f7694;
}

.terminal-command .flag {
  color: #f5c84c;
}

.terminal-command .str {
  color: #b8f2d0;
}

.terminal-output {
  min-height: 148px;
  color: #e7eef7;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-output .answer {
  color: #f7fbff;
}

.terminal-output .dim {
  color: #7f91aa;
}

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  background: var(--mint);
  vertical-align: -2px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.terminal-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1727;
}

.meter {
  padding: 11px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.meter:last-child {
  border-right: 0;
}

.meter-label {
  display: block;
  margin-bottom: 3px;
  color: #7f91aa;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meter-value {
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.terminal-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terminal-foot .live {
  color: var(--ok);
}

.hero-ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-item {
  padding: 15px 20px;
  border-right: 1px solid var(--line);
}

.ticker-item:last-child {
  border-right: 0;
}

.ticker-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker-value {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------- sections -------------------------------- */

.section {
  padding: 92px 0;
}

.section.tight {
  padding-top: 56px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background: var(--signal);
  content: "";
}

.section-title {
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.section-title .serif {
  color: var(--signal);
}

.section-copy {
  max-width: 470px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-copy strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------- features -------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--mint-2);
  color: var(--ink);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ----------------------------------- steps ---------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.03em;
}

.step p {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------- pricing --------------------------------- */

.pricing-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.rate-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.rate-card::after {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.22), transparent 65%);
  content: "";
  pointer-events: none;
}

.rate-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.rate-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.rate-card .rate-sub {
  margin-top: 4px;
  color: #9fb0c8;
  font-size: 12px;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(184, 242, 208, 0.25);
  border-radius: 999px;
  background: rgba(184, 242, 208, 0.1);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-pill.peak {
  border-color: rgba(245, 200, 76, 0.3);
  background: rgba(245, 200, 76, 0.12);
  color: var(--amber);
}

.rate-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rate-row:last-of-type {
  border-bottom: 0;
}

.rate-label {
  color: #c3d1e1;
  font-size: 13px;
}

.rate-label small {
  display: block;
  margin-top: 2px;
  color: #7f91aa;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rate-value {
  color: #fff;
  font-family: var(--mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rate-value span {
  color: #7f91aa;
  font-size: 10px;
}

.rate-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fb0c8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-side {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.pricing-side h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.pricing-side p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.pricing-side .pricing-list {
  display: grid;
  gap: 0;
  margin: 20px 0 24px;
  border-top: 1px solid var(--line);
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.pricing-list li span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.pricing-side .btn {
  margin-top: auto;
}

.rate-note {
  margin-top: 14px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
}

/* ----------------------------------- code ----------------------------------- */

.code-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--line);
  background: #f8fbf9;
  overflow-x: auto;
}

.tab {
  padding: 9px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  border-bottom-color: var(--signal);
  color: var(--ink);
}

.code-shell {
  position: relative;
  background: var(--ink);
}

.code-block {
  min-height: 330px;
  max-height: 460px;
  padding: 22px;
  overflow: auto;
  color: #d7e4f0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  tab-size: 2;
  white-space: pre;
}

.code-block .c-dim {
  color: #7086a1;
}

.code-block .c-key {
  color: #8fb3ff;
}

.code-block .c-str {
  color: #b8f2d0;
}

.code-block .c-num {
  color: #f5c84c;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #c3d1e1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.code-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.code-meta code {
  color: var(--ink);
  text-transform: none;
}

/* --------------------------------- referral --------------------------------- */

.referral-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  overflow: hidden;
  padding: 48px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.referral-band::before {
  position: absolute;
  right: -8%;
  bottom: -35%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 242, 208, 0.16), transparent 65%);
  content: "";
  pointer-events: none;
}

.referral-band .eyebrow {
  color: #9fb0c8;
}

.referral-band .eyebrow::before {
  background: var(--mint);
}

.referral-number {
  position: relative;
  z-index: 1;
  margin: 4px 0 12px;
  color: var(--mint);
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.referral-band h2 {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.referral-band p {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin-top: 14px;
  color: #aebed0;
  font-size: 13.5px;
  line-height: 1.7;
}

.referral-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.referral-side .ref-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 11px;
}

.referral-side .ref-line strong {
  color: var(--mint);
  font-weight: 500;
}

.referral-side .ref-line span {
  color: #9fb0c8;
}

/* ------------------------------------ faq ----------------------------------- */

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  content: "+";
}

.faq details[open] summary::after {
  content: "−";
}

.faq .faq-body {
  max-width: 800px;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.faq .faq-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 11.5px;
}

/* ---------------------------------- footer ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #eef4f1;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding: 48px 0 36px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.footer-col h4 {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-bottom .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom .status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

/* ----------------------------------- auth ----------------------------------- */

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--paper);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 44px 48px;
  background: var(--ink);
  color: #fff;
}

.auth-aside::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%);
  content: "";
  pointer-events: none;
}

.auth-aside::after {
  position: absolute;
  right: -20%;
  bottom: -20%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.22), transparent 65%);
  content: "";
  pointer-events: none;
}

.auth-aside .logo {
  position: relative;
  z-index: 1;
  color: #fff;
}

.auth-aside .logo-mark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint);
}

.auth-aside-copy {
  position: relative;
  z-index: 1;
  max-width: 470px;
  padding: 48px 0;
}

.auth-aside-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.auth-aside-copy h1 .serif {
  color: var(--mint);
}

.auth-aside-copy p {
  max-width: 380px;
  margin-top: 18px;
  color: #aebed0;
  font-size: 14px;
  line-height: 1.7;
}

.auth-aside-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #7f91aa;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-aside-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-aside-foot span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.auth-sub {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-switch {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.auth-switch a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.auth-switch a:hover {
  text-decoration-color: var(--signal);
}

.field {
  margin-bottom: 15px;
}

.field.full {
  grid-column: 1 / -1;
}

.label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.label small {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fbfdfc;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--beam);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
  outline: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #a2b0ac;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.check-row input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--signal);
}

.check-row a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-error {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #f3c5bd;
  border-radius: 8px;
  background: #fff1ee;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.form-error.show {
  display: block;
}

.form-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.form-note code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--paper-2);
  font-size: 10px;
}

.strength {
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
}

.strength-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width 0.2s ease, background 0.2s ease;
}

/* ----------------------------------- app ------------------------------------ */

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef4f1;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 15px 18px;
  overflow-y: auto;
  background: var(--ink);
  color: #dbe6f2;
}

.sidebar .logo {
  padding: 0 8px;
  color: #fff;
}

.sidebar .logo-mark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint);
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  margin-top: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #9fb0c8;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  border-color: rgba(184, 242, 208, 0.18);
  background: rgba(184, 242, 208, 0.1);
  color: var(--mint);
}

.nav-item.active svg {
  opacity: 1;
}

.sidebar-label {
  margin: 22px 11px 7px;
  color: #6f8299;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.balance-mini {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.balance-mini .label {
  margin-bottom: 2px;
  color: #7f91aa;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.balance-mini .value {
  color: #fff;
  font-family: var(--mono);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.balance-mini .sub {
  margin-top: 2px;
  color: #7f91aa;
  font-size: 10px;
}

.balance-mini .btn {
  width: 100%;
  margin-top: 10px;
  min-height: 31px;
  font-size: 10px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 0 4px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(184, 242, 208, 0.14);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.user-row .user-meta {
  min-width: 0;
  flex: 1;
}

.user-row .user-meta strong {
  display: block;
  overflow: hidden;
  color: #dbe6f2;
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row .user-meta span {
  display: block;
  overflow: hidden;
  color: #6f8299;
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: transparent;
  color: #9fb0c8;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-title {
  overflow: hidden;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #bfe9d3;
  border-radius: 999px;
  background: var(--mint-2);
  color: var(--ok);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-badge.peak {
  border-color: #f0dfa5;
  background: #fff8df;
  color: #8a5a00;
}

.phase-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.topbar .btn {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 10.5px;
}

.sidebar-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.sidebar-toggle span,
.sidebar-toggle::before,
.sidebar-toggle::after {
  display: block;
  width: 14px;
  height: 1.5px;
  margin: 3.5px auto;
  background: var(--ink);
  content: "";
}

.sidebar-backdrop {
  display: none;
}

.app-content {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 30px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 3px 0 4px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.page-head p {
  color: var(--muted);
  font-size: 12.5px;
}

.page-head .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-head .actions .btn {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 11.5px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-label svg {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}

.stat-value {
  margin: 7px 0 2px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  color: var(--muted);
  font-size: 10.5px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: 13px;
  margin-bottom: 16px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-title small {
  margin-left: 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-body {
  padding: 17px;
}

.panel-body.flush {
  padding: 0;
}

.panel-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-link:hover {
  color: var(--ink);
}

.chart-wrap {
  padding: 12px 8px 4px;
}

.chart {
  width: 100%;
  height: auto;
  min-height: 150px;
}

.chart-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-list {
  display: grid;
  gap: 0;
}

.quick-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
}

.quick-list li:last-child {
  border-bottom: 0;
}

.quick-list .num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--mint-2);
  color: var(--ok);
  font-family: var(--mono);
  font-size: 9px;
}

.quick-list .mono {
  font-size: 10px;
  color: var(--muted);
  word-break: break-all;
}

.quick-list .btn {
  margin-top: 8px;
}

.queue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
}

.queue-aggregate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.queue-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.queue-stat-label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.queue-stat strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.queue-stat-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.queue-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-content: start;
}

.queue-slot {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.queue-slot.is-running {
  border-color: var(--mint);
  background: linear-gradient(135deg, var(--mint-2), #ffffff 70%);
}

.queue-slot.is-idle {
  opacity: 0.7;
}

.queue-slot-kicker,
.queue-next-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.queue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.queue-slot.is-running .queue-dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(15, 123, 79, 0.12);
}

.queue-slot-name {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.queue-slot-meta,
.queue-wait-meta,
.queue-more,
.queue-idle-copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.queue-next {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.queue-next-head {
  margin-bottom: 5px;
}

.queue-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.queue-wait:last-of-type {
  border-bottom: 0;
}

.queue-wait.is-mine {
  margin: 0 -6px;
  padding: 9px 6px;
  border-radius: 8px;
  background: var(--mint-2);
}

.queue-pos {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
}

.queue-wait-main {
  min-width: 0;
}

.queue-wait-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-mine {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 10.5px;
  line-height: 1.45;
}

.queue-mine strong {
  color: var(--mint);
}

.balance-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 22px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
}

.balance-card::after {
  position: absolute;
  right: -15%;
  bottom: -40%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 242, 208, 0.16), transparent 65%);
  content: "";
  pointer-events: none;
}

.balance-card .label {
  position: relative;
  z-index: 1;
  color: #9fb0c8;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.balance-card .amount {
  position: relative;
  z-index: 1;
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.balance-card .sub {
  position: relative;
  z-index: 1;
  color: #9fb0c8;
  font-size: 11px;
}

.balance-card .actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.balance-card .btn {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 10px;
}

.referral-mini {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #f5faf7);
}

.referral-mini .big {
  margin: 3px 0 5px;
  color: var(--signal);
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.referral-mini p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.referral-mini .ref-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font-family: var(--mono);
  font-size: 10px;
}

.referral-mini .ref-code button {
  border: 0;
  background: transparent;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------------------------------- tables ---------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: #f8fbf9;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f9fcfb;
}

.td-strong {
  font-weight: 600;
}

.td-mono {
  font-family: var(--mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.td-muted {
  color: var(--muted);
  font-size: 10.5px;
}

.td-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.td-right {
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbf9;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.badge-ok {
  border-color: #bfe9d3;
  background: var(--mint-2);
  color: var(--ok);
}

.badge-warn {
  border-color: #f0dfa5;
  background: #fff8df;
  color: #8a5a00;
}

.badge-danger {
  border-color: #f3c5bd;
  background: #fff1ee;
  color: var(--danger);
}

.badge-muted {
  border-color: var(--line);
  background: #f5f8f6;
  color: var(--muted-2);
}

.empty {
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbf9;
  color: var(--muted-2);
}

.empty-icon svg {
  width: 21px;
  height: 21px;
}

.empty h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.03em;
}

.empty p {
  max-width: 360px;
  margin: 0 auto 14px;
  font-size: 11.5px;
  line-height: 1.6;
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, #e8efec 25%, #f5f9f7 37%, #e8efec 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.skeleton-line {
  height: 10px;
  margin-bottom: 8px;
}

.skeleton-card {
  height: 88px;
}

/* -------------------------------- key / copy -------------------------------- */

.copy-field {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f8fbf9;
}

.copy-field code {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-field button {
  flex: 0 0 auto;
  padding: 0 11px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-field button:hover {
  background: var(--mint-2);
  color: var(--ink);
}

.key-reveal {
  padding: 14px;
  border: 1px solid rgba(184, 242, 208, 0.2);
  border-radius: 9px;
  background: var(--ink);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  word-break: break-all;
}

.warning-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #f0dfa5;
  border-radius: 8px;
  background: #fff8df;
  color: #715000;
  font-size: 10.5px;
  line-height: 1.55;
}

.warning-note svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

/* ---------------------------------- filters --------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.search-input {
  width: 260px;
  max-width: 100%;
}

.select-sm {
  width: auto;
  min-height: 34px;
  padding: 6px 28px 6px 10px;
  font-size: 11px;
}

.tabs-inline {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8efec;
}

.tab-btn {
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.08);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10.5px;
}

/* ---------------------------------- modals ---------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(480px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  animation: modal-in 0.18s ease both;
}

.modal.wide {
  width: min(620px, 100%);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 21px 15px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.modal-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.modal-body {
  padding: 19px 21px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 21px 19px;
  border-top: 1px solid var(--line);
}

.modal-actions .btn {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 11.5px;
}

/* ---------------------------------- toasts ---------------------------------- */

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  padding: 11px 13px;
  border: 1px solid rgba(184, 242, 208, 0.2);
  border-left: 3px solid var(--mint);
  border-radius: 9px;
  background: var(--ink);
  color: #e7eef7;
  font-size: 11.5px;
  line-height: 1.5;
  box-shadow: var(--shadow);
  animation: toast-in 0.18s ease both;
}

.toast.error {
  border-left-color: var(--signal);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------------------------------- docs ------------------------------------ */

.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 0 80px;
}

.docs-side {
  position: sticky;
  top: 92px;
  align-self: start;
}

.docs-side h4 {
  margin: 18px 0 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-side a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11.5px;
}

.docs-side a:hover {
  color: var(--ink);
}

.docs-main {
  min-width: 0;
  max-width: 820px;
}

.docs-main h1 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.docs-main .lead {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.docs-main h2 {
  margin: 42px 0 12px;
  padding-top: 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.docs-main h3 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.docs-main p,
.docs-main li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.docs-main p {
  margin-bottom: 12px;
}

.docs-main ul {
  margin: 0 0 16px;
  padding-left: 18px;
  list-style: disc;
}

.docs-main li {
  margin-bottom: 5px;
}

.docs-main code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 11.5px;
}

.docs-main .code-card {
  margin: 16px 0 22px;
}

.docs-main .code-block {
  min-height: 0;
  max-height: 440px;
}

.docs-table {
  margin: 14px 0 22px;
}

.docs-note {
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.docs-note strong {
  color: var(--ink);
}

/* ---------------------------------- legal ----------------------------------- */

.legal-page {
  max-width: 760px;
  padding: 64px 0 80px;
}

.legal-page h1 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.legal-page .updated {
  margin-bottom: 30px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-page h2 {
  margin: 30px 0 8px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-page p {
  margin-bottom: 12px;
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 18px;
  list-style: disc;
}

.legal-page li {
  margin-bottom: 5px;
}

/* --------------------------------- responsive -------------------------------- */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-art {
    width: min(660px, 100%);
  }

  .hero-title {
    max-width: 800px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-wrap {
    grid-template-columns: 1fr;
  }

  .referral-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
  }

  .auth-page {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .auth-aside {
    padding: 36px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .queue-layout,
  .queue-aggregate {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    width: 250px;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    background: rgba(11, 18, 32, 0.45);
  }

  .sidebar-backdrop.open {
    display: block;
  }

  .sidebar-toggle {
    display: block;
  }

  .topbar {
    padding: 0 18px;
  }

  .app-content {
    padding: 20px;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 32px 20px;
  }

  .auth-card {
    box-shadow: none;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .docs-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .docs-side h4 {
    width: 100%;
    margin: 0;
  }

  .docs-side a {
    padding: 2px 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 60px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 9px 10px;
    border-radius: 6px;
  }

  .nav-link:hover {
    background: var(--paper-2);
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 54px 0 32px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-ticker {
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
  }

  .ticker-item:nth-child(2) {
    border-right: 0;
  }

  .ticker-item:nth-child(3),
  .ticker-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .ticker-item:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .section {
    padding: 62px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .referral-band {
    padding: 30px 24px;
  }

  .referral-number {
    font-size: 4.6rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding: 36px 0 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-title {
    font-size: 14px;
  }

  .phase-badge {
    display: none;
  }

  .app-content {
    padding: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 24px;
  }

  .panel-head,
  .panel-body {
    padding: 14px;
  }

  .balance-card {
    min-height: 190px;
    padding: 18px;
  }

  .modal {
    max-height: 90vh;
  }

  .search-input {
    width: 100%;
  }

  .docs-layout {
    padding: 30px 0 56px;
  }

  .legal-page {
    padding: 40px 0 56px;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 6px 14px;
    font-size: 9px;
  }

  .terminal-body {
    min-height: 250px;
    padding: 15px;
  }

  .terminal-output {
    font-size: 11px;
  }

  .terminal-meter {
    grid-template-columns: 1fr;
  }

  .meter {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .meter:last-child {
    border-bottom: 0;
  }

  .rate-card,
  .pricing-side {
    padding: 22px;
  }

  .rate-value {
    font-size: 18px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .topbar {
    min-height: 58px;
    padding: 0 12px;
  }

  .topbar-meta .btn {
    display: none;
  }

  .page-head h1 {
    font-size: 26px;
  }

  .toast-stack {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

/* ---------------------------------- motion ---------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------- utilities --------------------------------- */

[hidden] {
  display: none !important;
}

.chart-label {
  fill: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.form-grid .field.full {
  grid-column: 1 / -1;
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-icon svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .keys-grid,
  .settings-grid,
  .billing-grid {
    grid-template-columns: 1fr !important;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------- theme toggle ------------------------------- */

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--panel);
}

.theme-toggle .theme-icon {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
}

.theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.topbar-meta .theme-toggle {
  width: 32px;
  height: 32px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6f2;
}

.topbar-meta .theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.auth-theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
}

.chart-axis {
  stroke: var(--line);
}

.chart-line {
  stroke: var(--signal);
}

.chart-dot {
  fill: var(--signal);
}

.chart-stop {
  stop-color: var(--signal);
}

/* --------------------------------- dark theme -------------------------------- */

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7efec;
  --ink-2: #d5e2de;
  --ink-3: #b9cbc5;
  --paper: #0b1220;
  --paper-2: #0f1828;
  --panel: #111c2e;
  --line: #203044;
  --line-strong: #2c4058;
  --signal: #ff6a4d;
  --signal-2: #ff8a72;
  --beam: #6aa6ff;
  --mint: #b8f2d0;
  --mint-2: #153528;
  --amber: #f5c84c;
  --muted: #9aadaa;
  --muted-2: #6f8581;
  --danger: #ff7a6b;
  --ok: #52d99a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] ::selection {
  background: #2f6b4e;
  color: #fff;
}

html[data-theme="dark"] .theme-toggle {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .site-header {
  border-bottom-color: var(--line);
  background: rgba(7, 16, 28, 0.82);
}

html[data-theme="dark"] .logo-mark {
  background: #1b2c43;
  color: var(--mint);
}

html[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #0d1727 0%, var(--paper) 100%);
}

html[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

html[data-theme="dark"] .hero-badge {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .mobile-toggle,
html[data-theme="dark"] .sidebar-toggle {
  background: var(--panel);
}

html[data-theme="dark"] .btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

html[data-theme="dark"] .btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .btn-mint {
  background: var(--mint);
  color: #08111e;
}

html[data-theme="dark"] .btn-mint:hover {
  background: #a3edc2;
}

html[data-theme="dark"] .btn-dark {
  background: #08111e;
  color: #fff;
}

html[data-theme="dark"] .btn-dark:hover {
  background: #101a2c;
}

html[data-theme="dark"] .btn-danger {
  border-color: rgba(255, 122, 107, 0.35);
  background: rgba(255, 122, 107, 0.12);
  color: var(--danger);
}

html[data-theme="dark"] .btn-danger:hover {
  background: rgba(255, 122, 107, 0.2);
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea {
  border-color: var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
}

html[data-theme="dark"] .input:focus,
html[data-theme="dark"] .select:focus,
html[data-theme="dark"] .textarea:focus {
  border-color: var(--beam);
  background: var(--panel);
  box-shadow: 0 0 0 3px rgba(106, 166, 255, 0.16);
}

html[data-theme="dark"] .input::placeholder,
html[data-theme="dark"] .textarea::placeholder {
  color: var(--muted-2);
}

html[data-theme="dark"] .form-error {
  border-color: rgba(255, 122, 107, 0.35);
  background: rgba(255, 122, 107, 0.1);
}

html[data-theme="dark"] .terminal,
html[data-theme="dark"] .code-shell,
html[data-theme="dark"] .rate-card,
html[data-theme="dark"] .referral-band,
html[data-theme="dark"] .auth-aside,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .queue-mine,
html[data-theme="dark"] .balance-card,
html[data-theme="dark"] .key-reveal,
html[data-theme="dark"] .toast {
  background-color: #08111e;
}

html[data-theme="dark"] .terminal-body {
  background:
    radial-gradient(circle at 85% 10%, rgba(106, 166, 255, 0.12), transparent 40%),
    #08111e;
}

html[data-theme="dark"] .site-footer {
  background: var(--paper-2);
}

html[data-theme="dark"] .app-shell {
  background: var(--paper);
}

html[data-theme="dark"] .topbar {
  border-bottom-color: var(--line);
  background: rgba(7, 16, 28, 0.82);
}

html[data-theme="dark"] .phase-badge {
  border-color: #1f5a3f;
  background: var(--mint-2);
  color: var(--ok);
}

html[data-theme="dark"] .phase-badge.peak {
  border-color: rgba(245, 200, 76, 0.3);
  background: rgba(245, 200, 76, 0.12);
  color: var(--amber);
}

html[data-theme="dark"] .tabs,
html[data-theme="dark"] th,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .empty-icon,
html[data-theme="dark"] .copy-field {
  background: var(--paper-2);
}

html[data-theme="dark"] tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .badge-ok {
  border-color: #1f5a3f;
  background: var(--mint-2);
  color: var(--ok);
}

html[data-theme="dark"] .badge-warn {
  border-color: rgba(245, 200, 76, 0.3);
  background: rgba(245, 200, 76, 0.12);
  color: var(--amber);
}

html[data-theme="dark"] .badge-danger {
  border-color: rgba(255, 122, 107, 0.35);
  background: rgba(255, 122, 107, 0.12);
  color: var(--danger);
}

html[data-theme="dark"] .badge-muted {
  border-color: var(--line);
  background: var(--paper-2);
  color: var(--muted-2);
}

html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #17243a 25%, #22324a 37%, #17243a 63%);
  background-size: 400% 100%;
}

html[data-theme="dark"] .copy-field button {
  border-left-color: var(--line);
  background: var(--panel);
  color: var(--muted);
}

html[data-theme="dark"] .copy-field button:hover {
  background: var(--mint-2);
  color: var(--ink);
}

html[data-theme="dark"] .warning-note {
  border-color: rgba(245, 200, 76, 0.3);
  background: rgba(245, 200, 76, 0.1);
  color: #f0d894;
}

html[data-theme="dark"] .tabs-inline {
  background: var(--paper-2);
}

html[data-theme="dark"] .tab-btn.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .modal {
  border-color: var(--line-strong);
}

html[data-theme="dark"] .modal-close {
  background: var(--panel);
  color: var(--muted);
}

html[data-theme="dark"] .modal-close:hover {
  background: var(--paper-2);
  color: var(--ink);
}

html[data-theme="dark"] .docs-note {
  background: var(--panel);
}

html[data-theme="dark"] .queue-slot.is-running {
  background: linear-gradient(135deg, var(--mint-2), var(--panel) 70%);
}

html[data-theme="dark"] .referral-mini {
  background: linear-gradient(145deg, var(--panel), var(--paper-2));
}

html[data-theme="dark"] .referral-mini .ref-code {
  background: var(--panel);
}

html[data-theme="dark"] .chart-axis {
  stroke: var(--line);
}

html[data-theme="dark"] .chart-line {
  stroke: var(--signal);
}

html[data-theme="dark"] .chart-dot {
  fill: var(--signal);
}

html[data-theme="dark"] .chart-stop {
  stop-color: var(--signal);
}

@media (max-width: 720px) {
  html[data-theme="dark"] .nav-links {
    background: var(--panel);
  }
}
