/* ═══════════════════════════════════════════════════════
   DrawInsights v2 — Premium Canadian Lottery Platform
   Design: Refined data luxury, editorial precision
   Font: Outfit (body) + Fraunces (display)
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&display=swap');

:root {
    --bg-deep:       #050910;
    --bg-primary:    #0a0f1c;
    --bg-secondary:  #0e1525;
    --bg-card:       #141e34;
    --bg-card-hover: #192540;
    --bg-elevated:   #1c2a4a;
    --accent:        #4da6ff;
    --accent-soft:   #6fb8ff;
    --accent-glow:   rgba(77,166,255,0.12);
    --accent-glow-s: rgba(77,166,255,0.3);
    --gold:          #f0c850;
    --gold-soft:     #f5d87a;
    --gold-glow:     rgba(240,200,80,0.12);
    --green:         #34d9a8;
    --red:           #ff7070;
    --orange:        #ff9f43;
    --text-primary:  #eaf0fa;
    --text-secondary:#c4d0e3;
    --text-muted:    #93a4bc;
    --text-dim:      #5a7090;
    --border:        rgba(255,255,255,0.07);
    --border-card:   rgba(255,255,255,0.12);
    --border-hover:  rgba(77,166,255,0.35);
    --radius:        12px;
    --radius-sm:     7px;
    --radius-lg:     18px;
    --radius-xl:     24px;
    --font-body:     'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display:  'Fraunces', Georgia, serif;
    --max-w:         1140px;
    --header-h:      54px;
    --bottom-bar-h:  52px;
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body); background: var(--bg-deep);
    color: var(--text-primary); line-height: 1.7; min-height: 100vh;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .25s var(--ease-out); }
a:hover { color: var(--accent-soft); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; outline: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Atmosphere */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 900px 700px at 15% 5%, rgba(59,158,255,0.035), transparent 70%),
        radial-gradient(ellipse 600px 500px at 85% 85%, rgba(240,200,80,0.02), transparent 70%);
}
body::after {
    content: ''; position: fixed; inset: 0; z-index: -1; opacity: .025; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ── HEADER ──────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(5,9,16,0.88);
    backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0; font-weight: 700; font-size: 1.15rem; color: var(--text-primary); }
/* Logo ball icon */
.logo-ball { margin-right: 8px; flex-shrink: 0; }

/* Ball pulse — subtle gold glow on header icon */
@media (prefers-reduced-motion: no-preference) {
    .site-header .logo-ball {
        animation: logoBallPulse 5s infinite;
        transform-origin: center;
    }
}
@keyframes logoBallPulse {
    0%, 70%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,216,74,0)); }
    78%           { transform: scale(1.04); filter: drop-shadow(0 0 8px rgba(255,216,74,0.35)); }
    86%           { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,216,74,0)); }
}
@media (prefers-reduced-motion: reduce) {
    .site-header .logo-ball { animation: none; }
}

/* Wordmark — static */
.logo-wordmark { display: inline; }
.logo-draw { color: var(--gold); font-weight: 700; }
.logo-insights { color: var(--accent); font-weight: 600; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 7px 14px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; color: var(--text-secondary); transition: all .25s var(--ease-out); }
.main-nav a:hover, .main-nav a.active { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.main-nav a.active { color: var(--accent); }
.lang-switcher { display: flex; gap: 3px; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--border); }
.lang-switcher a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); border: 1px solid transparent; transition: all .25s; letter-spacing: 0.05em; }
.lang-switcher a:hover { border-color: var(--border-hover); color: var(--text-primary); }
.lang-switcher a.active { background: rgba(59,158,255,0.12); color: var(--accent); border-color: rgba(59,158,255,0.2); }
.nav-toggle { display: none; cursor: pointer; padding: 8px; -webkit-tap-highlight-color: transparent; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text-primary); margin: 5px 0; transition: all .3s var(--ease-out); border-radius: 2px; }

/* ── HERO ────────────────────────────────── */
.hero { padding: 44px 0 28px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -300px; left: 50%; transform: translateX(-50%); width: 1000px; height: 1000px; border-radius: 50%; background: radial-gradient(circle, rgba(59,158,255,0.06), transparent 65%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 50px; margin-bottom: 28px; background: rgba(59,158,255,0.08); border: 1px solid rgba(59,158,255,0.15); font-size: .8rem; font-weight: 500; color: var(--accent-soft); letter-spacing: 0.02em; }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow-s); animation: badgePulse 2.5s ease-in-out infinite; }
@keyframes badgePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(0.85)} }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.12; margin-bottom: 22px; color: var(--text-primary); letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; font-weight: 700; color: var(--accent); }
.hero-sub { font-size: .82rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto 18px; line-height: 1.7; font-weight: 400; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem; transition: all .3s var(--ease-out); cursor: pointer; }
.btn-hero--primary { background: var(--accent); color: #fff; box-shadow: 0 2px 16px var(--accent-glow), 0 1px 2px rgba(0,0,0,0.2); }
.btn-hero--primary:hover { background: var(--accent-soft); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 28px var(--accent-glow-s); }
.btn-hero--secondary { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid var(--border-card); }
.btn-hero--secondary:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); border-color: var(--border-hover); transform: translateY(-1px); }
.btn-arrow { transition: transform .25s var(--ease-out); }
.btn-hero:hover .btn-arrow { transform: translateX(3px); }

/* Hero orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(59,158,255,0.1), rgba(59,158,255,0.02)); border: 1px solid rgba(59,158,255,0.06); animation: orbFloat 18s ease-in-out infinite; }
.hero-orb:nth-child(1){width:120px;height:120px;top:10%;left:5%;animation-delay:0s;opacity:.4}
.hero-orb:nth-child(2){width:70px;height:70px;top:20%;right:10%;animation-delay:-4s;opacity:.3}
.hero-orb:nth-child(3){width:160px;height:160px;bottom:10%;left:12%;animation-delay:-8s;opacity:.25}
.hero-orb:nth-child(4){width:50px;height:50px;bottom:25%;right:6%;animation-delay:-12s;opacity:.35}
.hero-orb:nth-child(5){width:90px;height:90px;top:50%;right:20%;animation-delay:-6s;opacity:.2}
@keyframes orbFloat { 0%,100%{transform:translateY(0) rotate(0deg)} 33%{transform:translateY(-20px) rotate(60deg)} 66%{transform:translateY(10px) rotate(120deg)} }

/* ── SECTIONS ────────────────────────────── */
.section { padding: 44px 0; }
.section--alt { background: var(--bg-primary); }
.section--deep { background: var(--bg-secondary); }
.section-label { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.section-label::before { content: ''; display: inline-block; width: 18px; height: 1.5px; background: var(--accent); border-radius: 2px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 10px; letter-spacing: -0.015em; }
.section-desc { font-size: .88rem; color: var(--text-secondary); max-width: 480px; line-height: 1.6; margin-bottom: 20px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 20px; }
.section-header-left { flex: 1; }
.view-all { font-size: .85rem; font-weight: 500; color: var(--accent); display: flex; align-items: center; gap: 5px; white-space: nowrap; padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(59,158,255,0.15); transition: all .25s var(--ease-out); }
.view-all:hover { background: rgba(59,158,255,0.08); border-color: rgba(59,158,255,0.3); }
.view-all span { transition: transform .25s var(--ease-out); }
.view-all:hover span { transform: translateX(3px); }

/* ── CARDS ────────────────────────────────── */
.card-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-card); padding: 18px; transition: all .3s var(--ease-out); position: relative; overflow: hidden; }
.card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.card::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-glow-s), transparent); opacity: 0; transition: opacity .3s; }
.card:hover::before { opacity: 1; }

/* Result cards */
.result-card { padding: 16px 18px; }
.result-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.result-lottery { display: flex; align-items: center; gap: 12px; }
.result-lottery-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.result-lottery-icon--649 { background: rgba(59,158,255,0.1); color: var(--accent); border: 1px solid rgba(59,158,255,0.15); }
.result-lottery-icon--max { background: rgba(240,200,80,0.1); color: var(--gold); border: 1px solid rgba(240,200,80,0.15); }
.result-lottery-icon--dl { background: rgba(45,212,160,0.1); color: var(--green); border: 1px solid rgba(45,212,160,0.12); }
.result-lottery-name { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.result-lottery-date { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.result-numbers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ball { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; background: var(--bg-elevated); border: 1px solid var(--border-card); position: relative; }

.ball--bonus { background: linear-gradient(135deg, rgba(240,200,80,0.15), rgba(240,200,80,0.05)); border-color: rgba(240,200,80,0.25); color: var(--gold-soft); box-shadow: 0 0 14px var(--gold-glow); }
.result-meta { display: flex; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.result-meta-item { font-size: .8rem; color: var(--text-muted); }
.result-meta-item strong { color: var(--text-secondary); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 50px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.badge--new { background: rgba(45,212,160,0.1); color: var(--green); border: 1px solid rgba(45,212,160,0.15); }
.badge--live { background: rgba(255,107,107,0.1); color: var(--red); border: 1px solid rgba(255,107,107,0.15); }
.badge--soon { background: rgba(59,158,255,0.1); color: var(--accent); border: 1px solid rgba(59,158,255,0.15); }

/* Featured lotteries */
.lottery-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lottery-feature-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg); padding: 22px 18px; transition: all .3s var(--ease-out); position: relative; overflow: hidden; }
.lottery-feature-card:hover { border-color: var(--border-hover); }
.lottery-feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.lottery-feature-card--649::before { background: linear-gradient(90deg, var(--accent), #1d6ed8); }
.lottery-feature-card--max::before { background: linear-gradient(90deg, var(--gold), #e8a909); }
.lottery-feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.lottery-feature-icon--649 { background: rgba(59,158,255,0.08); border: 1px solid rgba(59,158,255,0.1); }
.lottery-feature-icon--max { background: rgba(240,200,80,0.08); border: 1px solid rgba(240,200,80,0.1); }
.lottery-feature-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.lottery-feature-card .lottery-sub { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }
.lottery-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lottery-stat { background: rgba(255,255,255,0.02); border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid var(--border); }
.lottery-stat-val { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.lottery-stat-lbl { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

/* Tools */
.tools-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.tool-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 28px 22px; transition: all .3s var(--ease-out); }
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.tool-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.tool-icon--blue { background: rgba(59,158,255,0.08); border: 1px solid rgba(59,158,255,0.1); }
.tool-icon--gold { background: rgba(240,200,80,0.08); border: 1px solid rgba(240,200,80,0.1); }
.tool-icon--green { background: rgba(45,212,160,0.08); border: 1px solid rgba(45,212,160,0.1); }
.tool-icon--red { background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.1); }
.tool-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.tool-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { padding: 28px; }
.news-card-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px; }
.news-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.news-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

/* Why section */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 32px 28px; transition: all .3s var(--ease-out); }
.why-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.why-card-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: rgba(59,158,255,0.15); margin-bottom: 14px; line-height: 1; }
.why-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

/* ── FOOTER ──────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 20px; background: var(--bg-deep); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand-text { font-size: .85rem; color: var(--text-muted); margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 10px; font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .78rem; color: var(--text-dim); }

/* ── PLACEHOLDER ─────────────────────────── */
.placeholder-section { text-align: center; padding: 100px 24px; color: var(--text-secondary); }
.placeholder-section h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; color: var(--text-primary); }

/* ── ADMIN ───────────────────────────────── */
.admin-body { background: var(--bg-deep); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-xl); padding: 48px 40px; width: 100%; max-width: 400px; box-shadow: 0 20px 80px rgba(0,0,0,0.5); }
.login-box h1 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 28px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .82rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border-card); color: var(--text-primary); transition: border-color .25s; }
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.btn-primary { display: block; width: 100%; padding: 13px; border-radius: var(--radius-sm); cursor: pointer; background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem; transition: all .25s; box-shadow: 0 2px 12px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-1px); }
.error-msg { background: rgba(255,107,107,0.08); color: var(--red); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 16px; border: 1px solid rgba(255,107,107,0.12); }
.admin-dash { padding: 36px 28px; max-width: 1000px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.admin-header h1 { font-family: var(--font-display); font-size: 1.6rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat-card .stat-val { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-card .stat-lbl { font-size: .82rem; color: var(--text-secondary); margin-top: 4px; }

/* ── ANIMATIONS ──────────────────────────── */
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease-out), transform .6s var(--ease-out); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid, .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .nav-toggle { display: block; }
    .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: rgba(6,10,19,0.97); backdrop-filter: blur(24px); flex-direction: column; align-items: stretch; padding: 16px 20px; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .35s var(--ease-out); z-index: 99; }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 12px 16px; font-size: .95rem; }
    .lang-switcher { margin: 12px 0 0; padding: 12px 0 0; border-left: none; border-top: 1px solid var(--border); justify-content: center; }
    .hero { padding: 28px 0 16px; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-hero { width: 100%; max-width: 300px; justify-content: center; }
    .section { padding: 28px 0; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .lottery-feature, .card-grid, .tools-grid, .news-grid, .why-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-orb:nth-child(3), .hero-orb:nth-child(5) { display: none; }
}
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero { padding: 56px 0 48px; }
    .ball { width: 40px; height: 40px; font-size: .85rem; }
    .lottery-feature-card { padding: 28px 22px; }
    .lottery-stats { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════
   Phase 2 additions — append to style.css
   ═══════════════════════════════════════════ */

/* ── BREADCRUMBS ─────────────────────────── */
.breadcrumb {
    padding: 16px 0; border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}
.breadcrumb-list {
    display: flex; align-items: center; gap: 0;
    font-size: .82rem; flex-wrap: wrap;
}
.breadcrumb-item { display: flex; align-items: center; color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-secondary); transition: color .2s; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item::after { content: '/'; margin: 0 8px; color: var(--text-dim); font-size: .75rem; }
.breadcrumb-item:last-child::after { display: none; }
.breadcrumb-item--active { color: var(--text-primary); font-weight: 500; }

/* ── BALL VARIANTS for stats ─────────────── */
.ball--hot { border-color: rgba(255,107,107,0.35); background: rgba(255,107,107,0.08); color: var(--red); }
.ball--cold { border-color: rgba(59,158,255,0.25); background: rgba(59,158,255,0.06); color: var(--accent-soft); }

/* ── LOTTO 649 PAGE specifics ────────────── */
.lottery-stats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 480px) {
    .lottery-stats { grid-template-columns: 1fr 1fr; }
}

/* ── ANALYTICS UTILITIES (v7) ────────────────────── */
.stat-pill { display:inline-flex;align-items:center;gap:6px;padding:6px 14px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.85rem;color:var(--text-primary);transition:border-color .2s }
.stat-pill:hover { border-color:var(--border-hover) }
.stat-pill__val { font-weight:700;font-size:.95rem }
.stat-pill__lbl { color:var(--text-secondary);font-size:.8rem }
.stat-pill--hot { border-color:rgba(255,112,112,0.3);background:rgba(255,112,112,0.06) }
.stat-pill--cold { border-color:rgba(77,166,255,0.3);background:rgba(77,166,255,0.06) }
.stat-pill--gold { border-color:rgba(240,200,80,0.3);background:rgba(240,200,80,0.06) }

.analysis-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px }
.analysis-card { background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px;text-align:center }
.analysis-card__val { font-weight:700;font-size:1.2rem;color:var(--text-primary);margin-bottom:2px }
.analysis-card__lbl { font-size:.78rem;color:var(--text-secondary) }

.filter-bar { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px }
.filter-btn { padding:6px 14px;font-size:.8rem;font-weight:500;background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-secondary);cursor:pointer;transition:all .2s }
.filter-btn:hover { border-color:var(--border-hover);color:var(--text-primary) }
.filter-btn--active { background:rgba(77,166,255,0.12);border-color:var(--accent);color:var(--accent) }

.help-link { display:inline;font-size:.75rem;color:var(--accent);font-weight:500;margin-left:4px;opacity:.85;transition:opacity .2s }
.help-link:hover { opacity:1;color:var(--accent-soft) }

.insight-box { background:var(--bg-elevated);border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:var(--radius-sm);padding:16px 20px;margin:16px 0;font-size:.88rem;color:var(--text-secondary);line-height:1.7 }
.insight-box p { margin-bottom:4px }
.insight-box p:last-child { margin-bottom:0 }


/* ── MOBILE BOTTOM BAR ──────────────────── */
.bottom-bar { display: none; }

/* ── PORTAL: Quick Actions ───────────────── */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.qa-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); font-size: .75rem; font-weight: 500; color: var(--text-secondary); text-align: center; transition: all .2s; text-decoration: none; }
.qa-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.qa-btn .qa-icon { font-size: 1.2rem; }

/* ── PORTAL: Stat Snapshot ───────────────── */
.stat-snap { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.stat-snap__item { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-sm); padding: 10px 12px; }
.stat-snap__label { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; margin-bottom: 3px; }
.stat-snap__val { font-size: .95rem; font-weight: 700; }
.stat-snap__sub { font-size: .7rem; color: var(--text-muted); margin-top: 1px; }
.stat-snap__item--hot { border-left: 2px solid var(--red); }
.stat-snap__item--cold { border-left: 2px solid var(--accent); }
.stat-snap__item--overdue { border-left: 2px solid var(--orange); }
.stat-snap__item--pair { border-left: 2px solid var(--green); }

/* ── PORTAL: Dense Draw Row ──────────────── */
.draw-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-sm); margin-bottom: 5px; transition: all .2s; text-decoration: none; color: inherit; }
.draw-row:hover { border-color: var(--border-hover); background: var(--bg-card-hover); color: inherit; }
.draw-row__date { min-width: 85px; font-size: .78rem; color: var(--text-secondary); font-weight: 500; }
.draw-row__nums { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.draw-row__nums .ball { width: 30px; height: 30px; font-size: .72rem; }
.draw-row__chips { display: flex; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 4px; font-size: .65rem; font-weight: 500; color: var(--text-muted); background: var(--bg-elevated); border: 1px solid var(--border); }
.chip b { color: var(--text-secondary); font-weight: 600; }

/* ── RESPONSIVE: Mobile bottom bar ───────── */
@media (max-width: 768px) {
    .bottom-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; height: var(--bottom-bar-h); background: rgba(5,9,16,0.95); backdrop-filter: blur(20px); border-top: 1px solid var(--border); justify-content: space-around; align-items: center; }
    .bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; font-size: .6rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color .2s; }
    .bottom-bar a:hover, .bottom-bar a.active { color: var(--accent); }
    .bottom-bar .bb-icon { font-size: 1.1rem; }
    body { padding-bottom: var(--bottom-bar-h); }
    .site-footer .footer-col { display: none; }
    .qa-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-snap { grid-template-columns: 1fr 1fr; }
    .draw-row__chips { display: none; }
    .draw-row { gap: 8px; padding: 8px 10px; }
}
@media (max-width: 480px) {
    .qa-grid { grid-template-columns: repeat(2, 1fr); }
    .draw-row__nums .ball { width: 26px; height: 26px; font-size: .65rem; }
}

/* Next Draw Cards */
.next-draw-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 12px; padding: 16px 18px; }
.next-draw-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.next-draw-card__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; }
.next-draw-card__name { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.next-draw-card__date { font-size: .85rem; color: var(--text-secondary); }
.next-draw-card__time { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.next-draw-card__tz { font-size: .72rem; color: var(--text-muted); opacity: .7; }
.next-draw-card__countdown { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-card); }
.next-draw-card__countdown-label { font-size: .72rem; color: var(--text-muted); margin-right: 6px; }
.next-draw-card__countdown-value { font-size: .88rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.next-draw-card__awaiting { margin-top: 10px; padding: 8px 12px; background: rgba(255,180,50,.08); border-radius: 6px; font-size: .78rem; color: var(--orange); font-weight: 500; text-align: center; }
.badge--upcoming { background: rgba(100,160,255,.12); color: var(--accent); }
.badge--pending { background: rgba(255,180,50,.12); color: var(--orange); }
.next-draw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (max-width: 600px) { .next-draw-grid { grid-template-columns: 1fr; } }

/* Live Soon badge */
.badge--warning { background: rgba(255,180,50,.15); color: var(--orange); font-weight: 600; }
.next-draw-card__note { font-size: .7rem; color: var(--text-muted); opacity: .7; margin-top: 6px; }

/* Live draw states */
.badge--live-now { background: rgba(255,60,60,.15); color: #ff4444; font-weight: 700; }
.next-draw-card__live { margin-top: 10px; padding: 8px 12px; background: rgba(255,60,60,.08); border-radius: 6px; font-size: .82rem; color: #ff4444; font-weight: 600; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4444; animation: livePulse 1.2s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.next-draw-card__results { margin-top: 10px; padding: 10px 14px; background: rgba(80,200,120,.1); border-radius: 6px; text-align: center; }
.next-draw-card__results a { color: #50c878; font-weight: 600; font-size: .85rem; text-decoration: none; }
.next-draw-card__results a:hover { text-decoration: underline; }

/* ── Insight Cards ─────────────────────────── */
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 600px) { .insight-grid { grid-template-columns: 1fr; } }

.insight-card {
    background: var(--bg-card); border: 1px solid var(--border-card);
    border-radius: var(--radius-lg); padding: 16px 18px;
    position: relative; overflow: hidden;
}
.insight-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.insight-card--hot::before { background: linear-gradient(90deg, #ff6b6b, #ff8e53); }
.insight-card--cold::before { background: linear-gradient(90deg, #4da6ff, #6ec6ff); }
.insight-card--streak::before { background: linear-gradient(90deg, var(--gold), #ffb347); }
.insight-card--dist::before { background: linear-gradient(90deg, #a78bfa, #818cf8); }

.insight-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.insight-card__icon { font-size: 1.1rem; }
.insight-card__title { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }

.insight-card__numbers { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.insight-card__num {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 700; position: relative;
}
.insight-card--hot .insight-card__num { background: rgba(255,107,107,.12); color: #ff6b6b; border: 1.5px solid rgba(255,107,107,.25); }
.insight-card--cold .insight-card__num { background: rgba(77,166,255,.12); color: #4da6ff; border: 1.5px solid rgba(77,166,255,.25); }

.insight-card__bar { height: 4px; border-radius: 2px; background: var(--border); margin-top: 4px; overflow: hidden; }
.insight-card__bar-fill { height: 100%; border-radius: 2px; transition: width .5s ease; }
.insight-card--hot .insight-card__bar-fill { background: linear-gradient(90deg, #ff6b6b, #ff8e53); }
.insight-card--cold .insight-card__bar-fill { background: linear-gradient(90deg, #4da6ff, #6ec6ff); }

.insight-card__stat { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.insight-card__stat-val { font-size: .85rem; font-weight: 700; }
.insight-card__stat-lbl { font-size: .72rem; color: var(--text-muted); }

.insight-card__row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.insight-card__row + .insight-card__row { border-top: 1px solid var(--border); }

/* Distribution bars */
.dist-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.dist-row__label { width: 50px; font-size: .78rem; color: var(--text-secondary); font-weight: 600; }
.dist-row__bar { flex: 1; height: 20px; background: var(--border); border-radius: 4px; overflow: hidden; position: relative; }
.dist-row__fill { height: 100%; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: .68rem; font-weight: 700; color: #fff; min-width: 30px; }
.dist-row__fill--1 { background: linear-gradient(90deg, #a78bfa, #818cf8); }
.dist-row__fill--2 { background: linear-gradient(90deg, #6ec6ff, #4da6ff); }
.dist-row__fill--3 { background: linear-gradient(90deg, #ffb347, var(--gold)); }
.dist-row__pct { width: 36px; font-size: .75rem; color: var(--text-muted); text-align: right; }

.insight-card__link { display: block; margin-top: 8px; font-size: .78rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.insight-card__link:hover { text-decoration: underline; }

/* ── Interactive Generator ─────────────────── */
.gen-strategies { display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 }
.gen-btn { display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--border);background:var(--bg-elevated);border-radius:var(--radius-sm);font-size:.82rem;color:var(--text-secondary);cursor:pointer;transition:all .2s }
.gen-btn:hover { border-color:var(--border-hover);color:var(--text-primary) }
.gen-btn--active { border-color:var(--accent);color:var(--accent);background:rgba(77,166,255,.08);font-weight:600 }
.gen-btn span:first-child { font-size:.9rem }

.gen-risk { padding:12px 18px;margin-bottom:14px }
.gen-risk__label { font-size:.78rem;color:var(--text-muted) }
.gen-risk__value { font-size:.78rem;font-weight:600;color:var(--accent) }
.gen-slider { flex:1;accent-color:var(--accent);height:6px }

.gen-trigger { display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:14px 20px;border:none;border-radius:var(--radius-sm);background:linear-gradient(135deg,var(--accent),#6ec6ff);color:#fff;font-size:.92rem;font-weight:700;cursor:pointer;transition:transform .15s,box-shadow .2s;margin-bottom:14px }
.gen-trigger:hover { transform:translateY(-1px);box-shadow:0 4px 16px rgba(77,166,255,.3) }
.gen-trigger:active { transform:translateY(0) }
.gen-trigger:disabled { opacity:.7;cursor:wait }
.gen-trigger__icon { font-size:1.1rem }

.gen-spinner { width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite }
@keyframes spin { to { transform:rotate(360deg) } }

.gen-another { display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:10px 16px;border:1px dashed var(--border);background:transparent;border-radius:var(--radius-sm);color:var(--text-secondary);font-size:.82rem;cursor:pointer;transition:all .2s }
.gen-another:hover { border-color:var(--accent);color:var(--accent);background:rgba(77,166,255,.04) }

.gen-results { transition:opacity .15s ease,transform .15s ease }
.gen-results--exit { opacity:0;transform:translateY(8px) }

.gen-set { padding:14px 18px;margin-bottom:8px }
.gen-set__row { display:flex;align-items:center;gap:12px;flex-wrap:wrap }
.gen-set__label { font-size:.82rem;color:var(--text-muted);min-width:50px }
.gen-set__balls { display:flex;gap:6px;flex-wrap:wrap }
.gen-chips { margin-top:8px;display:flex;gap:4px;flex-wrap:wrap }

.gen-score { margin-left:auto;padding:3px 10px;border-radius:4px;font-size:.75rem;font-weight:600;border:1px solid currentColor;white-space:nowrap }
.gen-score--hi { background:rgba(52,217,168,0.1);color:var(--green) }
.gen-score--mid { background:rgba(77,166,255,0.1);color:var(--accent) }
.gen-score--lo { background:rgba(255,159,67,0.1);color:var(--orange) }

.gen-trend { padding:14px 18px;margin-top:14px;display:flex;align-items:center;gap:14px;flex-wrap:wrap }
.gen-trend__title { font-size:.78rem;font-weight:600;color:var(--text-primary) }
.gen-trend__text { font-size:.78rem;color:var(--text-secondary);margin-top:2px }

/* Clickable balls */
.ball--click { cursor:pointer;text-decoration:none;transition:transform .15s,box-shadow .15s }
.ball--click:hover { transform:scale(1.12);box-shadow:0 0 12px rgba(77,166,255,.35);z-index:1 }

/* Animations */
@keyframes genSlideIn { from { opacity:0;transform:translateY(12px) } to { opacity:1;transform:translateY(0) } }
@keyframes ballPop { from { opacity:0;transform:scale(.5) } to { opacity:1;transform:scale(1) } }

/* ── Quick Charts ──────────────────────────── */
.qc-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 }
.qc-card--wide { grid-column:1/-1 }
@media (max-width:600px) { .qc-grid { grid-template-columns:1fr } }

.qc-card { background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-lg);padding:14px 16px }
.qc-card__head { font-size:.78rem;font-weight:600;color:var(--text-primary);margin-bottom:10px;display:flex;align-items:center;gap:6px }
.qc-card__head span:first-child { font-size:.9rem }

/* Bar rows */
.qc-bar-row { display:flex;align-items:center;gap:8px;margin-bottom:6px }
.qc-bar-row__num { width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:700;flex-shrink:0 }
.qc-bar-row__num--hot { background:rgba(255,107,107,.12);color:#ff6b6b;border:1px solid rgba(255,107,107,.2) }
.qc-bar-row__num--cold { background:rgba(77,166,255,.12);color:#4da6ff;border:1px solid rgba(77,166,255,.2) }
.qc-bar-row__track { flex:1;height:8px;background:var(--border);border-radius:4px;overflow:hidden }
.qc-bar-row__fill { height:100%;border-radius:4px;transition:width .6s ease }
.qc-bar-row__fill--hot { background:linear-gradient(90deg,#ff6b6b,#ff8e53) }
.qc-bar-row__fill--cold { background:linear-gradient(90deg,#4da6ff,#6ec6ff) }
.qc-bar-row__val { font-size:.72rem;font-weight:600;color:var(--text-muted);width:32px;text-align:right }

/* Donut */
.qc-donut-wrap { display:flex;align-items:center;gap:16px;justify-content:center }
.qc-donut { width:80px;height:80px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0 }
.qc-donut__hole { width:52px;height:52px;border-radius:50%;background:var(--bg-card);display:flex;flex-direction:column;align-items:center;justify-content:center }
.qc-donut__big { font-size:.85rem;font-weight:700;color:var(--text-primary);line-height:1 }
.qc-donut__sub { font-size:.6rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em }
.qc-donut-legend { font-size:.75rem;color:var(--text-secondary);line-height:1.8 }
.qc-donut-legend b { color:var(--text-primary) }
.qc-dot { display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px }

/* Segmented bar */
.qc-seg-bar { display:flex;height:24px;border-radius:6px;overflow:hidden;margin-bottom:4px }
.qc-seg { display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:700;color:#fff;transition:width .6s ease;min-width:30px }
.qc-seg--low { background:linear-gradient(90deg,#a78bfa,#818cf8) }
.qc-seg--mid { background:linear-gradient(90deg,#4da6ff,#6ec6ff) }
.qc-seg--high { background:linear-gradient(90deg,#ffb347,var(--gold)) }
.qc-seg-labels { display:flex;justify-content:space-between;font-size:.65rem;color:var(--text-muted);padding:0 2px }

/* Sparkline */
.qc-spark { margin-bottom:4px }
.qc-spark-range { display:flex;justify-content:space-between;font-size:.68rem;color:var(--text-muted) }
.qc-spark-range span { display:flex;align-items:center;gap:3px }

/* Insight text */
.qc-insight { font-size:.72rem;color:var(--text-muted);margin-top:8px;margin-bottom:4px;font-style:italic;line-height:1.4 }
.qc-link { font-size:.72rem;color:var(--accent);text-decoration:none;font-weight:500 }
.qc-link:hover { text-decoration:underline }

/* ── Dashboard Hero ────────────────────────── */
.dash-hero { background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-lg);padding:24px;margin-bottom:16px;text-align:center }
.dash-hero__badge { display:inline-flex;align-items:center;gap:6px;padding:4px 14px;border-radius:20px;font-size:.75rem;font-weight:600;color:var(--accent);background:rgba(77,166,255,.08);border:1px solid rgba(77,166,255,.15);margin-bottom:16px;letter-spacing:.02em }

.dash-hero__balls { display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:16px;transition:opacity .15s,transform .15s }
.dash-hero__balls--exit { opacity:0;transform:scale(.95) }
.ball--hero { width:52px;height:52px;font-size:1.1rem;font-weight:700;cursor:pointer;text-decoration:none;transition:transform .2s,box-shadow .2s;animation:ballPop .3s ease both }
.ball--hero:hover { transform:scale(1.15);box-shadow:0 0 20px rgba(77,166,255,.4) }

.dash-hero__score { margin-bottom:12px }
.dash-hero__score-bar { height:6px;background:var(--border);border-radius:3px;overflow:hidden;max-width:240px;margin:0 auto 6px }
.dash-hero__score-fill { height:100%;border-radius:3px;transition:width .5s ease }
.dash-hero__score-fill--hi { background:linear-gradient(90deg,var(--green),#34d9a8) }
.dash-hero__score-fill--mid { background:linear-gradient(90deg,var(--accent),#6ec6ff) }
.dash-hero__score-fill--lo { background:linear-gradient(90deg,var(--orange),#ffb347) }
.dash-hero__score-val { font-size:.78rem;color:var(--text-muted) }
.dash-hero__score-val strong { color:var(--text-primary) }

.dash-hero__reasons { display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:16px }
.dash-hero__reason { font-size:.72rem;color:var(--green);background:rgba(52,217,168,.06);border:1px solid rgba(52,217,168,.15);padding:3px 10px;border-radius:12px }

/* Mini Generator */
.dash-gen { display:flex;justify-content:center;gap:6px;flex-wrap:wrap }
.dash-gen__btn { padding:8px 14px;border:1px solid var(--border);background:var(--bg-elevated);border-radius:var(--radius-sm);font-size:.78rem;color:var(--text-secondary);cursor:pointer;transition:all .2s }
.dash-gen__btn:hover { border-color:var(--accent);color:var(--accent) }
.dash-gen__btn--primary { background:linear-gradient(135deg,var(--accent),#6ec6ff);color:#fff;border-color:transparent;font-weight:600 }
.dash-gen__btn--primary:hover { transform:translateY(-1px);box-shadow:0 3px 12px rgba(77,166,255,.25) }

/* Today's Insight */
.dash-insight { background:var(--bg-card);border:1px solid var(--border-card);border-left:3px solid var(--gold);border-radius:var(--radius-lg);padding:14px 18px;margin-bottom:14px }
.dash-insight__head { font-size:.82rem;font-weight:600;color:var(--text-primary);margin-bottom:8px;display:flex;align-items:center;gap:6px }
.dash-insight__items { display:flex;flex-direction:column;gap:4px }
.dash-insight__item { font-size:.78rem;color:var(--text-secondary);line-height:1.5;padding:2px 0 }
.dash-insight__item strong { color:var(--text-primary) }

/* Draw Approaching */
.dash-approach { background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-lg);padding:14px 18px;margin-bottom:14px }
.dash-approach__head { font-size:.82rem;font-weight:600;color:var(--text-primary);margin-bottom:10px;display:flex;align-items:center;gap:6px }
.dash-approach__cols { display:grid;grid-template-columns:1fr 1fr;gap:12px }
@media (max-width:400px) { .dash-approach__cols { grid-template-columns:1fr } }
.dash-approach__label { font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:6px;font-weight:600 }
.dash-approach__nums { display:flex;gap:5px;flex-wrap:wrap }
.ball--sm { width:30px;height:30px;font-size:.72rem }
.ball--hot-glow { box-shadow:0 0 8px rgba(255,107,107,.3);border-color:rgba(255,107,107,.3) }
.ball--cold-glow { box-shadow:0 0 8px rgba(77,166,255,.3);border-color:rgba(77,166,255,.3) }

/* Responsive context grid */
@media (max-width:600px) { .dash-approach__cols, [style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important } }

/* ── Game Info Card ────────────────────────── */
.game-info { background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-lg);padding:14px 18px;margin-bottom:14px }
.game-info__header { display:flex;align-items:center;gap:6px;font-size:.82rem;font-weight:600;color:var(--text-primary);margin-bottom:10px }
.game-info__grid { display:grid;grid-template-columns:1fr 1fr;gap:8px }
@media (max-width:480px) { .game-info__grid { grid-template-columns:1fr } }
.game-info__item { display:flex;flex-direction:column;gap:2px }
.game-info__label { font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted) }
.game-info__val { font-size:.82rem;font-weight:600;color:var(--text-primary) }
.game-info__val--accent { color:var(--accent) }
.game-info__tiers_DEPRECATED { margin-top:10px;font-size:.78rem }
.game-info__tiers_DEPRECATED summary { color:var(--accent);cursor:pointer;font-weight:500;font-size:.78rem }
.game-info__table { width:100%;border-collapse:collapse;margin-top:6px;font-size:.72rem }
.game-info__table th { text-align:left;padding:4px 8px;border-bottom:1px solid var(--border);color:var(--text-muted);font-weight:600 }
.game-info__table td { padding:4px 8px;border-bottom:1px solid var(--border);color:var(--text-secondary) }
.game-info__table tr:last-child td { border-bottom:none }

/* ── Lottery Section Labels ────────────────── */
.lottery-section-badge { display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:16px;font-size:.72rem;font-weight:600;letter-spacing:.02em;margin-bottom:12px }
.lottery-section-badge--649 { background:rgba(255,107,107,.08);color:#ff6b6b;border:1px solid rgba(255,107,107,.15) }
.lottery-section-badge--max { background:rgba(77,166,255,.08);color:#4da6ff;border:1px solid rgba(77,166,255,.15) }

/* ── Mini Draw Countdown Bar ───────────────── */
.mini-draws { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px }
@media (max-width:480px) { .mini-draws { grid-template-columns:1fr } }
.mini-draw { background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-sm);padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px }
.mini-draw--649 { border-top:2px solid rgba(255,107,107,.4) }
.mini-draw--max { border-top:2px solid rgba(77,166,255,.4) }
.mini-draw__top { display:flex;flex-direction:column;gap:1px;min-width:0 }
.mini-draw__name { font-size:.72rem;font-weight:700;color:var(--text-primary);white-space:nowrap }
.mini-draw__day { font-size:.62rem;color:var(--text-muted);white-space:nowrap }
.mini-draw__cd { font-size:.82rem;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:.02em }

/* ── Game Info Extended ────────────────────── */
.game-info__details { margin-top:8px;font-size:.78rem }
.game-info__details summary { color:var(--accent);cursor:pointer;font-weight:500;font-size:.78rem;padding:4px 0 }
.game-info__details[open] summary { margin-bottom:6px }
.game-info__content { font-size:.75rem;color:var(--text-secondary);line-height:1.6 }
.game-info__content p { margin-bottom:6px }
.game-info__content p:last-child { margin-bottom:0 }
.game-info__note { font-size:.68rem;color:var(--text-muted);margin-top:6px;font-style:italic }

/* ── System Play ───────────────────────────── */
.sys-hero { text-align:center;margin-bottom:16px }
.sys-hero__title { font-size:1.3rem;font-weight:700;color:var(--text-primary);font-family:var(--font-display);margin-bottom:4px }
.sys-hero__desc { font-size:.82rem;color:var(--text-muted);margin-bottom:8px }
.sys-hero__badge { display:inline-block;font-size:.65rem;color:var(--text-muted);background:var(--bg-elevated);border:1px solid var(--border);padding:2px 10px;border-radius:10px }
.ball--cold-zone { border-color:rgba(77,166,255,.25) }
.ball--hot-zone { border-color:rgba(255,107,107,.25) }
.sys-combo { padding:8px 10px;margin-bottom:6px;background:var(--bg-elevated);border-radius:var(--radius-sm) }
.sys-combo__head { display:flex;align-items:center;justify-content:space-between;margin-bottom:4px }
.sys-combo__idx { font-size:.68rem;font-weight:600;color:var(--text-muted) }
.sys-combo__score { font-size:.72rem;font-weight:600 }
.sys-combo__balls { display:flex;gap:4px;flex-wrap:wrap;margin-bottom:3px }
.sys-combo__meta { font-size:.62rem;color:var(--text-muted) }

/* ── System Decision Hero ──────────────────── */
.sys-decision { background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-lg);padding:20px;margin-bottom:14px;text-align:center }
.sys-decision__badge { display:inline-flex;padding:4px 14px;border-radius:20px;font-size:.72rem;font-weight:600;color:var(--accent);background:rgba(77,166,255,.08);border:1px solid rgba(77,166,255,.15);margin-bottom:10px;letter-spacing:.02em }
.sys-decision__title { font-size:1.2rem;font-weight:700;color:var(--text-primary);font-family:var(--font-display);margin-bottom:14px }
.sys-decision__best { margin-bottom:14px }
.sys-decision__balls { display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:10px }
.ball--best-glow { box-shadow:0 0 12px rgba(52,217,168,.3);border-color:rgba(52,217,168,.35) }
.ball--lg { width:44px;height:44px;font-size:.95rem }
.sys-decision__score { max-width:200px;margin:0 auto }
.sys-decision__score-bar { height:5px;background:var(--border);border-radius:3px;overflow:hidden;margin-bottom:4px }
.sys-decision__score-fill { height:100%;border-radius:3px;transition:width .5s ease }
.sys-decision__score span { font-size:.72rem;color:var(--text-muted) }
.sys-decision__score strong { color:var(--text-primary) }
.sys-decision__why { display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-bottom:12px }
.sys-decision__reason { font-size:.68rem;color:var(--green);background:rgba(52,217,168,.06);border:1px solid rgba(52,217,168,.12);padding:3px 10px;border-radius:12px }
.sys-decision__coverage { font-size:.78rem;color:var(--text-secondary);line-height:1.5 }
.sys-decision__coverage strong { color:var(--accent) }
.sys-combo--best { border-left:3px solid var(--green);background:rgba(52,217,168,.04) }
.sys-combo:hover { background:rgba(77,166,255,.04);transition:background .2s }

/* ── Next Draw Context Bar ─────────────────── */
.sys-context { display:flex;align-items:center;justify-content:space-between;background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-sm);padding:8px 14px;margin-bottom:14px }
.sys-context__left { display:flex;align-items:center;gap:8px }
.sys-context__icon { font-size:1rem }
.sys-context__label { font-size:.65rem;text-transform:uppercase;color:var(--text-muted);letter-spacing:.03em }
.sys-context__date { font-size:.75rem;font-weight:600;color:var(--text-primary) }
.sys-context__cd { font-size:.82rem;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums }

/* ── Featured Tools ────────────────────────── */
.feat-tools { margin-bottom:16px }
.feat-tools__head { font-size:.88rem;font-weight:700;color:var(--text-primary);margin-bottom:10px }
.feat-tools__row { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px }
@media (max-width:480px) { .feat-tools__row { grid-template-columns:1fr } }

.feat-card { display:flex;align-items:center;gap:10px;background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-sm);padding:12px 14px;text-decoration:none;color:inherit;transition:border-color .2s,transform .15s }
.feat-card:hover { border-color:var(--accent);transform:translateY(-1px) }
.feat-card__icon { font-size:1.2rem;flex-shrink:0;width:28px;text-align:center }
.feat-card__body { flex:1;min-width:0 }
.feat-card__title { font-size:.78rem;font-weight:600;color:var(--text-primary) }
.feat-card__tag { display:inline-block;font-size:.58rem;text-transform:uppercase;letter-spacing:.04em;color:var(--accent);background:rgba(77,166,255,.08);border:1px solid rgba(77,166,255,.12);padding:1px 6px;border-radius:8px;margin-top:2px }
.feat-card__desc { font-size:.68rem;color:var(--text-muted);margin-top:2px;line-height:1.4 }
.feat-card__arrow { font-size:.82rem;color:var(--text-muted);flex-shrink:0;transition:color .2s }
.feat-card:hover .feat-card__arrow { color:var(--accent) }
.feat-card--featured { border-left:3px solid var(--accent);margin-bottom:8px;padding:14px 16px }
.feat-card--featured .feat-card__icon { font-size:1.5rem }
.feat-card--featured .feat-card__title { font-size:.88rem }
.feat-card--featured .feat-card__desc { font-size:.72rem }

/* ── System Variant Cards ──────────────────── */
.sys-variant { background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-lg);padding:16px;margin-bottom:14px }
.sys-variant__head { display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px }
.sys-variant__title { font-size:.88rem;font-weight:700;color:var(--text-primary) }
.sys-variant__desc { font-size:.68rem;color:var(--text-muted);margin-top:1px }
.sys-variant__badge { font-size:.68rem;font-weight:600;white-space:nowrap }

/* ── System Play Cards (highlighted) ───────── */
.feat-card--system { border-left:3px solid var(--green);background:rgba(52,217,168,.03) }
.feat-card--system:hover { border-color:var(--green);background:rgba(52,217,168,.06) }
.feat-card--system .feat-card__title { font-size:.85rem }
.feat-card__tag--green { color:var(--green);background:rgba(52,217,168,.08);border-color:rgba(52,217,168,.15) }

/* ── Compact Lottery Cards ─────────────────── */
.lotto-compact-grid { display:grid;grid-template-columns:1fr 1fr;gap:8px }
@media (max-width:480px) { .lotto-compact-grid { grid-template-columns:1fr } }
.lotto-compact { display:block;background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-sm);padding:12px 14px;text-decoration:none;color:inherit;transition:border-color .2s,transform .15s }
.lotto-compact:hover { transform:translateY(-1px) }
.lotto-compact--649 { border-top:2px solid rgba(255,107,107,.4) }
.lotto-compact--649:hover { border-color:rgba(255,107,107,.5) }
.lotto-compact--max { border-top:2px solid rgba(77,166,255,.4) }
.lotto-compact--max:hover { border-color:rgba(77,166,255,.5) }
.lotto-compact__top { display:flex;align-items:center;justify-content:space-between;margin-bottom:6px }
.lotto-compact__name { font-size:.88rem;font-weight:700;color:var(--text-primary) }
.lotto-compact__arrow { font-size:.82rem;color:var(--text-muted);transition:color .2s }
.lotto-compact:hover .lotto-compact__arrow { color:var(--accent) }
.lotto-compact__stats { display:flex;gap:12px;font-size:.78rem;font-weight:600;color:var(--accent);margin-bottom:4px }
.lotto-compact__desc { font-size:.68rem;color:var(--text-muted);line-height:1.4 }

/* ── Recommendation History ────────────────── */
.rec-history { margin-bottom:16px }
.rec-history__title { font-size:.92rem;font-weight:700;color:var(--text-primary);margin-bottom:12px }

.rec-card { background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-lg);margin-bottom:10px;overflow:hidden }
.rec-card[open] { border-color:rgba(77,166,255,.15) }
.rec-card__header { display:flex;align-items:center;justify-content:space-between;padding:12px 16px;cursor:pointer;list-style:none }
.rec-card__header::-webkit-details-marker { display:none }
.rec-card__left { display:flex;align-items:center;gap:8px }
.rec-card__date { font-size:.82rem;font-weight:600;color:var(--text-primary) }
.rec-card__sys { font-size:.62rem;color:var(--text-muted);background:var(--bg-elevated);padding:2px 8px;border-radius:8px }
.rec-card__badge { font-size:.88rem;font-weight:700;border:2px solid;border-radius:8px;padding:2px 10px;min-width:42px;text-align:center }
.rec-card__body { padding:0 16px 14px }
.rec-card__section { margin-bottom:12px }
.rec-card__label { font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:6px;font-weight:600 }
.rec-card__balls { display:flex;gap:5px;flex-wrap:wrap }

.rec-ball--drawn { border:2px solid var(--accent);background:rgba(77,166,255,.1) }
.rec-ball--hit { border:2px solid var(--green);background:rgba(52,217,168,.15);color:var(--green);font-weight:700 }
.rec-ball--miss { opacity:.4 }

.rec-variant { padding:10px 0;border-top:1px solid var(--border) }
.rec-variant__head { display:flex;align-items:center;justify-content:space-between;margin-bottom:6px }
.rec-variant__label { font-size:.78rem;font-weight:600;color:var(--text-primary) }
.rec-variant__result { font-size:.78rem;font-weight:700 }
.rec-variant__balls { display:flex;gap:4px;flex-wrap:wrap;margin-bottom:4px }
.rec-variant__balls .ball { width:30px;height:30px;font-size:.72rem }
.rec-variant__meta { font-size:.65rem;color:var(--text-muted) }

.rec-summary { margin-top:10px;padding:10px;background:var(--bg-elevated);border-radius:var(--radius-sm);font-size:.72rem;color:var(--text-secondary) }
.rec-summary__item { margin-bottom:3px }
.rec-summary__item:last-child { margin-bottom:0 }
.rec-summary__item strong { color:var(--text-primary) }

/* ── Greece KINO Page ──────────────────────── */
.kino-hero { text-align:center;margin-bottom:16px;padding:12px 0 }
.kino-hero__flag { font-size:2rem;margin-bottom:4px }
.kino-hero__title { font-size:1.4rem;font-weight:700;color:var(--text-primary);font-family:var(--font-display);margin-bottom:2px }
.kino-hero__sub { font-size:.88rem;color:var(--accent);font-weight:600;margin-bottom:6px }
.kino-hero__desc { font-size:.75rem;color:var(--text-muted) }

.kino-ball { width:30px;height:30px;font-size:.7rem;border-color:rgba(255,193,7,.25) }
.kino-ball--sm { width:26px;height:26px;font-size:.62rem }

.kino-stat-ball { display:inline-flex;align-items:center;gap:4px;background:var(--bg-elevated);border-radius:8px;padding:4px 10px }
.kino-stat-ball__num { font-size:.82rem;font-weight:700;color:var(--text-primary);min-width:20px;text-align:center }
.kino-stat-ball__freq { font-size:.62rem;color:var(--text-muted) }
.kino-stat-ball--hot { border-left:2px solid rgba(255,107,107,.5) }
.kino-stat-ball--cold { border-left:2px solid rgba(77,166,255,.5) }
.kino-stat-ball--overdue { border-left:2px solid rgba(255,193,7,.5) }

.kino-draw-row { border-bottom:1px solid var(--border) }
.kino-draw-row:last-child { border-bottom:none }
.kino-draw-row__head { display:flex;align-items:center;justify-content:space-between;padding:8px 0;cursor:pointer;list-style:none;font-size:.78rem }
.kino-draw-row__head::-webkit-details-marker { display:none }
.kino-draw-row__time { font-weight:600;color:var(--text-primary) }
.kino-draw-row__id { font-size:.65rem;color:var(--text-muted) }
.kino-draw-row__balls { display:flex;flex-wrap:wrap;gap:3px;padding:4px 0 10px }

/* ── KINO Generator ────────────────────────── */
.kino-gen-btn { padding:8px 16px;border:1px solid var(--border);border-radius:20px;background:var(--bg-elevated);color:var(--text-secondary);font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s }
.kino-gen-btn:hover { border-color:var(--accent);color:var(--accent) }
.kino-gen-btn--active { background:rgba(77,166,255,.1);border-color:var(--accent);color:var(--accent) }
@keyframes kinoPop { 0%{transform:scale(0);opacity:0} 60%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }
.kino-gen-ball { animation:kinoPop .3s ease both }
.kino-gen-ball:hover { transform:scale(1.15);box-shadow:0 0 10px rgba(255,193,7,.3);transition:all .15s }
.kino-gen-ball--hot { border-color:rgba(255,107,107,.4);box-shadow:0 0 6px rgba(255,107,107,.15) }
.kino-gen-ball--overdue { border-color:rgba(255,193,7,.4);box-shadow:0 0 6px rgba(255,193,7,.15) }

/* ── Lottery Discovery Cards ───────────────── */
.lottery-card-link:hover { border-color:var(--accent) !important }
