/* CARTOMANTE — dark theme, sharp edges, mono labels (design system: ui-design-system.json) */

:root {
  --bg: #0a0b0c;
  --panel: #131417;
  --line: #212328;
  --accent: #0159b3;
  --accent-soft: rgba(1, 89, 179, 0.10);
  --accent-glow: rgba(1, 89, 179, 0.22);
  --text: #e9e6df;
  --dim: #8a8d94;
  --faint: #4b4e56;
  --red: #b23b28;
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: #b23b28; color: #0a0b0c; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

button {
  font-family: var(--font-mono);
  cursor: pointer;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- glitch text (per-char spans) ---------- */
.glitch { display: inline; }
.glitch .g-let { display: inline-block; overflow: hidden; text-align: center; vertical-align: bottom; }
.glitch .g-word { display: inline-block; white-space: nowrap; }
.glitch .g-sp { display: inline-block; flex: none; } /* nbsp survives flex/-webkit-box parents */

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 72px;
  background: rgba(10, 11, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(33, 35, 40, 0.8);
}
@media (min-width: 640px) { .nav { height: 80px; } }
.nav-inner {
  max-width: 1040px; margin: 0 auto; height: 100%;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
@media (min-width: 640px) { .nav-inner { padding: 0 28px; } }
.nav-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint); min-height: 44px;
  transition: color 150ms ease;
}
.nav-status:hover { color: var(--dim); }
.dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.nav-right { display: flex; align-items: center; gap: 24px; }
@media (min-width: 640px) { .nav-right { gap: 32px; } }
.nav-link {
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 150ms ease;
}
@media (min-width: 640px) { .nav-link { font-size: 13px; } }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }
.nav-lang {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  background: none; border: 1px solid var(--line); color: var(--faint);
  min-height: 32px; padding: 0 10px;
  transition: all 150ms ease;
}
.nav-lang:hover { color: var(--dim); border-color: var(--faint); }
.nav-lang.on { color: var(--accent); border-color: rgba(1, 89, 179, 0.4); }
.tier-badge {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); border: 1px solid rgba(1, 89, 179, 0.4);
  padding: 4px 8px; background: var(--accent-soft);
}
.nav-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.nav-logo { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(0, 153, 255, 0.35)); }
.nav-brand-txt { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--text); }
@media (max-width: 639px) { .nav-brand-txt { display: none; } }
.hero-logo { width: clamp(120px, 20vw, 176px); height: auto; margin-bottom: 26px; filter: drop-shadow(0 0 18px rgba(0, 153, 255, 0.3)); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  position: relative;
  padding: 96px 20px 64px;
  background:
    radial-gradient(ellipse 90% 55% at 50% 118%, rgba(1, 89, 179, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(178, 59, 40, 0.07), transparent 60%),
    var(--bg);
}
.hero-word {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.15; letter-spacing: -1px;
}
.hero-tag {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--dim);
}
@media (min-width: 640px) { .hero-tag { font-size: 12px; letter-spacing: 0.3em; } }
.hero-wave { width: min(1000px, 88vw); height: 32px; margin-top: 34px; }
@media (min-width: 640px) { .hero-wave { height: 40px; } }
.hero-wave path {
  fill: none; stroke: var(--accent); stroke-width: 1.4;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: wave 1.4s ease-out 0.5s forwards;
}
@keyframes wave { to { stroke-dashoffset: 0; } }
.hero-cap {
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--faint); margin-top: 10px;
}
.hero-cta-row { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scroll-ind {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
  transition: color 150ms ease;
}
@media (min-width: 640px) { .scroll-ind { bottom: 40px; } }
.scroll-ind:hover { color: var(--accent); }
.scroll-ind svg { animation: bounce 1s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ---------- sections ---------- */
.section { border-top: 1px solid var(--line); padding: 64px 20px; }
@media (min-width: 640px) { .section { padding: 96px 28px; } }
.section-inner { max-width: 1040px; margin: 0 auto; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-mono); font-weight: 600; font-size: 22px;
  letter-spacing: -0.5px;
}
@media (min-width: 640px) { .section-title { font-size: 26px; } }
.section-sub { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* ---------- cards ---------- */
.grid-cards {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  auto-rows: minmax(0, 1fr);
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.card {
  position: relative; display: flex; flex-direction: column;
  min-height: 304px;
  background: var(--panel); border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 300ms ease, border-color 300ms ease;
}
@media (min-width: 768px) { .card:hover { transform: translateY(-4px); border-color: rgba(1, 89, 179, 0.4); } }
.glow-layer {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--accent-glow), transparent 60%);
  transition: opacity 300ms ease;
}
.card:hover .glow-layer, .link-row:hover .glow-layer { opacity: 1; }
.card-img {
  position: relative; height: 144px; flex: none;
  border-bottom: 1px solid var(--line); background: var(--bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
@media (min-width: 640px) { .card-img { height: 160px; } }
.card-img svg { width: 70%; height: 70%; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
@media (min-width: 640px) { .card-body { padding: 28px; } }
.card-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--faint); }
.card-title {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .card-title { font-size: 16px; } }
.card-desc { font-family: var(--font-sans); font-size: 14px; line-height: 1.625; color: var(--dim); flex: 1; }
.card-foot {
  border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0.025em;
}
.card-foot .acc { color: var(--accent); }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feat-list li {
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--font-sans); font-size: 14px; line-height: 1.625; color: var(--dim);
}
.feat-list li::before { content: '›'; color: var(--accent); font-family: var(--font-mono); }

/* plan cards price slot */
.plan-price { font-family: var(--font-mono); font-size: 36px; font-weight: 700; line-height: 1; }
.plan-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); position: absolute; right: 12px; bottom: 8px; }
.card-img .tier { height: 62%; width: auto; display: block; }
.card-img .ti-free { filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.22)); }
.card-img .ti-t1 { filter: drop-shadow(0 0 10px rgba(255, 205, 0, 0.25)); }
.card-img .ti-t2 { filter: drop-shadow(0 0 10px rgba(0, 153, 255, 0.3)); }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--accent); color: #0a0b0c; border: 1px solid var(--accent);
  transition: opacity 150ms ease;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--dim); border: 1px solid var(--line);
  min-height: 44px; padding: 0 20px; font-size: 12px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--faint); opacity: 1; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(178, 59, 40, 0.5); min-height: 44px; font-size: 12px; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 11px; }
.w-full { width: 100%; }

.field-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint);
  margin-bottom: 8px;
}
.input, select.input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 0;
  font-family: var(--font-mono); font-size: 14px;
  transition: border-color 150ms ease;
}
.input:focus { outline: 1px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type='range'] {
  width: 100%; min-height: 44px; padding: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; border: none; outline: none;
}
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px;
  background: var(--accent); border-radius: 0; cursor: pointer;
}
input[type='range']::-moz-range-track { height: 2px; background: var(--line); }
input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 0; background: var(--accent); cursor: pointer; }
.range-val { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.dur-num { width: 64px; min-height: 0; padding: 1px 4px; margin-left: 2px; background: transparent; border: 1px solid var(--line); border-radius: 0; font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.dur-num:focus { outline: 1px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

.err-box {
  display: none; margin-top: 14px; padding: 12px 14px;
  border: 1px solid rgba(178, 59, 40, 0.5); background: rgba(178, 59, 40, 0.08);
  font-family: var(--font-mono); font-size: 12px; color: #d97a6c;
}
.err-box.on { display: block; }
.ok-box {
  display: none; margin-top: 14px; padding: 12px 14px;
  border: 1px solid rgba(1, 89, 179, 0.5); background: var(--accent-soft);
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
}
.ok-box.on { display: block; }

/* ---------- panels (dashboard) ---------- */
.dash-wrap { max-width: 1040px; margin: 0 auto; padding: 104px 20px 64px; }
@media (min-width: 640px) { .dash-wrap { padding: 120px 28px 96px; } }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.key-line { font-family: var(--font-mono); font-size: 12px; color: var(--dim); letter-spacing: 0.025em; word-break: break-all; }
.key-line small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 2px; }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .dash-grid { grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; } }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  padding: 20px;
}
@media (min-width: 640px) { .panel { padding: 28px; } }
.panel-title {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim);
  margin-bottom: 20px; display: flex; justify-content: space-between; align-items: baseline;
}
.form-row { margin-bottom: 18px; }
.form-2col { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .form-2col { grid-template-columns: 1fr 1fr; } }
.form-3col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .form-3col { grid-template-columns: 1.4fr 1fr 1fr; } }

.progress-track { height: 3px; background: var(--line); margin: 18px 0 8px; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width 1s linear; }
.active-num {
  font-family: var(--font-mono); font-size: 36px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.active-meta { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.025em; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.empty-note { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); padding: 24px 0; text-align: center; }
.coin-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 148px; overflow-y: auto; border: 1px solid var(--line); background: var(--bg); padding: 10px; margin-bottom: 16px; }
.coin-chip { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--dim); border: 1px solid var(--line); padding: 4px 8px; white-space: nowrap; }
.chip-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); border: 1px dashed var(--line); padding: 4px 8px; white-space: nowrap; }

.tbl { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.tbl th {
  text-align: left; font-size: 9px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint);
  padding: 8px 8px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 10px 8px; border-bottom: 1px dashed var(--line); color: var(--dim); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td.acc { color: var(--accent); }
.tbl td.red { color: #d97a6c; }
.tbl select {
  background: var(--bg); color: var(--dim); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; padding: 4px 6px; border-radius: 0; min-height: 28px;
}
.scroll-x { overflow-x: auto; }
/* table filters + pagination */
.tbl-tools { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.tbl-filter { width: 100%; max-width: 320px; }
.tbl-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.pg-btn {
  background: var(--bg); color: var(--dim); border: 1px solid var(--line); border-radius: 0;
  font-family: var(--font-mono); font-size: 11px; padding: 4px 0; min-width: 28px; cursor: pointer;
}
.pg-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.pg-btn:disabled { opacity: 0.35; cursor: default; }
.pg-info { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* live tasks container (admin) */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.live-empty { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 16px 4px; }
.live-card { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.live-card.acc { border-color: rgba(1, 89, 179, 0.55); box-shadow: inset 0 0 28px rgba(1, 89, 179, 0.10); }
.live-tag { font-family: var(--font-mono); font-size: 9px; font-weight: 400; letter-spacing: 0.14em; color: var(--faint); border: 1px solid var(--line); padding: 3px 8px; margin-left: 10px; vertical-align: middle; }
.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lc-key { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); word-break: break-all; }
.lc-st { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); padding: 2px 7px; white-space: nowrap; }
.lc-st.acc { color: var(--text); border-color: rgba(1, 89, 179, 0.55); background: var(--accent-soft); }
.lc-target { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: 0.03em; word-break: break-all; }
.lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.lc-grid i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.lc-grid b { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--dim); word-break: break-all; }
.lc-grid b.lc-left { color: var(--accent); font-size: 15px; }
.lc-foot { margin-top: auto; }

/* key reveal */
.key-reveal {
  border: 1px solid rgba(1, 89, 179, 0.4); background: var(--accent-soft);
  padding: 20px; text-align: center; margin: 22px 0;
}
.key-reveal .big-key { font-family: var(--font-mono); font-size: clamp(17px, 4.6vw, 24px); font-weight: 700; letter-spacing: 0.06em; word-break: break-all; }
.key-reveal p { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-top: 12px; }

/* account tabs (create / login) */
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.acc-tab {
  min-height: 48px; padding: 0 10px;
  background: var(--bg); border: none;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint);
  transition: all 150ms ease;
}
.acc-tab:hover { color: var(--dim); }
.acc-tab.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.acc-note { margin-top: 14px; font-family: var(--font-sans); font-size: 12px; line-height: 1.6; color: var(--faint); }
.nav-hide-sm { display: none; }
@media (min-width: 768px) { .nav-hide-sm { display: inline-flex; } }

/* stats row (admin) */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 28px; }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-cell { background: var(--panel); padding: 18px; }
.stat-cell b { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-cell span { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }

/* contact-style link rows */
.link-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .link-grid { grid-template-columns: 1fr 1fr; } }
.link-row {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  min-height: 68px; padding: 20px; background: var(--panel);
  font-family: var(--font-mono); font-size: 14px; overflow: hidden;
  transition: padding-left 150ms ease;
}
@media (min-width: 768px) { .link-row:hover { padding-left: 36px; } }
.link-row .arr { color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 20px; }
@media (min-width: 640px) { .footer { padding: 40px 28px; } }
.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.025em; color: var(--faint);
}

/* ---------- animations ---------- */
.fade-up { animation: fadeUp 0.8s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: all 700ms cubic-bezier(0, 0, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

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

/* ---------- live task cards (dashboard) ---------- */
.live-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 18px; overflow: hidden;
  border: 1px solid var(--accent-glow); background: var(--accent-soft);
}
.live-card + .live-card { margin-top: 14px; }
.live-card::before {
  content: ''; position: absolute; left: -30%; top: -60%; width: 160%; height: 160%;
  background: radial-gradient(closest-side, rgba(1, 89, 179, 0.16), transparent 72%);
  pointer-events: none;
}
.live-card.is-queued { opacity: 0.62; border-style: dashed; }
.radar { position: relative; width: 108px; height: 108px; flex: none; }
.r-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(1, 89, 179, 0.55);
  animation: r-pulse 2.4s ease-out infinite;
}
.r-ring.r2 { animation-delay: 1.2s; }
.r-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(1, 89, 179, 0.4), transparent 20%);
  animation: r-rot 2.4s linear infinite;
}
.r-core {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 16px 3px rgba(1, 89, 179, 0.75);
  animation: r-dot 2.4s ease-in-out infinite;
}
@keyframes r-pulse { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1); opacity: 0; } }
@keyframes r-rot { to { transform: rotate(360deg); } }
@keyframes r-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
.live-card.is-queued .r-ring,
.live-card.is-queued .r-sweep { animation-play-state: paused; opacity: 0.25; }
.live-body { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.live-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.live-top b {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1;
  color: #6db3f2; font-variant-numeric: tabular-nums;
}
.live-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--dim); }
.live-dest { font-family: var(--font-mono); font-size: 13px; word-break: break-all; }
.live-meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.live-btn { margin-top: 6px; padding: 10px 0; font-size: 12px; letter-spacing: 0.16em; }
.live-card .progress-track { margin: 2px 0; }
@media (max-width: 560px) {
  .live-card { grid-template-columns: 1fr; }
  .radar { width: 76px; height: 76px; }
}

/* ---------- hero scene (A1: globe + hands only, hero backdrop) ---------- */
.lh-wrap { position: relative; isolation: isolate; width: 100%; overflow: visible; }
.lv-stage { position: relative; }
.lh-frame { position: relative; width: 100%; height: 100%; overflow: hidden; border: none; background: transparent; }
.lh-plexus { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
.lh-globebox {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: -225px;
  width: 800px; max-height: 800px; aspect-ratio: 1 / 1; height: auto;
  border-radius: 999px; overflow: hidden; background: transparent; z-index: 0;
}
.lh-globe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lh-glow { display: none; }
.lh-brk { display: none; }
.lh-hands {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: -225px;
  width: 800px; max-height: 800px; aspect-ratio: 1 / 1; height: auto;
  overflow: visible; pointer-events: none; background: transparent; z-index: 1;
}
.lh-hand { position: absolute; opacity: 0; }
.lh-top { left: 86.84%; top: -42.783%; width: 116.268%; height: 89.633%; }
.lh-bottom { left: -103.11%; top: 2.045%; width: 105.981%; height: 100.682%; }
.lh-hand canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
@keyframes lh-from-right { from { opacity: 0; transform: translateX(30%); } to { opacity: 1; transform: translateX(0); } }
@keyframes lh-from-left { from { opacity: 0; transform: translateX(-30%); } to { opacity: 1; transform: translateX(0); } }
.lh-on .lh-top { animation: lh-from-right 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both; }
.lh-on .lh-bottom { animation: lh-from-left 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both; }
.lv-hero .lv-stage.mode-a { position: absolute; inset: 0; z-index: 1; }
.lv-stage.mode-a .lh-wrap { height: 100%; }
.lv-herofg { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.lv-herofg a { pointer-events: auto; }
.hero-word, .hero-tag, .hero-wave, .hero-cap, .hero-cta-row {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8)) drop-shadow(0 24px 56px rgba(0, 0, 0, 0.9));
}
.hero-logo {
  filter: drop-shadow(0 0 18px rgba(0, 153, 255, 0.3)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8)) drop-shadow(0 24px 56px rgba(0, 0, 0, 0.9));
}
@media (max-width: 991px) {
  .lh-globebox { top: 90px; bottom: auto; }
  .lh-hands { display: none; }
}

/* ---------- themed scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--faint); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- plan options & days inputs ---------- */
.plan-opts { display: flex; flex-direction: column; gap: 8px; width: 100%; border-top: 1px dashed var(--line); padding-top: 12px; }
.plan-opt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  width: 100%; padding: 10px 14px; background: var(--bg); color: inherit;
  border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.025em; font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.plan-opt:hover { border-color: var(--faint); }
.plan-opt.on { border-color: var(--accent); background: rgba(1, 89, 179, 0.08); }
.plan-opt b { font-weight: 600; }
.plan-opt span { color: var(--dim); white-space: nowrap; }
.days-in { width: 84px; padding: 7px 8px; font-size: 12px; text-align: center; }
