/* Virginia Cash 5 — c5-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;
  --c5-accent: #22d3a5;
}

* { 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 slots */
.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; }
.ad-sidebar { display: flex; flex-direction: column; gap: 16px; }
@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; }
.c5-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; }
.c5-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(--c5-accent); border-bottom-color: var(--c5-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 { padding-top: 4px; }
.ad-sidebar-wrap .ad-placeholder { width: 160px; height: 600px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Play tab */
.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; }
.balls-display { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; min-height: 56px; align-items: center; }
.ball { width: 52px; height: 52px; border-radius: 50%; background: var(--surface2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; transition: all .3s; }
.ball.revealed { background: linear-gradient(135deg, var(--c5-accent), #059669); border-color: var(--c5-accent); color: #fff; box-shadow: 0 0 16px rgba(34,211,165,.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(--c5-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-primary:active { transform: translateY(0); }
.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); }

.manual-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.number-inputs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.number-inputs input { width: 58px; height: 58px; border-radius: 50%; background: var(--surface2); border: 2px solid var(--border); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; text-align: center; outline: none; transition: border-color .2s; }
.number-inputs input:focus { border-color: var(--c5-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); }
.drawn-balls { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.drawn-ball { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.drawn-ball.matched { background: var(--gold); color: #000; }
.drawn-ball.unmatched { background: var(--surface2); border: 2px solid var(--border); color: var(--muted); }
.prize-table { width: 100%; border-collapse: collapse; margin-top: 16px; 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-table tr.highlight td { background: rgba(34,211,165,.07); }
.prize-amount { color: var(--gold); font-weight: 700; }

/* Frequency tab */
.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; cursor: pointer; }
.freq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.freq-ball { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; cursor: pointer; transition: border-color .2s; }
.freq-ball:hover { border-color: var(--c5-accent); }
.freq-ball .num { font-size: 18px; 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(--c5-accent); border-radius: 2px; transition: width .4s; }
.freq-ball.hot .num { color: var(--red); }
.freq-ball.warm .num { color: var(--gold); }
.freq-ball.cold .num { color: var(--blue); }

/* History tab */
.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-ball { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface2); font-size: 12px; font-weight: 700; margin: 0 2px; }
.h-ball.highlight { background: rgba(34,211,165,.15); color: var(--c5-accent); }

/* Stats tab */
.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(--c5-accent); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.overdue-list { display: flex; gap: 8px; flex-wrap: wrap; }
.overdue-ball { background: var(--surface); border: 2px solid var(--red); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--red); }
.hot-list, .cold-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag-ball { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; 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; }
