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

:root {
  --bg: #0d0d12; --surface: #16161f; --surface2: #1e1e2a; --border: #2a2a3a;
  --text: #e8e8f0; --muted: #8888a0; --gold: #f5c842; --gold2: #e0a800;
  --green: #4ade80; --red: #f87171; --blue: #60a5fa; --purple: #a78bfa;
  --p4-accent: #a78bfa;
}
* { 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 { background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 8px; min-height: 60px; }
.ad-placeholder { background: var(--surface2); border: 1px dashed var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-align: center; }
.ad-leaderboard { width: 728px; height: 90px; max-width: 100%; }
.ad-mobile-banner { width: 320px; height: 50px; display: none; }
.ad-inline { margin: 28px 0; display: flex; justify-content: center; }
.ad-inline .ad-placeholder { width: 100%; max-width: 728px; height: 90px; }
@media(max-width:768px) { .ad-leaderboard{display:none;} .ad-mobile-banner{display:block;} .ad-inline .ad-placeholder{max-width:320px;height:50px;} }
header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 24px; }
.p4-back { font-family: 'DM Sans', sans-serif; display: inline-block; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; margin-bottom: 10px; transition: color .2s; }
.p4-back:hover { color: var(--gold); }
.tabs { display: flex; gap: 4px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-btn { background: none; border: none; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; padding: 14px 18px; cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--p4-accent); border-bottom-color: var(--p4-accent); }
.layout { display: grid; grid-template-columns: 1fr 160px; gap: 0; max-width: 1200px; margin: 0 auto; padding: 32px 20px; }
@media(max-width:900px) { .layout{grid-template-columns:1fr;} .ad-sidebar-wrap{display:none;} }
.main-content { padding-right: 24px; }
.ad-sidebar-wrap .ad-placeholder { width: 160px; height: 600px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.play-header { margin-bottom: 24px; }
.play-header h2 { font-size: 22px; font-weight: 700; }
.play-header p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.quick-pick-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.qp-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.digit-display { display: flex; gap: 12px; margin-bottom: 20px; min-height: 70px; align-items: center; }
.digit-box { width: 64px; height: 64px; border-radius: 12px; background: var(--surface2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; transition: all .3s; }
.digit-box.revealed { background: linear-gradient(135deg, var(--p4-accent), #c2410c); border-color: var(--p4-accent); color: #fff; box-shadow: 0 0 16px rgba(251,146,60,.3); animation: pop .3s ease; }
@keyframes pop { 0%{transform:scale(.5);opacity:0} 70%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary { background: var(--p4-accent); color: #000; border: none; border-radius: 8px; padding: 12px 24px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .1s; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 12px 20px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.number-inputs { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.number-inputs input { width: 64px; height: 64px; border-radius: 12px; background: var(--surface2); border: 2px solid var(--border); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 700; text-align: center; outline: none; transition: border-color .2s; }
.number-inputs input:focus { border-color: var(--p4-accent); }
.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 16px; display: none; }
.result-card.visible { display: block; }
.result-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.match-info { font-size: 20px; font-weight: 700; }
.match-info.win { color: var(--gold); }
.match-info.lose { color: var(--muted); }
.prize-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prize-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.prize-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.prize-amount { color: var(--gold); font-weight: 700; }
.freq-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.freq-controls select { background: var(--surface); border: 1px solid var(--border); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13px; padding: 8px 12px; border-radius: 8px; outline: none; }
.freq-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.freq-ball { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; }
.freq-ball .num { font-size: 22px; font-weight: 700; }
.freq-ball .cnt { font-size: 11px; color: var(--muted); margin-top: 2px; }
.freq-bar { height: 4px; border-radius: 2px; background: var(--surface2); margin-top: 6px; overflow: hidden; }
.freq-bar-fill { height: 100%; background: var(--p4-accent); border-radius: 2px; }
.freq-ball.hot .num { color: var(--red); }
.freq-ball.cold .num { color: var(--blue); }
.history-table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.history-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.history-table tr:hover td { background: var(--surface2); }
.h-digit { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--surface2); font-size: 16px; font-weight: 700; margin: 0 3px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--p4-accent); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hot-list, .cold-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag-ball { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.tag-ball.hot { background: rgba(248,113,113,.15); color: var(--red); border: 2px solid var(--red); }
.tag-ball.cold { background: rgba(96,165,250,.15); color: var(--blue); border: 2px solid var(--blue); }
footer { text-align: center; padding: 32px 20px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
footer a { color: var(--gold); text-decoration: none; }
