/* ==========================================================================
   Play99exch — Dark Exchange Terminal Design System
   Brand: Play99exch  |  Domain: play99exch.it.com
   Fonts: Lexend Deca (headings) + Commissioner (body)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --primary: #116257;
  --primary-dark: #0d4d44;
  --secondary: #8a4e00;
  --secondary-light: #b36800;
  --bg-body: #0c1a17;
  --bg-section: #111f1c;
  --bg-card: #182a25;
  --bg-elevated: #1e3530;
  --border: #264a40;
  --text-primary: #ffffff;
  --text-secondary: #7fad9a;
  --accent: #e8b44a;
  --accent-dim: #c9973a;
  --live: #34d17a;
  --danger: #e05a5a;
  --back: #2f6bff;        /* back odds (blue, exchange convention) */
  --back-bg: #16233f;
  --lay: #ff6b8a;         /* lay odds (pink, exchange convention) */
  --lay-bg: #3a1f28;

  --maxw: 1240px;
  --radius: 10px;
  --radius-sm: 7px;
  --gap: 24px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px var(--accent), 0 8px 24px rgba(232, 180, 74, 0.14);
  --font-head: 'Lexend Deca', system-ui, sans-serif;
  --font-body: 'Commissioner', system-ui, sans-serif;
  --tr: 0.22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 74px 0; position: relative; }
.section--tight { padding: 52px 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); border: 0; opacity: 0.55; margin: 0; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }
.text-accent { color: var(--accent); }
.text-teal { color: var(--text-secondary); }

/* ---------- Live dot ---------- */
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--live);
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(52, 209, 122, 0.7);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 209, 122, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 209, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 209, 122, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), border-color var(--tr);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #201400;
  box-shadow: 0 6px 18px rgba(232, 180, 74, 0.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232, 180, 74, 0.34); }
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--primary);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(17, 98, 87, 0.15); }
.btn--ghost { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--wa { background: #25d366; color: #04270f; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.2); }
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.32); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 26, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: var(--bg-card); }
.nav-cta { display: flex; align-items: center; gap: 11px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--tr); }

/* mobile nav */
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-cta .btn--outline { display: none; }
}
@media (max-width: 520px) {
  .nav-cta .nav-wa-text { display: none; }
}

/* ---------- Hero (Exchange floor split) ---------- */
.hero { position: relative; padding: 60px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 380px at 12% 8%, rgba(17, 98, 87, 0.30), transparent 60%),
    radial-gradient(620px 420px at 92% 90%, rgba(138, 78, 0, 0.20), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { color: var(--accent); }
.hero-lead { font-size: 1.14rem; max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust .t-item { display: flex; flex-direction: column; }
.hero-trust .t-num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--accent); }
.hero-trust .t-lbl { font-size: 0.8rem; color: var(--text-secondary); }

/* Odds board (simulated live exchange) */
.odds-board {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.odds-board__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.odds-board__title { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 9px; }
.odds-board__title span { font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; }
.odds-board__ping { font-size: 0.72rem; color: var(--live); font-weight: 700; letter-spacing: 0.04em; }
.odds-table { width: 100%; border-collapse: collapse; }
.odds-table th {
  font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 700; text-align: right; padding: 10px 14px 8px; font-weight: 700;
}
.odds-table th:first-child { text-align: left; }
.odds-table td { padding: 11px 14px; border-top: 1px solid var(--border); font-size: 0.92rem; text-align: right; vertical-align: middle; }
.odds-table td:first-child { text-align: left; }
.odds-mkt { display: flex; flex-direction: column; }
.odds-mkt b { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.odds-mkt small { font-size: 0.72rem; color: var(--text-secondary); }
.odds-cell {
  display: inline-block; min-width: 62px; padding: 7px 0; border-radius: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.96rem;
  transition: background var(--tr);
}
.odds-cell.back { background: var(--back-bg); color: #9db9ff; }
.odds-cell.lay { background: var(--lay-bg); color: #ffb0c2; }
.odds-cell.flash { animation: flash 0.6s ease; }
@keyframes flash { 0% { background: var(--accent); color: #201400; } 100% {} }
.odds-board__foot { padding: 11px 18px; border-top: 1px solid var(--border); font-size: 0.76rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; background: var(--bg-elevated); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .odds-board { max-width: 560px; }
}

/* ---------- Ticker strip ---------- */
.ticker {
  background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; white-space: nowrap; padding: 11px 0;
}
.ticker__track { display: inline-flex; gap: 40px; animation: scroll-x 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 9px; }
.ticker__item b { color: var(--accent); font-weight: 700; }
.ticker__item .up { color: var(--live); }
.ticker__item .dn { color: var(--danger); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.96rem; }

/* Feature data card (horizontal) */
.feature-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: border-color var(--tr), transform var(--tr);
}
.feature-row:hover { border-color: var(--accent); transform: translateX(3px); }
.feature-row__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--accent); }
.feature-row__icon svg { width: 22px; height: 22px; }
.feature-row__stat { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.feature-row__body h3 { font-size: 1.05rem; margin-bottom: 3px; }
.feature-row__body p { font-size: 0.88rem; margin: 0; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 34px 22px; text-align: center; border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.stat__lbl { font-size: 0.85rem; color: var(--text-secondary); margin-top: 8px; font-weight: 500; }
@media (max-width: 720px) { .stats-strip__grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: none; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); } }

/* ---------- Exchange markets table ---------- */
.market-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.market-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.market-table thead th {
  font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 700; text-align: right; padding: 15px 18px; background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.market-table thead th:first-child { text-align: left; }
.market-table tbody td { padding: 15px 18px; border-bottom: 1px solid var(--border); text-align: right; font-size: 0.94rem; }
.market-table tbody tr:last-child td { border-bottom: none; }
.market-table tbody td:first-child { text-align: left; }
.market-table tbody tr { transition: background var(--tr); }
.market-table tbody tr:hover { background: var(--bg-elevated); }
.mkt-name { display: flex; align-items: center; gap: 11px; }
.mkt-name b { font-family: var(--font-head); font-weight: 700; font-size: 0.96rem; }
.mkt-name small { display: block; color: var(--text-secondary); font-size: 0.76rem; font-weight: 400; }
.pill { display: inline-block; font-family: var(--font-head); font-weight: 700; padding: 6px 12px; border-radius: 6px; font-size: 0.92rem; min-width: 60px; }
.pill.back { background: var(--back-bg); color: #9db9ff; }
.pill.lay { background: var(--lay-bg); color: #ffb0c2; }
.status-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--live); font-family: var(--font-head); }
.status-soon { color: var(--accent); font-size: 0.78rem; font-weight: 600; font-family: var(--font-head); }

/* ---------- Game cards ---------- */
.game-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); transition: border-color var(--tr), transform var(--tr); }
.game-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.game-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.game-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.game-card:hover .game-card__img img { transform: scale(1.06); }
.game-card__body { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-card__body h3 { font-size: 1.02rem; }
.game-card__body small { color: var(--text-secondary); font-size: 0.78rem; display: block; }
.game-card__tag { position: absolute; top: 12px; left: 12px; background: rgba(12,26,23,0.82); border: 1px solid var(--border); backdrop-filter: blur(6px); color: var(--live); font-family: var(--font-head); font-weight: 700; font-size: 0.7rem; padding: 5px 10px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Activity feed (scrolling) ---------- */
.feed { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 360px; position: relative; }
.feed__head { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); display: flex; align-items: center; justify-content: space-between; }
.feed__head b { font-family: var(--font-head); font-size: 0.9rem; display: flex; align-items: center; gap: 9px; }
.feed__head span { font-size: 0.72rem; color: var(--text-secondary); }
.feed__scroll { position: absolute; top: 51px; left: 0; right: 0; }
.feed__track { animation: feed-scroll 26s linear infinite; }
.feed:hover .feed__track { animation-play-state: paused; }
@keyframes feed-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.feed-item { display: flex; align-items: center; gap: 13px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.feed-item__dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg-elevated); border: 1px solid var(--border); font-size: 0.9rem; }
.feed-item__body { flex: 1; min-width: 0; }
.feed-item__body b { font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; }
.feed-item__body small { display: block; color: var(--text-secondary); font-size: 0.76rem; }
.feed-item__amt { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--live); white-space: nowrap; }
.feed-item__amt.neg { color: var(--danger); }

/* ---------- Split content (text + panel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } .split--reverse .split__media { order: 0; } }
.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.check-list { display: grid; gap: 12px; margin-top: 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--text-secondary); font-size: 0.96rem; }
.check-list li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.check-list li b { color: var(--text-primary); }

/* ---------- Tools ---------- */
.tool {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.tool__head { padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); display: flex; align-items: center; gap: 14px; }
.tool__head .tool__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-card); border: 1px solid var(--border); color: var(--accent); flex-shrink: 0; }
.tool__head .tool__icon svg { width: 22px; height: 22px; }
.tool__head h3 { font-size: 1.15rem; }
.tool__head p { font-size: 0.84rem; margin: 2px 0 0; }
.tool__body { padding: 24px; }
.tool__row { display: flex; flex-wrap: wrap; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; }
.field input, .field select {
  background: var(--bg-body); border: 1px solid var(--border); color: var(--text-primary);
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.98rem; transition: border-color var(--tr);
  width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,180,74,0.12); }
.field input::placeholder { color: #4d6b60; }

/* Dutching rows */
.dutch-row { display: grid; grid-template-columns: 1fr 130px 40px; gap: 12px; align-items: end; margin-bottom: 12px; }
.dutch-row .field { margin-bottom: 0; }
.dutch-remove { height: 44px; width: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elevated); color: var(--danger); display: grid; place-items: center; transition: var(--tr); }
.dutch-remove:hover { border-color: var(--danger); background: rgba(224,90,90,0.1); }
@media (max-width: 520px) { .dutch-row { grid-template-columns: 1fr 100px 40px; } }

/* Tool result */
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr; } }
.result-box { background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.result-box.hl { border-color: var(--accent); background: rgba(232,180,74,0.06); }
.result-box__lbl { font-size: 0.74rem; color: var(--text-secondary); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.result-box__val { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--accent); margin-top: 5px; line-height: 1; }
.result-box__val.pos { color: var(--live); }
.result-box__val.neg { color: var(--danger); }
.result-box small { font-size: 0.72rem; color: var(--text-secondary); }

.dist-list { margin-top: 16px; display: grid; gap: 9px; }
.dist-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.dist-item b { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }
.dist-item span { font-family: var(--font-head); font-weight: 700; color: var(--accent); }

/* P&L bar */
.pnl-chart { margin-top: 20px; display: grid; gap: 14px; }
.pnl-bar-wrap { }
.pnl-bar-wrap .pnl-lbl { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 6px; font-family: var(--font-head); font-weight: 600; }
.pnl-track { height: 30px; background: var(--bg-body); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; position: relative; }
.pnl-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; display: flex; align-items: center; padding: 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; }
.pnl-fill.pos { background: linear-gradient(90deg, var(--primary), var(--live)); color: #04270f; }
.pnl-fill.neg { background: linear-gradient(90deg, var(--secondary), var(--danger)); color: #fff; }
.hedge-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; font-family: var(--font-head); font-weight: 700; font-size: 0.84rem; margin-top: 4px; }
.hedge-badge.yes { background: rgba(52,209,122,0.12); color: var(--live); border: 1px solid rgba(52,209,122,0.3); }
.hedge-badge.no { background: rgba(224,90,90,0.1); color: var(--danger); border: 1px solid rgba(224,90,90,0.3); }

/* Memory game */
.mem-hud { display: flex; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.mem-stat { display: flex; flex-direction: column; }
.mem-stat b { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.mem-stat small { font-size: 0.74rem; color: var(--text-secondary); }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 460px; }
@media (max-width: 480px) { .mem-grid { gap: 8px; } }
.mem-card { aspect-ratio: 3 / 4; perspective: 700px; cursor: pointer; }
.mem-card__inner { position: relative; width: 100%; height: 100%; transition: transform 0.5s; transform-style: preserve-3d; }
.mem-card.flip .mem-card__inner, .mem-card.matched .mem-card__inner { transform: rotateY(180deg); }
.mem-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-sm); display: grid; place-items: center; border: 1px solid var(--border); }
.mem-face--back { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--accent); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.mem-face--front { background: var(--bg-body); transform: rotateY(180deg); font-size: 1.9rem; }
.mem-card.matched .mem-face--front { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mem-win { margin-top: 16px; padding: 14px 18px; background: rgba(52,209,122,0.1); border: 1px solid rgba(52,209,122,0.3); border-radius: var(--radius-sm); color: var(--live); font-family: var(--font-head); font-weight: 600; display: none; }
.mem-win.show { display: block; }

/* ---------- Auth pages ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; gap: 34px; } }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 34px; box-shadow: var(--shadow); position: sticky; top: 96px; }
@media (max-width: 900px) { .auth-card { position: static; } }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card > p { font-size: 0.95rem; margin-bottom: 22px; }
.auth-form .field { margin-bottom: 16px; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; margin: 4px 0 18px; flex-wrap: wrap; gap: 8px; }
.auth-meta a { color: var(--accent); font-weight: 600; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; color: var(--text-secondary); }
.auth-check input { margin-top: 3px; accent-color: var(--accent); }
.auth-alt { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--text-secondary); }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-secondary); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-note { font-size: 0.78rem; color: var(--text-secondary); text-align: center; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.auth-note svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--tr); }
.faq-item.open { border-color: var(--primary); }
.faq-q { width: 100%; text-align: left; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text-primary); }
.faq-q .faq-ico { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; transition: transform var(--tr); position: relative; }
.faq-q .faq-ico::before, .faq-q .faq-ico::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-q .faq-ico::before { width: 10px; height: 2px; }
.faq-q .faq-ico::after { width: 2px; height: 10px; transition: transform var(--tr); }
.faq-item.open .faq-ico::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq-a p { padding: 0 22px 20px; font-size: 0.95rem; }

/* ---------- Legal / article pages ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal-hero { padding: 54px 0 30px; }
.legal-hero h1 { margin-bottom: 12px; }
.legal-hero .updated { font-size: 0.85rem; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; }
.legal-body h2 { font-size: 1.5rem; margin: 34px 0 14px; padding-top: 6px; }
.legal-body h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.legal-body p { margin-bottom: 15px; font-size: 1rem; }
.legal-body ul { margin: 0 0 16px 4px; display: grid; gap: 9px; }
.legal-body ul li { display: flex; gap: 11px; color: var(--text-secondary); font-size: 1rem; }
.legal-body ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; flex-shrink: 0; }
.legal-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 30px; }
.legal-toc b { font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }
.legal-toc ul { margin-top: 12px; display: grid; gap: 8px; }
.legal-toc a { color: var(--text-primary); font-size: 0.94rem; text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }

/* callout */
.callout { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; }
.callout p { margin: 0; font-size: 0.96rem; }
.callout.warn { border-left-color: var(--danger); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary-dark), var(--bg-section)); border: 1px solid var(--border); border-radius: 16px; padding: 48px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 80% 20%, rgba(232,180,74,0.14), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 26px; color: var(--text-secondary); font-size: 1.05rem; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.contact-methods { display: grid; gap: 14px; }
.contact-method { display: flex; gap: 16px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: border-color var(--tr); }
.contact-method:hover { border-color: var(--accent); }
.contact-method__icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--accent); flex-shrink: 0; }
.contact-method__icon svg { width: 22px; height: 22px; }
.contact-method b { font-family: var(--font-head); font-size: 1rem; display: block; }
.contact-method span { font-size: 0.9rem; color: var(--text-secondary); }
.contact-method a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-section); border-top: 1px solid var(--border); padding: 56px 0 30px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; margin-bottom: 18px; }
.footer-col b { font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); display: block; margin-bottom: 15px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.92rem; transition: color var(--tr); }
.footer-col a:hover { color: var(--accent); }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.footer-badge { font-size: 0.72rem; font-family: var(--font-head); font-weight: 700; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; background: var(--bg-card); display: inline-flex; align-items: center; gap: 6px; }
.footer-badge .plus18 { color: var(--danger); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.84rem; color: var(--text-secondary); }
.footer-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .fb-links a { font-size: 0.84rem; color: var(--text-secondary); }
.footer-bottom .fb-links a:hover { color: var(--accent); }
.footer-disclaimer { margin-top: 20px; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.footer-disclaimer p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 20px; flex-wrap: wrap; }
.crumb a { color: var(--text-secondary); }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--accent); }

/* ---------- Misc ---------- */
.pill-tags { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.pill-tag { font-size: 0.8rem; font-family: var(--font-head); font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; padding: 7px 14px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-top: 30px; }
.author-box__ava { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); font-family: var(--font-head); font-weight: 800; flex-shrink: 0; }
.author-box b { font-family: var(--font-head); }
.author-box small { color: var(--text-secondary); font-size: 0.84rem; }
