/* ═══════════════════════════════════════════════════════════════
   OddsXpess — Global Styles (SPA v4.0)
   Files: index.html + style.css + app.js  (admin.html separate)
   ═══════════════════════════════════════════════════════════════ */
   :root {
    --red:    #E5001E;
    --gold:   #FFD040;
    --green:  #00D26A;
    --blue:   #3B82F6;
    --bg:     #0F1014;
    --nav:    #16171D;
    --card:   #1E1F26;
    --card2:  #252730;
    --line:   #2A2B33;
    --muted:  #6B7280;
    --white:  #FFFFFF;
    --font-h: 'Urbanist', sans-serif;
    --font-b: 'Albert Sans', sans-serif;
    --ease:   cubic-bezier(.4,0,.2,1);
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    font-family: var(--font-b); font-size: 13px; color: #fff;
    background: var(--bg); -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent; overflow-x: hidden;
  }
  button, input, select, textarea { font-family: inherit; outline: none; }
  button { cursor: pointer; border: none; background: transparent; color: inherit; }
  a { text-decoration: none; color: inherit; }
  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
  
  /* ── LOADER ── */
  #page-loader {
    position: fixed; inset: 0; z-index: 9999; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .4s;
  }
  .spinner-circle-small {
    width: 32px; height: 32px; border: 3px solid var(--line);
    border-top-color: var(--gold); border-radius: 50%;
    animation: spin .8s linear infinite;
  }
  .spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 16px; }
  @keyframes spin { to { transform: rotate(360deg); } }
  
  /* ── HEADER ── */
  .top-header {
    height: 54px; background: var(--nav); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px; position: sticky; top: 0; z-index: 200; flex-shrink: 0;
  }
  .header-left { display: flex; align-items: center; gap: 10px; }
  .logo {
    font-family: var(--font-h); font-weight: 900; font-size: 22px;
    color: #fff; letter-spacing: -.5px; display: flex; align-items: center; gap: 6px;
    cursor: pointer;
  }
  .logo-badge {
    font-family: var(--font-b); font-size: 9px; font-weight: 700; background: var(--red);
    color: #fff; border-radius: 3px; padding: 2px 5px; letter-spacing: 1px; text-transform: uppercase;
  }
  .header-right { display: flex; align-items: center; gap: 10px; position: relative; }
  .h-icon {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s; flex-shrink: 0;
  }
  .h-icon:active { background: rgba(255,255,255,.18); transform: scale(.9); }
  .h-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .user-balance-area { display: flex; flex-direction: column; align-items: flex-end; cursor: pointer; padding-right: 4px; }
  .bal-lbl { font-size: 9px; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }
  .bal-val { font-family: var(--font-h); font-size: 18px; font-weight: 800; color: var(--gold); letter-spacing: -.5px; }
  .btn-join, .btn-deposit-top {
    background: var(--gold); color: #000; border: none; padding: 8px 16px;
    border-radius: 6px; font-family: var(--font-h); font-size: 13px; font-weight: 800;
    cursor: pointer; transition: .15s; text-transform: uppercase; letter-spacing: .3px;
  }
  .btn-join:active, .btn-deposit-top:active { transform: scale(.95); }
  .header-txt-link { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; }
  @media (min-width: 1024px) { #menuBtn { display: none; } }
  @media (max-width: 480px) { .bal-val { font-size: 15px; } }
  
  /* ── MOBILE SEARCH ── */
  #mobileSearchWrap { display: none; background: var(--nav); border-bottom: 1px solid var(--line); padding: 10px 14px; }
  #mobileSearchWrap input {
    width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
    padding: 10px 14px; color: #fff; font-size: 14px;
  }
  #mobileSearchWrap input:focus { border-color: var(--gold); }
  
  /* ── LAYOUT ── */
  .page-layout { display: flex; min-height: calc(100vh - 54px); position: relative; }
  
  /* ── SIDEBAR ── */
  .sidebar {
    width: 260px; background: var(--nav); border-right: 1px solid var(--line);
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 250;
    transform: translateX(-100%); transition: transform .35s var(--ease);
    display: flex; flex-direction: column; overflow-y: auto;
  }
  .sidebar.open { transform: translateX(0); }
  .sb-header {
    height: 54px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; border-bottom: 1px solid var(--line); flex-shrink: 0;
  }
  .sb-logo { font-family: var(--font-h); font-size: 20px; font-weight: 900; }
  .sb-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .sb-close svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
  .sb-body { flex: 1; padding: 12px 0; }
  .sb-section-title {
    font-family: var(--font-h); font-size: 10px; font-weight: 800; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.5px; padding: 16px 16px 8px;
  }
  .sb-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .15s;
  }
  .sb-item:hover, .sb-item.active { background: rgba(255,255,255,.04); color: #fff; }
  .sb-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  @media (min-width: 1024px) {
    .sidebar { position: sticky; transform: none; height: calc(100vh - 54px); }
    .sb-close { display: none; }
  }
  
  /* ── SPA VIEWS ── */
  .spa-view { display: none; flex: 1; min-width: 0; }
  .spa-view.active { display: block; }
  .scroll-area.main { flex: 1; padding-bottom: 90px; }
  
  /* ── PROMO CAROUSEL ── */
  .promo-carousel { position: relative; overflow: hidden; padding: 14px; }
  #promoTrack { display: flex; gap: 12px; }
  .promo-slide {
    min-width: 85%; max-width: 340px; border-radius: 14px; overflow: hidden;
    position: relative; cursor: pointer; flex-shrink: 0;
  }
  .promo-slide img { width: 100%; height: 160px; object-fit: cover; display: block; }
  .promo-overlay {
    position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  }
  .promo-tag { font-size: 10px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
  .promo-title { font-family: var(--font-h); font-size: 20px; font-weight: 900; line-height: 1.15; }
  .promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .promo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); cursor: pointer; transition: .2s; }
  .promo-dot.active { background: var(--gold); width: 18px; border-radius: 3px; }
  
  /* ── SPORTS PILLS ── */
  .sports-pills-container { display: flex; gap: 8px; padding: 12px 14px; overflow-x: auto; scrollbar-width: none; }
  .sports-pills-container::-webkit-scrollbar { display: none; }
  .sport-pill {
    flex-shrink: 0; padding: 8px 14px; border-radius: 20px; background: var(--card);
    border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted);
    cursor: pointer; transition: .2s; display: flex; align-items: center; gap: 6px;
  }
  .sport-pill svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
  .sport-pill:hover { border-color: var(--muted); color: #fff; }
  .sport-pill.active { background: var(--red); color: #fff; border-color: var(--red); }
  
  /* ── TIME SORTER ── */
  .time-sorter { display: flex; gap: 8px; padding: 0 14px 12px; overflow-x: auto; scrollbar-width: none; }
  .time-sorter::-webkit-scrollbar { display: none; }
  .time-pill {
    flex-shrink: 0; padding: 7px 14px; border-radius: 20px; background: transparent;
    border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted);
    cursor: pointer; transition: .2s; font-family: var(--font-b);
  }
  .time-pill:hover { border-color: var(--muted); color: #fff; }
  .time-pill.active { background: var(--gold); color: #000; border-color: var(--gold); }
  
  /* ── SECTION HEAD / ODDS HEADERS ── */
  .section-head { padding: 8px 14px; }
  .section-head-title { font-family: var(--font-h); font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
  .odds-col-headers {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    padding: 0 14px 6px; text-align: center; font-size: 11px; font-weight: 800;
    color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
  }
  
  /* ── MATCH CARDS ── */
  .league-label { padding: 12px 14px 6px; font-family: var(--font-h); font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
  .match-card {
    background: var(--card); border-radius: 10px; margin: 0 14px 8px;
    overflow: hidden; cursor: pointer; transition: .15s;
    border: 1px solid var(--line);
  }
  .match-card:hover { border-color: rgba(255,255,255,.1); }
  .mc-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 11px;
  }
  .mc-meta-left { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
  .white-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
  .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
  .mc-content { display: flex; align-items: center; padding: 10px 12px; gap: 10px; }
  .mc-info { flex: 1; min-width: 0; }
  .mc-team { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.5; display: flex; align-items: center; justify-content: space-between; }
  .mc-markets { font-size: 11px; font-weight: 700; color: var(--gold); margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
  .mc-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-width: 160px; }
  .odd-btn {
    background: var(--card2); border: 1px solid var(--line); border-radius: 6px;
    padding: 8px 4px; color: #fff; font-family: var(--font-h); font-size: 14px;
    font-weight: 800; cursor: pointer; transition: .15s; text-align: center;
  }
  .odd-btn:hover { background: rgba(255,255,255,.06); border-color: var(--muted); }
  .odd-btn.selected { background: var(--gold); color: #000; border-color: var(--gold); }
  
  /* ── SINGLE MATCH AREA ── */
  #singleMatchArea { display: none; flex-direction: column; position: fixed; inset: 0; z-index: 300; background: var(--bg); }
  .sm-top-bar {
    height: 54px; background: var(--nav); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; padding: 0 14px; gap: 12px; flex-shrink: 0;
  }
  .sm-back-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .sm-header-title { font-family: var(--font-h); font-size: 16px; font-weight: 900; text-transform: uppercase; }
  .sm-scroll-content { flex: 1; overflow-y: auto; }
  .sm-hero { background: linear-gradient(180deg, var(--nav) 0%, var(--bg) 100%); padding: 24px 20px; text-align: center; }
  .sm-teams { display: flex; align-items: center; justify-content: center; gap: 20px; }
  .sm-team { font-family: var(--font-h); font-size: 18px; font-weight: 900; max-width: 120px; }
  .sm-score-col { text-align: center; }
  .sm-vs { font-family: var(--font-h); font-size: 28px; font-weight: 900; color: var(--gold); }
  .sm-date { font-size: 12px; color: var(--muted); margin-top: 4px; }
  .sm-tabs-wrap { background: var(--nav); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .sm-tabs { display: flex; gap: 4px; padding: 8px 14px; overflow-x: auto; scrollbar-width: none; }
  .sm-tabs::-webkit-scrollbar { display: none; }
  .sm-tab {
    flex-shrink: 0; padding: 6px 14px; border-radius: 16px; background: var(--card);
    border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted);
    cursor: pointer; transition: .15s;
  }
  .sm-tab.active { background: var(--gold); color: #000; border-color: var(--gold); }
  .sm-markets-container { padding: 10px 14px 80px; }
  .sm-market-group { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .sm-market-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--card); cursor: pointer; font-size: 13px; font-weight: 700;
  }
  .sm-market-head svg { transition: transform .2s; }
  .sm-market-head.collapsed svg { transform: rotate(-90deg); }
  .sm-market-body { background: var(--bg); }
  .sm-market-body.collapsed { display: none; }
  
  /* ── BETSLIP ── */
  .betslip {
    position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
    background: var(--nav); border-left: 1px solid var(--line); z-index: 1200;
    transform: translateX(100%); transition: transform .35s var(--ease);
    display: flex; flex-direction: column;
  }
  .betslip.open { transform: translateX(0); }
  .bs-head {
    height: 54px; border-bottom: 1px solid var(--line); display: flex;
    align-items: center; justify-content: space-between; padding: 0 16px; flex-shrink: 0;
  }
  .bs-title { font-family: var(--font-h); font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
  .bs-count { font-size: 13px; color: var(--muted); margin-left: 6px; }
  .bs-x { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .bs-x svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
  #bs-content-slip { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
  .bs-body { flex: 1; padding: 10px 14px; }
  .bs-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 40px 20px;
  }
  .bs-empty p { font-size: 14px; font-weight: 700; color: #fff; }
  .bs-empty small { font-size: 12px; }
  .selection-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; position: relative; }
  .remove-selection { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
  .bs-team-name { font-size: 13px; font-weight: 700; color: #fff; padding-right: 20px; }
  .bs-market { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .bs-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
  .bs-odd-box { background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-family: var(--font-h); font-size: 14px; font-weight: 800; }
  .bs-foot { border-top: 1px solid var(--line); padding: 14px; background: var(--nav); flex-shrink: 0; }
  .bs-stake { margin-bottom: 10px; }
  .bs-stake label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
  .bs-stake input { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: #fff; font-size: 16px; font-weight: 700; }
  .bs-summary-row, .bs-win-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
  .btn-place-bet {
    width: 100%; padding: 14px; background: var(--green); color: #000; border: none;
    border-radius: 8px; font-family: var(--font-h); font-size: 18px; font-weight: 900;
    text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: .15s; margin-top: 10px;
  }
  .btn-place-bet:active { transform: scale(.98); }
  .btn-place-bet:disabled { opacity: .5; cursor: not-allowed; transform: none; }
  .bs-booking-row { display: flex; gap: 8px; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .bs-booking-input {
    flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    color: #fff; padding: 8px 12px; font-size: 13px; font-family: var(--font-b);
    text-transform: uppercase; letter-spacing: 1px;
  }
  .bs-booking-input:focus { border-color: var(--gold); }
  .bs-booking-btn {
    background: var(--card2); color: #fff; border: 1px solid var(--line); border-radius: 6px;
    padding: 0 16px; font-weight: 800; cursor: pointer; transition: .2s; font-size: 12px;
    text-transform: uppercase; font-family: var(--font-h); letter-spacing: .5px;
  }
  .bs-booking-btn:hover { color: var(--gold); border-color: var(--gold); }
  .bs-share-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
  .bs-share-btn {
    display: flex; align-items: center; gap: 6px; background: rgba(255,208,64,.1); color: var(--gold);
    border: 1px solid rgba(255,208,64,.3); border-radius: 6px; padding: 6px 12px; font-size: 11px;
    font-weight: 800; cursor: pointer; transition: .2s; text-transform: uppercase;
    font-family: var(--font-h); letter-spacing: .5px;
  }
  .bs-share-btn:hover { background: var(--gold); color: #000; }
  .bs-share-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
  
  /* ── BOTTOM NAV ── */
  .bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
    background: var(--nav); border-top: 1px solid var(--line);
    display: flex; z-index: 998; padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @media (min-width: 900px) { .bottom-nav { display: none; } }
  .b-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; cursor: pointer; transition: .2s; position: relative;
  }
  .b-nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .b-nav-item.active { color: var(--gold); }
  .b-nav-item.active::after {
    content: ''; position: absolute; top: 0; width: 40%; height: 2px;
    background: var(--gold); border-radius: 0 0 4px 4px;
  }
  
  /* ── FLOATING BETSLIP BUTTON ── */
  .floating-betslip {
    position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 56px; border-radius: 50%; background: var(--red);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(229,0,30,.4); z-index: 997; cursor: pointer;
    border: 3px solid var(--bg);
  }
  .floating-betslip svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
  .floating-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
    border-radius: 50%; background: var(--gold); color: #000; font-size: 11px;
    font-weight: 800; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
  }
  
  /* ── OVERLAY ── */
  .mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 240;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .mobile-overlay.active { opacity: 1; pointer-events: auto; }
  
  /* ── AUTH MODAL ── */
  #authModal {
    position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.85);
    backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  #authModal.on { opacity: 1; pointer-events: auto; }
  .auth-box {
    background: var(--nav); border: 1px solid var(--line); border-radius: 16px;
    width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  }
  .auth-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
  .auth-header span { font-family: var(--font-h); font-size: 20px; font-weight: 900; }
  .auth-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .auth-close svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
  .auth-body { padding: 16px; }
  .auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
  .auth-tab {
    flex: 1; padding: 10px; background: var(--card); border: 1px solid var(--line);
    border-radius: 8px; color: var(--muted); font-family: var(--font-h); font-size: 16px;
    font-weight: 800; cursor: pointer; transition: .15s;
  }
  .auth-tab.active { background: var(--gold); color: #000; border-color: var(--gold); }
  .form-group { margin-bottom: 14px; }
  .form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
  .form-group input {
    width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
    padding: 12px 14px; color: #fff; font-size: 14px; transition: .2s;
  }
  .form-group input:focus { border-color: var(--gold); }
  .auth-input-wrap { position: relative; }
  .auth-input-wrap input { padding-right: 44px; }
  .pw-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; display: flex; }
  .pw-eye svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .auth-submit {
    width: 100%; padding: 14px; background: var(--green); color: #000; border: none;
    border-radius: 8px; font-family: var(--font-h); font-size: 18px; font-weight: 900;
    text-transform: uppercase; cursor: pointer; transition: .15s;
  }
  .auth-submit:disabled { opacity: .6; cursor: not-allowed; }
  .auth-alert {
    display: none; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 6px;
    font-size: 13px; font-weight: 600; margin-bottom: 14px; line-height: 1.4; border: 1px solid transparent;
  }
  .auth-alert.show { display: flex; }
  .auth-alert.err { background: rgba(229,0,30,.1); border-color: rgba(229,0,30,.3); color: #ff6b6b; }
  .auth-alert.ok { background: rgba(0,210,106,.1); border-color: rgba(0,210,106,.3); color: var(--green); }
  .auth-alt-link { text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
  .auth-alt-link a { color: var(--gold); cursor: pointer; font-weight: 700; }
  .chk { position: relative; transition: .2s; }
  .chk.on { background: var(--green) !important; border-color: var(--green) !important; }
  .chk.on::after {
    content: ''; position: absolute; left: 6px; top: 2px;
    width: 5px; height: 10px; border: solid #000; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
  }
  
  /* ── NOTIFICATION DROPDOWN ── */
  .notif-dropdown {
    position: absolute; top: 44px; right: 0; width: 320px; max-width: 90vw;
    background: var(--nav); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.5); z-index: 300; opacity: 0;
    pointer-events: none; transform: translateY(-8px); transition: .25s;
  }
  .notif-dropdown.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .notif-header { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; text-transform: uppercase; }
  .notif-body { max-height: 360px; overflow-y: auto; }
  .notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .notif-item:last-child { border-bottom: none; }
  .notif-text { font-size: 12px; color: #ddd; line-height: 1.5; }
  .notif-text strong { color: #fff; display: block; }
  .notif-time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
  .notif-badge {
    position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px;
    border-radius: 50%; background: var(--red); color: #fff; font-size: 10px;
    font-weight: 800; display: flex; align-items: center; justify-content: center;
  }
  
  /* ── SHEET (DEPOSIT/WITHDRAW/PASSWORD) ── */
  .sheet-backdrop {
    position: fixed; inset: 0; z-index: 1800; background: rgba(0,0,0,.88);
    backdrop-filter: blur(6px); display: none; align-items: flex-end; justify-content: center;
  }
  .sheet-backdrop.open { display: flex; }
  .sheet-panel {
    background: var(--nav); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line);
    width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 18px);
    transform: translateY(100%); transition: transform .38s cubic-bezier(.32,1,.55,1);
  }
  .sheet-backdrop.open .sheet-panel { transform: translateY(0); }
  .sh-grab { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); margin: 12px auto; }
  .sh-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 20px 16px; border-bottom: 1px solid var(--line); }
  .sh-title { font-family: var(--font-h); font-size: 21px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: -.2px; }
  .sh-close { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; background: var(--card2); display: flex; align-items: center; justify-content: center; }
  .sh-close:active { background: var(--line); }
  .sh-close svg { width: 14px; height: 14px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sh-body { padding: 20px; }
  .sh-bal-row { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; }
  .sh-bal-lbl { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
  .sh-bal-amt { font-family: var(--font-h); font-size: 22px; font-weight: 900; color: var(--green); }
  .sh-pills { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
  .sh-pill { background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; cursor: pointer; transition: .15s; }
  .sh-pill:hover, .sh-pill.on { background: rgba(255,208,64,.1); border-color: var(--gold); color: var(--gold); }
  .sh-input-wrap { position: relative; margin-bottom: 10px; }
  .wd-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 10px; }
  .wd-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 4px 0; }
  .wd-row strong { font-family: var(--font-h); font-size: 16px; color: #fff; }
  .wd-row.wd-fee strong { color: var(--red); }
  .wd-divider { height: 1px; background: var(--line); margin: 10px 0; }
  .wd-row.wd-total span { color: #fff; font-weight: 700; }
  .wd-row.wd-total strong { color: var(--green); font-size: 22px; }
  .wd-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 10px; padding: 10px 12px; background: rgba(255,208,64,.06); border: 1px dashed rgba(255,208,64,.2); border-radius: 8px; }
  .wd-note strong { color: rgba(255,255,255,.7); }
  .sh-pfx { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--muted); pointer-events: none; }
  .sh-input { width: 100%; padding: 16px 14px 16px 50px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: #fff; font-family: var(--font-h); font-size: 28px; font-weight: 900; text-align: right; letter-spacing: -.5px; }
  .sh-input:focus { border-color: var(--gold); }
  .sh-hint { font-size: 11px; color: var(--muted); line-height: 1.65; text-align: center; margin-bottom: 18px; }
  .sh-hint strong { color: rgba(255,255,255,.6); }
  .sh-btn { width: 100%; padding: 16px; border-radius: 12px; border: none; cursor: pointer; font-family: var(--font-h); font-size: 18px; font-weight: 900; letter-spacing: .4px; transition: .15s; }
  .sh-btn:active { transform: scale(.97); }
  .sh-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
  .sh-btn.dep-btn { background: var(--gold); color: #000; }
  .sh-btn.wd-btn  { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.2); }
  .sh-field { margin-bottom: 14px; }
  .sh-field label { display: block; font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 7px; }
  .sh-field input { width: 100%; padding: 13px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: #fff; font-family: var(--font-b); font-size: 14px; }
  .sh-field input:focus { border-color: var(--gold); }
  .sh-status { display: none; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 24px; gap: 12px; }
  .sh-status.on { display: flex; }
  .sh-spinner { width: 48px; height: 48px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
  .sh-st-title { font-family: var(--font-h); font-size: 20px; font-weight: 900; color: #fff; line-height: 1.1; }
  .sh-st-sub { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 260px; }
  .sh-countdown { font-family: var(--font-h); font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; }
  .c-success { color: var(--green) !important; }
  .c-fail    { color: var(--red)   !important; }
  
  /* ── PROFILE VIEW ── */
  .p-hero { position: relative; overflow: hidden; background: linear-gradient(170deg,#1a0008 0%,var(--red) 40%,#8c0015 70%,#1a0008 100%); padding: 32px 20px 52px; }
  .p-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 32px;
    background: var(--bg); clip-path: ellipse(52% 100% at 50% 100%);
  }
  .p-hero-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
  .p-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; }
  .p-avatar svg { width: 28px; height: 28px; stroke: rgba(255,255,255,.9); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .p-hero-info { flex: 1; min-width: 0; }
  .p-hero-name { font-family: var(--font-h); font-size: 20px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 5px; letter-spacing: -.3px; }
  .p-hero-phone { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; flex-wrap: wrap; }
  .p-hero-copy { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 2px 7px; cursor: pointer; transition: .15s; }
  .p-hero-copy:active { background: rgba(255,255,255,.18); color: #fff; }
  .p-hero-badge { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 5px 12px; font-size: 10px; font-weight: 800; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; flex-shrink: 0; }
  .p-bal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; margin-top: -26px; position: relative; z-index: 2; }
  .p-bal-card { border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 5px; }
  .p-bal-card.main-bal { background: linear-gradient(135deg,rgba(0,210,106,.2) 0%,rgba(0,210,106,.07) 100%); border: 1px solid rgba(0,210,106,.35); }
  .p-bal-card.bonus-bal { background: var(--card); border: 1px dashed rgba(255,208,64,.25); }
  .pbc-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
  .pbc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .pbc-dot.g { background: var(--green); box-shadow: 0 0 6px var(--green); }
  .pbc-dot.y { background: var(--gold); }
  .pbc-lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
  .pbc-amt { font-family: var(--font-h); font-size: 24px; font-weight: 900; letter-spacing: -.5px; line-height: 1; }
  .pbc-sub { font-size: 10px; color: var(--muted); }
  .p-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px 0; }
  .p-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px;
    border-radius: 12px; font-family: var(--font-h); font-size: 17px; font-weight: 900;
    letter-spacing: .3px; cursor: pointer; transition: .15s;
  }
  .p-cta:active { transform: scale(.95); }
  .p-cta.dep { border: none; background: var(--gold); color: #000; }
  .p-cta.wd { border: 1px solid var(--line); background: var(--card); color: #fff; }
  .p-cta svg { width: 18px; height: 18px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .p-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 20px 14px 0; }
  .p-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; text-align: center; cursor: pointer; transition: .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .p-stat:active { transform: scale(.95); }
  .p-stat-icon { font-size: 20px; line-height: 1; margin-bottom: 2px; }
  .p-stat-val { font-family: var(--font-h); font-size: 22px; font-weight: 900; color: #fff; line-height: 1; }
  .p-stat-lbl { font-size: 10px; color: var(--muted); font-weight: 600; }
  .p-sec { display: flex; align-items: center; gap: 8px; padding: 22px 14px 8px; font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
  .p-sec-line { flex: 1; height: 1px; background: var(--line); }
  .p-bets, .p-menu { margin: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .pb-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
  .pb-row:last-child { border-bottom: none; }
  .pb-row:active { background: rgba(255,255,255,.04); }
  .pb-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
  .pb-match { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pb-meta { font-size: 11px; color: var(--muted); }
  .pb-chip { font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; flex-shrink: 0; }
  .pb-won  { background: rgba(0,210,106,.14); color: var(--green); border: 1px solid rgba(0,210,106,.28); }
  .pb-lost { background: rgba(229,0,30,.12); color: var(--red); border: 1px solid rgba(229,0,30,.25); }
  .pb-open { background: rgba(255,208,64,.12); color: var(--gold); border: 1px solid rgba(255,208,64,.25); }
  .p-row { display: flex; align-items: center; padding: 14px 16px; gap: 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
  .p-row:last-child { border-bottom: none; }
  .p-row:active { background: rgba(255,255,255,.04); }
  .pr-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .pr-icon svg { width: 17px; height: 17px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pr-body { flex: 1; min-width: 0; }
  .pr-title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 2px; }
  .pr-desc { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pr-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .pr-right svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pr-chip { font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; }
  .chip-green { background: rgba(0,210,106,.14); color: var(--green); border: 1px solid rgba(0,210,106,.28); }
  .chip-gold { background: rgba(255,208,64,.12); color: var(--gold); border: 1px solid rgba(255,208,64,.25); }
  .chip-red { background: rgba(229,0,30,.12); color: var(--red); border: 1px solid rgba(229,0,30,.25); }
  .p-signout {
    margin: 12px 14px 0; display: flex; align-items: center; justify-content: center; gap: 10px;
    width: calc(100% - 28px); padding: 16px; background: rgba(229,0,30,.07);
    border: 1px solid rgba(229,0,30,.2); border-radius: 12px; cursor: pointer; transition: .15s;
    font-family: var(--font-h); font-size: 16px; font-weight: 900; color: var(--red); letter-spacing: .3px;
  }
  .p-signout:active { background: rgba(229,0,30,.14); }
  .p-signout svg { width: 17px; height: 17px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .p-footer { text-align: center; padding: 24px 20px 90px; color: var(--muted); font-size: 11px; line-height: 2; }
  .view-link { font-size: 12px; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
  .view-link svg { width: 12px; height: 12px; stroke: var(--gold); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  
  /* ── GATE (signed out screens) ── */
  .gate-out { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 24px; text-align: center; }
  .gate-out svg.gate-icon { width: 72px; height: 72px; stroke: var(--line); fill: none; stroke-width: 1.2; opacity: .5; margin-bottom: 18px; }
  .gate-title { font-family: var(--font-h); font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 8px; letter-spacing: -.5px; }
  .gate-desc { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 280px; margin-bottom: 28px; }
  .gate-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }
  .gate-btn-main { padding: 15px; background: var(--gold); color: #000; font-family: var(--font-h); font-size: 18px; font-weight: 900; border-radius: 10px; letter-spacing: .3px; border: none; cursor: pointer; }
  .gate-btn-alt { padding: 14px; background: transparent; color: #fff; border: 1.5px solid var(--line); font-family: var(--font-h); font-size: 16px; font-weight: 800; border-radius: 10px; cursor: pointer; }
  
  /* ── MY BETS VIEW ── */
  .sub-header {
    height: 54px; background: var(--nav); display: flex; align-items: center;
    justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
  }
  .filter-wrap { background: var(--nav); padding: 12px 14px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .filter-wrap::-webkit-scrollbar { display: none; }
  .ftab {
    padding: 8px 18px; border-radius: 24px; font-size: 13px; font-weight: 700; color: var(--muted);
    background: transparent; border: 1px solid var(--line); cursor: pointer; display: flex;
    align-items: center; gap: 8px; white-space: nowrap; transition: all .2s ease;
    font-family: var(--font-h); text-transform: uppercase; letter-spacing: .5px;
  }
  .ftab.active { background: var(--red); color: #fff; border-color: var(--red); }
  .fc { background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 12px; color: var(--muted); font-family: var(--font-b); }
  .ftab.active .fc { background: rgba(0,0,0,.25); color: #fff; }
  .main-bets-container { padding: 16px; max-width: 600px; width: 100%; margin: 0 auto; padding-bottom: 90px; }
  .empty-state { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; }
  .empty-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; color: #fff; font-family: var(--font-h); text-transform: uppercase; }
  .empty-desc { color: var(--muted); font-size: 13px; margin-bottom: 24px; line-height: 1.5; }
  .btn-primary {
    background: var(--red); color: #fff; border: none; padding: 12px 24px;
    border-radius: 8px; font-size: 16px; font-weight: 900; cursor: pointer;
    font-family: var(--font-h); text-transform: uppercase; letter-spacing: .5px; transition: transform .2s;
  }
  .btn-primary:hover { transform: translateY(-1px); }
  .list-card {
    background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    border: 1px solid var(--line); transition: border-color .2s, background .2s;
  }
  .list-card:hover { border-color: var(--muted); background: var(--card2); }
  .lc-left { display: flex; flex-direction: column; gap: 6px; }
  .lc-id { font-weight: 900; font-size: 18px; font-family: var(--font-h); letter-spacing: .5px; }
  .lc-date { font-size: 11px; color: var(--muted); font-weight: 600; }
  .lc-right { display: flex; flex-direction: column; gap: 6px; text-align: right; }
  .lc-amt { font-size: 18px; font-weight: 900; color: #fff; font-family: var(--font-h); }
  .status-text { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-family: var(--font-h); }
  .status-text.won { color: var(--green); }
  .status-text.lost { color: var(--red); }
  .status-text.open { color: var(--gold); }
  .status-text.cashedout { color: var(--gold); }
  .detail-header { display: flex; align-items: center; gap: 12px; padding: 10px 0 20px; font-size: 18px; font-weight: 900; font-family: var(--font-h); text-transform: uppercase; cursor: pointer; }
  .detail-header svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .detail-subtitle { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
  .detail-status { font-size: 16px; margin-bottom: 20px; }
  .summary-box { background: var(--bg); border-radius: 12px; display: flex; padding: 16px; margin-bottom: 24px; gap: 16px; border: 1px solid var(--line); }
  .sb-col { display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .sb-col.border-right { border-right: 1px solid var(--line); }
  .sb-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-family: var(--font-h); }
  .sb-val { font-size: 20px; font-weight: 900; font-family: var(--font-h); color: #fff; }
  .sb-wlt { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-left: 10px; border-left: 1px solid var(--line); }
  .events-hdr { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-family: var(--font-h); font-weight: 900; text-transform: uppercase; margin-bottom: 12px; color: var(--muted); }
  .toggle-all { color: var(--gold); font-size: 12px; cursor: pointer; font-weight: 800; }
  .event-card { background: var(--card); border-radius: 10px; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); }
  .ec-main { padding: 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
  .ec-left { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
  .ec-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .ec-icon svg { width: 10px; height: 10px; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .ec-icon.lost { background: rgba(229,0,30,.1); }
  .ec-icon.lost svg { stroke: var(--red); }
  .ec-icon.won { background: rgba(0,210,106,.1); }
  .ec-icon.won svg { stroke: var(--green); }
  .ec-icon.open { border: 2px solid var(--line); }
  .score-pill { background: var(--card2); color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 13px; font-weight: 900; margin: 0 6px; border: 1px solid var(--line); font-family: var(--font-h); }
  .score-pill.pending { background: transparent; color: var(--muted); border-style: dashed; }
  .ec-arrow { width: 14px; height: 14px; stroke: var(--muted); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); flex-shrink: 0; }
  .ec-arrow.open { transform: rotate(180deg); }
  .ec-details { background: var(--bg); padding: 14px; border-top: 1px dashed var(--line); display: none; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 12px; }
  .ec-details.show { display: grid; }
  .grid-item { display: flex; flex-direction: column; gap: 4px; }
  .gi-lbl { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
  .gi-val { font-weight: 700; color: #fff; }
  .gi-val.won { color: var(--green); }
  .gi-val.lost { color: var(--red); }
  
  /* ── SUPPORT VIEW ── */
  .support-hero { background: linear-gradient(135deg,#0a0010 0%,#1a0820 50%,var(--bg) 100%); padding: 32px 20px 28px; text-align: center; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
  .support-hero::before {
    content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 280px; height: 280px; background: radial-gradient(circle, rgba(229,0,30,.18) 0%, transparent 70%);
    pointer-events: none;
  }
  .support-body { padding: 20px 14px 90px; max-width: 680px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
  .support-sec-title { font-family: var(--font-h); font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; padding: 6px 0 4px; }
  .channel-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer;
    transition: border-color .2s, background .15s;
  }
  .channel-card:hover { border-color: rgba(255,208,64,.3); }
  .channel-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
  .channel-title { font-family: var(--font-h); font-size: 17px; font-weight: 900; color: #fff; text-transform: uppercase; margin-bottom: 2px; }
  .channel-chip { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
  .channel-desc { font-size: 11px; color: var(--muted); }
  .channel-card > svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .faq-q { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; cursor: pointer; gap: 10px; user-select: none; }
  .faq-q span { font-size: 13px; font-weight: 600; color: #fff; flex: 1; line-height: 1.4; }
  .faq-q svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform .3s var(--ease); }
  .faq-item.open .faq-q svg { transform: rotate(180deg); }
  .faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease), opacity .25s; opacity: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
  .faq-item.open .faq-a { max-height: 300px; opacity: 1; }
  .faq-a > div { padding: 0 16px 16px; }
  .cta-banner { background: linear-gradient(135deg,rgba(229,0,30,.12),rgba(255,208,64,.08)); border: 1px solid rgba(255,208,64,.18); border-radius: 14px; padding: 22px 18px; text-align: center; margin-top: 6px; }
  .cta-banner-title { font-family: var(--font-h); font-size: 20px; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
  .cta-banner-desc { font-size: 12px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
  .cta-btn { display: inline-block; background: var(--gold); color: #000; font-family: var(--font-h); font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; padding: 13px 32px; border-radius: 8px; cursor: pointer; transition: filter .15s, transform .1s; }
  .cta-btn:active { transform: scale(.97); filter: brightness(1.1); }
  
  /* ── SKELETON ── */
  .skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
  @keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
  .skel-card { height: 80px; margin: 0 14px 8px; }
  
  /* ── TOAST ── */
  #pToast {
    position: fixed; bottom: 82px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--card2); color: #fff; padding: 11px 22px; border-radius: 8px;
    font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
    transition: .3s; z-index: 3000; border: 1px solid var(--line);
    white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
  }
  #pToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  
  /* ── FOOTER ── */
  .app-footer { text-align: center; padding: 30px 20px 20px; color: var(--muted); font-size: 11px; line-height: 1.9; border-top: 1px solid var(--line); margin-top: 10px; }
  .app-footer-title { font-weight: 700; color: #fff; margin-bottom: 6px; font-size: 12px; }
  .age-badge { border: 1px solid #444; border-radius: 3px; padding: 1px 5px; margin-right: 6px; }
  
  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .mc-odds { min-width: 140px; }
    .betslip {
      top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%;
      height: auto; max-height: 85vh; border-left: none; border-top: 1px solid var(--line);
      border-radius: 20px 20px 0 0; transform: translateY(105%);
    }
    .betslip.open { transform: translateY(0); }
  }
  .odd-btn.locked, .odd-btn:disabled { opacity: .35; pointer-events: none; cursor: not-allowed; }

  /* ── MARKET CARDS — bookmaker style (ref design) ── */
  .sm-market-group {
    margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; background: var(--card);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
  }
  .sm-market-head {
    padding: 16px 16px; background: var(--card); font-size: 15px; font-weight: 800;
    letter-spacing: .2px; border-bottom: 1px solid var(--line);
  }
  .sm-market-head svg { width: 18px; height: 18px; stroke: var(--muted); }
  .sm-market-body { background: var(--bg); }
  .sm-market-body > div { padding: 12px !important; gap: 8px; }
  .sm-market-body > div .odd-btn {
    background: var(--card2); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 8px !important; min-height: 64px; gap: 3px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    transition: border-color .15s, background .15s, transform .1s;
  }
  .sm-market-body > div .odd-btn:hover { border-color: var(--muted); background: #2a2c3a; }
  .sm-market-body > div .odd-btn:active { transform: scale(.97); }
  .sm-market-body > div .odd-btn span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sm-market-body > div .odd-btn .sm-outcome-lbl { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.2; }
  .sm-market-body > div .odd-btn .sm-outcome-odds { font-size: 19px; font-weight: 800; color: #fff; font-family: var(--font-h); letter-spacing: .3px; line-height: 1.1; }
  .sm-market-body > div .odd-btn.selected { background: var(--gold); border-color: var(--gold); }
  .sm-market-body > div .odd-btn.selected .sm-outcome-lbl, .sm-market-body > div .odd-btn.selected .sm-outcome-odds { color: #000; }
  .sm-market-body > div .odd-btn.locked, .sm-market-body > div .odd-btn:disabled { opacity: .3; }

  /* match-feed odd buttons get the same elevated look */
  .mc-odds .odd-btn { min-height: 42px; border-radius: 8px; }

  @media (max-width: 560px) {
    .sm-market-body > div { gap: 6px; padding: 10px !important; }
    .sm-market-body > div .odd-btn { padding: 10px 6px !important; min-height: 56px; border-radius: 10px; }
    .sm-market-body > div .odd-btn .sm-outcome-lbl { font-size: 12px; }
    .sm-market-body > div .odd-btn .sm-outcome-odds { font-size: 16px; }
    .sm-market-body .sm-grid-tight { grid-template-columns: repeat(2, 1fr) !important; }
    .mc-odds { min-width: 126px; gap: 4px; }
    .odd-btn { font-size: 13px; padding: 8px 2px; }
    .mc-team { font-size: 12px; }
    .mc-content { padding: 10px 8px; gap: 8px; }
    .mc-info { min-width: 0; }
    .sm-team { font-size: 15px; max-width: 100px; }
    .sm-vs { font-size: 22px; }
  }
  .sm-lock-note {
    background: rgba(255,208,64,.08); border: 1px dashed rgba(255,208,64,.3);
    color: var(--gold); border-radius: 12px; padding: 14px 16px;
    font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 12px;
  }
  