/* TSA Star — Design Tokens — light is the base default */
:root {
  --bg: #F5F5F2;
  --surface: #FFFFFF;
  --surface-2: #EEEEE9;
  --border: #D8D8D0;

  --lime: #8DB840;
  --lime-bright: #A8D454;
  --lime-dim: #6E9230;
  --gold: #C8A84B;

  --ink: #1A1E14;
  --ink-2: #4A5240;
  --ink-3: #8A9480;

  --success: #5BA85A;
  --warn: #D4882A;
  --error: #C0392B;
  --error-soft: rgba(192,57,43,0.14);
  --warn-soft: rgba(212,136,42,0.14);
  --success-soft: rgba(91,168,90,0.14);
  --lime-soft: rgba(141,184,64,0.12);
  --gold-soft: rgba(212,175,55,0.12);

  --t-starter: #8A8F82;
  --t-explorer: #7B9E6B;
  --t-adventurer: #C8A84B;
  --t-summit: #C0C0C0;
  --t-superstar: #8DB840;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --display: 'Barlow Condensed', 'Oswald', system-ui, sans-serif;
  --headline: 'Barlow', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Dark theme — system default or explicit ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0F0A;
    --surface: #161A12;
    --surface-2: #1E2418;
    --border: #2C3324;
    --ink: #F0EDE6;
    --ink-2: #8A8F82;
    --ink-3: #4A4F44;
    --lime-soft: rgba(141,184,64,0.14);
    --gold-soft: rgba(200,168,75,0.14);
  }
  :root:not([data-theme="light"]) .hero-points {
    background: linear-gradient(180deg, #1A1F14, #161A12);
  }
  :root:not([data-theme="light"]) .podium {
    background: linear-gradient(180deg, #161A12 0%, #0E1109 100%);
  }
}

/* explicit light override (user chose light on a dark-system device) */
[data-theme="light"] {
  --bg: #F5F5F2;
  --surface: #FFFFFF;
  --surface-2: #EEEEE9;
  --border: #D8D8D0;
  --ink: #1A1E14;
  --ink-2: #4A5240;
  --ink-3: #8A9480;
  --lime-soft: rgba(141,184,64,0.12);
  --gold-soft: rgba(212,175,55,0.12);
}
[data-theme="light"] .hero-points {
  background: linear-gradient(180deg, #E8EDE0, #F0F4EA);
}
[data-theme="light"] .podium {
  background: linear-gradient(180deg, #E8EDE0 0%, #F0F4EA 100%);
}

/* explicit dark override (user chose dark on a light-system device) */
[data-theme="dark"] {
  --bg: #0D0F0A;
  --surface: #161A12;
  --surface-2: #1E2418;
  --border: #2C3324;
  --ink: #F0EDE6;
  --ink-2: #8A8F82;
  --ink-3: #4A4F44;
  --lime-soft: rgba(141,184,64,0.14);
  --gold-soft: rgba(200,168,75,0.14);
}
[data-theme="dark"] .hero-points {
  background: linear-gradient(180deg, #1A1F14, #161A12);
}
[data-theme="dark"] .podium {
  background: linear-gradient(180deg, #161A12 0%, #0E1109 100%);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.modal-box { animation: modal-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ---------- Page entrance ---------- */
@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.body-scroll,
.scroll-area { animation: page-in 0.28s ease both; }

/* ---------- Staggered list rows ---------- */
@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.rank-row,
.hist-row,
.event-card { animation: row-in 0.22s ease both; }
.rank-row:nth-child(1),.hist-row:nth-child(1),.event-card:nth-child(1) { animation-delay: 0.00s; }
.rank-row:nth-child(2),.hist-row:nth-child(2),.event-card:nth-child(2) { animation-delay: 0.04s; }
.rank-row:nth-child(3),.hist-row:nth-child(3),.event-card:nth-child(3) { animation-delay: 0.08s; }
.rank-row:nth-child(4),.hist-row:nth-child(4),.event-card:nth-child(4) { animation-delay: 0.12s; }
.rank-row:nth-child(5),.hist-row:nth-child(5),.event-card:nth-child(5) { animation-delay: 0.16s; }
.rank-row:nth-child(6),.hist-row:nth-child(6),.event-card:nth-child(6) { animation-delay: 0.20s; }
.rank-row:nth-child(7),.hist-row:nth-child(7),.event-card:nth-child(7) { animation-delay: 0.24s; }
.rank-row:nth-child(8),.hist-row:nth-child(8),.event-card:nth-child(8) { animation-delay: 0.28s; }
.rank-row:nth-child(n+9),.hist-row:nth-child(n+9),.event-card:nth-child(n+9) { animation-delay: 0.30s; }

/* ---------- Podium bar grow ---------- */
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.podium .bar {
  transform-origin: bottom;
  animation: bar-grow 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
.podium .slot.first  .bar { animation-delay: 0.30s; }
.podium .slot.second .bar { animation-delay: 0.15s; }
.podium .slot.third  .bar { animation-delay: 0.22s; }

/* ---------- Tap / press feedback ---------- */
.qa-card,
.event-card,
.bn-item,
.sidebar-item { transition: transform 0.12s ease, opacity 0.12s ease; }
.qa-card:active,
.event-card:active { transform: scale(0.97); opacity: 0.82; }
.bn-item:active,
.sidebar-item:active { opacity: 0.6; }

/* ---------- Progress bar animated fill ---------- */
.pbar span,
.pts-pbar span { transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- Layout ---------- */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

/* Tablet — single column, full width */
@media (min-width: 600px) {
  .app-shell {
    max-width: 100%;
  }
  .body-scroll,
  .scroll-area {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
  .topbar, .topbar2 {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
}

/* Desktop — top navbar + content */
@media (min-width: 900px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
  }
  .sidebar { display: flex !important; width: 100%; height: auto; }
  .bottom-nav { display: none !important; }
  .topbar { display: none !important; }
  .main-content {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
  }
  .topbar2 {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
  }
  .topbar { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
  .body-scroll,
  .scroll-area {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 40px;
  }
}

/* ---------- Sidebar → Top navbar (desktop) ---------- */
.sidebar {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  flex-direction: row;
  align-items: center;
  gap: 0;
  position: sticky;
  top: 0;
  height: 58px;
  z-index: 200;
  width: 100%;
  box-sizing: border-box;
}
.sidebar-brand {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  padding: 0 20px 0 0;
  border-bottom: none;
  border-right: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 12px;
  line-height: 58px;
}
.sidebar-brand .star { color: var(--gold); }
.sidebar-inner {
  display: flex; flex-direction: row; align-items: center;
  width: 100%; max-width: 1200px; margin: 0 auto; height: 100%;
  position: relative;
}
.sidebar-nav {
  display: flex; flex-direction: row; gap: 0;
  align-items: center; margin-top: 0;
  flex: 1; justify-content: center;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }
.sidebar-item {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px; height: 58px; border-radius: 0;
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-item:hover { background: rgba(141,184,64,0.07); color: var(--ink); }
.sidebar-item.active { background: transparent; color: var(--lime); }
.sidebar-item.active::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  height: 3px; width: auto;
  background: var(--lime); border-radius: 2px 2px 0 0;
}
.sidebar-item .ic { display: block; }
.sidebar-me {
  background: transparent; border: none;
  border-left: 1px solid var(--border);
  border-radius: 0; padding: 0 0 0 16px;
  display: flex; gap: 10px; align-items: center;
  margin-left: auto; height: 58px;
  flex-shrink: 0;
}
.sidebar-me .name { font-size: 12px; font-weight: 600; }
.sidebar-me .role { font-size: 10px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Top bar (mobile) ---------- */
.topbar {
  padding: 8px 18px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-inner { display: flex; gap: 10px; align-items: center; }
.topbar-actions { display: flex; gap: 8px; }

.topbar2 {
  padding: 8px 16px 12px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.topbar2 h2 {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase; font-size: 18px;
  margin: 0; letter-spacing: 0.02em; flex: 1;
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 8px 22px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  z-index: 100;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; color: var(--ink-2);
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none;
}
.bn-item.active { color: var(--lime); }
.bn-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll area ---------- */
.scroll-area { padding: 0 18px 110px; display: grid; gap: 16px; padding-top: 24px; }
.body-scroll { padding: 0 16px 110px; display: grid; gap: 14px; padding-top: 24px; }
@media (min-width: 900px) {
  .scroll-area { padding-top: 40px; }
  .body-scroll { padding-top: 40px; }
}

/* ---------- Avatar ---------- */
.av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--lime-dim));
  color: var(--bg); display: flex; align-items: center; justify-content: center;
  font-family: var(--headline); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.av-sm { width: 32px; height: 32px; font-size: 12px; }
.av-lg { width: 56px; height: 56px; font-size: 20px; }
.av-xl { width: 72px; height: 72px; font-size: 26px; }

/* ---------- Icon button ---------- */
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); position: relative; cursor: pointer;
}
.icon-btn .badge {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--bg);
}
.back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em; text-transform: uppercase;
  border-radius: var(--r-sm);
  height: 48px; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; line-height: 1;
  text-decoration: none;
}
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { background: var(--lime-bright); }
.btn-secondary { background: transparent; border-color: var(--lime); color: var(--lime); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; font-size: 12px; padding: 0 14px; }
.btn-gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.label {
  font-family: var(--body); font-size: 11px; font-weight: 500;
  color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase;
}
.input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  height: 48px; padding: 0 14px;
  color: var(--ink);
  font-family: var(--body); font-size: 15px;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
}
.input:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(141,184,64,0.18); }
.input.error { border-color: var(--error); }
.input input, .input textarea {
  all: unset; flex: 1; min-width: 0;
  font-family: var(--body); font-size: 15px; color: var(--ink);
}
.input input::placeholder { color: var(--ink-3); }
.err-msg { font-size: 11px; color: var(--error); display: flex; align-items: center; gap: 5px; margin-top: 2px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.card-h {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between;
}
.card-h h3 {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 14px; margin: 0;
}
.card-h .meta { font-family: var(--mono); font-size: 10px; color: var(--ink-2); letter-spacing: 0.1em; }

/* ---------- Hero points ---------- */
.hero-points {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #E8EDE0, #F0F4EA);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px 18px;
}
.hero-points .topo-lines {
  position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
}
.hero-points .toprow { display: flex; justify-content: space-between; align-items: center; }
.hero-points .points { text-align: center; margin-top: 14px; }
.hero-points .points .num {
  font-family: var(--display); font-weight: 700; font-size: 56px;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
}
.hero-points .points .lbl {
  color: var(--ink-2); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; margin-top: 4px;
}
.hero-points .progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-2); margin-bottom: 6px;
  font-family: var(--body); font-weight: 500;
}
.hero-points .progress-meta .next {
  color: var(--gold); font-family: var(--display);
  font-weight: 700; letter-spacing: 0.1em;
}
.hero-points .next-info {
  color: var(--ink-2); font-size: 12px; margin-top: 8px; text-align: center;
}
.hero-points .next-info b { color: var(--lime); font-family: var(--mono); font-weight: 500; }

/* ---------- Progress bar ---------- */
.pbar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.pbar > span { display: block; height: 100%; background: var(--lime); border-radius: 999px; }

/* ---------- Tier pill ---------- */
.tier-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg);
}
.tier-pill.starter { background: var(--t-starter); color: var(--ink); }
.tier-pill.explorer { background: var(--t-explorer); }
.tier-pill.adventurer { background: var(--t-adventurer); }
.tier-pill.summit { background: var(--t-summit); }
.tier-pill.superstar { background: var(--t-superstar); }

/* ---------- Section heading ---------- */
.section-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 4px 0;
}
.section-h h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0;
}
.section-h a { font-size: 12px; color: var(--lime); text-decoration: none; }

/* ---------- Activity list ---------- */
.activity { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 0; }
.activity .item {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 12px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.activity .item:last-child { border-bottom: none; }
.activity .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--lime-soft); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity .ico.gold { background: var(--gold-soft); color: var(--gold); }
.activity .nm { font-size: 13px; font-weight: 500; }
.activity .dt { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.activity .pts { font-family: var(--mono); font-weight: 600; color: var(--gold); font-size: 13px; }

/* ---------- Benefits card ---------- */
.benefits-card {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border);
}
.benefits-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: var(--t-starter);
}
.benefits-card.explorer .benefits-header   { background: var(--t-explorer); }
.benefits-card.adventurer .benefits-header { background: var(--t-adventurer); }
.benefits-card.summit .benefits-header     { background: var(--t-summit); }
.benefits-card.superstar .benefits-header  { background: var(--t-superstar); }

.benefits-header-left {
  display: flex; align-items: center; gap: 7px; color: #fff;
}
.benefits-card.starter .benefits-header-left,
.benefits-card.summit .benefits-header-left { color: var(--ink); }

.benefits-tier-name {
  font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.benefits-label {
  font-family: var(--display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
}
.benefits-card.starter .benefits-label,
.benefits-card.summit .benefits-label { color: rgba(0,0,0,0.45); }

.benefits-grid {
  background: var(--surface);
  display: flex; flex-direction: column; gap: 0;
  padding: 4px 0;
}
.benefit-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.benefit-chip:last-child { border-bottom: none; }
.benefit-chip svg { color: var(--lime); }

/* ---------- Podium ---------- */
.podium {
  background: linear-gradient(180deg, #E8EDE0 0%, #F0F4EA 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 16px 16px;
  position: relative; overflow: hidden;
}
.podium::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(141,184,64,0.18), transparent 70%);
  pointer-events: none;
}
.podium .title {
  font-family: var(--display); font-weight: 700;
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--lime);
  text-align: center; margin-bottom: 16px; position: relative;
}
.podium .three {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr;
  gap: 10px; align-items: end; position: relative;
}
.podium .slot { display: grid; gap: 6px; justify-items: center; }
.podium .slot .av {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 2px solid var(--border);
}
.podium .slot.first .av {
  width: 72px !important; height: 72px !important; font-size: 24px !important;
  background: linear-gradient(135deg, var(--gold), #a87c2a);
  color: var(--bg); border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(200,168,75,0.3);
}
.podium .slot.second .av { background: linear-gradient(135deg, #C0C0C0, #888); color: var(--bg); border-color: #999; }
.podium .slot.third .av { background: linear-gradient(135deg, #CD7F32, #8B4513); color: var(--bg); border-color: #B87333; }
.podium .slot .nm {
  font-size: 12px; font-weight: 600; text-align: center;
  overflow-wrap: break-word; word-break: break-word;
  width: 100%; line-height: 1.3;
}
@media (min-width: 560px) {
  .podium .slot .nm { font-size: 13px; }
  .podium .three { grid-template-columns: 1fr 1.3fr 1fr; gap: 14px; }
}
.podium .slot .pts { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.podium .slot.first .pts { color: var(--gold); }
.podium .slot.second .pts, .podium .slot.third .pts { color: var(--ink-2); }
.podium .bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--ink-2);
}
.podium .slot.first .bar {
  height: 80px;
  background: linear-gradient(180deg, rgba(200,168,75,0.25), rgba(200,168,75,0.05));
  border-color: rgba(200,168,75,0.4); color: var(--gold);
}
.podium .slot.second .bar { height: 60px; }
.podium .slot.third .bar { height: 44px; }

/* ---------- Rank list ---------- */
.rank-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.rank-row {
  display: grid; grid-template-columns: 32px 36px 1fr auto;
  gap: 12px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.rank-row:last-child { border-bottom: none; }
.rank-row .rk { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--ink-2); text-align: center; }
.rank-row .info .nm { font-size: 13px; font-weight: 500; }
.rank-row .info .sub { font-size: 11px; color: var(--ink-2); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.rank-row .pts { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.rank-row .pts.gold { color: var(--gold); }

/* ---------- Me row (highlighted) ---------- */
.me-row {
  background: linear-gradient(90deg, rgba(141,184,64,0.18), transparent 80%);
  border: 1px solid var(--lime);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: grid; grid-template-columns: 36px 36px 1fr auto; gap: 12px; align-items: center;
}
.me-row .rk { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--lime); text-align: center; }
.me-row .nm { font-size: 13px; font-weight: 600; }
.me-row .sub { font-size: 11px; color: var(--ink-2); }
.me-row .pts { font-family: var(--mono); font-weight: 600; color: var(--lime); font-size: 14px; }

/* ---------- Segment control ---------- */
.seg {
  display: grid; gap: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 3px;
}
.seg button {
  background: transparent; border: 0; color: var(--ink-2);
  font-family: var(--body); font-weight: 600; font-size: 12px;
  padding: 8px 4px; border-radius: 6px; letter-spacing: 0.04em; cursor: pointer;
}
.seg button.on { background: var(--lime); color: var(--bg); }

/* ---------- Chips ---------- */
.chips {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-2); border-radius: 99px;
  padding: 7px 12px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; white-space: nowrap; flex-shrink: 0;
  font-family: var(--body); cursor: pointer; text-decoration: none;
  display: inline-block;
}
.chip.on { background: var(--lime); color: var(--bg); border-color: var(--lime); }
a.chip { color: var(--ink-2); }
a.chip.on { color: var(--bg); }

/* ---------- History rows ---------- */
.hist-row {
  padding: 12px 16px;
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 12px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.hist-row:last-child { border-bottom: none; }
.hist-row .ic-bg {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lime-soft); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
}
.hist-row .ic-bg.gold { background: var(--gold-soft); color: var(--gold); }
.hist-row .nm { font-size: 13px; font-weight: 500; }
.hist-row .dt { font-size: 11px; color: var(--ink-3); font-family: var(--mono); margin-top: 2px; }
.hist-row .pts { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.hist-row .pts.up { color: var(--success); }
.hist-row .pts.down { color: var(--error); }

/* ---------- Auth ---------- */
.auth-screen {
  position: relative; overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 36px 22px 40px;
  color: var(--ink);
  min-height: 100vh;
  width: 100%;
}
.auth-screen > .logo-mark,
.auth-screen > .auth-card {
  width: 100%;
  max-width: 390px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  position: relative; z-index: 5;
  display: grid; gap: 14px;
}
.auth-card h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 26px; text-transform: uppercase;
  margin: 0; letter-spacing: -0.005em; line-height: 1.0;
}
.auth-card .sub { color: var(--ink-2); font-size: 13px; margin-top: -8px; margin-bottom: 4px; }
.auth-card .forgot { text-align: right; font-size: 12px; color: var(--lime); }
.auth-card .footnote { text-align: center; font-size: 12px; color: var(--ink-2); padding-top: 4px; }
.auth-card .footnote .lk { color: var(--lime); font-weight: 600; text-decoration: none; }
.divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer;
}
.logo-mark {
  text-align: center; font-family: var(--display); font-weight: 700;
  font-size: 24px; text-transform: uppercase;
  letter-spacing: -0.005em; margin-bottom: 18px;
  color: var(--ink);
}
.logo-mark .star { color: var(--gold); }

/* strength bar */
.strength-bar { display: flex; gap: 4px; margin-top: 4px; align-items: center; }
.strength-bar i { flex: 1; height: 3px; border-radius: 2px; background: var(--border); }
.strength-bar.weak i:nth-child(1) { background: var(--error); }
.strength-bar.medium i:nth-child(1), .strength-bar.medium i:nth-child(2) { background: var(--warn); }
.strength-bar.strong i { background: var(--success); }
.strength-bar .lbl { font-size: 10px; margin-left: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.strength-bar.weak .lbl { color: var(--error); }
.strength-bar.medium .lbl { color: var(--warn); }
.strength-bar.strong .lbl { color: var(--success); }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.checkbox {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--ink-2); flex: none;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
  cursor: pointer;
}
.checkbox.checked { background: var(--lime); border-color: var(--lime); color: var(--bg); }

/* ---------- Ridge background ---------- */
.ridge-bg {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 200px; pointer-events: none; opacity: 0.45;
}

/* ---------- Empty state ---------- */
.empty-card {
  background: rgba(22,26,18,0.4);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 24px 18px;
  text-align: center; display: grid; gap: 8px;
}
.empty-card .ico {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--lime-soft); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; color: var(--lime);
}
.empty-card h4 { font-family: var(--headline); font-weight: 600; font-size: 15px; margin: 0; }
.empty-card p { font-size: 12px; color: var(--ink-2); margin: 0; }

/* ---------- Achievements ---------- */
.ach-section-header {
  background: var(--lime); border-radius: var(--r-sm);
  padding: 9px 14px; margin-bottom: 2px;
}
.ach-section-label {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #0D0F0A;
}
.ach-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.ach-thead {
  display: grid;
  grid-template-columns: 1fr 52px 56px 80px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  gap: 8px;
}
.ach-row {
  display: grid;
  grid-template-columns: 1fr 52px 56px 80px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px; align-items: center;
}
.ach-row:last-child { border-bottom: none; }

.ach-col-race {}
.ach-col-rank { text-align: center; }
.ach-col-dist { text-align: center; }
.ach-col-time { text-align: center; }
.ach-col-pts  { text-align: center; }
.ach-dist {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  color: var(--lime);
}

.ach-race-name {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.01em; line-height: 1.3;
}
.ach-race-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 4px;
  font-size: 11px; color: var(--ink-3);
}
.ach-type-badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--lime-soft); color: var(--lime);
}
.ach-type-badge.bus      { background: rgba(59,130,246,0.12); color: #60a5fa; }
.ach-type-badge.workshop { background: rgba(168,85,247,0.12); color: #c084fc; }
.ach-star-badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 9px;
  letter-spacing: 0.1em; background: var(--gold-soft); color: var(--gold);
}
.ach-rank-num {
  font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--ink);
}
.ach-time {
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
}
.ach-dash { color: var(--ink-3); font-size: 13px; }
.ach-pts-num {
  font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--gold);
  line-height: 1;
}
.ach-pts-lbl {
  font-size: 9px; color: var(--ink-3); letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 1px;
}
.ach-tx-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px;
}
.ach-tx-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 5px;
  font-size: 10px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-3);
  border: 1px solid var(--border);
}
.ach-tx-tag.finisher {
  background: var(--gold-soft); color: var(--gold); border-color: transparent;
}
.ach-summary {
  display: flex; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; margin-top: 10px;
}
.ach-summary-item {
  flex: 1; padding: 14px 16px; text-align: center;
}
.ach-summary-divider {
  width: 1px; background: var(--border);
}
.ach-summary-num {
  font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--lime);
  line-height: 1;
}
.ach-summary-lbl {
  font-family: var(--display); font-weight: 700; font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}

/* ---------- Registrations ---------- */
.reg-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-md); min-height: 148px;
  border: 1px solid var(--border);
  display: flex; align-items: flex-end;
}
.reg-hero-bg { position: absolute; inset: 0; }
.reg-hero-content {
  position: relative; z-index: 1;
  padding: 20px 20px 22px; width: 100%;
}
.reg-hero-label {
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.2em; color: var(--lime); margin-bottom: 6px;
  text-transform: uppercase;
}
.reg-hero-title {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  line-height: 1.2; color: #fff; text-transform: uppercase;
  letter-spacing: 0.02em; margin-bottom: 16px;
}
.reg-hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 8px;
  background: var(--lime); color: #0D0F0A;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: background 0.15s;
}
.reg-hero-btn:hover { background: var(--lime-bright); }

.reg-list { display: grid; gap: 10px; }
.reg-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.reg-card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px 0;
}
.reg-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--lime-soft); color: var(--lime);
}
.reg-type-badge.bus       { background: rgba(59,130,246,0.12); color: #60a5fa; }
.reg-type-badge.workshop  { background: rgba(168,85,247,0.12); color: #c084fc; }
.reg-type-badge.crew      { background: rgba(249,115,22,0.12); color: #fb923c; }
.reg-star-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold-soft); color: var(--gold);
}
.reg-card-body {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 10px 14px 10px;
}
.reg-card-name {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em; line-height: 1.3;
}
.reg-card-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px;
}
.reg-card-meta span {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--ink-3); font-weight: 500;
}
.reg-card-points {
  text-align: right; flex-shrink: 0; padding-left: 10px;
}
.reg-rank-num {
  font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink);
  line-height: 1;
}
.reg-points-num {
  font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--gold);
  line-height: 1;
}
.reg-points-lbl {
  font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; margin-top: 2px;
  text-transform: uppercase;
}
.reg-card-footer {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 14px 12px; border-top: 1px solid var(--border); padding-top: 10px;
}
.reg-tx-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border);
}
.reg-tx-tag.finisher {
  background: var(--gold-soft); color: var(--gold); border-color: transparent;
}

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 10px;
  display: grid; gap: 4px; text-align: center;
}
.stat-card .num { font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--lime); }
.stat-card .num.gold { color: var(--gold); }
.stat-card .lbl { font-size: 9px; color: var(--ink-2); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ---------- Greet header ---------- */
.greet { font-size: 11px; color: var(--ink-2); letter-spacing: 0.06em; }
.uname { font-weight: 700; font-size: 15px; }

/* ---------- Utility ---------- */
.cap {
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}
.h-display {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95;
}
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 24px; height: 24px; }

.messages { list-style: none; padding: 0 18px; margin: 8px 0 0; }
.messages li {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 13px; margin-bottom: 6px;
}
.messages .error { background: var(--error-soft); color: var(--error); border: 1px solid var(--error); }
.messages .success { background: var(--success-soft); color: var(--success); border: 1px solid var(--success); }

/* ---------- Dashboard (home) ---------- */
.db-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 16px;
}
@media (min-width: 900px) {
  .db-scroll {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

/* Section header — orange tab like UTMB */
.db-section-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gold); border-radius: 6px 6px 0 0;
  padding: 8px 14px; margin-bottom: 0;
}
.db-section-label {
  font-family: var(--display); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #0D0F0A; font-weight: 400;
}
.db-section-label strong { font-weight: 800; }
.db-section-more {
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.1em; color: rgba(0,0,0,0.55); text-decoration: none;
  text-transform: uppercase;
}
.db-section-more:hover { color: #0D0F0A; }

/* MY RACES list */
.db-races-list {
  background: var(--surface); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 var(--r-sm) var(--r-sm);
  margin-bottom: 10px;
}
.db-race-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--ink);
}
.db-race-row:last-child { border-bottom: none; }
.db-race-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--lime-soft); color: var(--lime);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.db-race-info { flex: 1; min-width: 0; }
.db-race-name {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-race-meta {
  display: flex; gap: 8px; margin-top: 2px;
  font-size: 11px; color: var(--ink-3);
}

/* Hero banner */
.db-hero-banner {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  min-height: 120px; display: flex; align-items: flex-end;
  border: 1px solid var(--border); margin-bottom: 10px;
}
.db-hero-bg { position: absolute; inset: 0; }
.db-hero-content { position: relative; z-index: 1; padding: 18px 20px 20px; width: 100%; }
.db-hero-label {
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.2em; color: var(--lime); margin-bottom: 4px;
  text-transform: uppercase;
}
.db-hero-title {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  line-height: 1.2; color: #fff; text-transform: uppercase;
  letter-spacing: 0.02em; margin-bottom: 14px;
}
.db-hero-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 7px;
  background: var(--lime); color: #0D0F0A;
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.db-hero-btn:hover { background: var(--lime-bright); }

/* Achievements table inside dashboard */
.db-ach-table {
  background: var(--surface); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 var(--r-sm) var(--r-sm);
  overflow: hidden;
}
.db-ach-thead {
  display: grid; grid-template-columns: 1fr 60px 80px 52px;
  padding: 7px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  gap: 6px;
}
.db-ach-row {
  display: grid; grid-template-columns: 1fr 60px 80px 52px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  gap: 6px; align-items: center;
}
.db-ach-row:last-child { border-bottom: none; }
.db-ach-cell { text-align: center; }
.db-ach-name {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  line-height: 1.3;
}
.db-ach-date { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.db-ach-rank {
  font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink);
}
.db-ach-time {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}
.db-ach-pts {
  font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--gold);
}
.db-dash { color: var(--ink-3); font-size: 13px; }

.db-more-btn {
  display: flex; align-items: center; justify-content: center;
  height: 40px; margin-top: 8px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--border);
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.db-more-btn:hover { background: var(--surface-2); color: var(--ink); }

.db-empty-row {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 14px; font-size: 13px; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* Right panel: Points card */
.db-points-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #E8EDE0, #F0F4EA);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px 18px 18px;
}
:root:not([data-theme="light"]) .db-points-card,
[data-theme="dark"] .db-points-card {
  background: linear-gradient(180deg, #1a2e0a, #0D0F0A);
}
.db-points-card .topo-lines {
  position: absolute; inset: 0; opacity: 0.1; pointer-events: none;
  width: 100%; height: 100%;
}
.db-points-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.db-points-label {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.db-points-num {
  font-family: var(--display); font-weight: 700; font-size: 52px;
  line-height: 1; text-align: center;
  position: relative; z-index: 1;
}
.db-points-sublabel {
  font-size: 11px; color: var(--ink-2); letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center; margin-top: 2px; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.db-progress-wrap { position: relative; z-index: 1; margin-bottom: 14px; }
.db-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500;
}
.db-progress-info {
  font-size: 12px; color: var(--ink-2); margin-top: 7px; text-align: center;
}
.db-progress-info b { color: var(--lime); font-family: var(--mono); }
.db-benefits {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 14px;
  display: grid; gap: 6px;
}
.db-benefit-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
}
.db-points-cta {
  display: flex; align-items: center; justify-content: center;
  height: 38px; border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  position: relative; z-index: 1;
}
.db-points-cta:hover { background: rgba(141,184,64,0.08); color: var(--lime); }
