/* ============================================================
   BetDash — Crypto Sports Betting Dashboard
   Standalone styles. No Bootstrap / Skote dependency.
   ============================================================ */

:root {
    --bg:          #F3F3FB;
    --card:        #FFFFFF;
    --navy:        #1B2452;
    --navy-deep:   #141C44;
    --muted:       #9A9EB5;
    --muted-soft:  #C3C6D6;
    --accent:      #C81FD6;
    --accent-soft: #F7E2FB;
    --green:       #21C17C;
    --green-soft:  #E4F8EF;
    --amber:       #F0991E;
    --amber-soft:  #FCEFD9;
    --red:         #F0454B;
    --red-soft:    #FCE4E5;
    --border:      #ECECF4;
    --border-2:    #F2F2F8;

    --btc:  #F7931A;
    --eth:  #627EEA;
    --pol:  #8247E5;
    --bnb:  #F0B90B;

    --radius:    16px;
    --radius-lg: 20px;
    --radius-sm: 10px;
    --shadow:    0 12px 34px rgba(28, 32, 84, .06);
    --shadow-lg: 0 24px 60px rgba(28, 32, 84, .16);
    --ease:      200ms cubic-bezier(.22, .61, .36, 1);

    --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--navy);
    line-height: 1.5;
    min-height: 100dvh;
}

.ic { width: 22px; height: 22px; display: inline-block; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 34px; height: 34px; }

.ta-right { text-align: right; }

/* tabular figures for all numeric data */
.stat__value, .txn, .odd, .event__rec, .event__time,
.slip, .chart__tick, .chart__tooltip { font-variant-numeric: tabular-nums; }

/* ── PAGE / TOPBAR ─────────────────────────────────────────── */

.page {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px 32px 40px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 6px 4px 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy);
}
.brand__mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #7C2BE0);
    box-shadow: 0 8px 18px rgba(200, 31, 214, .28);
}
.brand__name { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.brand__name strong { font-weight: 800; }

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}
.topbar__nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 9px;
    transition: color var(--ease), background var(--ease);
}
.topbar__nav a:hover { color: var(--navy); background: #fff; }
.topbar__nav a.is-active { color: var(--accent); background: var(--accent-soft); }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.icon-btn {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    display: grid; place-items: center;
    cursor: pointer;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.icon-btn:hover { border-color: var(--muted-soft); box-shadow: var(--shadow); }
.icon-btn:active { transform: scale(.95); }
.icon-btn--ghost { border: none; background: transparent; }
.icon-btn--ghost:hover { background: var(--border-2); box-shadow: none; }
.icon-btn__badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px;
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700;
    display: grid; place-items: center;
    box-shadow: 0 4px 10px rgba(200, 31, 214, .4);
}

.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2B3a7a, var(--navy));
    color: #fff;
    font-weight: 700;
    display: grid; place-items: center;
    user-select: none;
}

/* ── GRID ──────────────────────────────────────────────────── */

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
}
.col-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ── CARD ──────────────────────────────────────────────────── */

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px 30px;
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
}
.card__title {
    font-size: 17px;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -.01em;
}
.card__title strong { font-weight: 800; }

.rule { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* ── WELCOME / STATS ───────────────────────────────────────── */

.welcome__hi { font-size: 15px; font-weight: 500; color: var(--muted); }
.welcome__hi strong { color: var(--navy); font-weight: 700; }

.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding-right: 24px; }
.stat--bordered { padding-left: 36px; border-left: 1px solid var(--border); }
.stat__label { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.stat__value {
    font-size: 38px;
    font-weight: 800;
    color: var(--navy-deep);
    letter-spacing: -.02em;
    line-height: 1;
}
.stat__unit { font-size: 24px; font-weight: 700; }

/* ── CHART ─────────────────────────────────────────────────── */

.chart-card { padding-bottom: 22px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.chart__grid line { stroke: var(--border); stroke-width: 1; }
.chart__axis-y, .chart__axis-x { fill: var(--muted); font-size: 12px; font-weight: 500; }
.chart__axis-x { text-anchor: middle; }
.chart__axis-y { text-anchor: end; }

.chart__area { fill: url(#chartFill); }
.chart__line {
    fill: none;
    stroke: var(--navy);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chart__dot {
    fill: #fff;
    stroke: var(--navy);
    stroke-width: 3;
    opacity: 0;
    transition: opacity 120ms ease;
}
.chart__crosshair { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0; }
.chart.is-hovering .chart__dot,
.chart.is-hovering .chart__crosshair { opacity: 1; }

.chart__tooltip {
    position: absolute;
    transform: translate(-50%, -120%);
    background: var(--navy-deep);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    z-index: 4;
}
.chart__tooltip::after {
    content: ''; position: absolute; left: 50%; top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: var(--navy-deep);
}
.chart__tooltip-val { display: block; font-size: 15px; font-weight: 800; }
.chart__tooltip-label { display: block; font-size: 11px; color: #9DA3C9; }

/* draw-in animation */
.chart__line.is-animating {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    animation: draw 1100ms cubic-bezier(.4, 0, .2, 1) forwards;
}
.chart__area.is-animating { opacity: 0; animation: fade 900ms 350ms ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ── DROPDOWN ──────────────────────────────────────────────── */

.dropdown { position: relative; }
.dropdown__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease);
}
.dropdown__btn:hover { border-color: var(--muted-soft); }
.dropdown__btn svg { color: var(--muted); transition: transform var(--ease); }
.dropdown__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    list-style: none;
    z-index: 20;
    transform-origin: top right;
    animation: pop 140ms ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.dropdown__menu li {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: background var(--ease);
}
.dropdown__menu li:hover { background: var(--bg); }
.dropdown__menu li.is-selected { color: var(--accent); background: var(--accent-soft); }

/* ── TRANSACTIONS TABLE ────────────────────────────────────── */

.table-wrap { width: 100%; }
.txn { width: 100%; border-collapse: collapse; }
.txn th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    padding: 0 12px 16px;
    white-space: nowrap;
}
.txn td {
    padding: 16px 12px;
    border-top: 1px solid var(--border-2);
    font-size: 14px;
    vertical-align: middle;
}
.txn tbody tr:first-child td { border-top: 1px solid var(--border); }

.bet-type { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.bet-type__icon {
    width: 30px; height: 30px; flex: none;
    display: grid; place-items: center;
    color: var(--navy);
}
.bet-type__icon .ic { width: 26px; height: 26px; }

.pill {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.pill--finished { color: var(--green); }
.pill--ongoing,
.pill--booked,
.pill--pending  { color: var(--amber); }
.pill--canceled { color: var(--red); }

.txn__time { color: var(--muted); font-weight: 500; white-space: nowrap; }

.coins { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.coin {
    width: 26px; height: 26px; flex: none;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    font-size: 13px; font-weight: 800;
}
.coin--btc { background: var(--btc); }
.coin--eth { background: var(--eth); }
.coin--pol { background: var(--pol); }
.coin--bnb { background: var(--bnb); }

.delta { font-weight: 700; white-space: nowrap; }
.delta--pos { color: var(--green); }
.delta--neg { color: var(--muted-soft); }
.delta--plain { color: var(--navy); }

.empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    padding: 32px 0;
}

/* ── TABS ──────────────────────────────────────────────────── */

.tabs {
    position: relative;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    padding: 4px 2px 0;
}
.tab {
    appearance: none;
    background: none;
    border: none;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 12px 16px;
    cursor: pointer;
    transition: color var(--ease);
    white-space: nowrap;
}
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--accent); }
.tabs__ink {
    position: absolute;
    bottom: -1px;
    height: 2.5px;
    border-radius: 3px;
    background: var(--accent);
    transition: transform 260ms cubic-bezier(.4,0,.2,1), width 260ms cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.panel { animation: fadeUp 320ms ease; }

/* ── SEARCH ────────────────────────────────────────────────── */

.search { position: relative; margin-bottom: 18px; }
.search__icon {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.search__input {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 14px 46px 14px 18px;
    font: inherit;
    font-size: 14px;
    color: var(--navy);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.search__input::placeholder { color: var(--muted); }
.search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ── EVENT CARDS ───────────────────────────────────────────── */

.events { display: flex; flex-direction: column; gap: 16px; }

.event {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px 20px;
    box-shadow: var(--shadow);
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.event:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.event--featured { border-color: var(--accent); box-shadow: 0 14px 34px rgba(200, 31, 214, .14); }

.event__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 16px; }
.event__cat { color: var(--accent); font-weight: 700; }
.event__league { color: var(--muted); font-weight: 500; }

.event__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 8px;
    margin-bottom: 18px;
}
.event__team { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.event__team--home { text-align: left; }
.event__team--away { text-align: right; }
.event__rec { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 5px; }
.event__center { text-align: center; padding: 0 4px; }
.event__day { display: block; font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.event__time { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 3px; }

.event__odds { border-top: 1px solid var(--border); padding-top: 6px; }
.odds-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
.odds-row__label { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.odd {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 10px;
    padding: 7px 8px;
    cursor: pointer;
    font: inherit;
    color: var(--navy);
    text-align: center;
    user-select: none;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.odd--home { text-align: left; }
.odd--away { text-align: right; }
.odd__val { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.odd__sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.odd:hover { background: var(--accent-soft); }
.odd:hover .odd__val { color: var(--accent); }
.odd.is-picked { background: var(--accent); border-color: var(--accent); }
.odd.is-picked .odd__val,
.odd.is-picked .odd__sub { color: #fff; }
.odd:focus:not(:focus-visible) { outline: none; }

/* ── EMPTY STATE (panels) ──────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--muted);
}
.empty-state .ic { color: var(--muted-soft); margin-bottom: 14px; }
.empty-state__title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.empty-state__text { font-size: 13.5px; max-width: 280px; margin: 0 auto; line-height: 1.6; }

/* ── FOOTER ────────────────────────────────────────────────── */

.page__footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
}
.back-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* ── BET SLIP ──────────────────────────────────────────────── */

.slip-scrim {
    position: fixed; inset: 0;
    background: rgba(20, 28, 68, .5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease);
}
.slip-scrim.is-open { opacity: 1; pointer-events: auto; }

.slip {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: 380px;
    max-width: 90vw;
    background: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 320ms cubic-bezier(.4, 0, .2, 1);
}
.slip.is-open { transform: translateX(0); }

.slip__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--border);
}
.slip__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--navy); }
.slip__title .ic { color: var(--accent); }
.slip__count {
    min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 11px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 12px; font-weight: 700;
    display: grid; place-items: center;
}

.slip__body { flex: 1; overflow-y: auto; padding: 18px 22px; }

.slip__empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.slip__empty .ic { color: var(--muted-soft); margin-bottom: 14px; }
.slip__empty-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.slip__empty-text { font-size: 13.5px; line-height: 1.6; max-width: 240px; margin: 0 auto; }

.slip__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.slip-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    position: relative;
    animation: fadeUp 240ms ease;
}
.slip-item__market { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.slip-item__pick { font-size: 14.5px; font-weight: 700; color: var(--navy); padding-right: 26px; }
.slip-item__event { font-size: 12px; color: var(--muted); margin-top: 3px; }
.slip-item__odds { margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.slip-item__rm {
    position: absolute; top: 10px; right: 10px;
    width: 26px; height: 26px;
    border: none; background: var(--border-2); color: var(--muted);
    border-radius: 8px; cursor: pointer;
    display: grid; place-items: center;
    transition: background var(--ease), color var(--ease);
}
.slip-item__rm:hover { background: var(--red-soft); color: var(--red); }
.slip-item__rm .ic { width: 16px; height: 16px; }

.slip__foot { border-top: 1px solid var(--border); padding: 18px 22px 22px; }
.slip__stake { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.slip__stake span { font-size: 13px; font-weight: 600; color: var(--muted); }
.slip__stake input {
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 13px 16px;
    font: inherit; font-size: 16px; font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.slip__stake input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.slip__summary { margin-bottom: 16px; }
.slip__row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--navy); font-variant-numeric: tabular-nums; }
.slip__row span:first-child { color: var(--muted); font-weight: 500; }
.slip__row span:last-child { font-weight: 700; }
.slip__row--payout span:last-child { color: var(--green); font-size: 17px; font-weight: 800; }

.btn-place {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font: inherit; font-size: 15px; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #7C2BE0);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(200, 31, 214, .3);
    transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
}
.btn-place:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(200, 31, 214, .38); }
.btn-place:active { transform: translateY(0); }
.btn-place:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* ── TOAST ─────────────────────────────────────────────────── */

.toast {
    position: fixed;
    bottom: 84px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy-deep);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: opacity var(--ease), transform var(--ease);
}
.toast .ic { color: var(--green); width: 20px; height: 20px; }
.toast.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── REVEAL / FADE ─────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { animation: fadeUp 560ms cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* focus visibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.odd:focus-visible, .tab:focus-visible { outline-offset: -2px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 1080px) {
    .grid { grid-template-columns: 1fr; }
    .col-side { order: 2; }
    .events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 760px) {
    .page { padding: 18px 18px 32px; }
    .topbar { gap: 14px; flex-wrap: wrap; }
    .topbar__nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
    .card { padding: 22px 18px; }
    .stat__value { font-size: 30px; }
    .stat__unit { font-size: 19px; }
    .stat--bordered { padding-left: 20px; }
    .stat { padding-right: 14px; }
    .events { grid-template-columns: 1fr; }

    /* table → stacked cards */
    .txn thead { display: none; }
    .txn, .txn tbody, .txn tr, .txn td { display: block; width: 100%; }
    .txn tr {
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 8px 14px;
        margin-bottom: 12px;
    }
    .txn tbody tr:first-child td,
    .txn td { border-top: none; padding: 7px 0; }
    .txn td { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
    .txn td::before {
        content: attr(data-label);
        font-size: 12px; font-weight: 600; color: var(--muted);
    }
    .txn td.ta-right { text-align: right; }
    .bet-type, .coins { justify-content: flex-end; }
}

@media (max-width: 560px) {
    .stats { grid-template-columns: 1fr; gap: 20px; }
    .stat--bordered { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 20px; }
    .stat { padding-right: 0; }
}

/* ── PORTFOLIO NOTICE BAR ──────────────────────────────────── */

.notice-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #FFFBEE;
    border-top: 1px solid #E8D080;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
    padding: 10px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #7A6020;
    font-weight: 500;
    transition: opacity 180ms ease;
}
.notice-bar__text { flex: 1; line-height: 1.5; }
.notice-bar__text strong { font-weight: 700; }
.notice-bar__link { color: var(--accent); font-weight: 700; text-decoration: none; }
.notice-bar__link:hover { text-decoration: underline; }
.notice-bar__close {
    flex: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #A08040;
    border-radius: 6px;
    font-size: 20px;
    line-height: 1;
    transition: background 200ms ease, color 200ms ease;
}
.notice-bar__close:hover { background: rgba(0,0,0,.06); color: #7A6020; }

/* ── REDUCED MOTION ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .chart__line.is-animating { stroke-dashoffset: 0; animation: none; }
    .chart__area.is-animating { opacity: 1; animation: none; }
}

/* ============================================================
   v2 — News, Teams, and the Sports / Live / Wallet pages
   ============================================================ */

/* ── page header (sub-pages) ───────────────────────────────── */
.page-head { margin-bottom: 26px; }
.page-head__title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-deep); }
.page-head__sub { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

.sec-title { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 16px; letter-spacing: -.01em; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }

/* generic buttons */
.btn {
    appearance: none; border: 1px solid var(--border); background: #fff; color: var(--navy);
    font: inherit; font-size: 14px; font-weight: 700; border-radius: 11px; padding: 11px 18px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn .ic { width: 18px; height: 18px; }
.btn:hover { border-color: var(--muted-soft); box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn--primary { border: none; color: #fff; background: linear-gradient(135deg, var(--accent), #7C2BE0); box-shadow: 0 10px 24px rgba(200,31,214,.28); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(200,31,214,.36); border: none; }

/* ── NEWS feed ─────────────────────────────────────────────── */
.news { display: flex; flex-direction: column; gap: 14px; }
.news-item {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow); cursor: pointer;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--muted-soft); }
.news-item__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-item__cat { font-size: 12px; font-weight: 700; color: var(--accent); }
.news-item__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-soft); }
.news-item__time { font-size: 12px; color: var(--muted); font-weight: 500; }
.news-item__fire { margin-left: auto; color: var(--amber); display: inline-flex; }
.news-item__fire .ic { width: 16px; height: 16px; }
.news-item__title { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; letter-spacing: -.01em; }
.news-item__blurb { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.news-item__league { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; }

/* ── TEAMS & PLAYERS ───────────────────────────────────────── */
.team-group { margin-bottom: 18px; }
.team-group__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.teams { display: flex; flex-direction: column; gap: 10px; }
.team-item {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
}
.team-item__logo {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #2B3A7A, var(--navy));
}
.team-item__logo .ic { width: 24px; height: 24px; }
.team-item__body { min-width: 0; flex: 1; }
.team-item__name { font-size: 14.5px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-item__meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.team-item__rec { font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.form-pips { display: inline-flex; gap: 3px; }
.form-pip { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; font-weight: 800; color: #fff; display: grid; place-items: center; }
.form-pip--w { background: var(--green); }
.form-pip--l { background: var(--red); }
.form-pip--d { background: var(--muted-soft); }
.btn-follow {
    flex: none; appearance: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
    border: 1px solid var(--border); background: #fff; color: var(--navy);
    border-radius: 10px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 6px;
    transition: all var(--ease);
}
.btn-follow .ic { width: 15px; height: 15px; }
.btn-follow:hover { border-color: var(--accent); color: var(--accent); }
.btn-follow.is-following { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── SPORTS page ───────────────────────────────────────────── */
.sport-rail-wrap {
    position: relative;
    margin-bottom: 6px;
}
.sport-rail-wrap::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 12px;
    width: 56px;
    background: linear-gradient(to right, transparent, var(--bg) 80%);
    pointer-events: none;
    z-index: 1;
}
.sport-rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; user-select: none; }
.sport-rail:active { cursor: grabbing; }
.sport-rail::-webkit-scrollbar { display: none; }

/* ── SHOW MORE (dashboard events) ──────────────────────────── */
.btn-show-more {
    display: block;
    width: 100%;
    padding: 11px;
    margin-top: 18px;
    appearance: none;
    background: var(--accent-soft);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    text-align: center;
    transition: background var(--ease), color var(--ease);
}
.btn-show-more:hover { background: var(--accent); color: #fff; }
.sport-chip {
    appearance: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap;
    border: 1px solid var(--border); background: #fff; color: var(--navy);
    border-radius: 12px; padding: 10px 16px; display: inline-flex; align-items: center; gap: 8px;
    transition: all var(--ease);
}
.sport-chip .ic { width: 18px; height: 18px; color: var(--muted); }
.sport-chip:hover { border-color: var(--muted-soft); }
.sport-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sport-chip.is-active .ic { color: #fff; }

.events--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.league-list { display: flex; flex-direction: column; }
.league-item {
    display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-top: 1px solid var(--border-2);
    cursor: pointer; color: var(--navy); text-decoration: none;
}
.league-item:first-child { border-top: none; }
.league-item__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--accent); flex: none; }
.league-item__icon .ic { width: 20px; height: 20px; }
.league-item__name { font-size: 14px; font-weight: 600; flex: 1; }
.league-item__count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 20px; padding: 3px 10px; }
.league-item:hover .league-item__name { color: var(--accent); }

/* ── LIVE page ─────────────────────────────────────────────── */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.live-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px 22px; box-shadow: var(--shadow);
    transition: box-shadow var(--ease), transform var(--ease);
}
.live-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.live-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.live-card__league { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--navy); }
.live-card__league .ic { width: 18px; height: 18px; color: var(--accent); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.live-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(240,69,75,.5); } 50% { box-shadow: 0 0 0 6px rgba(240,69,75,0); } }

.live-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 14px; }
.live-score__team { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.live-score__team--away { text-align: right; }
.live-score__nums { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 800; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.live-score__sep { color: var(--muted-soft); font-size: 22px; }
.live-clock { text-align: center; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 16px; font-variant-numeric: tabular-nums; }

.momentum { margin-bottom: 16px; }
.momentum__bar { height: 7px; border-radius: 6px; background: var(--red-soft); overflow: hidden; display: flex; }
.momentum__fill { height: 100%; background: linear-gradient(90deg, var(--navy), #4759b5); transition: width 600ms cubic-bezier(.4,0,.2,1); }
.momentum__labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ── WALLET page ───────────────────────────────────────────── */
.wallet-hero {
    background: linear-gradient(135deg, #1E2A63, var(--navy-deep));
    color: #fff; border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.wallet-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(200,31,214,.4), transparent 70%); }
.wallet-hero__label { font-size: 13px; color: #A9AECF; font-weight: 600; position: relative; }
.wallet-hero__value { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; position: relative; font-variant-numeric: tabular-nums; }
.wallet-hero__sub { font-size: 13.5px; color: #A9AECF; position: relative; }
.wallet-hero__sub b { color: var(--green); }
.wallet-hero__actions { display: flex; gap: 12px; margin-top: 22px; position: relative; }
.wallet-hero .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }
.wallet-hero .btn:hover { background: rgba(255,255,255,.18); }
.wallet-hero .btn--primary { background: linear-gradient(135deg, var(--accent), #7C2BE0); border: none; }

.holdings { display: flex; flex-direction: column; gap: 12px; }
.holding {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow);
}
.holding__name { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.holding__amt { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.holding__spark { width: 84px; height: 34px; }
.holding__spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.holding__right { text-align: right; }
.holding__usd { font-size: 15px; font-weight: 800; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.holding__chg { font-size: 12.5px; font-weight: 700; margin-top: 3px; display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.holding__chg .ic { width: 13px; height: 13px; }
.holding__chg--up { color: var(--green); }
.holding__chg--down { color: var(--red); }

/* portfolio split */
.split { display: flex; flex-direction: column; gap: 16px; }
.split__row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.split__name { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.split__pct { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.split__track { height: 8px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.split__fill { height: 100%; border-radius: 6px; transition: width 700ms cubic-bezier(.4,0,.2,1); }
.fill--btc { background: var(--btc); }
.fill--eth { background: var(--eth); }
.fill--pol { background: var(--pol); }
.fill--bnb { background: var(--bnb); }

.spark--up { stroke: var(--green); }
.spark--down { stroke: var(--red); }
.spark__fill--up { fill: rgba(33,193,124,.12); }
.spark__fill--down { fill: rgba(240,69,75,.12); }

/* ── responsive for new pages ──────────────────────────────── */
@media (max-width: 1080px) {
    .events--grid, .live-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 620px) {
    .page-head__title { font-size: 24px; }
    .events--grid, .live-grid { grid-template-columns: 1fr; }
    .holding { grid-template-columns: auto 1fr auto; }
    .holding__spark { display: none; }
    .wallet-hero__value { font-size: 34px; }
    .wallet-hero__actions { flex-wrap: wrap; }
    .wallet-hero__actions .btn { flex: 1; justify-content: center; }
}
