/* Illinois Pick 4 — p4-styles.css */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0f0f13; --surface: #1a1a24; --surface2: #22222f; --border: #2a2a3a;
  --gold: #f5c842; --gold-dim: #c9a227; --text: #e8e8f0; --muted: #7a7a9a;
  --green: #4ade80; --red: #f87171; --blue: #60a5fa; --pink: #f472b6; --accent: #60a5fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; min-height: 100vh; }
.ad-banner-top { background: var(--surface); border-bottom: 1px solid var(--border); text-align: center; padding: 6px 8px; font-size: 11px; color: var(--muted); }
.ad-leaderboard { width: 728px; max-width: 100%; height: 90px; background: linear-gradient(135deg,#1e1e2e,#2a2a3a); border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto; color: var(--muted); font-size: 12px; border-radius: 4px; }
.ad-rect { width: 300px; height: 250px; background: linear-gradient(135deg,#1e1e2e,#2a2a3a); border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; border-radius: 6px; }
.ad-sidebar-rail { width: 160px; height: 600px; background: linear-gradient(135deg,#1e1e2e,#2a2a3a); border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; border-radius: 6px; writing-mode: vertical-rl; }
.ad-in-content { width: 100%; max-width: 468px; height: 60px; background: linear-gradient(135deg,#1e1e2e,#2a2a3a); border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; border-radius: 4px; margin: 20px auto; }
.ad-top-wrap { text-align: center; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
header { background: linear-gradient(180deg,#18181f 0%,var(--bg) 100%); border-bottom: 1px solid var(--border); padding: 18px 24px; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.header-inner h1 { font-size: 22px; font-weight: 700; }
.header-inner .sub { font-size: 13px; color: var(--muted); }
.jackpot-display { text-align: right; }
.jackpot-display .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.jackpot-display .amount { font-size: 22px; font-weight: 700; color: var(--pink); }

.p4-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13px; font-family: 'DM Sans', sans-serif; transition: color .2s; }
.p4-back:hover { color: var(--gold); }

.page-layout { display: flex; gap: 28px; align-items: flex-start; max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.content-col { flex: 1; min-width: 0; }
.sidebar-col { width: 180px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 5px; }
.tab-btn { flex: 1; padding: 9px 12px; border: none; border-radius: 7px; background: transparent; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.tab-btn.active { background: var(--surface2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.play-area { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.play-area h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* Pick 4 digit selector */
.digit-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.digit-col { text-align: center; }
.digit-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.digit-btns { display: flex; flex-direction: column; gap: 4px; }
.digit-btn { width: 48px; height: 36px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--surface2); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s; }
.digit-btn:hover { border-color: var(--pink); color: var(--pink); }
.digit-btn.selected { background: var(--pink); border-color: var(--pink); color: #0f0f13; }
.bet-type-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bet-type-btn { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; }
.bet-type-btn.active { border-color: var(--pink); color: var(--pink); background: rgba(96,165,250,.08); }
.wager-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.wager-row label { font-size: 13px; color: var(--muted); }
.wager-sel { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: 'DM Sans', sans-serif; padding: 6px 10px; font-size: 13px; }
.drawn-display { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.drawn-digit { width: 52px; height: 64px; background: var(--surface2); border: 2px solid var(--border); border-radius: 8px; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.drawn-digit.match { background: var(--pink); border-color: var(--pink); color: #0f0f13; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary { padding: 12px 24px; background: var(--pink); color: #0f0f13; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: #3b82f6; }
.btn-secondary { padding: 12px 20px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.result-box { background: var(--surface2); border-radius: 10px; padding: 20px; border: 1px solid var(--border); margin-top: 16px; display: none; }
.result-box.show { display: block; }
.result-title { font-size: 13px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .07em; }
.prize-msg { font-size: 18px; font-weight: 700; margin-top: 10px; }
.prize-msg.winner { color: var(--pink); }
.prize-msg.loser { color: var(--muted); }
.freq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.freq-table th { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); }
.freq-table td { padding: 9px 12px; border-bottom: 1px solid rgba(42,42,58,.5); }
.freq-table tr:hover td { background: var(--surface2); }
.freq-bar-wrap { background: var(--border); border-radius: 3px; height: 6px; width: 120px; }
.freq-bar { height: 6px; background: var(--pink); border-radius: 3px; }
.hot { color: #f87171; } .cold { color: var(--pink); }
.history-entry { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.draw-date { font-size: 12px; color: var(--muted); width: 90px; }
.history-digits { display: flex; gap: 8px; }
.h-digit { width: 36px; height: 44px; background: var(--surface2); border: 1.5px solid var(--border); border-radius: 6px; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.h-prize { margin-left: auto; font-size: 13px; color: var(--pink); font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--pink); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.prize-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.prize-table th { text-align: left; padding: 8px 10px; color: var(--muted); border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; }
.prize-table td { padding: 8px 10px; border-bottom: 1px solid rgba(42,42,58,.4); }
@media (max-width: 900px) { .sidebar-col { display: none; } }
