:root {
  --accent: #9a5ce8;
  --accent-2: #c3a3f2;
  --accent-dark: #7b3fce;
  --bg: #000000;
  --bg-2: #0a0713;
  --card: #120c1f;
  --card-2: #1b1430;
  --border: #2a2140;
  --text: #eef1f6;
  --muted: #9aa3b2;
  --green: #3fb950;
  --red: #f85149;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;   /* no blue flash on tap (mobile) */
}
/* Keep text selection on-brand instead of the browser's blue */
::selection { background: rgba(154, 92, 232, 0.35); color: #fff; }
button, a, .nav-link, .subtab, .mode-btn, .auth-tab { -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(620px 420px at 50% -2%, rgba(154, 92, 232, 0.26), transparent 70%),
    radial-gradient(680px 520px at 6% 28%, rgba(154, 92, 232, 0.16), transparent 62%),
    radial-gradient(680px 520px at 94% 22%, rgba(154, 92, 232, 0.16), transparent 62%),
    radial-gradient(680px 520px at 12% 78%, rgba(154, 92, 232, 0.15), transparent 62%),
    radial-gradient(680px 520px at 88% 72%, rgba(154, 92, 232, 0.15), transparent 62%),
    radial-gradient(900px 700px at 50% 104%, rgba(154, 92, 232, 0.16), transparent 70%),
    radial-gradient(1500px 1000px at 50% 50%, rgba(154, 92, 232, 0.07), transparent 75%),
    radial-gradient(1200px 700px at 50% -10%, #170a2e 0%, var(--bg) 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.hidden { display: none !important; }

/* ------------------------------------------------------------------ */
/* Site watermark (footer)                                            */
/* ------------------------------------------------------------------ */
.site-watermark {
  text-align: center; font-size: 12.5px; color: #6b6485;
  padding: 18px 16px 22px; line-height: 1.7;
}
.site-watermark a {
  color: var(--accent-2); text-decoration: none; font-weight: 700;
}
.site-watermark a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, opacity .15s ease;
  color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 16px rgba(154, 92, 232, 0.3);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-block { width: 100%; }
a.btn { text-decoration: none; }
.btn-large { padding: 15px; font-size: 16px; }
.btn-mini { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-icon-only { display: inline-grid; place-items: center; width: 42px; height: 40px; padding: 0; }
.btn-icon-only svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ */
/* Auth view                                                          */
/* ------------------------------------------------------------------ */
.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-logo {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 26px; font-weight: 800; color: var(--accent); text-align: center;
}
.auth-logo-img {
  width: 64px; height: 64px; border-radius: 14px; object-fit: cover;
  border: 1px solid var(--border);
}
.auth-sub { text-align: center; color: var(--muted); margin: 6px 0 22px; font-size: 14px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; background: var(--card-2); border: 1px solid var(--border);
  color: var(--muted); padding: 9px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.auth-tab.active { color: #fff; border-color: var(--accent); background: rgba(154,92,232,.12); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.logo-img {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  border: 1px solid var(--border);
}
.logo, .auth-logo { text-decoration: none; cursor: pointer; }
.logo[href="#"], .auth-logo[href="#"] { cursor: default; }
.logo-word { display: inline; }
.logo-flood { color: #fff; }
.logo-boost { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav-link {
  background: transparent; border: none; color: var(--muted);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: #fff; background: rgba(154,92,232,.15); }
.header-right { display: flex; align-items: center; gap: 12px; }
.balance {
  background: var(--card-2); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Account bar (logged-in navigation, Salta7 style)                   */
/* ------------------------------------------------------------------ */
.account-bar {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.account-info {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.ai-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.ai-item b { color: var(--text); font-weight: 700; }
.ai-item svg { width: 18px; height: 18px; color: var(--accent); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.acc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px;
  background: var(--card-2); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}
.acc-btn:hover { filter: brightness(1.18); }
.acc-btn:active { transform: translateY(1px); }
.acc-btn svg { width: 18px; height: 18px; }
.acc-btn.active { box-shadow: 0 0 0 1px currentColor inset, 0 4px 14px rgba(0,0,0,.25); }
.acc-boost   { color: var(--accent); border-color: rgba(154, 92, 232, .40); background: rgba(154, 92, 232, .10); }
.acc-deposit { color: var(--green);  border-color: rgba(63, 185, 80, .40);  background: rgba(63, 185, 80, .08); }
.acc-history, .acc-profile, .acc-admin { color: #60a5fa; border-color: rgba(96, 165, 250, .40); background: rgba(96, 165, 250, .08); }
.acc-logout  { color: var(--red);    border-color: rgba(248, 81, 73, .40);  background: rgba(248, 81, 73, .08); }

.profile-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row span { color: var(--muted); }
.profile-row strong { color: var(--text); }

/* ------------------------------------------------------------------ */
/* Layout                                                             */
/* ------------------------------------------------------------------ */
.main { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
.centered-main { display: flex; flex-direction: column; align-items: center; text-align: center; }
.centered-main .card { text-align: left; }
.key-field {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 2px; text-transform: uppercase;
}
.back-btn { margin-top: 14px; }

/* ------------------------------------------------------------------ */
/* Redeem panel hero (public view)                                    */
/* ------------------------------------------------------------------ */
.redeem-hero { max-width: 620px; }

.hero-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.hero-badge, .icon-badge {
  display: grid; place-items: center;
  background: rgba(154, 92, 232, 0.14);
  border: 1px solid rgba(154, 92, 232, 0.35);
  color: var(--accent);
}
.hero-badge { width: 60px; height: 60px; border-radius: 16px; }
.hero-badge svg { width: 30px; height: 30px; }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.icon-badge svg { width: 22px; height: 22px; }

.hero-title {
  font-size: 38px; font-weight: 800; line-height: 1.1;
  background: linear-gradient(90deg, #ede0ff 0%, var(--accent) 70%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  color: var(--muted); font-size: 17px; line-height: 1.5;
  max-width: 480px; margin: 0 auto; text-align: center;
}
.hero-sub strong { display: block; color: var(--text); margin-top: 6px; font-size: 18px; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 14px;
}
.chip svg { width: 18px; height: 18px; color: var(--accent); }
#feature-chips { margin: 0 0 22px; }
.chip-neutral { background: var(--card-2); border-color: var(--border); color: var(--text); }
.chip-neutral svg { color: var(--muted); }
.chip-green { background: rgba(63, 185, 80, 0.10); border-color: rgba(63, 185, 80, 0.40); color: var(--green); }
.chip-green svg { color: var(--green); }
.chip-purple { background: rgba(154, 92, 232, 0.10); border-color: rgba(154, 92, 232, 0.40); color: var(--accent); }
.chip-purple svg { color: var(--accent); }

.details-card { margin-top: 26px; }
.details-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.details-title { font-size: 24px; font-weight: 800; }
.divider {
  height: 3px; width: 130px; margin: 0 auto 22px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.label-icon { display: flex; align-items: center; gap: 8px; }
.label-icon svg { width: 16px; height: 16px; color: var(--accent); }

.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-icon svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ */
/* Boost panel (Salta7-style, public view)                            */
/* ------------------------------------------------------------------ */
.boost-main { max-width: 560px; }
.panel-title { font-size: 26px; text-align: center; margin-bottom: 4px; }
.panel-subtitle { color: var(--muted); text-align: center; margin-bottom: 22px; }

/* Animated gradient brand heading (Poppins) */
.brand-title {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 800; text-align: center; line-height: 1.02;
  margin: 6px 0 24px; letter-spacing: -0.5px;
}
.brand-top, .brand-bottom {
  display: block;
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: brand-slide 7s linear infinite;
}
.brand-top {
  font-size: clamp(30px, 8vw, 44px);
  background-image: linear-gradient(90deg, #ffffff 0%, #b9b3cc 25%, #ffffff 50%, #b9b3cc 75%, #ffffff 100%);
}
.brand-bottom {
  font-size: clamp(26px, 7vw, 40px);
  background-image: linear-gradient(90deg, var(--accent) 0%, #e9d5ff 25%, var(--accent-2) 50%, #e9d5ff 75%, var(--accent) 100%);
}
@keyframes brand-slide {
  0% { background-position: 0% center; }
  100% { background-position: -220% center; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-top, .brand-bottom { animation: none; }
}

.seg-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px; margin-bottom: 18px;
}
.seg {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: none; border-radius: 9px; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer;
}
.seg svg { width: 18px; height: 18px; }
.seg.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 16px rgba(154, 92, 232, 0.3);
}

.panel-box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin-bottom: 14px;
}
.panel-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 10px; text-transform: uppercase;
}
.panel-label svg { width: 16px; height: 16px; color: var(--accent); }

.stepper { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; }
.step-btn {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--accent); font-size: 22px; font-weight: 700; cursor: pointer;
}
.step-btn:hover { border-color: var(--accent); }
.stepper input { text-align: center; font-size: 20px; font-weight: 700; }
.hint.center { text-align: center; margin-top: 8px; }
.pay-note { color: var(--muted); margin-top: 12px; }

.boost-go { margin-top: 18px; }
.solve-note { color: var(--muted); margin-top: 10px; }
.hint.center strong { color: var(--accent); font-weight: 800; }

/* ------------------------------------------------------------------ */
/* BYOT panel skin (purple) — applied only while the BYOT booster is up */
/* ------------------------------------------------------------------ */
.boost-card.byot .panel-box {
  background: rgba(28, 21, 45, 0.6);
  border: 1px solid rgba(154, 92, 232, 0.22);
  border-radius: 16px;
  padding: 18px;
}
.boost-card.byot .panel-label { color: #948bb0; }
.boost-card.byot .panel-box > input[type="text"] {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px; letter-spacing: .5px;
}
.boost-card.byot .token-input { height: 260px; }

/* Boosts stepper — three large rounded tiles on the bare background */
.boost-card.byot .boosts-section { margin: 22px 0 4px; text-align: center; }
.boost-card.byot .boosts-heading {
  font-size: 20px; font-weight: 700; color: #d7cdec;
  margin-bottom: 16px;
}
.boost-card.byot .stepper {
  grid-template-columns: 1fr 1fr 1fr; gap: 16px; max-width: 440px; margin: 0 auto;
}
.boost-card.byot .step-btn,
.boost-card.byot .stepper input {
  height: 84px; border-radius: 16px;
  background: rgba(28, 21, 45, 0.55);
  border: 1px solid rgba(154, 92, 232, 0.22);
}
.boost-card.byot .step-btn { color: var(--accent); font-size: 30px; font-weight: 400; }
.boost-card.byot .step-btn:hover { border-color: var(--accent); background: rgba(154, 92, 232, 0.12); }
.boost-card.byot .stepper input { font-size: 28px; color: var(--accent); }
.boost-card.byot .boosts-note { margin-top: 16px; color: #948bb0; font-size: 15px; }
.boost-card.byot .boosts-note strong { color: var(--accent); font-weight: 800; }

/* Action row — wand helper + primary boost button */
.action-row { display: flex; gap: 14px; margin-top: 18px; }
.boost-card.byot .boost-go { margin-top: 0; }
.wand-btn {
  flex: 0 0 auto; width: 96px; border-radius: 16px; cursor: pointer;
  display: inline-grid; place-items: center;
  background: rgba(28, 21, 45, 0.55);
  border: 1px solid rgba(154, 92, 232, 0.28);
  color: var(--accent);
  transition: border-color .15s ease, background .15s ease;
}
.wand-btn:hover { border-color: var(--accent); background: rgba(154, 92, 232, 0.12); }
.wand-btn svg { width: 24px; height: 24px; }
.boost-card.byot .btn-primary {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(154, 92, 232, 0.35);
}
/* Auto-retry toggle row + cost preview inside the logged-in booster */
.boost-card.byot .retry-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; margin-top: 16px;
  background: rgba(28, 21, 45, 0.6);
  border: 1px solid rgba(154, 92, 232, 0.22);
  border-radius: 16px;
  color: #948bb0; font-size: 14px; font-weight: 600; cursor: pointer;
}
.boost-card.byot .quote-box {
  margin-top: 16px; margin-bottom: 0;
  background: rgba(28, 21, 45, 0.6);
  border: 1px solid rgba(154, 92, 232, 0.22);
  border-radius: 16px;
}
/* ------------------------------------------------------------------ */
/* Booster / redeem section cards (Eclipse-style violet layout)        */
/* ------------------------------------------------------------------ */
.booster { display: flex; flex-direction: column; gap: 20px; }
.byot-group { display: flex; flex-direction: column; gap: 20px; }
.sec-card {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(154, 92, 232, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(30, 22, 52, 0.60), rgba(20, 15, 36, 0.60));
  border: 1px solid rgba(154, 92, 232, 0.20);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.sec-head-split { justify-content: space-between; }
.sec-head-left { display: flex; align-items: flex-start; gap: 14px; }
.sec-badge {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  display: inline-grid; place-items: center;
  background: rgba(154, 92, 232, 0.14);
  border: 1px solid rgba(154, 92, 232, 0.30);
  color: var(--accent-2);
}
.sec-badge svg { width: 20px; height: 20px; }
.sec-title { font-size: 17px; font-weight: 800; letter-spacing: 0.06em; color: #f3f0fb; }
.sec-sub { font-size: 13px; color: #9a90b8; margin-top: 3px; }

.field-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #cbc2e4; margin-bottom: 8px;
}
.field-label svg { width: 15px; height: 15px; color: var(--accent-2); }
.field-help { font-size: 12px; color: #8a80a6; margin-top: 8px; }

.sec-input {
  width: 100%;
  background: rgba(12, 8, 22, 0.55);
  border: 1px solid rgba(154, 92, 232, 0.20);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sec-input::placeholder { color: #6f6690; }
.sec-input:focus {
  outline: none;
  border-color: rgba(154, 92, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(154, 92, 232, 0.16);
}
textarea.sec-input.token-area {
  min-height: 150px; resize: vertical;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px; line-height: 1.7;
}
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.tokens-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; font-size: 12px; color: #8a80a6;
}
.tokens-foot .token-counter { color: var(--accent-2); font-weight: 700; }

.buy-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 11px;
  background: rgba(154, 92, 232, 0.12);
  border: 1px solid rgba(154, 92, 232, 0.30);
  color: #d7cdf5; font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.buy-pill:hover { background: rgba(154, 92, 232, 0.20); border-color: rgba(154, 92, 232, 0.5); }
.buy-pill svg { width: 15px; height: 15px; }
.buy-pill b { color: #fff; font-weight: 800; }

/* Big primary action button (lavender gradient, glowing) */
.start-btn {
  width: 100%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px; border-radius: 16px;
  font-size: 17px; font-weight: 800; letter-spacing: 0.01em;
  color: #1c1233;
  background: linear-gradient(135deg, #c4b5fd, #c3a3f2 55%, #9a5ce8);
  box-shadow: 0 10px 34px rgba(154, 92, 232, 0.45);
  transition: transform .05s ease, filter .15s ease, opacity .15s ease;
}
.start-btn svg { width: 20px; height: 20px; }
.start-btn:hover:not(:disabled) { filter: brightness(1.06); }
.start-btn:active:not(:disabled) { transform: translateY(1px); }
.start-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* "You pay up to" cost box above the action button */
.cost-note {
  border-radius: 16px; overflow: hidden;
  background: rgba(12, 8, 22, 0.5);
  border: 1px solid rgba(154, 92, 232, 0.20);
}
.cost-main {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
}
.cost-eyebrow { font-size: 14px; color: #8a80a6; margin-bottom: 4px; }
.cost-headline {
  font-size: 21px; font-weight: 800; line-height: 1.2; color: #f3f0fb; max-width: 20ch;
}
.cost-price {
  flex: 0 0 auto; font-size: 30px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--accent-2); white-space: nowrap;
}
.cost-price span { font-size: 34px; }
.cost-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 20px;
  border-top: 1px solid rgba(154, 92, 232, 0.14);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px; color: #9a90b8;
}
.cost-shield { flex: 0 0 auto; width: 18px; height: 18px; color: #e5b567; }
.cost-foot > span:not(.cost-balance-wrap) { flex: 1 1 240px; min-width: 0; }
.cost-balance-wrap { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.cost-balance-wrap strong { color: #e7e0fa; font-weight: 800; margin-left: 4px; }
.cost-note.insufficient { border-color: rgba(248, 81, 73, 0.45); }
.cost-note.insufficient .cost-price { color: #f6a9a3; }
.cost-note.insufficient .cost-foot { color: #f6a9a3; background: rgba(248, 81, 73, 0.08); }
.cost-note.insufficient .cost-balance-wrap strong { color: #ffd7d3; }

/* Booster spacing: the flex gap owns the rhythm — drop stray margins and
   collapse empty helper rows so the status box sits at a consistent gap. */
.booster > .status-box { margin-top: 0; }
.booster > .form-error:empty,
.booster > .form-message:empty,
.booster > .cost-note.hidden { display: none; }
.booster .status-box {
  border-radius: 18px; padding: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(154, 92, 232, 0.08), transparent 55%),
    rgba(20, 15, 36, 0.6);
  border: 1px solid rgba(154, 92, 232, 0.22);
}

/* Discord invite preview card */
.invite-preview {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(12, 8, 22, 0.5);
  border: 1px solid rgba(154, 92, 232, 0.20);
}
.ip-icon {
  width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: 0 0 auto;
  background: rgba(154, 92, 232, 0.15); border: 1px solid rgba(154, 92, 232, 0.25);
}
.ip-info { flex: 1 1 auto; min-width: 0; }
.ip-name { font-weight: 800; font-size: 16px; color: #f3f0fb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-id { font-size: 12px; color: #8a80a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-stats { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.ip-stat { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #cbc2e4; }
.ip-stat svg { width: 18px; height: 18px; color: #9a90b8; }
.ip-stat.online, .ip-stat.online svg { color: #3fb950; }
.ip-stat.boosts, .ip-stat.boosts svg { color: var(--accent-2); }

/* Per-token live status list */
.token-status { padding: 18px; }
.ts-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.ts-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: rgba(12, 8, 22, 0.5); border: 1px solid rgba(154, 92, 232, 0.20); color: #cbc2e4;
}
.ts-tab span { color: #8a80a6; font-weight: 800; }
.ts-tab.active {
  color: #fff; border-color: var(--accent); background: rgba(154, 92, 232, 0.18);
  box-shadow: 0 0 0 1px rgba(154, 92, 232, 0.35) inset;
}
.ts-tab.active span { color: #d7cdf5; }
.ts-rows { display: flex; flex-direction: column; gap: 12px; }
.ts-row {
  display: flex; flex-direction: column; gap: 10px;
  padding: 13px 16px; border-radius: 14px;
  background: rgba(12, 8, 22, 0.5); border: 1px solid rgba(154, 92, 232, 0.18);
}
.ts-row-top { display: flex; align-items: center; gap: 12px; }
.ts-token {
  flex: 1 1 auto; min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; color: #cfc7e6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ts-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ts-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: capitalize;
}
.ts-badge.waiting { color: #7aa2ff; background: rgba(91, 140, 255, 0.12); border: 1px solid rgba(91, 140, 255, 0.30); }
.ts-badge.joined  { color: #3fb950; background: rgba(63, 185, 80, 0.12); border: 1px solid rgba(63, 185, 80, 0.32); }
.ts-badge.failed  { color: #f85149; background: rgba(248, 81, 73, 0.12); border: 1px solid rgba(248, 81, 73, 0.32); }
.ts-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.ts-pill.captcha { color: #e3b341; background: rgba(227, 179, 65, 0.12); border: 1px solid rgba(227, 179, 65, 0.32); }
.ts-pill.boosts { color: var(--accent-2); background: rgba(154, 92, 232, 0.12); border: 1px solid rgba(154, 92, 232, 0.32); }
.ts-spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(122, 162, 255, 0.35); border-top-color: #7aa2ff;
  animation: ts-spin .8s linear infinite;
}
@keyframes ts-spin { to { transform: rotate(360deg); } }
.ts-copy {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  display: inline-grid; place-items: center;
  background: rgba(154, 92, 232, 0.10); border: 1px solid rgba(154, 92, 232, 0.28); color: var(--accent-2);
  transition: background .15s ease, border-color .15s ease;
}
.ts-copy:hover { background: rgba(154, 92, 232, 0.20); border-color: var(--accent); }
.ts-copy svg { width: 18px; height: 18px; }

/* Redeem confirmation page */
.result-card {
  width: 100%; max-width: 460px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(154, 92, 232, 0.10), transparent 55%),
    var(--card);
  border: 1px solid rgba(154, 92, 232, 0.22);
  border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.result-badge {
  align-self: center; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: #7ee29a; background: rgba(63, 185, 80, 0.12); border: 1px solid rgba(63, 185, 80, 0.35);
  margin-top: 2px;
}
.result-badge svg { width: 16px; height: 16px; }

/* Circular boost-progress ring on the redeem confirmation page */
#rr-status-section { display: flex; flex-direction: column; gap: 16px; }
.rr-ring-wrap { position: relative; width: 148px; height: 148px; margin: 4px auto 0; }
.rr-ring { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.rr-ring-track { fill: none; stroke: rgba(154, 92, 232, 0.14); stroke-width: 10; }
.rr-ring-bar {
  fill: none; stroke: #3fb950; stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transform-origin: 60px 60px;
  transition: stroke-dashoffset .5s ease, stroke .4s ease;
}
.rr-ring-wrap.running .rr-ring-bar {
  stroke-dasharray: 82 244.73; stroke-dashoffset: 0;
  animation: rr-ring-spin 1.1s linear infinite;
}
.rr-ring-wrap.completed .rr-ring-bar { stroke: #3fb950; stroke-dasharray: 326.73; stroke-dashoffset: 0; animation: none; }
.rr-ring-wrap.failed .rr-ring-bar { stroke: var(--red); animation: none; }
@keyframes rr-ring-spin { to { transform: rotate(360deg); } }
.rr-ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.rr-ring-icon { width: 42px; height: 42px; }
.rr-ring-wrap.completed .rr-ring-icon-check { color: #3fb950; }
.rr-ring-wrap.failed .rr-ring-icon-x { color: var(--red); }
.rr-ring-icon.hidden { display: none; }
.rr-ring-count { font-size: 22px; font-weight: 800; color: #f3f0fb; }
.rr-ring-wrap.completed .rr-ring-count,
.rr-ring-wrap.failed .rr-ring-count { display: none; }

.rr-status-text { text-align: center; }
.rr-status-title { font-weight: 800; font-size: 17px; color: #cbc2e4; }
.rr-status-title.completed { color: #3fb950; }
.rr-status-title.failed { color: var(--red); }
.rr-status-sub { font-size: 14px; color: #9a90b8; margin-top: 4px; }
.rr-status-sub strong { color: var(--accent-2); font-weight: 800; }

.rr-support-note {
  text-align: center; font-size: 13px; font-weight: 700; color: #ffb4ad;
  background: rgba(248, 81, 73, 0.10); border: 1px solid rgba(248, 81, 73, 0.30);
  border-radius: 10px; padding: 10px 14px;
}

.rr-section { display: flex; flex-direction: column; gap: 8px; }
.rr-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8a80a6; }
.rr-section .invite-preview { margin-top: 0; }
.rr-info-grid { display: flex; flex-direction: column; gap: 2px; }
.rr-info {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: rgba(12, 8, 22, 0.5);
  border: 1px solid rgba(154, 92, 232, 0.16);
}
.rr-info:first-child { border-radius: 12px 12px 0 0; }
.rr-info:last-child { border-radius: 0 0 12px 12px; }
.rr-info + .rr-info { border-top: none; }
.rr-info span { color: #9a90b8; font-size: 14px; }
.rr-info strong { color: #f3f0fb; font-weight: 800; }
.rr-info strong.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 1px; }

.gen-result { margin-top: 16px; }
.gen-result .table-head { margin-bottom: 8px; }
#gen-keys-output { height: 140px; }

/* Wallet / top-up */
.wallet-balance {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 18px;
}
.wallet-balance span { color: var(--muted); font-size: 14px; }
.wallet-balance strong { font-size: 18px; color: var(--accent); font-family: ui-monospace, Menlo, monospace; }
.deposit-box {
  margin-top: 18px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
}
.deposit-amount { font-size: 15px; color: var(--muted); margin-bottom: 12px; text-align: center; }
.deposit-amount strong { color: var(--accent); font-family: ui-monospace, Menlo, monospace; font-size: 16px; }
.deposit-usd { color: var(--muted); font-size: 13px; margin-left: 4px; }
.qr {
  display: block; width: 200px; height: 200px; margin: 0 auto 16px;
  background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--border);
}
.deposit-addr-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.address-row { display: flex; align-items: center; gap: 8px; }
.address-row code {
  flex: 1; background: var(--card-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 13px;
  word-break: break-all;
}
.deposit-status { margin-top: 12px; font-size: 14px; font-weight: 600; }
.deposit-status.success { color: var(--green); }
.deposit-status.error { color: var(--red); }
.title { font-size: 26px; margin-bottom: 4px; }
.subtitle { color: var(--muted); margin-bottom: 22px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .2s ease; }
/* Centered tabs (e.g. Redeem, Admin lock) — higher specificity wins over .active */
.tab-panel.centered.active {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.tab-panel.centered .card { text-align: left; width: 100%; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.card-narrow { max-width: 440px; }
.card-title { font-size: 16px; margin-bottom: 14px; }
.redeem-card { margin: 8px auto 0; }

/* Admin password gate */
.admin-lock { display: none; }
.admin-lock.centered { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lock-card { text-align: center; margin: 12px auto 0; }
.lock-card .subtitle { margin-bottom: 18px; }
.lock-icon { font-size: 40px; margin-bottom: 6px; }

/* $-prefixed number input */
.input-prefix {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 0 12px;
}
.input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,92,232,.15); }
.input-prefix span { color: var(--muted); font-weight: 700; }
.input-prefix input { border: none; background: transparent; padding: 11px 0; }
.input-prefix input:focus { box-shadow: none; }

/* Form fields */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
input[type=text], input[type=password], input[type=number], textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 9px; padding: 11px 13px; font-size: 14px; font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,92,232,.15); }
.token-input { height: 120px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.token-counter { margin-top: 8px; font-size: 13px; color: var(--accent); font-weight: 600; }
.hint { margin-top: 6px; font-size: 12px; color: var(--muted); }

.settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.switch input { display: none; }
.slider {
  position: absolute; inset: 0; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 28px; cursor: pointer; transition: .2s;
}
.slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: var(--muted); border-radius: 50%; transition: .2s;
}
.switch input:checked + .slider { background: rgba(154,92,232,.25); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(24px); background: var(--accent); }

/* Mode toggle */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-btn {
  text-align: left; background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 5px;
  color: var(--text);
}
.mode-btn.active { border-color: var(--accent); background: rgba(154,92,232,.1); }
.mode-title { font-weight: 700; font-size: 14px; }
.mode-desc { font-size: 12px; color: var(--muted); }

/* Quote box */
.quote-box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
}
.quote-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--muted); }
.quote-row strong { color: var(--text); }

/* Status box */
.status-box { margin-top: 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.progress { height: 12px; background: var(--card-2); border-radius: 8px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; border-radius: 8px; background: linear-gradient(90deg, var(--accent-dark), var(--accent-2)); transition: width .4s ease; }
.status-line { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.status-state { font-weight: 700; }
.status-state.completed { color: var(--green); }
.status-state.failed { color: var(--red); }
.status-detail { color: var(--muted); }
.status-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* Per-token results */
.token-results { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.results-head { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.results-head span { color: var(--muted); font-weight: 500; }
.results-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.result-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 13px;
}
.result-token { font-family: ui-monospace, Menlo, monospace; color: var(--text); word-break: break-all; }
.result-reason { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* Sub-tabs (admin) */
.subtabs { display: flex; gap: 6px; margin-bottom: 20px; }
.subtab {
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.subtab.active { color: #fff; border-color: var(--accent); background: rgba(154,92,232,.12); }
.subpanel { display: none; }
.subpanel.active { display: block; }

/* Tables */
.table-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table td.mono { font-family: ui-monospace, Menlo, monospace; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill.unused, .pill.available, .pill.completed { background: rgba(63,185,80,.15); color: var(--green); }
.pill.used, .pill.redeemed, .pill.failed { background: rgba(248,81,73,.15); color: var(--red); }
.pill.pending, .pill.running { background: rgba(154,92,232,.15); color: var(--accent); }
.badge { font-size: 12px; color: var(--muted); }

/* Keys grid */
.keys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.key-chip {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.key-chip { position: relative; }
.key-chip .code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 13px; padding-right: 20px; }
.key-chip .val { font-size: 12px; color: var(--accent); }
.key-chip.redeemed { opacity: .55; }

/* Admin delete affordances */
.head-actions { display: flex; align-items: center; gap: 10px; }
.btn-danger { background: linear-gradient(135deg, #f0736c, #e0362c); box-shadow: 0 4px 14px rgba(248, 81, 73, 0.28); }
.btn-danger:hover:not(:disabled) { filter: brightness(1.06); }
.table td.cell-action { text-align: right; width: auto; white-space: nowrap; }
.table td.cell-action button + button { margin-left: 6px; }
.balance-give { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.balance-give input[type=number] {
  width: 90px; padding: 6px 9px; font-size: 13px; border-radius: 8px;
}
.icon-del {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; cursor: pointer;
  background: rgba(248, 81, 73, 0.10); border: 1px solid rgba(248, 81, 73, 0.30); color: #f6837c;
  transition: background .15s ease, border-color .15s ease;
}
.icon-del:hover { background: rgba(248, 81, 73, 0.20); border-color: rgba(248, 81, 73, 0.55); }
.icon-del:disabled { opacity: .5; cursor: not-allowed; }
.icon-del svg { width: 15px; height: 15px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; cursor: pointer;
  background: rgba(154, 92, 232, 0.10); border: 1px solid rgba(154, 92, 232, 0.30); color: var(--accent-2);
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: rgba(154, 92, 232, 0.20); border-color: rgba(154, 92, 232, 0.55); }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn svg { width: 15px; height: 15px; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.chip-del {
  position: absolute; top: 8px; right: 8px;
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 6px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: #8a80a6;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.chip-del:hover { color: #f6837c; background: rgba(248, 81, 73, 0.12); border-color: rgba(248, 81, 73, 0.30); }
.chip-del:disabled { opacity: .5; cursor: not-allowed; }
.chip-del svg { width: 13px; height: 13px; }

/* Messages / toast */
.form-error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; }
.form-message { font-size: 13px; margin-top: 10px; min-height: 16px; }
.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 50;
  animation: fade .2s ease;
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

@media (max-width: 560px) {
  .settings-row, .mode-toggle { grid-template-columns: 1fr; }
  .header { padding: 10px 14px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: center; }
}


/* ================================================================== */
/* ==  FLOOD BOOST — KINETIC REDESIGN LAYER                         == */
/* ==  Angular, motorsport-inspired identity. Logo palette only:    == */
/* ==  violet / lavender / white on pure black. Overrides cascade   == */
/* ==  over the base rules above without touching layout/behaviour. == */
/* ================================================================== */

/* ---- Palette tokens re-mapped to the logo (later :root wins) ------ */
:root {
  --accent: #9d5cf2;          /* the "BOOST" violet */
  --accent-2: #cbabf7;        /* light lavender wave highlight */
  --accent-dark: #6a2fbf;     /* deep purple */
  --accent-line: rgba(157, 92, 242, 0.28);
  --bg: #000000;
  --bg-2: #08070c;
  --card: #0a090f;
  --card-2: #100e18;
  --border: #241a3c;
  --text: #f5f3fc;
  --muted: #8b8499;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --disp: "Saira", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Typography: sporty display + clean body --------------------- */
body { font-family: var(--body); letter-spacing: 0.01em; }

.logo, .auth-logo,
.brand-top, .brand-bottom, .hero-title, .panel-title, .title, .card-title,
.sec-title, .cost-headline, .cost-price, .details-title,
.btn, .start-btn, .seg, .acc-btn, .nav-link, .auth-tab, .subtab, .ts-tab,
.rr-status-title, .rr-ring-count, .field-label, .panel-label, .rr-label,
.sec-badge, .badge, .pill, .table th, .chip, .buy-pill, .result-badge {
  font-family: var(--disp);
}

/* Kinetic uppercase headings */
.sec-title, .panel-label, .rr-label, .table th, .field-label {
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800;
}
.title, .card-title, .details-title, .cost-headline, .rr-status-title {
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800;
}

/* ---- Pure-black canvas with a fine violet grid + wave sheen ------- */
body {
  background-color: #000;
  background-image:
    linear-gradient(115deg, rgba(157, 92, 242, 0.10) 0%, transparent 34%),
    linear-gradient(295deg, rgba(157, 92, 242, 0.07) 0%, transparent 40%),
    linear-gradient(to right, rgba(157, 92, 242, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(157, 92, 242, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  background-position: 0 0, 0 0, center top, center top;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed;
}

/* Signature diagonal "wave" hairlines sweeping across the top */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(100deg, transparent 0 42%, rgba(203, 171, 247, 0.16) 42.4%, transparent 43%),
    linear-gradient(100deg, transparent 0 46%, rgba(157, 92, 242, 0.14) 46.5%, transparent 47.2%),
    linear-gradient(100deg, transparent 0 51%, rgba(106, 47, 191, 0.12) 51.5%, transparent 52.4%);
  mask-image: linear-gradient(180deg, #000 0, transparent 46%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 46%);
}
.header, .main, .auth-view, .public-view, .app-view { position: relative; z-index: 1; }

/* ---- Global angular geometry: kill the rounded look -------------- */
.card, .card-narrow, .auth-card, .sec-card, .panel-box, .cost-note, .result-card,
.invite-preview, .chip, .buy-pill, .seg-toggle, .seg, .btn, .btn-primary, .btn-ghost,
.btn-danger, .sec-input, input[type=text], input[type=password], input[type=number],
textarea, .ts-tab, .ts-row, .ts-copy, .status-box, .quote-box, .mode-btn, .subtab,
.auth-tab, .wallet-balance, .deposit-box, .qr, .step-btn, .stepper input, .wand-btn,
.hero-badge, .icon-badge, .sec-badge, .acc-btn, .balance, .nav-link, .ip-icon,
.logo-img, .auth-logo-img, .input-prefix, .address-row code, .key-chip, .toast,
.buy-pill, .rr-info:first-child, .rr-info:last-child, .ts-badge, .ts-pill, .pill,
.result-badge, .progress, .progress-bar, .slider {
  border-radius: 4px !important;
}
.pill, .ts-badge, .ts-pill, .result-badge { border-radius: 3px !important; }
.slider, .slider::before { border-radius: 3px !important; }

/* ---- Surfaces: flat black with crisp violet edges --------------- */
.card, .auth-card, .sec-card, .panel-box, .cost-note, .result-card, .status-box,
.quote-box, .wallet-balance, .deposit-box, .invite-preview, .booster .status-box,
.boost-card.byot .panel-box, .boost-card.byot .retry-row, .boost-card.byot .quote-box {
  background: linear-gradient(180deg, rgba(20, 16, 32, 0.55), rgba(6, 5, 10, 0.72)) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow);
}
/* Signature: a violet blade down the left edge of every major card */
.card, .sec-card, .result-card, .auth-card, .cost-note {
  border-left: 2px solid var(--accent) !important;
}

/* ---- Header: kinetic bar -------------------------------------- */
.header {
  background: rgba(0, 0, 0, 0.82) !important;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent) 1;
  backdrop-filter: blur(12px);
}
.logo, .auth-logo {
  font-style: italic; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.02em;
}
.logo-flood { color: #fff !important; }
.logo-boost { color: var(--accent) !important; }
.logo-img, .auth-logo-img {
  border: 1px solid var(--accent-line) !important;
  box-shadow: 0 0 18px rgba(157, 92, 242, 0.35);
}

/* ---- Buttons: angular, uppercase, hard gradient ------------------ */
.btn, .start-btn, .seg {
  text-transform: uppercase; font-style: italic; font-weight: 800;
  letter-spacing: 0.05em;
}
.btn-primary, .seg.active {
  background: linear-gradient(105deg, var(--accent-dark), var(--accent) 55%, var(--accent-2)) !important;
  box-shadow: 0 6px 22px rgba(157, 92, 242, 0.40);
  color: #fff !important;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--border) !important; }
.btn-ghost:hover { border-color: var(--accent) !important; color: #fff; }

/* Big CTA + primary get a cut ("clipped") corner — the motorsport tell */
.start-btn, .boost-card.byot .btn-primary, #p-start, #auth-submit {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  border-radius: 0 !important;
  text-transform: uppercase; font-style: italic; letter-spacing: 0.06em;
}
.start-btn {
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent-2) 55%, #ffffff 130%) !important;
  color: #17032e !important; font-weight: 900;
  box-shadow: 0 10px 30px rgba(157, 92, 242, 0.5);
}

/* ---- Brand hero: bold italic, echo the logo lockup -------------- */
.brand-title { letter-spacing: 0; }
.brand-top, .brand-bottom {
  animation: none !important; background: none !important;
  -webkit-text-fill-color: currentColor !important; color: inherit;
  font-family: var(--disp); font-style: italic; text-transform: uppercase;
  font-weight: 900; letter-spacing: 0.01em; display: block;
}
.brand-top { color: #ffffff; text-shadow: 0 0 34px rgba(157, 92, 242, 0.45); }
.brand-bottom {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent) !important;
  margin-top: 2px;
}
/* violet blade under the hero heading */
.brand-title::after {
  content: ""; display: block; width: 78px; height: 4px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: skewX(-24deg);
}

/* ---- Accent recolouring for chips, tabs, badges ---------------- */
.hero-title, .cost-price, .wallet-balance strong, .token-counter,
.deposit-amount strong, .deposit-addr-label + .address-row code, .key-chip .val {
  color: var(--accent) !important;
}
.hero-title {
  background: none !important; -webkit-text-fill-color: currentColor !important;
  font-style: italic; text-transform: uppercase;
}
.chip, .buy-pill, .ts-tab { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.nav-link.active, .auth-tab.active, .subtab.active, .ts-tab.active {
  box-shadow: inset 0 -2px 0 var(--accent) !important;
}
.divider { transform: skewX(-24deg); }

/* Inputs: sharp with a violet focus blade */
.sec-input:focus, input:focus, textarea:focus, .input-prefix:focus-within {
  border-color: var(--accent) !important;
  box-shadow: -2px 0 0 0 var(--accent), 0 0 0 3px rgba(157, 92, 242, 0.14) !important;
}

/* Progress + rings keep function, pick up the violet bar */
.progress-bar { background: linear-gradient(90deg, var(--accent-dark), var(--accent-2)) !important; }

/* Footer watermark */
.site-watermark a { color: var(--accent-2) !important; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .start-btn, .acc-btn { transition: transform .06s ease, filter .15s ease; }
}
