/* ============================================================
   Ulys Quest / TRAVERSE Presale — assets/style.css
   Design: Premium cartographic fintech — ivory, navy, warm gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --navy:        #0d1f3c;
  --navy-mid:    #152b52;
  --navy-light:  #1e3a68;
  --sky:         #2c7be5;
  --sky-light:   #5b9cf6;
  --sky-pale:    #dbeafe;
  --gold:        #c8993a;
  --gold-light:  #e8be68;
  --gold-pale:   #fdf6e3;
  --ivory:       #f8f5ef;
  --cream:       #fffdf9;
  --white:       #ffffff;
  --text-dark:   #0d1f3c;
  --text-mid:    #3d5278;
  --text-muted:  #6b7fa3;
  --text-light:  #9aadc8;
  --border:      #d4dce9;
  --border-soft: #e8edf5;
  --success:     #10844a;
  --success-bg:  #edfbf3;
  --warning:     #c8720a;
  --warning-bg:  #fff8ee;
  --error:       #c0392b;
  --error-bg:    #fff5f5;
  --shadow-sm:   0 1px 4px rgba(13,31,60,0.08);
  --shadow-md:   0 4px 20px rgba(13,31,60,0.12);
  --shadow-lg:   0 12px 48px rgba(13,31,60,0.16);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,253,249,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav-logo .logo-badge {
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
#nav-wallet-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.1s;
}
#nav-wallet-btn:hover { background: var(--navy-light); transform: translateY(-1px); }
#nav-wallet-address {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mid);
  background: var(--border-soft);
  padding: 6px 12px;
  border-radius: 6px;
  display: none;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 100px 24px 80px;
  text-align: center;
}
.hero-map-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(44,123,229,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(200,153,58,0.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L30 60 M0 30 L60 30' stroke='rgba(255,255,255,0.035)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  opacity: 1;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,153,58,0.15);
  border: 1px solid rgba(200,153,58,0.35);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 1.075rem;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-item { text-align: center; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Section Titles ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-desc {
  font-size: 1.025rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Presale Banner ─────────────────────────────────────── */
.presale-banner {
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 24px;
  text-align: center;
}
.presale-banner p {
  font-size: 0.875rem;
  color: var(--text-mid);
}
.presale-banner strong { color: var(--navy); }

/* ── Round Progress ─────────────────────────────────────── */
.rounds-section {
  padding: 80px 0;
  background: var(--cream);
}
.rounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.round-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.round-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.round-card.active {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(44,123,229,0.12);
}
.round-card.completed { opacity: 0.6; }
.round-card.active::before {
  content: 'ACTIVE';
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: var(--sky);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 100px;
}
.round-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.round-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.round-price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 4px;
}
.round-price-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }
.round-progress-bar {
  height: 4px;
  background: var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.round-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--sky-light));
  border-radius: 2px;
  transition: width 0.6s ease;
  min-width: 2px;
}
.round-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Presale Card ───────────────────────────────────────── */
.presale-section {
  padding: 80px 0;
  background: var(--ivory);
}
.presale-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .presale-grid { grid-template-columns: 1fr; } }

.presale-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

/* ── Status Bar ─────────────────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  flex-shrink: 0;
  transition: background 0.3s;
}
.status-bar.connected .status-dot    { background: var(--success); }
.status-bar.wrong-network .status-dot { background: var(--warning); }
.status-bar.error .status-dot        { background: var(--error); }
.status-bar.pending .status-dot      { background: var(--sky); animation: pulse-dot 1s infinite; }

/* ── Form Elements ──────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.input-wrap { position: relative; }
.form-input {
  width: 100%;
  padding: 14px 52px 14px 16px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(44,123,229,0.12);
}
.input-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.quick-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-mid);
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.quick-btn:hover { background: var(--sky-pale); border-color: var(--sky); color: var(--sky); }

/* ── Calculator Preview ─────────────────────────────────── */
.calc-preview {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.875rem;
}
.calc-row + .calc-row { border-top: 1px solid rgba(255,255,255,0.07); }
.calc-key { color: rgba(255,255,255,0.55); font-weight: 400; }
.calc-val {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--white);
}
.calc-row.highlight .calc-val {
  color: var(--gold-light);
  font-size: 1rem;
}
.calc-row.trv-total .calc-key { color: rgba(255,255,255,0.7); font-weight: 500; }
.calc-row.trv-total .calc-val {
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(13,31,60,0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(13,31,60,0.3);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 2px 12px rgba(200,153,58,0.3);
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200,153,58,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--sky);
  color: var(--sky);
}
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

/* ── Alert Messages ─────────────────────────────────────── */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-left: 3px solid var(--warning); }
.alert-error   { background: var(--error-bg);   color: var(--error);   border-left: 3px solid var(--error);   }
.alert-info    { background: var(--sky-pale);    color: var(--sky);     border-left: 3px solid var(--sky);     }

/* ── TX Hash display ────────────────────────────────────── */
.tx-hash-display {
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mid);
  word-break: break-all;
  margin-bottom: 12px;
  display: none;
}
.tx-hash-display.show { display: block; }

/* ── Dashboard ──────────────────────────────────────────── */
.dashboard-section {
  padding: 64px 0;
  background: var(--cream);
}
.dashboard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: none;
}
.dashboard-card.show { display: block; }
.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 600px) { .balance-grid { grid-template-columns: 1fr 1fr; } }
.balance-item {
  background: var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.balance-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 6px;
}
.balance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ── Orders Table ───────────────────────────────────────── */
.orders-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.orders-table th {
  background: var(--border-soft);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
.orders-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  vertical-align: middle;
}
.orders-table tr:hover td { background: var(--ivory); }

/* ── Status Badges ──────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge-paid      { background: var(--success-bg); color: var(--success); }
.badge-confirming { background: var(--sky-pale);  color: var(--sky); }
.badge-submitted { background: #eff6ff; color: #2563eb; }
.badge-created   { background: var(--border-soft); color: var(--text-muted); }
.badge-expired   { background: #f3f4f6; color: #6b7280; }
.badge-rejected  { background: var(--error-bg); color: var(--error); }
.badge-manual    { background: var(--warning-bg); color: var(--warning); }

/* ── Tokenomics ─────────────────────────────────────────── */
.tokenomics-section {
  padding: 80px 0;
  background: var(--ivory);
}
.tokenomics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 800px) { .tokenomics-grid { grid-template-columns: 1fr; } }
.token-stat-list { display: flex; flex-direction: column; gap: 16px; }
.token-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.token-stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.token-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.token-stat-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy); }

/* ── Donut Chart placeholder ────────────────────────────── */
.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.donut-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    var(--sky)       0%   10%,
    var(--navy-mid)  10%  45%,
    var(--gold)      45%  60%,
    var(--sky-light) 60%  75%,
    #e2e8f0          75%  100%
  );
  box-shadow: var(--shadow-md);
  position: relative;
}
.donut-chart::after {
  content: 'TRV';
  position: absolute;
  inset: 30%;
  background: var(--ivory);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.donut-legend { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-mid); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── How it Works ───────────────────────────────────────── */
.how-section {
  padding: 80px 0;
  background: var(--navy);
}
.how-section .section-label { color: var(--gold-light); }
.how-section .section-title { color: var(--white); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  margin-top: 48px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step-card {
  background: rgba(255,253,249,0.04);
  padding: 28px 24px;
  transition: background 0.2s;
}
.step-card:hover { background: rgba(255,253,249,0.08); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}
.step-title { font-weight: 600; color: var(--white); margin-bottom: 8px; font-size: 0.95rem; }
.step-desc { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section { padding: 80px 0; background: var(--cream); }
.faq-list { max-width: 720px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 4px;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--border-soft); }
.faq-chevron { transition: transform 0.25s; flex-shrink: 0; color: var(--sky); font-size: 1.1rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 20px;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 18px; }

/* ── Legal / Notice ─────────────────────────────────────── */
.legal-section {
  padding: 48px 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-box {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.legal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.legal-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-text:last-child { margin-bottom: 0; }
.legal-warning {
  color: rgba(232,190,104,0.85);
  font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 32px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-soft); }

/* ── Loader ──────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Paused Overlay ─────────────────────────────────────── */
.presale-paused-banner {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 24px;
  display: none;
  color: var(--warning);
  font-weight: 600;
  font-size: 0.9rem;
}
.presale-paused-banner.show { display: block; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 64px 24px 48px; }
  .hero-stats { gap: 24px; }
  .presale-card { padding: 24px 20px; }
  .balance-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .balance-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .rounds-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
