@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --page: #111211;
  --surface: #1c1e1d;
  --raised: #252827;
  --line: #303432;
  --muted: #a5aaa7;
  --text: #f4f5f4;
  --green: #10d49a;
  --yellow: #ffdc47;
  font-family: 'DM Sans', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 14px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 0 28px; background: linear-gradient(105deg, #0b3c2e, #102f26); border-bottom: 1px solid #21483c; position: sticky; top: 0; z-index: 10; }
.brand, .dialog-brand { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -1.7px; }
.brand span, .dialog-brand span { color: var(--yellow); }
.top-nav { height: 100%; display: flex; align-items: center; gap: 37px; margin-left: auto; margin-right: auto; }
.top-nav a { height: 100%; display: flex; align-items: center; color: #d4d9d6; font-size: 13px; font-weight: 700; position: relative; }
.top-nav a.active, .top-nav a:hover { color: var(--green); }
.top-nav a.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--green); border-radius: 3px 3px 0 0; }
.account-actions { display: flex; align-items: center; gap: 9px; }
.admin-shortcut { padding: 9px 13px; color: #d5e7df; font-size: 12px; font-weight: 700; }
.balance-pill { padding: 9px 12px; background: #153c30; border: 1px solid #22644c; border-radius: 20px; color: #9ef2cb; font-size: 12px; white-space: nowrap; }
.button { min-height: 36px; padding: 0 17px; border: 1px solid transparent; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-outline { color: #f5faf7; border-color: #168d69; background: transparent; }
.button-outline:hover { background: #143b30; }
.button-yellow { color: #151512; background: var(--yellow); }
.button-yellow:hover { background: #ffe873; }
.button-green { color: #07150f; background: var(--green); }
.button-green:hover { background: #4de7b7; }

.page-layout { display: grid; grid-template-columns: 224px minmax(380px, 1fr) 318px; gap: 23px; max-width: 1740px; min-height: calc(100vh - 70px); margin: auto; padding: 0 22px; }
.left-sidebar { position: sticky; top: 70px; align-self: start; height: calc(100vh - 70px); overflow: auto; padding: 30px 0; border-right: 1px solid #242725; scrollbar-width: thin; scrollbar-color: #3b403d transparent; }
.sidebar-heading { padding: 0 18px 11px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.sidebar-heading-spaced { margin-top: 25px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 11px 17px; color: #e0e3e1; font-size: 13px; font-weight: 600; transition: background .15s; }
.sidebar-link span { width: 20px; font-size: 17px; text-align: center; }
.sidebar-link:hover { background: #202321; color: var(--green); }
.sidebar-note { margin: 27px 14px 10px; padding: 14px; color: var(--muted); background: #1d211f; border: 1px solid #303632; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.sidebar-note strong { color: var(--green); }
.main-content { min-width: 0; padding: 14px 0 100px; }
.search-box { display: flex; height: 43px; align-items: center; gap: 11px; padding: 0 17px; background: #242726; border: 1px solid #323634; border-radius: 24px; }
.search-box > span { color: #cbd1cd; font-size: 25px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; padding: 0; background: none; border: none; outline: none; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: #c0c4c1; }
.sports-strip { display: flex; gap: 7px; padding: 13px 0 16px; overflow-x: auto; scrollbar-width: none; }
.sports-strip::-webkit-scrollbar { display: none; }
.sport-tile { display: flex; min-width: 76px; height: 64px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 5px 8px; background: #1c1e1d; border: 1px solid #303331; border-radius: 9px; color: #e3e6e4; cursor: pointer; font-size: 10px; font-weight: 600; white-space: nowrap; }
.sport-tile span { font-size: 21px; }
.sport-tile:hover, .sport-tile.is-selected { border-color: #168d69; background: #163328; }
.promo-card { min-height: 188px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; padding: 24px 29px; background: radial-gradient(ellipse at 77% 55%, #087b5e 0, transparent 40%), linear-gradient(114deg, #075440, #073a2e 69%, #092d25); border: 1px solid #187e61; border-radius: 13px; }
.promo-card > div:first-child { position: relative; z-index: 2; max-width: 430px; }
.eyebrow { color: #a6f0d2; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; }
.promo-card h1 { margin: 6px 0 5px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -.8px; line-height: 1.14; }
.promo-card p { margin: 0 0 15px; color: #c3d9ce; font-size: 12px; }
.promo-ball { position: absolute; top: -24px; right: 60px; z-index: 1; color: #ddf2e5; font-size: 151px; opacity: .82; filter: drop-shadow(10px 13px 8px #00170b90); transform: rotate(-21deg); }
.promo-orbit { position: absolute; top: -75px; right: -23px; width: 290px; height: 290px; border: 1px solid #80e3bd4d; border-radius: 50%; box-shadow: 0 0 0 22px #80e3bd13, 0 0 0 50px #80e3bd0c; }
.demo-tag { position: absolute; right: 13px; bottom: 12px; z-index: 2; color: #c6e8d6; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.category-tabs { display: flex; gap: 9px; align-items: center; padding: 22px 0 19px; border-bottom: 1px solid #292c2a; overflow-x: auto; scrollbar-width: none; }
.category-tab { min-height: 34px; padding: 0 15px; flex: 0 0 auto; background: none; border: none; border-radius: 18px; color: #c6cbc8; cursor: pointer; font-size: 12px; font-weight: 600; }
.category-tab:hover { color: #fff; background: #242725; }
.category-tab.active { background: #f3f5f3; color: #171a18; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 59px; }
.section-heading > div { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 16px; font-weight: 700; }
.heading-icon { color: #c9d2cd; font-size: 18px; }
.section-date { color: var(--muted); font-size: 11px; }
.live-indicator { color: #fb8181; font-size: 11px; font-weight: 700; }
.matches-list { display: grid; gap: 11px; }
.match-card { overflow: hidden; border: 1px solid #303432; border-radius: 11px; background: #191b1a; }
.match-meta { min-height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid #303432; color: #c4c9c6; font-size: 11px; }
.match-league { color: #f1f3f2; font-weight: 700; }
.match-status { color: var(--muted); }
.match-status.is-live { color: #fb8181; font-weight: 700; }
.match-content { display: grid; grid-template-columns: minmax(130px, 1fr) 34px minmax(240px, 1.17fr); align-items: center; gap: 10px; padding: 12px; }
.teams { display: grid; gap: 10px; min-width: 0; }
.team-name { overflow: hidden; color: #f0f2f0; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.team-symbol { display: inline-block; width: 21px; color: #c8d2cd; font-size: 15px; text-align: center; }
.score-column { display: grid; gap: 8px; }
.score { min-width: 24px; padding: 4px; border-radius: 4px; background: #252826; color: #f7f7f6; font-size: 12px; font-weight: 800; text-align: center; }
.odds-column { min-width: 0; }
.odds-label { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 0 5px; color: #abb1ad; font-size: 9px; text-align: center; }
.odds-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.odds-button { display: flex; min-height: 42px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 7px 4px; background: #272a28; border: 1px solid transparent; border-radius: 5px; color: #dce1dd; cursor: pointer; font-size: 10px; transition: background .14s, border .14s; }
.odds-button strong { color: var(--yellow); font-size: 12px; }
.odds-button:hover { background: #333835; }
.odds-button.selected { background: #164633; border-color: #20c88a; }
.odds-button:disabled { opacity: .46; cursor: not-allowed; }
.empty-state, .loading-message { padding: 24px 16px; color: var(--muted); text-align: center; }
.my-bets-section { padding-top: 14px; }
.my-bets-list { display: grid; gap: 9px; }
.my-bet-card { padding: 13px; background: #191b1a; border: 1px solid #303432; border-radius: 9px; font-size: 12px; }
.my-bet-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bet-status { color: var(--green); font-weight: 700; text-transform: capitalize; }
.bet-status.status-lost { color: #ff8b8b; }
.bet-status.status-pending { color: var(--yellow); }
.my-bet-detail { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; color: var(--muted); }
.site-footer { margin-top: 30px; padding: 18px 0; border-top: 1px solid #303432; color: #929995; font-size: 11px; line-height: 1.6; }

.bet-slip { position: sticky; top: 85px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; margin: 15px 0 25px; padding: 15px; background: #191b1a; border: 1px solid #303432; border-radius: 11px; scrollbar-width: thin; scrollbar-color: #3c423e transparent; }
.slip-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.slip-header h2 { margin: 0; font-size: 16px; }
.close-mobile-slip { display: none; margin-right: 8px; padding: 0 4px; background: none; border: 0; color: #d6dbd8; cursor: pointer; font-size: 20px; }
.clear-slip { border: 0; background: none; color: #b2b8b4; cursor: pointer; font-size: 11px; }
.clear-slip:hover { color: #fff; }
.slip-tabs { padding-bottom: 12px; border-bottom: 1px solid #303432; }
.slip-tabs button { min-height: 29px; padding: 0 12px; background: #e8ece9; border: 0; border-radius: 16px; color: #101310; font-size: 11px; font-weight: 700; }
.slip-empty { margin: 0; padding: 23px 10px 25px; color: #b0b5b2; text-align: center; font-size: 12px; line-height: 1.6; }
.slip-selection { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 12px 21px 12px 0; border-bottom: 1px solid #303432; }
.slip-remove { position: absolute; top: 9px; right: 0; padding: 2px 5px; background: none; border: 0; color: #abb1ad; cursor: pointer; font-size: 17px; }
.slip-match { color: var(--muted); font-size: 10px; }
.slip-pick { font-size: 12px; font-weight: 700; }
.slip-odd { color: var(--yellow); font-size: 12px; font-weight: 700; }
.slip-calculation { padding-top: 11px; }
.slip-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #c4cac6; font-size: 11px; }
.slip-row strong { color: #fff; }
.stake-label { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 6px; font-size: 12px; font-weight: 700; }
.stake-label span { color: var(--muted); font-size: 10px; font-weight: 400; }
.stake-input { width: 100%; height: 39px; padding: 0 11px; background: #242725; border: 1px solid #414843; border-radius: 6px; color: white; outline: none; }
.stake-input:focus { border-color: var(--green); }
.potential-row { margin-top: 5px; }
.potential-row strong { color: var(--green); font-size: 14px; }
.place-bet-button { width: 100%; margin: 8px 0; border-radius: 6px; }
.place-bet-button:disabled { opacity: .5; cursor: wait; }
.slip-disclaimer { margin: 4px 0 0; color: #909792; font-size: 10px; line-height: 1.5; text-align: center; }
.slip-signin { display: grid; gap: 10px; padding: 18px 0 5px; color: #c7ccc9; font-size: 12px; text-align: center; }
.slip-signin .button { justify-self: center; }

.mobile-nav { display: none; }
.auth-dialog { width: min(420px, calc(100vw - 32px)); padding: 27px; background: #1b1f1d; border: 1px solid #414842; border-radius: 15px; color: var(--text); box-shadow: 0 20px 80px #000b; }
.auth-dialog::backdrop { background: #040806bd; backdrop-filter: blur(4px); }
.auth-dialog > form:first-child { display: contents; }
.dialog-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: #d5dad7; cursor: pointer; font-size: 25px; }
.dialog-brand { margin-bottom: 20px; font-size: 24px; }
.auth-dialog h2 { margin: 0 0 5px; font-size: 21px; }
.dialog-subtitle { margin: 0; color: var(--muted); font-size: 12px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 16px; padding: 3px; background: #111412; border-radius: 9px; }
.auth-switch button { min-height: 34px; border: 0; border-radius: 7px; background: transparent; color: #bdc3bf; cursor: pointer; font-size: 12px; font-weight: 700; }
.auth-switch button.active { background: #2b312e; color: var(--green); }
#auth-form { display: grid; gap: 8px; }
#auth-form label { margin-top: 7px; font-size: 11px; font-weight: 600; }
#auth-form input { width: 100%; height: 41px; padding: 0 12px; background: #101311; border: 1px solid #383f3b; border-radius: 6px; color: white; outline: none; }
#auth-form input:focus { border-color: #139b70; }
.form-error { min-height: 14px; margin: 3px 0 0; color: #ff9999; font-size: 11px; }
.form-submit { height: 40px; margin-top: 3px; border-radius: 6px; }
.dialog-legal { margin: 15px 0 0; color: #969d98; font-size: 10px; line-height: 1.5; text-align: center; }
.toast { position: fixed; bottom: 22px; left: 50%; z-index: 20; max-width: calc(100vw - 24px); padding: 11px 18px; border: 1px solid #3a5247; border-radius: 8px; background: #163328; color: #e5f6ec; box-shadow: 0 7px 24px #0007; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; font-size: 12px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #492625; border-color: #8e4842; }

.admin-body { min-height: 100vh; background: #111513; }
.admin-topbar { position: static; }
.admin-page-title { margin-right: auto; margin-left: 20px; color: #dce6e0; font-size: 14px; font-weight: 700; }
.admin-main { width: min(1040px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 65px; }
.admin-welcome { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 23px; }
.admin-welcome h1, .setup-card h1 { margin: 5px 0 7px; font-family: 'Space Grotesk', sans-serif; font-size: 28px; letter-spacing: -.7px; }
.admin-welcome p, .admin-card-heading p, .setup-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.demo-admin-badge { padding: 8px 11px; border: 1px solid #186747; border-radius: 20px; background: #163328; color: #93ebbd; font-size: 9px; font-weight: 800; letter-spacing: .8px; white-space: nowrap; }
.admin-alert { display: none; margin: 10px 0; padding: 12px; border: 1px solid #8e4842; border-radius: 8px; background: #492625; color: #ffe0dc; font-size: 12px; line-height: 1.6; }
.admin-alert.visible { display: block; }
.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-stat { display: grid; gap: 9px; padding: 16px; background: #1b201d; border: 1px solid #2c3630; border-radius: 10px; }
.admin-stat span { color: #aeb9b2; font-size: 11px; }
.admin-stat strong { color: #e8f1eb; font-family: 'Space Grotesk', sans-serif; font-size: 26px; }
.admin-card { margin: 14px 0; padding: 20px; background: #191e1b; border: 1px solid #2d3731; border-radius: 11px; }
.admin-card-heading { margin-bottom: 15px; }
.admin-card-heading h2 { margin: 4px 0 0; font-size: 16px; }
.admin-card-heading p { margin-top: 5px; }
.admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
.admin-form label, .setup-card label { display: grid; gap: 7px; color: #d8dfda; font-size: 11px; font-weight: 600; }
.admin-form input, .admin-form select, .setup-card input { width: 100%; min-width: 0; height: 39px; padding: 0 10px; background: #101512; border: 1px solid #3c4840; border-radius: 6px; color: #eff4f0; outline: none; }
.admin-form input:focus, .admin-form select:focus, .setup-card input:focus { border-color: var(--green); }
.admin-form .button { min-height: 39px; justify-self: start; border-radius: 6px; }
.compact-form { grid-template-columns: minmax(180px, 1fr) auto; }
.admin-chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.admin-chip { padding: 6px 10px; border: 1px solid #34443a; border-radius: 16px; background: #202824; color: #c6d2ca; font-size: 10px; }
.game-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-game-list { display: grid; gap: 9px; }
.admin-game-row { display: grid; grid-template-columns: minmax(145px, 1.2fr) minmax(110px, .9fr) minmax(115px, .95fr) minmax(260px, 1.8fr); align-items: center; gap: 12px; padding: 12px; background: #202522; border: 1px solid #333c36; border-radius: 8px; }
.admin-game-match { min-width: 0; font-size: 11px; font-weight: 700; line-height: 1.5; }
.admin-game-league, .admin-game-time { display: block; color: #aeb8b1; font-size: 10px; font-weight: 400; }
.admin-game-status { width: max-content; padding: 5px 8px; border-radius: 12px; background: #303632; color: #dce3de; font-size: 10px; text-transform: capitalize; }
.admin-game-status.live { background: #432c28; color: #ffaca1; }
.admin-game-status.finished { background: #183b2c; color: #9ce0b8; }
.admin-game-status.cancelled { background: #353638; color: #c0c2c1; }
.admin-game-forms { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; }
.admin-game-forms label { display: grid; gap: 4px; color: #b5beb8; font-size: 9px; }
.admin-game-forms input, .admin-game-forms select { width: 66px; height: 32px; padding: 0 5px; background: #121613; border: 1px solid #3a433d; border-radius: 5px; color: #eff4f0; font-size: 10px; }
.admin-game-forms select { width: 88px; }
.admin-game-forms button { min-height: 32px; padding: 0 9px; border-radius: 5px; font-size: 10px; }
.admin-bets-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-bet-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #35443a; border-radius: 16px; background: #202824; color: #c6d2ca; font-size: 10px; white-space: nowrap; }
.admin-bet-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-bet-search { display: grid; width: min(310px, 100%); gap: 6px; color: #c7d0ca; font-size: 10px; font-weight: 600; }
.admin-bet-search input { width: 100%; height: 36px; padding: 0 10px; background: #101512; border: 1px solid #3c4840; border-radius: 6px; color: #eff4f0; outline: none; }
.admin-bet-search input:focus { border-color: var(--green); }
.admin-bet-filters { display: flex; gap: 5px; overflow-x: auto; }
.admin-bet-filters button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 15px; background: #232a25; color: #c2cbc5; cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.admin-bet-filters button.active { background: #e8eee9; color: #141915; }
.admin-bet-list { display: grid; gap: 8px; }
.admin-bet-row { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(205px, 1.15fr) 75px minmax(230px, 1.5fr) minmax(100px, .75fr); align-items: start; gap: 11px; padding: 12px; background: #202522; border: 1px solid #333c36; border-radius: 8px; }
.admin-bet-user, .admin-bet-info { display: grid; min-width: 0; gap: 4px; }
.admin-bet-user strong, .admin-bet-info strong { overflow-wrap: anywhere; color: #eef2ef; font-size: 10px; }
.admin-bet-user > span, .admin-bet-info > span { color: #aeb8b1; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-bet-row > .admin-game-status { font-size: 9px; }
.admin-bet-selections { display: grid; min-width: 0; gap: 8px; }
.admin-bet-selection { display: flex; justify-content: space-between; gap: 8px; color: #dce3de; font-size: 9px; line-height: 1.45; }
.admin-bet-selection > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.admin-bet-selection > span:last-child { flex: 0 0 auto; color: #b7c1b9; text-align: right; }
.admin-bet-selection small { display: block; color: #9da79f; font-size: 8px; }
.admin-bet-selection strong { color: var(--yellow); }
.admin-bet-payout { color: #b7e7c6; font-size: 10px; font-weight: 700; }
.admin-bet-missing, .admin-bet-limit { color: #9fa9a2; font-size: 10px; }
.admin-bet-limit { margin: 11px 0 0; }
.admin-footer { color: #909992; font-size: 10px; line-height: 1.6; text-align: center; }
.setup-page { min-height: 100vh; background: radial-gradient(ellipse at 50% -12%, #174634 0, #111513 55%); }
.setup-card { width: min(440px, calc(100% - 32px)); margin: 7vh auto; padding: 27px; background: #191e1b; border: 1px solid #344039; border-radius: 14px; }
.setup-card h1 { font-size: 23px; line-height: 1.25; }
.setup-card > p { margin-bottom: 20px; }
.setup-card form { display: grid; gap: 8px; }
.setup-card form label { margin-top: 8px; }
.setup-card .form-error { min-height: 14px; margin: 2px 0 0; }
.setup-admin-link { display: block; margin-top: 18px; color: #a8e6c4; font-size: 11px; line-height: 1.6; text-align: center; }
.dashboard-body { min-height: 100vh; background: #111513; }
.dashboard-topbar { position: sticky; }
.dashboard-shortcut { padding: 8px 10px; color: #dce8e0; font-size: 12px; font-weight: 700; }
.dashboard-top-nav { margin-left: 55px; margin-right: auto; }
.dashboard-top-nav a:nth-child(2) { display: flex; }
.dashboard-main { width: min(1060px, calc(100% - 36px)); margin: 0 auto; padding: 32px 0 76px; }
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.dashboard-welcome h1 { margin: 5px 0 6px; font-family: 'Space Grotesk', sans-serif; font-size: 26px; letter-spacing: -.6px; }
.dashboard-welcome > div > p { margin: 0; color: var(--muted); font-size: 12px; }
.dashboard-welcome > .button { flex: 0 0 auto; }
.wallet-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.wallet-card { min-height: 161px; display: flex; flex-direction: column; padding: 18px; border: 1px solid #314339; border-radius: 13px; background: linear-gradient(135deg, #182820, #1b221e); }
.earnings-wallet-card { border-color: #355442; background: linear-gradient(135deg, #18392c, #192c23); }
.wallet-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-icon { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #2e5743; border-radius: 9px; color: var(--green); font-size: 17px; }
.wallet-card-type { color: #b1c0b7; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.wallet-card > p { margin: 15px 0 3px; color: #c9d2cc; font-size: 11px; font-weight: 600; }
.wallet-amount { font-family: 'Space Grotesk', sans-serif; font-size: 26px; letter-spacing: -.4px; }
.wallet-card-foot { margin-top: auto; padding-top: 7px; color: #a5b0a9; font-size: 10px; }
.wallet-actions { display: grid; grid-template-columns: 132px 132px minmax(0, 1fr); align-items: center; gap: 10px; margin: 12px 0 18px; padding: 12px; background: #191e1b; border: 1px solid #303934; border-radius: 10px; }
.wallet-action { display: grid; grid-template-columns: 27px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 8px 10px; border: 1px solid #39433d; border-radius: 8px; background: #232a25; color: #d5ddd7; text-align: left; }
.wallet-action:disabled { opacity: .65; cursor: not-allowed; }
.wallet-action-icon { grid-row: 1 / 3; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #1c4432; color: #8be6ac; font-size: 16px; }
.wallet-action > span:nth-child(2) { font-size: 11px; font-weight: 700; }
.wallet-action small { margin-top: 2px; color: #a5ada8; font-size: 9px; }
.payments-notice { margin: 0; color: #c5cec8; font-size: 10px; line-height: 1.55; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.dashboard-stat { display: grid; gap: 8px; padding: 14px; background: #1a1e1b; border: 1px solid #2e3530; border-radius: 9px; }
.dashboard-stat span { color: #aeb7b1; font-size: 10px; }
.dashboard-stat strong { font-family: 'Space Grotesk', sans-serif; font-size: 20px; }
.dashboard-section { margin-top: 14px; padding: 18px; background: #191e1b; border: 1px solid #2d3731; border-radius: 11px; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dashboard-section-heading h2 { margin: 4px 0 0; font-size: 17px; }
.dashboard-section-heading > a { color: #98ebbd; font-size: 11px; font-weight: 700; }
.bet-filters { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.bet-filters button { min-height: 31px; padding: 0 12px; border: 0; border-radius: 17px; background: transparent; color: #bec6c0; cursor: pointer; font-size: 10px; font-weight: 600; white-space: nowrap; }
.bet-filters button.active { background: #e9efeb; color: #141915; }
.dashboard-bets-list, .wallet-activity-list { display: grid; gap: 8px; }
.dashboard-bet-card { padding: 12px; border: 1px solid #323a34; border-radius: 9px; background: #202522; }
.dashboard-bet-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.dashboard-bet-top > div { display: grid; gap: 4px; }
.dashboard-bet-type { font-size: 11px; font-weight: 700; }
.dashboard-bet-date { color: #9fa9a2; font-size: 9px; }
.dashboard-bet-card .bet-status { flex: 0 0 auto; padding: 4px 8px; border-radius: 12px; background: #333b35; font-size: 9px; }
.dashboard-bet-card .status-won { background: #193d2c; }
.dashboard-bet-card .status-lost { background: #432b29; }
.dashboard-bet-card .status-pending { background: #443b20; }
.dashboard-picks { display: grid; gap: 7px; margin: 10px 0; padding: 9px 0; border-top: 1px solid #343b36; border-bottom: 1px solid #343b36; }
.dashboard-pick { display: flex; justify-content: space-between; gap: 10px; color: #e2e7e3; font-size: 10px; }
.dashboard-pick > span:last-child { flex: 0 0 auto; color: #b6c0b9; }
.dashboard-pick strong { color: var(--yellow); }
.pick-vs { color: #858e88; }
.dashboard-bet-totals { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #aeb8b1; font-size: 9px; }
.dashboard-bet-totals strong { color: #f2f4f2; }
.dashboard-empty { display: grid; justify-items: center; gap: 8px; padding: 24px 12px; color: #a9b2ac; text-align: center; }
.dashboard-empty > span { color: #90c8a6; font-size: 22px; }
.dashboard-empty p { margin: 0; font-size: 11px; }
.dashboard-empty a, .dashboard-create-account { color: #9aebbc; font-size: 11px; font-weight: 700; }
.wallet-activity { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #303732; }
.wallet-activity:last-child { border-bottom: 0; }
.activity-icon { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #352e28; color: #ffbf88; font-size: 16px; }
.activity-icon.activity-credit { background: #1b3b2a; color: #92e4ac; }
.activity-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.activity-copy > strong { font-size: 10px; }
.activity-copy > small { overflow: hidden; color: #a2aca5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-amount { flex: 0 0 auto; font-size: 10px; }
.activity-amount.positive { color: #97e5b0; }
.activity-footnote { margin: 10px 0 0; color: #9ea8a1; font-size: 9px; line-height: 1.6; }
.dashboard-login { width: min(400px, 100%); margin: 55px auto; padding: 28px 20px; background: #1a1f1c; border: 1px solid #323b35; border-radius: 13px; text-align: center; }
.dashboard-login-icon { display: grid; width: 43px; height: 43px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: #193b2b; color: var(--green); font-size: 22px; }
.dashboard-login h2 { margin: 0 0 8px; font-size: 17px; }
.dashboard-login > p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.dashboard-login .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 7px; }
.dashboard-create-account { display: block; margin-top: 15px; }
.dashboard-error { padding: 14px; border: 1px solid #8e4842; border-radius: 8px; background: #492625; color: #ffe0dc; font-size: 12px; line-height: 1.6; }
.dashboard-mobile-nav { display: none; }

@media (max-width: 1080px) {
  .page-layout { grid-template-columns: 180px minmax(350px, 1fr) 280px; gap: 14px; padding: 0 14px; }
  .match-content { grid-template-columns: minmax(104px, 1fr) 25px minmax(215px, 1.1fr); gap: 6px; padding: 10px 8px; }
  .odds-button { font-size: 9px; }
}

@media (max-width: 800px) {
  .topbar { height: 62px; gap: 9px; padding: 0 15px; }
  .brand { font-size: 25px; }
  .top-nav { gap: 17px; }
  .top-nav a { font-size: 11px; }
  .top-nav a:nth-child(3), .admin-shortcut, .dashboard-shortcut { display: none; }
  .account-actions { gap: 6px; }
  .account-actions .button { min-height: 32px; padding: 0 12px; font-size: 11px; }
  .balance-pill { max-width: 95px; overflow: hidden; padding: 7px 8px; font-size: 10px; text-overflow: ellipsis; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 12px; }
  .left-sidebar, .bet-slip { display: none; }
  .bet-slip.mobile-open { display: block; position: fixed; right: 10px; bottom: 69px; left: 10px; z-index: 12; max-height: min(65vh, 540px); margin: 0; box-shadow: 0 10px 40px #000b; }
  .bet-slip.mobile-open .close-mobile-slip { display: inline-block; }
  .main-content { padding-top: 11px; }
  .sports-strip { padding-top: 11px; }
  .sport-tile { min-width: 68px; }
  .promo-card { min-height: 174px; padding: 18px; }
  .promo-ball { right: 12px; font-size: 125px; opacity: .56; }
  .promo-orbit { right: -125px; }
  .promo-card p { max-width: 250px; line-height: 1.5; }
  .mobile-nav { display: flex; position: fixed; right: 0; bottom: 0; left: 0; z-index: 9; min-height: 59px; align-items: center; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); background: #1a1c1b; border-top: 1px solid #343a36; }
  .mobile-nav-item { display: grid; min-width: 64px; justify-items: center; gap: 2px; color: #b2b9b5; font-size: 9px; font-weight: 600; }
  .mobile-nav-item span { font-size: 19px; line-height: 1.1; }
  .mobile-nav-item.current { color: var(--green); }
  .mobile-nav-item b { min-width: 15px; padding: 1px 4px; position: absolute; margin: -2px 0 0 21px; border-radius: 9px; background: var(--yellow); color: #111; font-size: 9px; text-align: center; }
  .site-footer { margin-bottom: 15px; }
  .section-heading h2 { font-size: 15px; }
  .admin-main { width: min(100% - 24px, 700px); padding-top: 23px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .game-form { grid-template-columns: repeat(2, minmax(0, 1fr));     .admin-bet-toolbar { align-items: stretch; flex-direction: column; }
    .admin-bet-search { width: 100%; }
    .admin-bet-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
    .admin-bet-info { grid-column: 1 / -1; }
    .admin-bet-selections { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid #343b36; }
    .admin-bet-payout { grid-column: 1 / -1; }
  }
  .admin-game-row { grid-template-columns: 1fr 1fr;     .admin-bets-heading { align-items: flex-start; flex-direction: column; }
    .admin-bet-selection { font-size: 9px; }
  }
  .admin-game-forms { grid-column: 1 / -1; }
  .admin-card { padding: 15px; }
  .dashboard-main { width: min(100% - 24px, 700px); padding-top: 23px; }
  .dashboard-top-nav { margin-left: 10px; gap: 14px; }
  .dashboard-top-nav a { font-size: 10px; }
  .dashboard-main { padding-bottom: 88px; }
  .dashboard-mobile-nav { display: flex; }
  .dashboard-welcome > .button { display: none; }
  .wallet-actions { grid-template-columns: 1fr 1fr; }
  .payments-notice { grid-column: 1 / -1; padding: 2px 3px; }
  .dashboard-section { padding: 14px; }
}

@media (max-width: 450px) {
  body { font-size: 13px; }
  .topbar { padding: 0 10px; }
  .top-nav { gap: 11px; }
  .top-nav a { font-size: 10px; }
  .account-actions .button { padding: 0 9px; }
  .account-actions #logout-button { display: none; }
  .balance-pill { max-width: 78px; font-size: 9px; }
  .page-layout { padding: 0 8px; }
  .search-box { height: 39px; }
  .promo-card { min-height: 160px; padding: 16px 14px; }
  .promo-card h1 { font-size: 23px; }
  .promo-card p { max-width: 225px; font-size: 11px; }
  .promo-ball { top: 2px; right: -12px; font-size: 97px; }
  .promo-orbit { top: -100px; right: -145px; }
  .demo-tag { right: 10px; bottom: 9px; font-size: 8px; }
  .category-tabs { gap: 4px; padding: 15px 0 12px; }
  .category-tab { padding: 0 12px; }
  .match-content { grid-template-columns: minmax(105px, 1fr) 24px minmax(129px, 1.13fr); gap: 4px; padding: 9px 6px; }
  .team-name { font-size: 10px; }
  .team-symbol { width: 16px; font-size: 13px; }
  .odds-label { gap: 2px; font-size: 8px; }
  .odds-buttons { gap: 3px; }
  .odds-button { min-height: 43px; flex-direction: column; gap: 2px; padding: 5px 2px; font-size: 8px; }
  .odds-button strong { font-size: 10px; }
  .match-meta { padding: 0 9px; font-size: 10px; }
  .section-date { font-size: 10px; }
  .my-bet-detail { font-size: 10px; }
  .admin-topbar { padding: 0 10px; }
  .admin-page-title { margin-left: 7px; font-size: 12px; }
  .admin-topbar .button { min-height: 31px; padding: 0 10px; font-size: 10px; }
  .admin-topbar .admin-shortcut { display: none; }
  .admin-welcome { align-items: flex-start; flex-direction: column; }
  .admin-welcome h1 { font-size: 24px; }
  .admin-form, .compact-form { grid-template-columns: 1fr; }
  .game-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-form .button { grid-column: 1 / -1; }
  .admin-game-row { gap: 8px; padding: 9px; }
  .admin-game-forms { gap: 5px; }
  .dashboard-topbar { padding: 0 10px; }
  .dashboard-shortcut { display: none; }
  .dashboard-top-nav { gap: 10px; margin-left: 5px; }
  .dashboard-top-nav a { font-size: 9px; }
  .dashboard-topbar .balance-pill { max-width: 91px; }
  .dashboard-welcome h1 { font-size: 23px; }
  .dashboard-welcome > div > p { max-width: 300px; line-height: 1.5; }
  .wallet-cards { grid-template-columns: 1fr; gap: 9px; }
  .wallet-card { min-height: 145px; padding: 14px; }
  .wallet-amount { font-size: 24px; }
  .wallet-actions { gap: 7px; margin-top: 9px; padding: 9px; }
  .wallet-action { padding: 8px 7px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dashboard-stat { padding: 11px; }
  .dashboard-stat strong { font-size: 18px; }
  .dashboard-section-heading h2 { font-size: 15px; }
  .dashboard-section-heading > a { font-size: 9px; }
  .dashboard-pick { align-items: flex-start; flex-direction: column; gap: 4px; }
  .dashboard-bet-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-bet-totals span:last-child { grid-column: 1 / -1; }
  .wallet-activity { gap: 8px; }
  .activity-amount { font-size: 9px; }
}
