/* Illinois Lucky Day Lotto — ldl-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; --accent: #4ade80;
}
* { 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); letter-spacing: 0.05em; }
.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; letter-spacing: 0.1em; }
.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: 26px; font-weight: 700; color: var(--green); }

.ldl-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; }
.ldl-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; }
.draw-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.draw-sel-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; transition: all .2s; }
.draw-sel-btn.active { border-color: var(--green); color: var(--green); background: rgba(74,222,128,.08); }
.number-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.num-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface2); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; }
.num-btn:hover { border-color: var(--green); color: var(--green); }
.num-btn.selected { background: var(--green); border-color: var(--green); color: #0f0f13; }
.selected-display { display: flex; gap: 10px; flex-wrap: wrap; min-height: 52px; background: var(--surface2); border-radius: 8px; padding: 12px; align-items: center; margin-bottom: 16px; }
.sel-ball { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #0f0f13; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; animation: popIn .2s ease; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary { padding: 12px 24px; background: var(--green); 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: #22c55e; }
.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; }
.drawn-balls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.drawn-ball { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: all .4s; }
.drawn-ball.match { background: var(--green); border-color: var(--green); color: #0f0f13; }
.prize-msg { font-size: 18px; font-weight: 700; margin-top: 10px; }
.prize-msg.winner { color: var(--green); }
.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(--green); border-radius: 3px; }
.hot { color: #f87171; } .cold { color: var(--blue); }
.history-entry { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.draw-date { font-size: 12px; color: var(--muted); width: 90px; }
.history-balls { display: flex; gap: 7px; flex-wrap: wrap; }
.h-ball { width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); border: 1.5px solid var(--border); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.h-jackpot { margin-left: auto; font-size: 13px; color: var(--green); 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(--green); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .sidebar-col { display: none; } }
