/* =====================================================================
   BETBLITS — MAIN STYLESHEET
   Mobile-first. Near-black + lime-green sportsbook theme, matching the
   BetBlits reference design (dark #121212 canvas, #CCFF00 accent,
   generous rounded corners, Inter throughout).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ---- Palette: light theme (switched from the original dark
       BetBlits theme at the site owner's request, matching a
       reference odds-comparison layout) ---- */
    --bl-black:        #F5F6F8;
    --bl-panel:        #FFFFFF;
    --bl-panel-raised: #F0F1F3;
    --bl-panel-deep:   #EDEEF0;
    --bl-border:       #E2E4E8;
    --bl-border-soft:  #ECEDEF;
    --bl-green:        #15803D;
    --bl-green-hover:  #116830;
    --bl-green-deep:   #E5F5EA;
    --bl-gold:         #A16207;
    --bl-red:          #DC2626;
    --bl-text:         #111827;
    --bl-text-muted:   #6B7280;
    --bl-text-dim:     #57606A;
    --bl-on-accent:    #FFFFFF;

    /* Per-element text colors — admin-customizable via
       admin/theme-settings.php. header.php always overrides these with
       live values from the database; these are just safe fallbacks. */
    --text-heading:          #111827;
    --text-team-name:        #111827;
    --text-score:             #111827;
    --text-odds:              #111827;
    --text-button-primary:    #FFFFFF;
    --text-button-secondary:  #111827;
    --text-nav:               #57606A;
    --text-link:              var(--bl-green);
    --text-notification:      #111827;
    --text-footer:            #57606A;
    --text-body:              #111827;

    /* ---- Type ---- */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* ---- Layout ---- */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;
    --header-h: 64px;
    --tabbar-h: 62px;
    --sidebar-w: 260px;
    --slip-w: 360px;
    --container-max: 1600px;
}

/* ---------------------------------------------------------------------
   RESET & BASE
   --------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* ---------------------------------------------------------------------
   SITE LOADER
   Shown briefly during page navigation. Defaults to hidden — only JS
   ever shows it — so a script error can never trap someone behind a
   permanent overlay.
   --------------------------------------------------------------------- */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}
.site-loader.is-visible { display: flex; }

.site-loader__ring {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* The rotating part is this pseudo-element, not the container — so the
   text inside stays upright and readable while the ring spins. */
.site-loader__ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--bl-border);
    border-top-color: var(--bl-green);
    border-right-color: var(--bl-green);
    animation: betblits-spin 0.9s linear infinite;
}
.site-loader__text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bl-green);
    font-style: italic;
}

@keyframes betblits-spin {
    to { transform: rotate(360deg); }
}

/* Respect a reduced-motion preference — still shows the loader, just
   without the spin, for anyone who gets motion sickness from it. */
@media (prefers-reduced-motion: reduce) {
    .site-loader__ring::before { animation: none; }
}

body {
    background: var(--bl-black);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.2px;
    color: var(--text-heading);
}

.tabular { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--bl-green);
    outline-offset: 2px;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 14px; }

/* ---------------------------------------------------------------------
   TOP BAR
   --------------------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bl-border-soft);
}

.topbar__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    gap: 10px;
}

.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.brand__mark {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bl-green);
    display: flex; align-items: center; justify-content: center;
    color: var(--bl-on-accent);
    font-size: 16px; font-weight: 900;
    flex-shrink: 0;
}

.brand__wordmark { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.brand__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 21px;
    letter-spacing: -0.3px;
    color: var(--bl-text);
}
.brand__lit { color: var(--bl-green); }

.brand__tagline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bl-text-dim);
    padding-left: 10px;
    margin-left: 2px;
    border-left: 1px solid var(--bl-border);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bl-text-muted);
}
.live-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bl-red); animation: pulse-red 1.4s infinite; }

.topbar__search {
    flex: 1;
    max-width: 420px;
    margin: 0 24px;
    position: relative;
}
.topbar__search input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 36px;
    background: var(--bl-panel);
    border: 1px solid var(--bl-border);
    border-radius: var(--radius-sm);
    color: var(--bl-text);
    font-size: 13.5px;
}
.topbar__search input:focus { outline: none; border-color: rgba(21,128,61,0.5); }
.topbar__search input::placeholder { color: var(--bl-text-dim); }
.topbar__search-icon {
    position: absolute;
    left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--bl-text-dim);
    font-size: 14px;
}

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.balance-pill {
    display: flex; align-items: center; gap: 8px;
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 14px;
}
.balance-pill__icon { color: var(--bl-green); font-size: 15px; font-weight: 800; flex-shrink: 0; }
.balance-pill__amount { font-weight: 800; color: var(--bl-text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    line-height: 1;
    transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--bl-green); color: var(--text-button-primary); font-weight: 800; }
.btn--primary:hover { background: var(--bl-green-hover); }

.btn--ghost { background: var(--bl-panel-raised); color: var(--text-button-secondary); border: 1px solid var(--bl-border); }
.btn--ghost:hover { border-color: var(--bl-border); background: var(--bl-panel-raised); }

.btn--gold { background: var(--bl-gold); color: #FFFFFF; }
.btn--gold:hover { background: #8A5306; }

.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }

.btn--login { background: var(--bl-panel-raised); color: var(--text-button-secondary); border: 1px solid var(--bl-border); }
.btn--login:hover { background: var(--bl-panel-raised); }

/* ---------------------------------------------------------------------
   SPORT SCROLLER (mobile-only sport picker under the top bar)
   --------------------------------------------------------------------- */
.sport-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bl-border-soft);
    scrollbar-width: none;
}
.sport-scroller::-webkit-scrollbar { display: none; }

.sport-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: var(--radius-full);
    background: var(--bl-panel);
    border: 1px solid var(--bl-border-soft);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-nav);
}
.sport-pill.is-active { background: var(--bl-green); border-color: var(--bl-green); color: var(--bl-on-accent); font-weight: 800; }
.sport-pill__count {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.06);
}
.sport-pill.is-active .sport-pill__count { background: rgba(0,0,0,0.12); }

/* ---------------------------------------------------------------------
   LAYOUT SHELL: sidebar (desktop) + main + bet slip (desktop)
   --------------------------------------------------------------------- */
.shell {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
}

.sidebar {
    display: none;
}

.sidebar__section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bl-text-muted);
    margin-bottom: 12px;
}

.sidebar__sport-list { display: flex; flex-direction: column; gap: 4px; }
.sidebar__sport-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bl-panel);
    border: 1px solid var(--bl-border-soft);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-nav);
}
.sidebar__sport-item span:first-child { display: flex; align-items: center; gap: 10px; }
.sidebar__sport-item.is-active {
    background: var(--bl-green);
    border-color: var(--bl-green);
    color: var(--bl-on-accent);
    font-weight: 700;
}
.sidebar__sport-count {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    background: var(--bl-panel-raised);
    color: var(--bl-text-dim);
}
.sidebar__sport-item.is-active .sidebar__sport-count { background: rgba(0,0,0,0.12); color: var(--bl-on-accent); }

.sidebar__promo {
    border-radius: var(--radius-lg);
    padding: 16px;
    background: linear-gradient(160deg, var(--bl-panel-raised) 0%, var(--bl-panel-deep) 100%);
    border: 1px solid var(--bl-border);
    position: relative;
    overflow: hidden;
}
.sidebar__promo-glow {
    position: absolute; right: -24px; top: -24px;
    width: 96px; height: 96px; border-radius: 50%;
    background: rgba(21,128,61,0.18); filter: blur(20px);
}
.sidebar__promo-badge {
    display: flex; align-items: center; gap: 6px;
    color: var(--bl-green);
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.sidebar__promo h4 { font-size: 15px; line-height: 1.3; }
.sidebar__promo p { font-size: 12px; color: var(--bl-text-muted); margin-top: 4px; }

.sidebar__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar__link-card {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bl-panel);
    border: 1px solid var(--bl-border-soft);
}
.sidebar__link-card strong { display: block; font-size: 12.5px; margin: 6px 0 2px; }
.sidebar__link-card span { font-size: 11px; color: var(--bl-text-dim); }

.sidebar__notice {
    padding-top: 16px;
    border-top: 1px solid var(--bl-border-soft);
    font-size: 11px;
    color: var(--bl-text-dim);
    line-height: 1.6;
}
.sidebar__notice strong { display: flex; align-items: center; gap: 6px; color: var(--bl-text); margin-bottom: 4px; font-size: 12px; }

.main-col { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------------
   TABS ROW (Live / Upcoming / Finished / My Bets)
   --------------------------------------------------------------------- */
.tabs-header {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bl-border-soft);
    padding: 12px 14px;
}

.tabs-header__title {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.tabs-header__title .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bl-red); animation: pulse-red 1.4s infinite; }
.tabs-header__subtitle { color: var(--bl-text-dim); font-weight: 600; font-size: 13.5px; }

.tabs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-row::-webkit-scrollbar { display: none; }

.tab-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    background: var(--bl-panel);
    border: 1px solid var(--bl-border);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-nav);
}
.tab-pill.is-active { background: var(--bl-green); color: var(--bl-on-accent); border-color: var(--bl-green); font-weight: 700; }
.tab-pill__count {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: var(--bl-panel-raised);
}
.tab-pill.is-active .tab-pill__count { background: rgba(0,0,0,0.1); }

/* ---------------------------------------------------------------------
   HERO SLIDER (5 rotating banners about BetBlits, homepage only)
   --------------------------------------------------------------------- */
.hero-slider {
    position: relative;
    margin: 14px auto;
    width: calc(100% - 28px);
    max-width: 640px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bl-border);
    background: var(--bl-panel);
}

.hero-slider__viewport { overflow: hidden; }

.hero-slider__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    overflow: hidden;
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 128px;
    justify-content: center;
}
.hero-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(21,128,61,0.16), transparent 60%);
    pointer-events: none;
}

.hero-slide__icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bl-green);
    color: var(--bl-on-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 900;
    position: relative; z-index: 1;
}

.hero-slide__tag {
    position: relative; z-index: 1;
    display: inline-flex; width: fit-content;
    font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--bl-green);
    background: rgba(21,128,61,0.12);
    border: 1px solid rgba(21,128,61,0.3);
    padding: 2px 8px; border-radius: var(--radius-full);
}

.hero-slide h3 { position: relative; z-index: 1; font-size: 17px; line-height: 1.25; max-width: 28ch; }
.hero-slide h3 span { color: var(--bl-green); }
.hero-slide p { position: relative; z-index: 1; font-size: 12px; color: var(--bl-text-muted); max-width: 36ch; }
.hero-slide .btn { position: relative; z-index: 1; width: fit-content; margin-top: 2px; }

/* Media slide variant — admin-uploaded image/video, full-bleed */
.hero-slide--media {
    padding: 0;
    min-height: 168px;
    justify-content: flex-end;
}
.hero-slide--media::before { display: none; }
.hero-slide__media {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-slide--media__overlay {
    position: relative;
    z-index: 1;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 60%);
    width: 100%;
}
.hero-slide--media__overlay h3 { max-width: none; color: #fff; }
.hero-slide--media__overlay p { max-width: none; color: rgba(255,255,255,0.8); }

.hero-slider__dots {
    position: absolute;
    left: 0; right: 0; bottom: 10px;
    display: flex; justify-content: center; gap: 6px;
    z-index: 2;
}
.hero-slider__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none; padding: 0;
    transition: all 0.2s ease;
}
.hero-slider__dot.is-active { background: var(--bl-green); width: 20px; border-radius: 4px; }

.hero-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(18,18,18,0.6);
    border: 1px solid var(--bl-border);
    color: var(--bl-text);
    display: none;
    align-items: center; justify-content: center;
    font-size: 14px; z-index: 2;
}
.hero-slider__arrow--prev { left: 10px; }
.hero-slider__arrow--next { right: 10px; }

/* ---------------------------------------------------------------------
   PROMO BANNER (Super Boost style)
   --------------------------------------------------------------------- */
.promo-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bl-border);
    background: linear-gradient(90deg, var(--bl-panel) 0%, var(--bl-panel-raised) 50%, var(--bl-panel) 100%);
    padding: 18px;
    margin: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.promo-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(21,128,61,0.14), transparent 60%);
}
.promo-banner__main { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.promo-banner__icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--bl-green);
    color: var(--bl-on-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900;
}
.promo-banner__tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.promo-banner__tag {
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    background: var(--bl-green); color: var(--bl-on-accent);
    padding: 3px 9px; border-radius: var(--radius-full);
}
.promo-banner__tag--ghost {
    background: transparent; border: 1px solid rgba(21,128,61,0.3); color: rgba(21,128,61,0.75);
}
.promo-banner h3 { font-size: 18px; margin-top: 4px; }
.promo-banner h3 span { color: var(--bl-green); }
.promo-banner p { font-size: 12px; color: var(--bl-text-muted); margin-top: 3px; }
.promo-banner .btn { position: relative; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   MATCH CARDS
   --------------------------------------------------------------------- */
.match-list { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }

/* ============ League-grouped match list (matches, odds, time,
   leagues, markets all visible without horizontal scrolling) ============ */
.country-group { margin-bottom: 4px; }
.country-group__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 4px 6px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.country-group__header .flag { font-size: 16px; }

.league-group { margin-bottom: 16px; }
.league-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border-soft);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
}
.league-group__header-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 1; }
.league-group__header .icon { font-size: 15px; flex-shrink: 0; }
.league-group__header-name span:last-child {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.league-group__header-cols {
    display: flex;
    width: 58%;
    max-width: 240px;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-nav);
}
.league-group__header-cols span { flex: 1; text-align: center; }
.league-group__body {
    background: var(--bl-panel);
    border: 1px solid var(--bl-border-soft);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

/* ============ Match row: single-row responsive layout ============
   42% team info / 58% odds (score is a narrow fixed column carved out
   of that odds side, directly before the three boxes) — sized by
   percentage/flex, never fixed pixel widths, specifically so this
   never requires horizontal scrolling on any phone width. Verified
   against 320/360/375/412px. */
.match-row {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid var(--bl-border-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.match-row:last-child { border-bottom: none; }
.match-row__badge {
    position: absolute;
    top: 6px; right: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--bl-green);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: rgba(21,128,61,0.08);
    z-index: 1;
}
.match-row__main { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }

/* ---- Left: team names + match time, 42% of the row ---- */
.match-row__teams {
    width: 42%;
    min-width: 0;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    box-sizing: border-box;
    padding-right: 4px;
}
.match-row__team {
    display: flex;
    align-items: center;
    padding: 1px 0;
    min-width: 0;
}
.match-row__team-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
    color: var(--text-team-name);
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: anywhere;
}
.match-row__status {
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-row__status--live { color: var(--bl-red); }
.match-row__status--upcoming { color: var(--bl-text-dim); }

/* ---- Narrow score column, directly before the odds ---- */
.match-row__score-col {
    flex: 0 0 auto;
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    background: var(--bl-green-deep);
    border-radius: var(--radius-sm);
    padding: 3px 0;
    box-sizing: border-box;
}
.match-row__team-score {
    font-weight: 400;
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

/* ---- Right: three equal-width odds boxes, ~58% of the row ---- */
.match-row__odds-wrap {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    gap: 4px;
}
.match-row__odds-wrap .odds-chip {
    flex: 1 1 0;
    min-width: 0;
}
.match-row__odds-wrap .odds-chip__value {
    font-size: 15px;
    font-weight: 700;
}

/* Small phones: the spec's larger sizes are for roomier screens —
   scale down specifically to stay inside 320-412px without ever
   forcing horizontal scroll, per points 7-9 of the layout spec. */
@media (max-width: 479px) {
    .league-group__header { font-size: 16px; }
    .league-group__header-cols { font-size: 12px; }
    .match-row__team-name { font-size: 13px; }
    .match-row__team-score { font-size: 14px; }
    .match-row__odds-wrap .odds-chip__value { font-size: 13px; }
    .match-row__status { font-size: 10px; }

    /* Every extra pixel matters at 320-360px — tighten the expanded
       markets panel's own padding/gaps specifically at this width so
       the 3-column grid has the most room possible to work with. */
    .match-card__extra { padding: 8px; gap: 10px; }
    .market-group__grid { gap: 4px; }
    .market-group__grid--wrap .market-btn { padding: 0 2px; }
}

.match-row.is-suspended .match-row__odds-wrap .odds-chip,
.match-row.is-suspended .match-card__extra .market-btn {
    opacity: 0.45;
    pointer-events: none;
}
.match-row__suspended-note {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--bl-gold);
    margin-top: 4px;
}

.match-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--bl-border-soft);
    background: var(--bl-panel);
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.match-card:hover { border-color: var(--bl-border); }
.match-card.is-live { box-shadow: 0 0 0 1px rgba(21,128,61,0.15); }
.match-row.is-live { background: rgba(21,128,61,0.03); }

.match-card__body { padding: 14px; }

.match-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match-card__meta { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }

.league-pill {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    color: var(--bl-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-pill {
    display: flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    padding: 4px 8px; border-radius: var(--radius-full);
    background: var(--bl-green); color: var(--bl-on-accent);
}

.live-badge {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700;
    padding: 4px 9px; border-radius: var(--radius-full);
    background: rgba(239,68,68,0.15);
    color: var(--bl-red);
    border: 1px solid rgba(239,68,68,0.25);
}
.live-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bl-red); animation: pulse-red 1.4s infinite; }

.kickoff-badge { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--bl-text-dim); }

.match-card__expand {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    color: var(--bl-text-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}

.match-card__mid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
}
.match-card__teams { min-width: 0; }

.match-card__team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}
.match-card__team-row--tappable { cursor: pointer; border-radius: var(--radius-sm); margin: -2px -4px; padding: 4px; }
.match-card__team-row--tappable:active { background: rgba(255,255,255,0.04); }
.match-card__team-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-team-name);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-card__team-row .score-text {
    font-weight: 800;
    font-size: 15px;
    min-width: 14px;
    flex-shrink: 0;
}
.score-text { color: var(--text-score); }
.match-card__sub { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--bl-text-dim); margin-top: 4px; }
.match-card__sub .dot { width: 3px; height: 3px; border-radius: 50%; background: #52525B; }

.odds-row { display: flex; gap: 6px; width: 100%; }
.odds-row .odds-chip { flex: 1; min-width: 0; }

.odds-chip {
    position: relative;
    min-width: 46px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    color: var(--bl-text);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    line-height: 1;
    transition: all 0.15s ease;
}
.odds-chip:hover { border-color: var(--bl-border); background: var(--bl-panel-raised); }
.odds-chip__label {
    font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    opacity: 0.65;
}
.odds-chip__value { margin-top: 3px; font-weight: 800; font-size: 14px; color: var(--text-odds); }

.odds-chip.is-selected {
    background: var(--bl-green);
    border-color: var(--bl-green);
    box-shadow: 0 0 0 2px rgba(21,128,61,0.3);
}
.odds-chip.is-selected .odds-chip__label,
.odds-chip.is-selected .odds-chip__value { color: var(--bl-on-accent); }

/* Auto-refresh feedback: a brief highlight when a price actually moves,
   and a visibly disabled look for a market the feed marks suspended. */
@keyframes odds-flash-pulse {
    0%   { background-color: rgba(21,128,61,0.35); }
    100% { background-color: transparent; }
}
.odds-flash { animation: odds-flash-pulse 1.2s ease-out; border-radius: 4px; }
.odds-suspended {
    pointer-events: none;
    position: relative;
    border-color: var(--bl-gold) !important;
    background: rgba(161,98,7,0.06) !important;
}
.odds-suspended::after {
    content: '🔒';
    position: absolute;
    top: -6px; right: -6px;
    font-size: 13px;
    background: var(--bl-gold);
    color: #fff;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Expanded extra-markets panel */
.match-card__extra {
    border-top: 1px solid var(--bl-border-soft);
    background: var(--bl-panel-deep);
    padding: 14px;
    display: none;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px;
    width: 100% !important;
    box-sizing: border-box;
}
.match-card.is-expanded .match-card__extra { display: flex !important; flex-basis: 100% !important; }

/* Inline loader shown while a match's markets lay out on expand. */
.market-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bl-text-dim);
    border-top: 1px solid var(--bl-border-soft);
    background: var(--bl-panel-deep);
}
.market-loading__spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bl-border);
    border-top-color: var(--bl-green);
    animation: betblits-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* PERFORMANCE — this is what actually fixes the freeze on expand.
   A single fixture can carry well over a thousand market buttons.
   Without this, the browser must lay out every one of them the
   instant the panel becomes visible, which locks the main thread for
   a noticeable beat.

   content-visibility lets the browser skip layout/paint for each
   market group until it's actually scrolled near, so expanding shows
   the first groups immediately and the rest render progressively as
   you scroll. contain-intrinsic-size gives it a size estimate so the
   scrollbar doesn't jump around while that happens. */
.match-card__extra .market-group {
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
}
/* Explicit, not relying on flex default stretch behavior — each
   market group (Second Half Winner, Over/Under, etc.) always takes
   the FULL panel width and stacks vertically, one under another.
   !important because this exact layout broke twice despite the CSS
   looking correct on paper — this guarantees it regardless of
   whatever the actual conflict turns out to be. */
.market-group {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box;
    display: block !important;
}
.market-group__title { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bl-text-muted); margin-bottom: 8px; }
.market-group__grid { display: grid; gap: 6px; }
.market-group__grid--3 { grid-template-columns: repeat(3, 1fr); }
.market-group__grid--2 { grid-template-columns: repeat(2, 1fr); }
.market-group__grid--wrap { grid-template-columns: repeat(3, 1fr); }
/* CSS Grid items default to min-width: auto, meaning they refuse to
   shrink below their own content's natural width even inside a 1fr
   column — this, not the column math itself, was the actual cause of
   needing to scroll to see some markets (long selection text like
   "Home -1.25" simply wouldn't compress). Applies to every variant,
   not just --wrap. */
.market-group__grid > * { min-width: 0; }
.market-group__grid .market-btn__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.market-group__grid--wrap .market-btn { height: 38px; padding: 0 4px; justify-content: center; flex-direction: column; gap: 1px; min-width: 0; }
.market-group__grid--wrap .market-btn__label { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.market-group__grid--wrap .market-btn__odds { font-size: 11px; }

.market-btn {
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6px;
    gap: 4px;
    text-align: left;
    min-width: 0;
}
.market-btn__label { font-size: 12px; font-weight: 700; }
.market-btn__sub { font-size: 10px; color: var(--bl-text-dim); }
.market-btn__odds { font-weight: 800; font-size: 13px; color: var(--text-odds); }
.market-btn.is-selected { background: var(--bl-green); border-color: var(--bl-green); }
.market-btn.is-selected .market-btn__label, .market-btn.is-selected .market-btn__sub, .market-btn.is-selected .market-btn__odds { color: var(--bl-on-accent); }

.empty-state { padding: 64px 20px; text-align: center; }
.empty-state__icon {
    width: 64px; height: 64px; margin: 0 auto 12px;
    border-radius: var(--radius-lg);
    background: var(--bl-panel);
    border: 1px solid var(--bl-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}
.empty-state__title { font-weight: 700; font-size: 15px; }
.empty-state__sub { font-size: 13px; color: var(--bl-text-dim); margin-top: 4px; }

@keyframes pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ---------------------------------------------------------------------
   BET SLIP (betting/betslip.php)
   --------------------------------------------------------------------- */
.betslip-page { padding: 14px; max-width: 520px; margin: 0 auto; }

.betslip-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px; border-bottom: 1px solid var(--bl-border-soft); margin-bottom: 14px;
}
.betslip-header__left { display: flex; align-items: center; gap: 10px; }
.betslip-count {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: var(--bl-green); color: var(--bl-on-accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 14px;
}
.betslip-header__title { font-weight: 700; }
.betslip-header__sub { font-size: 11px; color: var(--bl-text-dim); }

.betslip-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.betslip-toggle button {
    flex: 1; height: 38px; border-radius: var(--radius-full);
    background: var(--bl-panel); border: 1px solid var(--bl-border);
    color: var(--bl-text-dim); font-weight: 700; font-size: 13.5px;
}
.betslip-toggle button.is-active { background: var(--bl-green); color: var(--bl-on-accent); border-color: var(--bl-green); }

.betslip-selection {
    border-radius: var(--radius-lg);
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    padding: 12px;
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.betslip-selection__icon {
    width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm);
    background: var(--bl-panel-raised); border: 1px solid var(--bl-border);
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.betslip-selection__body { min-width: 0; flex: 1; }
.betslip-selection__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.betslip-selection__label { font-weight: 600; font-size: 13px; }
.betslip-selection__remove {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: var(--bl-panel-raised); border: 1px solid var(--bl-border);
    color: var(--bl-text-dim); font-size: 11px;
}
.betslip-selection__meta { font-size: 11px; color: var(--bl-text-dim); margin-top: 4px; }
.betslip-selection__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.betslip-selection__market {
    font-size: 11px; padding: 3px 8px; border-radius: var(--radius-full);
    background: var(--bl-panel-raised); border: 1px solid var(--bl-border); color: var(--bl-text-dim);
}
.betslip-selection__odds { font-weight: 800; font-size: 13px; background: var(--bl-green); color: var(--bl-on-accent); padding: 3px 10px; border-radius: var(--radius-full); }

.stake-row { display: flex; gap: 8px; margin-top: 4px; }
.stake-input-wrap { flex: 1; position: relative; }
.stake-input-wrap span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bl-text-dim); }
.stake-input-wrap input {
    width: 100%; height: 44px; padding: 0 12px 0 26px;
    border-radius: var(--radius-sm); background: var(--bl-panel);
    border: 1px solid var(--bl-border); color: var(--bl-text); font-weight: 700;
}
.stake-input-wrap input:focus { outline: none; border-color: rgba(21,128,61,0.5); }
.stake-step {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--bl-panel); border: 1px solid var(--bl-border);
    color: var(--bl-text); font-weight: 800; font-size: 16px;
}
.quick-stakes { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 8px; }
.quick-stakes button {
    height: 32px; border-radius: var(--radius-full);
    background: var(--bl-panel); border: 1px solid var(--bl-border);
    color: var(--bl-text-dim); font-size: 12px; font-weight: 700;
}
.quick-stakes button.is-active { background: var(--bl-green); color: var(--bl-on-accent); border-color: var(--bl-green); }

.betslip-summary {
    border-radius: var(--radius-lg);
    background: var(--bl-panel);
    border: 1px solid var(--bl-border);
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 13.5px;
}
.betslip-summary__row { display: flex; justify-content: space-between; padding: 4px 0; }
.betslip-summary__row.total { border-top: 1px solid var(--bl-border-soft); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 15px; }
.betslip-summary__row.total span:last-child { color: var(--bl-green); }

/* ---------------------------------------------------------------------
   FEATURE / GENERIC CARDS
   --------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 14px; }

.feature-card { background: var(--bl-panel); border: 1px solid var(--bl-border-soft); border-radius: var(--radius-lg); padding: 16px 14px; }
.feature-card__icon {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--bl-green-deep); color: var(--bl-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; margin-bottom: 10px;
}
.feature-card h3 { font-size: 16px; color: var(--bl-text); margin-bottom: 4px; }
.feature-card p { font-size: 12.5px; color: var(--bl-text-muted); line-height: 1.45; }

.hero__stat-value { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--bl-text); }
.hero__stat-label { font-size: 11.5px; color: var(--bl-text-dim); margin-top: 2px; }

/* ---------------------------------------------------------------------
   BOTTOM TAB BAR (mobile primary nav)
   --------------------------------------------------------------------- */
/* ---- Left slide-out main menu ---- */
.side-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.side-menu-overlay.is-open { opacity: 1; pointer-events: auto; }

.side-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bl-panel);
    z-index: 95;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 16px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.side-menu.is-open { transform: translateX(0); }

.side-menu__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.side-menu__close { background: none; border: none; font-size: 20px; color: var(--bl-text-dim); cursor: pointer; padding: 4px 8px; }

.side-menu__account {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; background: var(--bl-panel-raised); border-radius: var(--radius-md);
    text-decoration: none; color: inherit; margin-bottom: 12px;
}
.side-menu__account-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bl-green); color: var(--bl-on-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}

.side-menu__auth-buttons { display: flex; gap: 8px; margin-bottom: 12px; }

.side-menu__section-title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bl-text-dim); margin: 16px 4px 6px;
}
.side-menu__link {
    display: block; padding: 10px 8px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--bl-text); font-size: 14.5px; font-weight: 600;
}
.side-menu__link:hover, .side-menu__link:active { background: var(--bl-panel-raised); }

.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    height: var(--tabbar-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--bl-border-soft);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--text-nav);
    font-size: 10.5px; font-weight: 700;
}
.tabbar__item.is-active { color: var(--bl-green); }
.tabbar__icon { font-size: 19px; line-height: 1; }
.tabbar__item--slip { position: relative; }
.tabbar__badge {
    position: absolute; top: 2px; right: calc(50% - 20px);
    background: var(--bl-red); color: #fff;
    font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* Floating "Bet Slip" bar (mobile, appears when slip has items) */
.slip-floater {
    position: fixed;
    left: 14px; right: 14px;
    bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom));
    z-index: 55;
    height: 54px;
    border-radius: var(--radius-lg);
    background: var(--bl-green);
    color: var(--bl-on-accent);
    display: none;
    align-items: center; justify-content: space-between;
    padding: 0 18px;
    font-weight: 800;
    box-shadow: 0 10px 32px rgba(21,128,61,0.3);
}
.slip-floater.is-visible { display: flex; }
.slip-floater__left { display: flex; align-items: center; gap: 8px; }
.slip-floater__count {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bl-on-accent); color: var(--bl-green);
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900;
}

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.site-footer { background: #0D0D0D; border-top: 1px solid var(--bl-border-soft); padding: 28px 14px 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: var(--container-max); margin: 0 auto; }
.footer-col h4 { font-size: 15px; color: var(--text-footer); margin-bottom: 10px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-link); padding: 4px 0; }
.footer-col p { display: block; font-size: 13px; color: var(--text-footer); padding: 4px 0; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.footer-badge { font-size: 11px; color: var(--bl-text-dim); border: 1px solid var(--bl-border); border-radius: var(--radius-full); padding: 4px 10px; }
.footer-bottom { max-width: var(--container-max); margin: 18px auto 0; padding-top: 16px; border-top: 1px solid var(--bl-border-soft); font-size: 12px; color: var(--text-footer); line-height: 1.6; }

.responsible-gambling {
    background: rgba(21,128,61,0.06);
    border: 1px solid rgba(21,128,61,0.2);
    border-radius: var(--radius-md);
    padding: 12px 14px; margin: 0 14px 20px;
    font-size: 12.5px; color: var(--bl-text-muted);
    display: flex; gap: 10px; align-items: flex-start;
}
.responsible-gambling strong { color: var(--bl-green); }

/* ---------------------------------------------------------------------
   FORMS (auth / wallet pages)
   --------------------------------------------------------------------- */
.auth-page { min-height: calc(100vh - var(--tabbar-h)); display: flex; align-items: center; justify-content: center; padding: 30px 14px; }

.auth-card {
    width: 100%; max-width: 400px;
    background: var(--bl-panel);
    border: 1px solid var(--bl-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.auth-card h1 { font-size: 24px; color: var(--bl-text); margin-bottom: 4px; }
.auth-card__subtitle { font-size: 13.5px; color: var(--bl-text-muted); margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--bl-text-muted); margin-bottom: 6px; }

.form-control {
    width: 100%;
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    border-radius: var(--radius-sm);
    padding: 12px 12px;
    color: var(--bl-text);
    font-size: 15px;
}
.form-control:focus { outline: none; border-color: rgba(21,128,61,0.5); }
.form-control::placeholder { color: var(--bl-text-dim); }

.form-hint { font-size: 11.5px; color: var(--bl-text-dim); margin-top: 5px; }

.form-error {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
    color: var(--bl-red); font-size: 13px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px;
}
.form-success {
    background: rgba(21,128,61,0.08); border: 1px solid rgba(21,128,61,0.3);
    color: var(--bl-green); font-size: 13px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px;
}

.auth-card__footer { text-align: center; font-size: 13.5px; color: var(--bl-text-muted); margin-top: 16px; }
.auth-card__footer a { color: var(--bl-green); font-weight: 700; }

/* Quick amount grid (deposit page) */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amount-grid button {
    height: 48px; border-radius: var(--radius-sm);
    background: var(--bl-panel-raised); color: var(--bl-text);
    font-weight: 800; font-size: 14px; border: none;
}
.amount-grid button:hover { background: var(--bl-green); color: var(--bl-on-accent); }

/* Generic panel / list card (recent activity, admin queues, my bets) */
.panel {
    border-radius: var(--radius-lg);
    background: var(--bl-panel);
    border: 1px solid var(--bl-border-soft);
    overflow: hidden;
}
.panel__header {
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bl-text-muted);
    border-bottom: 1px solid var(--bl-border-soft);
    background: var(--bl-panel-deep);
}
.panel__row {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bl-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.panel__row:last-child { border-bottom: none; }
.panel__empty { padding: 24px; text-align: center; color: var(--bl-text-dim); font-size: 13.5px; }

.status-pill {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: var(--bl-panel-raised);
    border: 1px solid var(--bl-border);
    color: var(--bl-text-dim);
    white-space: nowrap;
}
.status-pill--pending { color: var(--bl-gold); border-color: rgba(161,98,7,0.3); }
.status-pill--completed, .status-pill--won { color: var(--bl-green); border-color: rgba(21,128,61,0.3); }
.status-pill--rejected, .status-pill--lost, .status-pill--failed { color: var(--bl-red); border-color: rgba(248,113,113,0.3); }

.stat-card { background: var(--bl-panel); border: 1px solid var(--bl-border-soft); border-radius: var(--radius-lg); padding: 16px; }
.stat-card__label { font-size: 11px; color: var(--bl-text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.stat-card__value { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Article body (admin-authored HTML content) */
.article-body h2 { font-size: 20px; margin: 24px 0 10px; }
.article-body h3 { font-size: 17px; margin: 20px 0 8px; }
.article-body p { margin-bottom: 14px; color: var(--bl-text-muted); }
.article-body ul, .article-body ol { margin: 0 0 14px 20px; color: var(--bl-text-muted); }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--bl-green); text-decoration: underline; }
.article-body strong { color: var(--bl-text); }
.article-body blockquote { border-left: 3px solid var(--bl-green); padding-left: 14px; color: var(--bl-text-muted); font-style: italic; margin: 14px 0; }

.panel summary { list-style: none; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::before { content: '▸ '; color: var(--bl-green); }
.panel[open] summary::before { content: '▾ '; }

/* ---------------------------------------------------------------------
   UTILITIES
   --------------------------------------------------------------------- */
.text-muted { color: var(--bl-text-muted); }
.text-dim { color: var(--bl-text-dim); }
.text-green { color: var(--bl-green); }
.notification-text { color: var(--text-notification); }
/* Actual hyperlinks styled with .text-green get the dedicated Links
   color instead, so "Links" in theme settings only affects real links,
   not every other accent-colored badge/value that reuses this class. */
a.text-green { color: var(--text-link); }
.text-gold { color: var(--bl-gold); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hide-mobile { display: none; }
.hide-desktop { display: block; }

/* ---------------------------------------------------------------------
   DESKTOP / TABLET BREAKPOINTS
   --------------------------------------------------------------------- */
@media (min-width: 900px) {
    body { font-size: 16px; padding-bottom: 0; }
    .tabbar, .slip-floater { display: none; }
    .hide-mobile { display: flex; }
    .hide-desktop { display: none; }

    .sport-scroller { display: none; }

    .shell { align-items: stretch; }
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: var(--sidebar-w);
        flex-shrink: 0;
        border-right: 1px solid var(--bl-border-soft);
        padding: 18px;
        position: sticky;
        top: var(--header-h);
        align-self: flex-start;
        height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .tabs-header { top: var(--header-h); }

    .feature-grid { grid-template-columns: repeat(4, 1fr); max-width: var(--container-max); margin: 0 auto; padding: 0 14px; }

    .promo-banner, .match-list, .betslip-page { max-width: 1400px; margin-left: auto; margin-right: auto; }
    .match-list { padding-left: 0; padding-right: 0; }
    .promo-banner { margin-left: auto; margin-right: auto; }

    /* Genuinely full-width, edge to edge — a marketing banner is meant
       to make a statement, not sit capped in a column like a list
       item. Small side padding only, not a max-width cap. */
    .hero-slider { max-width: none; width: calc(100% - 28px); margin-left: auto; margin-right: auto; }
    .hero-slider__arrow { display: flex; }
    .hero-slide { min-height: 220px; padding: 32px 64px; }
    .hero-slide h3 { font-size: 26px; }
    .hero-slide p { max-width: 46ch; font-size: 14px; }

    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }

    /* Desktop match rows: a flat 42% for team names wastes space on a
       wide row (short team names don't need 300+px), starving the odds
       side of room to breathe. Cap team names to a sensible fixed
       width instead and let odds take the rest — this is what actually
       "fills the screen" rather than leaving a gap before the market
       count badge. */
    .match-row__teams { width: 260px; flex: 0 0 260px; }
    .match-row__odds-wrap { gap: 10px; }
    .match-row__odds-wrap .odds-chip { min-width: 90px; height: 46px; }
    .match-row__odds-wrap .odds-chip__value { font-size: 19px; }
    .match-row__team-name { font-size: 16px; }
    .match-row__team-score { font-size: 17px; }

    /* Same idea for the expanded markets panel — 3 fixed columns is
       right for mobile (guarantees no horizontal scroll), but wastes
       space on a wide desktop row. auto-fill is safe to use here
       specifically because it's inside a properly max-width-capped
       desktop container, not the full unpredictable mobile viewport. */
    .market-group__grid--wrap { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .market-group__grid--wrap .market-btn { height: 44px; }
    .market-group__grid--wrap .market-btn__label { font-size: 12px; }
    .market-group__grid--wrap .market-btn__odds { font-size: 13px; }
}

@media (min-width: 1280px) {
    .betslip-page { max-width: none; margin: 0; }
}
