/* Coinz Hub PoC styles — extends shared/theme.css with Hub-specific
   components: tab pill row, scratchcard calendar, tier ladders,
   VIP benefits table, feature cards. Visual-only PoC; ~6 files total. */

body { padding-top: 0; }

/* ───────── page chrome (mirrors coinz-market PoC) ───────── */
.viewport-shell {
  margin: 0 auto; transition: max-width 0.25s ease;
  container-type: inline-size; container-name: page;
  display: flex; flex-direction: column; min-height: 100vh;
}
.site-body { display: flex; align-items: stretch; flex: 1; min-height: 0; }
.site-main { flex: 1; min-width: 0; }
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }

/* ───────── site header (copied verbatim from coinz-market.css) ───────── */
.site-header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 67px; flex-shrink: 0;
  background: var(--figma-surface-dark, #001f58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.hdr-icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.hdr-icon-btn:hover { background: rgba(255, 255, 255, 0.10); }

.hdr-logo {
  display: inline-flex; align-items: baseline;
  padding: 0 4px 0 2px;
  font-family: var(--figma-font, var(--font-display));
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  user-select: none; flex-shrink: 0;
}
.hdr-logo-mark { color: var(--color-magenta); font-size: 28px; }
.hdr-logo-dot  { color: var(--color-magenta); font-size: 28px; margin: 0 1px; }
.hdr-logo-tld  { color: var(--color-text); font-size: 14px; font-weight: 700; }

.hdr-search {
  flex: 1; max-width: 320px; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}
.hdr-search > .bi { color: var(--color-text-muted); font-size: 14px; }
.hdr-search input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--color-text); font-family: inherit; font-size: 13px;
}
.hdr-search input::placeholder { color: var(--color-text-muted); }
.hdr-search input:focus { outline: none; }

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hdr-theme-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  font-size: 14px; line-height: 1;
}
.hdr-theme-pill .bi-sun-fill  { color: var(--color-gc); }
.hdr-theme-pill .bi-moon-fill { color: var(--color-text); opacity: 0.55; }

.hdr-balance-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--color-text); font-weight: 700; font-size: 13px;
  line-height: 1; white-space: nowrap;
}
.hdr-balance-coin {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--figma-green-gradient, linear-gradient(135deg, #1a8a4d, #3aff8a));
  display: inline-flex; align-items: center; justify-content: center;
  color: #002b13; font-size: 12px; font-weight: 900;
}
.hdr-balance-amount::before { content: "$"; opacity: 0.85; margin-right: 1px; }
.hdr-balance-caret { font-size: 9px; opacity: 0.6; }

.hdr-bag-btn {
  width: 48px; height: 38px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff2b5e, #ff547a);
  border: 0; color: white; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(255, 43, 94, 0.35);
  flex-shrink: 0;
}
.hdr-bag-btn:hover { filter: brightness(1.08); }
.hdr-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #6a4ed8, #a070ff);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  flex-shrink: 0;
}

/* ───────── sidenav (Social Hub section is anchor for the Hub) ───────── */
.site-sidenav {
  width: 240px; flex-shrink: 0;
  padding: 14px 10px 32px;
  background: var(--figma-surface-dark, #001f58);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  font-family: var(--figma-font, var(--font-display));
}
.sidenav-section + .sidenav-section { margin-top: 18px; }
.sidenav-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 10px;
  color: var(--color-text-muted);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.10em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
  user-select: none;
}
.sidenav-section-head .bi { font-size: 11px; opacity: 0.55; }
.sidenav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  color: var(--color-text); text-decoration: none;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  line-height: 1; cursor: default;
  transition: background 0.12s ease;
}
.sidenav-item .bi {
  font-size: 18px; width: 22px; text-align: center; flex-shrink: 0;
}
.sidenav-item:hover { background: rgba(255, 255, 255, 0.05); }
a.sidenav-item { cursor: pointer; }
a.sidenav-item:hover { background: rgba(255, 255, 255, 0.08); }
.sidenav-item.active {
  background: rgba(58, 255, 138, 0.12);
  color: var(--color-sc);
  border: 1px solid rgba(58, 255, 138, 0.25);
}

/* ───────── tab pill row (the Hub tabs) ───────── */
.page-tabs { display: flex; justify-content: center; margin-bottom: 28px; }
.page-tabs-inner {
  background: rgba(0, 0, 0, 0.4); padding: 4px;
  border-radius: var(--radius-full); display: inline-flex; gap: 4px;
  flex-wrap: wrap;
}
.page-tab {
  background: transparent; color: var(--color-text-muted);
  border: none; padding: 10px 22px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; transition: all 0.2s ease;
  white-space: nowrap; cursor: pointer;
  text-decoration: none; font-family: inherit;
}
.page-tab:hover { color: var(--color-text); }
.page-tab.active {
  background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
  color: white; box-shadow: 0 0 20px rgba(255, 43, 214, 0.4);
}

/* ───────── Home — hero strip ───────── */
.hub-hero {
  display: flex; align-items: center; gap: 28px;
  padding: 24px 28px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.10), rgba(43, 214, 255, 0.10));
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}
.hub-hero-art { font-size: 56px; flex-shrink: 0; }
.hub-hero-copy { flex: 1; min-width: 0; }
.hub-hero h2 {
  font-size: var(--text-2xl); font-weight: 900; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.hub-hero p { color: var(--color-text-muted); margin-bottom: 14px; font-size: var(--text-sm); }
.hub-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-primary, .cta-ghost {
  font-family: inherit; cursor: pointer;
  padding: 10px 22px; border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: transform 0.15s ease;
  text-decoration: none; display: inline-flex; align-items: center;
}
.cta-primary {
  background: linear-gradient(135deg, var(--color-purchase), var(--color-purchase-hover));
  color: white; border: 0; box-shadow: 0 0 16px var(--color-purchase-glow);
}
.cta-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cta-ghost {
  background: transparent; color: var(--color-cyan);
  border: 1px solid rgba(43, 214, 255, 0.4);
}
.cta-ghost:hover { background: rgba(43, 214, 255, 0.1); }

/* ───────── Section card (generic container used across pages) ───────── */
.hub-section {
  margin-bottom: 22px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}
.hub-section h3 {
  font-size: var(--text-lg); font-weight: 800; margin-bottom: 12px;
  color: var(--color-text);
}
.hub-section .section-subtitle {
  color: var(--color-text-muted); font-size: var(--text-sm);
  margin-bottom: 16px;
}

/* ───────── 14-day calendar ───────── */
.calendar-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.calendar-meta strong { color: var(--color-text); font-family: var(--font-mono); font-weight: 700; }
.calendar-grid {
  display: grid; grid-template-columns: repeat(15, 1fr);
  gap: 8px;
}
.calendar-cell {
  aspect-ratio: 1; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-size: 11px; font-weight: 700;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.calendar-cell:hover { transform: translateY(-2px); }
.calendar-cell .day-label { font-size: 10px; letter-spacing: 0.04em; opacity: 0.7; }
.calendar-cell .day-icon  { font-size: 18px; margin-top: 2px; }
.calendar-cell.played {
  background: rgba(58, 255, 138, 0.12);
  border-color: rgba(58, 255, 138, 0.35);
  color: var(--color-sc);
}
.calendar-cell.today {
  background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
  border-color: var(--color-magenta);
  color: white;
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.45);
  animation: today-pulse 2s ease-in-out infinite;
}
@keyframes today-pulse { 50% { box-shadow: 0 0 30px rgba(255, 43, 214, 0.7); } }
.calendar-cell.locked {
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-text-dim);
  border-color: rgba(255, 255, 255, 0.05);
}
.calendar-cell.cliff {
  background: rgba(255, 85, 119, 0.18);
  border: 1px dashed rgba(255, 85, 119, 0.6);
  color: var(--color-down);
  font-size: 10px;
  padding: 4px;
  text-align: center;
}
.calendar-cell.cliff:hover {
  background: rgba(255, 85, 119, 0.28);
  border-style: solid;
}
.calendar-footnote {
  margin-top: 12px; color: var(--color-text-muted); font-size: var(--text-sm);
  text-align: center;
}

/* ───────── Features overview (4 cards on Home) ───────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.feature-card {
  padding: 18px 16px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none; color: var(--color-text);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--color-cyan); }
.feature-card .feature-name { font-weight: 800; font-size: var(--text-md); }
.feature-card .feature-tag  { font-size: var(--text-xs); color: var(--color-cyan); text-transform: uppercase; letter-spacing: 0.04em; }
.feature-card .feature-blurb { font-size: var(--text-sm); color: var(--color-text-muted); flex: 1; }
.feature-card .feature-open { color: var(--color-cyan); font-size: var(--text-sm); font-weight: 700; margin-top: 4px; }

/* ───────── Tier ladder (horizontal hexagons) ───────── */
.tier-ladder {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 10px;
  overflow-x: auto;
}
.tier-node {
  flex: 1; min-width: 110px;
  padding: 14px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tier-node:hover { transform: translateY(-2px); }
.tier-node .tier-name { font-size: var(--text-sm); font-weight: 800; letter-spacing: 0.02em; }
.tier-node .tier-rate { font-size: var(--text-lg); font-weight: 900; color: var(--color-cyan); margin-top: 4px; }
.tier-node .tier-meta { font-size: 10px; color: var(--color-text-muted); margin-top: 4px; }
.tier-node.current {
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.20), rgba(43, 214, 255, 0.20));
  border-color: var(--color-magenta);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.35);
}
.tier-node.current .tier-rate { color: var(--color-text); }
.tier-node .tier-current-flag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--color-magenta); color: white;
  font-size: 9px; padding: 2px 8px; border-radius: 9px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.tier-progress {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3); border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.tier-progress strong { color: var(--color-text); }
.tier-progress-bar {
  flex: 1; height: 6px; background: rgba(255, 255, 255, 0.08);
  border-radius: 6px; overflow: hidden;
}
.tier-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-magenta));
}
.see-full-ladder {
  display: inline-block; margin-top: 12px;
  color: var(--color-cyan); text-decoration: none; font-weight: 700;
}
.see-full-ladder:hover { text-decoration: underline; }

/* ───────── Coinz Back accumulated-progress widget ───────── */
.cb-progress {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(58, 255, 138, 0.06), rgba(43, 214, 255, 0.06));
  border: 1px solid rgba(58, 255, 138, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}
.cb-progress-art { font-size: 48px; flex-shrink: 0; }
.cb-progress-detail { flex: 1; min-width: 240px; }
.cb-progress-amount {
  font-size: var(--text-2xl); font-weight: 900; color: var(--color-sc);
  font-family: var(--font-mono);
}
.cb-progress-amount .threshold { color: var(--color-text-muted); font-size: var(--text-md); }
.cb-progress-bar {
  height: 10px; background: rgba(0, 0, 0, 0.4);
  border-radius: 6px; overflow: hidden; margin: 10px 0;
}
.cb-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--color-sc), var(--color-cyan));
}
.cb-progress-pct { color: var(--color-text-muted); font-size: var(--text-sm); }
.cb-collect-btn {
  padding: 12px 32px; border-radius: var(--radius-md);
  background: var(--color-purchase); color: white; border: 0;
  font-family: inherit; font-weight: 800; font-size: var(--text-sm);
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; min-width: 180px;
}
.cb-collect-btn:disabled, .cb-collect-btn.locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted); cursor: not-allowed; box-shadow: none;
}

/* ───────── How-it-works 3-step ───────── */
.howto {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.howto-step {
  padding: 16px 18px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.howto-step .step-num {
  font-size: 11px; font-weight: 900; color: var(--color-cyan);
  letter-spacing: 0.06em;
}
.howto-step .step-name { font-size: var(--text-md); font-weight: 800; margin: 4px 0; }
.howto-step .step-body { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.5; }

/* ───────── FAQ accordion (CSS-only) ───────── */
.faq details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 8px; padding: 14px 18px;
}
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "▾"; color: var(--color-text-muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin-top: 10px; color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.6; }

/* ───────── Coinz Connect sliders ───────── */
.cc-status-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.25); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
}
.cc-status-bar .status-label { font-size: var(--text-sm); color: var(--color-text-muted); }
.cc-status-bar .status-value { font-weight: 800; color: var(--color-text); }
.cc-status-bar .status-value.off { color: var(--color-down); }
.cc-status-bar .grow { flex: 1; }
.cc-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}
.cc-form-row {
  display: grid; grid-template-columns: 160px 1fr 100px;
  gap: 16px; align-items: center;
}
.cc-form-row label { font-weight: 700; color: var(--color-text); font-size: var(--text-sm); }
.cc-form-row input[type=range] { width: 100%; }
.cc-form-row .readout {
  text-align: right; font-family: var(--font-mono); font-weight: 700;
  color: var(--color-text); font-size: var(--text-md);
}
.cc-save {
  align-self: flex-end; margin-top: 6px;
  padding: 12px 28px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-purchase), var(--color-purchase-hover));
  color: white; border: 0;
  font-family: inherit; font-weight: 800; font-size: var(--text-sm);
  letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
}

/* ───────── VIP ─────────────────────────────────────────────── */
.vip-progress {
  padding: 22px 24px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.10), rgba(160, 112, 255, 0.10));
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}
.vip-progress-meta {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.vip-progress-meta strong { color: var(--color-text); font-family: var(--font-mono); }
.vip-progress-bar {
  height: 12px; background: rgba(0, 0, 0, 0.4);
  border-radius: 8px; overflow: hidden; margin: 12px 0 4px;
}
.vip-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--color-magenta), var(--color-purple));
}
.vip-levels {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin: 16px 0 22px;
}
.vip-level {
  padding: 20px 14px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
  position: relative;
}
.vip-level:hover { transform: translateY(-3px); border-color: var(--color-magenta); }
.vip-level .vip-emoji { font-size: 36px; }
.vip-level .vip-name { font-weight: 900; font-size: var(--text-md); margin-top: 6px; }
.vip-level .vip-pts  { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 4px; }
.vip-level.current {
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.18), rgba(160, 112, 255, 0.18));
  border-color: var(--color-magenta);
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.3);
}
.vip-level .vip-you-flag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--color-magenta); color: white;
  font-size: 9px; padding: 2px 8px; border-radius: 9px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.vip-benefits {
  width: 100%; border-collapse: collapse; font-size: var(--text-sm);
}
.vip-benefits th, .vip-benefits td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vip-benefits th {
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-text);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: var(--text-xs);
}
.vip-benefits th.perk-name, .vip-benefits td.perk-name {
  text-align: left; color: var(--color-text-muted); font-weight: 700;
}
.vip-benefits tr:hover td { background: rgba(255, 255, 255, 0.025); }
.vip-benefits .dash { color: var(--color-text-dim); }

.vip-grants { display: flex; flex-direction: column; gap: 10px; }
.vip-grant {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-sm);
}
.vip-grant .grant-when { color: var(--color-text-muted); margin-left: auto; font-size: var(--text-xs); }
.vip-grant.skipped { opacity: 0.65; }
.vip-grant.skipped::before { content: "—"; color: var(--color-text-dim); margin-right: 6px; }

/* ───────── DOCS PANEL (V2 Overview) ───────── */
.docs-panel {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(0, 7, 36, 0.96);
  backdrop-filter: blur(10px);
  overflow-y: auto; padding: 40px 24px 96px;
}
.docs-panel[hidden] { display: none; }
.docs-panel-inner { max-width: 780px; margin: 0 auto; position: relative; }
.docs-close {
  position: absolute; top: -8px; right: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--color-text); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.docs-content {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 44px 36px;
  color: var(--color-text);
  font-family: var(--figma-font, var(--font-display));
  font-size: 15px; line-height: 1.65;
}
.docs-content h1 {
  font-size: 30px; font-weight: 800; margin: 0 0 18px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.docs-content h2 {
  font-size: 20px; font-weight: 700;
  margin: 32px 0 12px; padding-bottom: 8px;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.docs-content h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.docs-content p { margin: 0 0 12px; }
.docs-content ul, .docs-content ol { margin: 6px 0 16px; padding-left: 22px; }
.docs-content li { margin-bottom: 6px; }
.docs-content strong { color: var(--color-text); font-weight: 700; }
.docs-content code {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--color-cyan);
}
.docs-content hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.10); margin: 28px 0; }
.docs-content a { color: var(--color-cyan); }

/* ───────── Coinz Back promotional landing (Figma 2160-7248) ─────────
   Page-scoped styles for the redesigned promotional surface. Uses the
   existing figma-tokens.css palette plus a few CoinzBack-specific accents:
   - Bright cyan progress fill (matches Figma blue gradient)
   - Magenta/pink CTA (matches "KEEP PLAYING" button in Figma)
   - Per-tier accent colors (Silver/Gold/Platinum/Diamond) on tier table */

/* Hero banner — dark purple/magenta gradient + COINZ BACK wordmark.
   TODO: replace .cb-hero-logo gradient text with the real 3D logo asset
   (Figma node 2160-7243) once Figma Dev Mode allowed-directories is set. */
.cb-hero-banner {
  position: relative; overflow: hidden;
  padding: 48px 24px 40px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 80% 30%, rgba(255, 43, 214, 0.35), transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(155, 43, 255, 0.35), transparent 55%),
    linear-gradient(135deg, #2a1058, #4a1078);
  text-align: center;
  isolation: isolate;
}
.cb-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 43, 214, 0.18), transparent 70%);
  z-index: -1;
}
.cb-hero-logo-img {
  display: block; margin: 0 auto 12px;
  width: clamp(260px, 38vw, 460px); height: auto;
  filter: drop-shadow(0 6px 30px rgba(43, 107, 255, 0.45));
  position: relative; z-index: 1;
}
.cb-hero-tagline {
  color: #ffffff; font-size: var(--text-lg); font-weight: 600;
  margin: 0; position: relative; z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Status pill — centered card with tier label + progress + collect */
.cb-status {
  padding: 20px 28px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
  border: 1px solid var(--figma-border-light);
  border-radius: 999px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.cb-status-tier-row {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-md);
}
.cb-status-tier-label { color: var(--color-text); opacity: 0.85; }
.cb-status-tier-value {
  color: #ffd154;  /* warm yellow accent per Figma */
  font-weight: 800; font-size: var(--text-lg);
}
.cb-status-progress-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}
.cb-status-progress-label { color: var(--color-text); font-size: var(--text-sm); font-weight: 600; }
.cb-status-keep { color: var(--color-text); opacity: 0.8; font-size: var(--text-sm); }
.cb-status-keep strong { color: #ffd154; font-weight: 800; }

/* Progress bar — bright cyan-blue gradient pill */
.cb-bar {
  position: relative;
  min-width: 200px; height: 26px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px; overflow: hidden;
  flex: 1 1 auto;
  max-width: 320px;
}
.cb-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2b6bff 0%, #6dd5ff 60%, #b3eaff 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}
.cb-bar-amount {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  font-size: var(--text-sm); font-weight: 800; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
}
.cb-bar-full { max-width: 180px; }

/* Collect button — cyan pill */
.cb-collect {
  padding: 10px 28px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #4a9aff, #6dd5ff);
  color: #001f58;  /* deep navy on cyan, per Figma */
  font-weight: 900; font-size: var(--text-sm);
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; min-width: 140px;
  box-shadow: 0 4px 14px rgba(74, 154, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cb-collect:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 154, 255, 0.5);
}
.cb-collect:disabled {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
  box-shadow: none;
}
.cb-collect-small { min-width: 110px; padding: 8px 20px; font-size: var(--text-xs); }

/* Section blocks — promotional body */
.cb-section {
  padding: 24px;
  margin-bottom: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.cb-section-title {
  margin: 0 0 12px;
  font-size: var(--text-xl); font-weight: 800;
  color: #ffffff;
}
.cb-body {
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: 1.6;
}
.cb-body strong { color: #ffd154; font-weight: 800; }

/* Mini progress rows inside the promo body */
.cb-mini-bar-row {
  display: flex; align-items: center; gap: 14px;
  margin: 16px 0;
}
.cb-mini-bar-row-cta { justify-content: flex-start; }
.cb-arrow {
  color: #6dd5ff;
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* Tier table */
.cb-tier-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  font-size: var(--text-sm);
}
.cb-tier-table thead th {
  text-align: left;
  font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.cb-tier-table tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cb-tier-table tbody tr:last-child td { border-bottom: 0; }
.cb-tier-table tbody tr.current {
  background: linear-gradient(90deg, rgba(255, 209, 84, 0.12), rgba(255, 209, 84, 0.02));
  position: relative;
}
.cb-tier-table tbody tr.current td:first-child {
  border-left: 3px solid #ffd154;
}
.cb-tier-num {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600; font-family: var(--font-mono);
  width: 80px;
}
.cb-tier-name {
  font-weight: 900; font-size: var(--text-md);
}
.cb-tier-name-silver   { color: #c0c8d4; }
.cb-tier-name-gold     { color: #ffd154; }
.cb-tier-name-platinum { color: #6dd5ff; }
.cb-tier-name-diamond  { color: #f3a4ff; }
.cb-tier-pct {
  font-weight: 800; color: #ffffff;
  text-align: right;
}

/* Keep playing CTA section */
.cb-keep-playing {
  text-align: center;
  padding: 28px 24px 32px;
}
.cb-keep-playing-lead {
  font-size: var(--text-lg); color: var(--color-text);
  margin: 0 0 4px; opacity: 0.85;
}
.cb-keep-playing-tagline {
  font-size: var(--text-md); margin: 0 0 20px;
}
.cb-keep-playing-tagline strong { color: #ffffff; font-weight: 800; }
.cb-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #ff2b8e, #ff2bd6);
  color: #ffffff;
  font-weight: 900; font-size: var(--text-md);
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 43, 142, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cb-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 43, 142, 0.55);
}

/* Responsive — stack status pill content on small viewports */
@container page (max-width: 600px) {
  .cb-status { border-radius: var(--radius-lg); }
  .cb-status-progress-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cb-bar { max-width: 100%; min-width: 0; }
  .cb-mini-bar-row-cta { flex-wrap: wrap; }
  .cb-hero-art { display: none; }
  .cb-hero-banner { padding: 36px 18px 30px; }
}

/* ───────── Modal popup (mirrors coinz-market/coinz-market.css) ───────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px); z-index: 9990;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: linear-gradient(165deg, var(--color-surface-2), var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}
.modal-card h2 {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--text-xl); font-weight: 900; margin-bottom: 14px;
}
.modal-card p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.55; margin-bottom: 10px; }
.modal-card ul, .modal-card ol { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.6; margin: 8px 0 12px 18px; }
.modal-card li { margin-bottom: 4px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border-soft);
  width: 28px; height: 28px; border-radius: 50%;
  color: var(--color-text); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.15); }

/* ───────── Responsive ───────── */
@container page (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-levels   { grid-template-columns: repeat(3, 1fr); }
}
@container page (max-width: 900px) {
  .site-sidenav { display: none; }
  .hdr-search { display: none; }
  .hdr-theme-pill { display: none; }
  .howto { grid-template-columns: 1fr; }
  .cc-form-row { grid-template-columns: 1fr; }
  .cc-form-row .readout { text-align: left; }
  .vip-benefits { font-size: var(--text-xs); }
}
@container page (max-width: 600px) {
  .calendar-grid { grid-template-columns: repeat(5, 1fr); }
  .feature-grid  { grid-template-columns: 1fr; }
  .vip-levels    { grid-template-columns: 1fr; }
  .tier-node     { min-width: 90px; }
  .hub-hero      { flex-direction: column; text-align: center; }
  .modal-card    { padding: 22px 18px 18px; }
  .modal-card h2 { font-size: var(--text-lg); }
}
@container page (max-width: 480px) {
  .hdr-balance-pill { display: none; }
  .site-header { gap: 8px; padding: 0 12px; }
  .hdr-logo-mark, .hdr-logo-dot { font-size: 22px; }
}
