:root {
  --bg: #080A10; --bg-elevated: #111420; --bg-card: #151928; --bg-card-hover: #1B2033; --bg-input: #0D101A;
  --border: rgba(255, 255, 255, 0.09); --border-gold: rgba(232, 185, 73, 0.36);
  --text: #F1F5F9; --text-muted: #94A3B8;
  --crimson: #DC1F2C; --crimson-hover: #F22937; --crimson-soft: rgba(220, 31, 44, 0.16);
  --gold: #E8B949; --gold-bright: #FAD97C; --gold-soft: rgba(232, 185, 73, 0.14);
  --ok: #22C55E; --ok-soft: rgba(34, 197, 94, 0.14);
  --warn: #F59E0B; --warn-soft: rgba(245, 158, 11, 0.15);
  --danger: #EF4444; --danger-soft: rgba(239, 68, 68, 0.15);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55); --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="light"] {
  --bg: #F5F6FA; --bg-elevated: #FFFFFF; --bg-card: #FFFFFF; --bg-card-hover: #FAFBFD; --bg-input: #F1F4F9;
  --border: rgba(15, 23, 42, 0.1); --border-gold: rgba(184, 134, 11, 0.35);
  --text: #0F172A; --text-muted: #475569;
  --crimson: #C81924; --crimson-hover: #E0202D; --crimson-soft: rgba(200, 25, 36, 0.09);
  --gold: #B8860B; --gold-bright: #D49B12; --gold-soft: rgba(184, 134, 11, 0.11);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1); --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.flag-svg { border-radius: 3px; display: inline-block; vertical-align: middle; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.28); }

/* Header & Compact Locale/Currency Combo Dropdown */
.site-header { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: color-mix(in srgb, var(--bg-elevated) 88%, transparent); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand-logo img { height: 44px; width: auto; filter: drop-shadow(0 4px 12px rgba(220, 31, 44, 0.25)); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.93rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.header-controls { display: flex; align-items: center; gap: 10px; }

.locale-wrap { position: relative; }
.locale-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.locale-trigger:hover { border-color: var(--border-gold); background: var(--bg-card-hover); }
.locale-trigger .cur-sym { color: var(--gold); font-weight: 800; }
.locale-trigger .chev { font-size: 0.68rem; color: var(--text-muted); }

.locale-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 254px;
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-radius: var(--radius-md); padding: 14px;
  box-shadow: var(--shadow-lg); display: none; z-index: 95;
}
.locale-menu.open { display: block; }
.locale-group { margin-bottom: 12px; }
.locale-group:last-child { margin-bottom: 0; }
.locale-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 7px; }
.locale-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.locale-opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 6px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-input); color: var(--text-muted);
  font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.15s ease;
}
.locale-opt:hover { border-color: var(--border-gold); color: var(--text); }
.locale-opt.active { background: linear-gradient(135deg, var(--crimson), #9E111B); color: #fff; border-color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.18s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--crimson) 0%, #A9121D 100%); color: #fff; box-shadow: 0 8px 24px rgba(220, 31, 44, 0.35); }
.btn-primary:hover { background: linear-gradient(135deg, var(--crimson-hover) 0%, #BA1420 100%); box-shadow: 0 12px 30px rgba(220, 31, 44, 0.45); }
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, #C8921F 100%); color: #0B0D14; box-shadow: 0 8px 24px rgba(232, 185, 73, 0.28); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-bright) 0%, #D9A226 100%); }
.btn-outline { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--border-gold); background: var(--bg-card-hover); }
.btn-sm { padding: 7px 13px; font-size: 0.83rem; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(239, 68, 68, 0.28); }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* Banners */
.banner-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.banner { padding: 13px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 0.92rem; }
.banner-info { background: var(--bg-card); border-left: 4px solid var(--gold); }
.banner-promo { background: linear-gradient(90deg, var(--crimson-soft), var(--gold-soft)); border-left: 4px solid var(--crimson); }
.banner-warning, .banner-error { background: var(--danger-soft); border-left: 4px solid var(--danger); }
.banner-success { background: var(--ok-soft); border-left: 4px solid var(--ok); }

/* Hero */
.hero { position: relative; padding: 58px 0 46px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -120px -10% auto; height: 460px; background: radial-gradient(ellipse 48% 55% at 22% 35%, rgba(220, 31, 44, 0.2), transparent 72%), radial-gradient(ellipse 44% 55% at 78% 25%, rgba(232, 185, 73, 0.16), transparent 72%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--border-gold); }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); line-height: 1.1; margin: 18px 0 16px; letter-spacing: -0.025em; }
.text-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold), #D4921D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.07rem; max-width: 580px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-mini { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.stat-mini strong { display: block; font-size: 1.12rem; color: var(--gold); }
.stat-mini span { font-size: 0.79rem; color: var(--text-muted); }
.hero-brand-card { background: linear-gradient(160deg, var(--bg-card) 0%, color-mix(in srgb, var(--bg-elevated) 92%, #DC1F2C) 100%); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); padding: 32px 26px; box-shadow: var(--shadow-lg); text-align: center; }
.hero-brand-card img { margin: 0 auto 20px; max-height: 150px; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5)); }

/* Sections & Cards */
.section { padding: 52px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin: 12px 0 10px; letter-spacing: -0.02em; }
.section-head p { color: var(--text-muted); margin: 0; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); }

/* 10-Lotteries Showcase Grid */
.lotteries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lottery-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.lottery-card:hover { transform: translateY(-3px); border-color: var(--border-gold); background: var(--bg-card-hover); }
.lottery-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rule-pill { font-size: 0.74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-input); border: 1px solid var(--border); color: var(--text-muted); }
.lottery-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.lottery-card .lot-region { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 18px; }
.lottery-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--text); }
.lottery-card:hover .lottery-card-foot { color: var(--gold); }

/* Generator */
.generator-shell { background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.gen-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.lottery-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lottery-tab { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-muted); padding: 8px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.16s ease; }
.lottery-tab.active { background: linear-gradient(135deg, var(--crimson), #9E111B); color: #fff; border-color: transparent; }
.balls-stage { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; min-height: 112px; padding: 24px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 22px; }
.ball { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.28rem; font-weight: 800; color: #fff; position: relative; background: radial-gradient(circle at 32% 28%, #FF5964 0%, #DC1F2C 45%, #7D0A12 100%); box-shadow: inset 0 -6px 12px rgba(0,0,0,0.45), 0 10px 22px rgba(220, 31, 44, 0.35); border: 2px solid rgba(255, 255, 255, 0.18); animation: ballPop 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.ball::after { content: ""; position: absolute; top: 8px; left: 11px; width: 16px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transform: rotate(-28deg); }
.ball.bonus { color: #1A1200; background: radial-gradient(circle at 32% 28%, #FFF2B2 0%, #E8B949 48%, #9A6B0A 100%); box-shadow: inset 0 -6px 12px rgba(0,0,0,0.3), 0 10px 22px rgba(232, 185, 73, 0.38); }
.ball-sep { font-size: 1.45rem; font-weight: 800; color: var(--gold); margin: 0 4px; }
@keyframes ballPop { 0% { transform: scale(0.6) translateY(10px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.gen-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gen-status { margin-top: 14px; font-size: 0.9rem; min-height: 22px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: color-mix(in srgb, var(--bg-elevated) 75%, transparent); }
tr:last-child td { border-bottom: none; }

/* Pricing */
.billing-switch { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border); padding: 5px; border-radius: 999px; gap: 4px; margin: 0 auto 30px; }
.billing-btn { border: none; background: transparent; color: var(--text-muted); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.billing-btn.active { background: linear-gradient(135deg, var(--gold), #C8921F); color: #0B0D14; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 18px; display: flex; flex-direction: column; position: relative; transition: transform 0.2s ease, border-color 0.2s ease; }
.price-card:hover { transform: translateY(-4px); border-color: var(--border-gold); }
.price-card.featured { border: 1px solid var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 88%, #E8B949) 0%, var(--bg-card) 55%); box-shadow: 0 18px 40px rgba(232, 185, 73, 0.14); }
.price-card.hidden-mode { display: none; }
.price-ribbon { position: absolute; top: -11px; right: 14px; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #120E00; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }
.price-amount { font-size: 1.75rem; font-weight: 800; margin: 12px 0 4px; color: var(--text); }
.price-unit { font-size: 0.8rem; color: var(--text-muted); }
.price-credits { display: inline-block; margin: 10px 0 12px; padding: 5px 10px; border-radius: 8px; background: var(--crimson-soft); color: var(--crimson-hover); font-weight: 700; font-size: 0.84rem; }

/* Forms & CMS */
.auth-wrap { max-width: 460px; margin: 52px auto; width: 100%; }
.cms-article { max-width: 860px; margin: 0 auto; }
.cms-article h2, .cms-article h3 { color: var(--gold); margin-top: 24px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 5px; }
.form-control { width: 100%; padding: 10px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-input); color: var(--text); font-size: 0.92rem; }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Status Pills */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-warning { background: var(--warn-soft); color: var(--warn); }
.status-critical { background: var(--danger-soft); color: var(--danger); }

/* Pixi */
.pixi-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; padding: 11px 17px; border-radius: 999px; border: 1px solid var(--border-gold); background: linear-gradient(135deg, #161A2B, #25131B); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5); }
.pixi-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-bright), var(--crimson)); display: grid; place-items: center; font-weight: 900; color: #fff; }
.pixi-panel { position: fixed; right: 22px; bottom: 80px; width: min(360px, calc(100vw - 32px)); background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 81; overflow: hidden; display: none; }
.pixi-panel.open { display: block; }
.pixi-head { padding: 14px 16px; background: linear-gradient(135deg, rgba(220,31,44,0.22), rgba(232,185,73,0.16)); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.pixi-body { padding: 16px; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.pixi-q { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.pixi-q:hover { border-color: var(--gold); }
.pixi-answer { padding: 11px 13px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--border-gold); font-size: 0.86rem; }

/* Admin Layout */
.admin-shell { display: grid; grid-template-columns: 266px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--bg-elevated); border-right: 1px solid var(--border); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.admin-nav a:hover { background: var(--bg-card); color: var(--text); }
.admin-nav a.active { background: linear-gradient(135deg, var(--crimson), #9B111B); color: #fff; font-weight: 600; }
.admin-main { padding: 26px 32px; min-width: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.kpi-card .kpi-val { font-size: 1.85rem; font-weight: 800; margin-top: 6px; }
.plan-pre { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.84rem; line-height: 1.6; white-space: pre-wrap; max-height: 580px; overflow-y: auto; }

/* 4-Column Pro Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-elevated); padding: 44px 0 28px; font-size: 0.86rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-col h4 { margin: 0 0 12px; color: var(--text); font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a:hover { color: var(--gold); }
.footer-lotteries-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; }
.disclaimer-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }

@media (max-width: 1080px) { .lotteries-grid { grid-template-columns: repeat(2, 1fr); } .kpi-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .hero-grid, .form-grid-2, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; } .nav-links { display: none; } .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { border-right: none; border-bottom: 1px solid var(--border); } .admin-main { padding: 20px 16px; } }
@media (max-width: 560px) { .lotteries-grid, .hero-stats, .kpi-grid, .footer-grid { grid-template-columns: 1fr; } .ball { width: 48px; height: 48px; font-size: 1.1rem; } }


/* ==========================================================================
   v0.2.1 Upgrades: Full-Width Announcement Bar, Glowing Digital Jackpot Ticker,
   Animated Draw Machine, Admin Sidebar Groups & Ad Slots
   ========================================================================== */

/* Full-width Sleek Announcement Bar (no boxy outline breaking optics) */
.top-ann-bar {
  width: 100%;
  padding: 11px 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.top-ann-bar.ann-promo {
  background: linear-gradient(90deg, #A3111C 0%, #CC1C29 50%, #9E101B 100%);
  color: #FFFFFF;
}
.top-ann-bar.ann-info {
  background: linear-gradient(90deg, #9C7210 0%, #C8921F 50%, #9C7210 100%);
  color: #0B0D14;
}
.top-ann-bar.ann-warning {
  background: linear-gradient(90deg, #7F0D15 0%, #B3131E 50%, #7F0D15 100%);
  color: #FFFFFF;
}
.top-ann-bar a { text-decoration: underline; font-weight: 700; color: inherit; }
.top-ann-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  padding-right: 34px;
  text-align: center;
}
.top-ann-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: inherit;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.16s ease;
}
.top-ann-close:hover { background: rgba(0, 0, 0, 0.42); }

/* Full-width Digital Jackpot Ticker (Soft Eye-Friendly Glow in Dark Mode) */
.jackpot-strip-wrap {
  width: 100%;
  margin: 6px 0 38px;
  background: linear-gradient(180deg, rgba(17, 20, 32, 0.96) 0%, rgba(11, 13, 22, 0.98) 100%);
  border-top: 1px solid rgba(232, 185, 73, 0.28);
  border-bottom: 1px solid rgba(232, 185, 73, 0.28);
  box-shadow: 0 10px 36px rgba(220, 31, 44, 0.1), 0 0 22px rgba(232, 185, 73, 0.08);
  overflow: hidden;
}
html[data-theme="light"] .jackpot-strip-wrap {
  background: linear-gradient(180deg, #121521 0%, #0C0E18 100%);
  border-top: 1px solid rgba(184, 134, 11, 0.45);
  border-bottom: 1px solid rgba(184, 134, 11, 0.45);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.jackpot-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.jp-live-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(220, 31, 44, 0.18);
  border: 1px solid rgba(220, 31, 44, 0.45);
  color: #FF7B84;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF3B47;
  box-shadow: 0 0 8px rgba(255, 59, 71, 0.8);
  animation: jpPulse 2s ease-in-out infinite;
}
@keyframes jpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.jp-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.jp-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: jpScroll 36s linear infinite;
}
.jp-viewport:hover .jp-track { animation-play-state: paused; }
@keyframes jpScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.jp-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #E2E8F0;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.jp-item:hover {
  border-color: rgba(232, 185, 73, 0.5);
  background: rgba(232, 185, 73, 0.07);
}
.jp-name { font-size: 0.83rem; font-weight: 600; color: #CBD5E1; }
.jp-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #FAD97C;
  text-shadow: 0 0 10px rgba(232, 185, 73, 0.38);
}

/* Animated LottoBulls Draw Machine Stage */
.draw-machine-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px 10px;
  margin-bottom: 18px;
  background: radial-gradient(ellipse 65% 70% at 50% 42%, rgba(220, 31, 44, 0.11), transparent 72%), var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.machine-stage-box {
  position: relative;
  width: 280px;
  height: 245px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.machine-canvas {
  width: 280px;
  height: 245px;
  display: block;
}
.machine-status-line {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  min-height: 20px;
}

/* Digital Reel Mode */
.reel-slot {
  width: 60px;
  height: 68px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.55rem;
  font-weight: 900;
  color: #FAD97C;
  background: linear-gradient(180deg, #070910 0%, #171B2A 50%, #070910 100%);
  border: 2px solid var(--border-gold);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.7), 0 6px 18px rgba(232, 185, 73, 0.16);
}
.reel-slot.bonus {
  color: #FFFFFF;
  border-color: var(--crimson);
  background: linear-gradient(180deg, #2D070B 0%, #8F111B 50%, #2D070B 100%);
}
.reel-slot.spinning { opacity: 0.82; }

/* Admin Sidebar Section Headings */
.admin-nav-group {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 12px 12px 4px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.admin-nav-group:first-child { border-top: none; margin-top: 0; padding-top: 4px; }

/* Ad & Partner Slots */
.ad-slot-box {
  margin: 18px auto;
  max-width: 1240px;
  padding: 0 20px;
}
.ad-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px dashed var(--border-gold);
}
.ad-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}
.lottery-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .lottery-detail-grid { grid-template-columns: 1fr; }
  .jp-live-pill span:last-child { display: none; }
}


/* ==========================================================================
   v0.3.0 Upgrades: Separate Visible Theme Pill, Live Stats Bars & Regions
   ========================================================================== */

.theme-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.theme-pill button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.theme-pill button:hover:not(.active) {
  color: var(--text);
}
.theme-pill button.active {
  background: linear-gradient(135deg, var(--gold), #C8921F);
  color: #0B0D14;
  box-shadow: 0 2px 10px rgba(232, 185, 73, 0.35);
}
@media (max-width: 1120px) {
  .theme-pill .tp-txt { display: none; }
  .theme-pill button { padding: 5px 8px; }
}

/* Live Lottery Statistics Cards & Bars */
.stats-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 20px; }
.freq-list { display: flex; flex-direction: column; gap: 9px; }
.freq-row { display: grid; grid-template-columns: 38px 1fr 78px; align-items: center; gap: 10px; }
.mini-ball {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.86rem; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 32% 28%, #FF5964 0%, #DC1F2C 55%, #7D0A12 100%);
  box-shadow: 0 3px 10px rgba(220, 31, 44, 0.28);
}
.mini-ball.cold {
  background: radial-gradient(circle at 32% 28%, #60A5FA 0%, #2563EB 55%, #1E3A8A 100%);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}
.mini-ball.bonus {
  color: #1A1200;
  background: radial-gradient(circle at 32% 28%, #FFF2B2 0%, #E8B949 55%, #9A6B0A 100%);
  box-shadow: 0 3px 10px rgba(232, 185, 73, 0.32);
}
.freq-track { height: 10px; border-radius: 999px; background: var(--bg-input); overflow: hidden; border: 1px solid var(--border); }
.freq-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--crimson), var(--gold)); }
.freq-fill.cold { background: linear-gradient(90deg, #1D4ED8, #60A5FA); }
.freq-meta { text-align: right; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

.split-bar {
  display: flex; height: 28px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-input); font-size: 0.78rem; font-weight: 800;
}
.split-left { background: linear-gradient(90deg, var(--crimson), #B3131E); color: #fff; display: grid; place-items: center; }
.split-right { background: linear-gradient(90deg, #C8921F, var(--gold)); color: #0B0D14; display: grid; place-items: center; }

.overdue-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.overdue-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--bg-input); border: 1px solid var(--border); font-size: 0.82rem;
}

.region-live-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px;
}
@media (max-width: 860px) {
  .stats-grid-2, .region-live-metrics { grid-template-columns: 1fr; }
}


/* ==========================================================================
   v0.4.0 Upgrades: Timeframe Pill Fix, 10-Col All-Numbers Statistical Grid,
   Premium Tickets & Win-Check Hit Balls
   ========================================================================== */

.pill-select {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.pill-select a, .pill-select button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.pill-select a:hover:not(.active), .pill-select button:hover:not(.active) {
  color: var(--text);
}
.pill-select a.active, .pill-select button.active {
  background: linear-gradient(135deg, var(--gold), #C8921F);
  color: #0B0D14;
  box-shadow: 0 2px 10px rgba(232, 185, 73, 0.35);
}

/* 10-Column Statistical Overview Grid of All Numbers (matching signature vertical gold bars!) */
.num-overview-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}
.num-stat-tile {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.num-stat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}
.num-stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.num-stat-bar-track {
  width: 7px;
  height: 54px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 10px;
}
.num-stat-bar-fill {
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #FAD97C 0%, #C8921F 100%);
  box-shadow: 0 0 8px rgba(232, 185, 73, 0.45);
}
.num-stat-tile.bonus-tile .num-stat-bar-fill {
  background: linear-gradient(180deg, #FF5964 0%, #DC1F2C 100%);
  box-shadow: 0 0 8px rgba(220, 31, 44, 0.45);
}
.num-stat-count {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}
.num-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Win-Check Hit Highlight Ball */
.mini-ball.hit {
  background: radial-gradient(circle at 32% 28%, #86EFAC 0%, #22C55E 55%, #15803D 100%);
  color: #052E16;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.55);
  border: 2px solid #BBF7D0;
}
.mini-ball.bonus.hit {
  background: radial-gradient(circle at 32% 28%, #FEF08A 0%, #EAB308 55%, #854D0E 100%);
  color: #1A1200;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.65);
  border: 2px solid #FEF9C3;
}

@media (max-width: 1120px) { .num-overview-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .num-overview-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .num-overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ==========================================================================
   v0.6.0 Upgrades: Hardened Dual WYSIWYG + HTML CMS Editor & Cookie Banner
   ========================================================================== */

.rte-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  overflow: hidden;
}
.rte-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.rte-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.rte-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.rte-btn:hover { border-color: var(--gold); color: var(--gold); }
.rte-select {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.78rem;
}
.rte-color {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  background: var(--bg-card);
  cursor: pointer;
}
.rte-visual {
  min-height: 190px;
  max-height: 440px;
  overflow-y: auto;
  padding: 14px 16px;
  outline: none;
  line-height: 1.65;
  font-size: 0.94rem;
}
.rte-visual h2, .rte-visual h3 { color: var(--gold); margin: 12px 0 6px; }
.rte-html {
  width: 100%;
  min-height: 190px;
  padding: 14px 16px;
  border: none;
  background: var(--bg-input);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

/* GDPR Cookie Consent Bar */
.cookie-bar {
  position: fixed;
  left: 18px;
  bottom: 18px;
  max-width: 480px;
  z-index: 90;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.cookie-bar.show { display: block; }


/* ==========================================================================
   v0.6.1 Upgrades: 5-Col Hit Stats, Admin Sub-Nav Tabs & Cookie Modal
   ========================================================================== */

.kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 1020px) { .kpi-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .kpi-grid-5 { grid-template-columns: repeat(2, 1fr); } }

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-subtabs a {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.16s ease;
}
.admin-subtabs a:hover { color: var(--text); border-color: var(--border-gold); }
.admin-subtabs a.active {
  background: linear-gradient(135deg, var(--gold), #C8921F);
  color: #0B0D14;
  border-color: transparent;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: 20px;
}
.cookie-modal-backdrop.open { display: grid; }
.cookie-modal {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.cookie-cat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}


/* ==========================================================================
   v0.7.2 Upgrades: Unmistakable FREE vs. Luxury PREMIUM VIP Studio Design
   ========================================================================== */

.tier-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.14);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.42);
}
html[data-theme="light"] .tier-badge-free {
  background: rgba(22, 163, 74, 0.1);
  color: #15803D;
  border-color: rgba(22, 163, 74, 0.35);
}

.tier-badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FAD97C 0%, #E8B949 55%, #C8921F 100%);
  color: #140E00;
  box-shadow: 0 4px 18px rgba(232, 185, 73, 0.38);
}

.generator-shell.free-shell {
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.lottery-tab.vip-tab {
  border-color: rgba(232, 185, 73, 0.42);
  color: var(--gold);
  background: linear-gradient(135deg, rgba(232, 185, 73, 0.12), rgba(220, 31, 44, 0.08));
}
.lottery-tab.vip-tab.active {
  background: linear-gradient(135deg, #FAD97C 0%, #D9A226 100%);
  color: #140E00;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(232, 185, 73, 0.4);
}

.vip-lock-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(232, 185, 73, 0.15), rgba(220, 31, 44, 0.14));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

/* Luxury Premium VIP Studio Shell (/tickets) */
.premium-studio-shell {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px;
  background:
    radial-gradient(ellipse 60% 45% at 85% 10%, rgba(232, 185, 73, 0.16), transparent 65%),
    radial-gradient(ellipse 50% 45% at 12% 85%, rgba(220, 31, 44, 0.16), transparent 65%),
    linear-gradient(165deg, #171B2E 0%, #0D101B 60%, #161321 100%);
  border: 1.5px solid rgba(232, 185, 73, 0.65);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 36px rgba(232, 185, 73, 0.14);
  margin-bottom: 28px;
  overflow: hidden;
}
html[data-theme="light"] .premium-studio-shell {
  background:
    radial-gradient(ellipse 60% 45% at 85% 10%, rgba(232, 185, 73, 0.18), transparent 65%),
    linear-gradient(165deg, #FFFDF7 0%, #FFF8E6 100%);
  border: 1.5px solid #C8921F;
  box-shadow: 0 20px 50px rgba(184, 134, 11, 0.15);
}
.premium-studio-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
}
.vip-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.vip-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(232, 185, 73, 0.12);
  border: 1px solid rgba(232, 185, 73, 0.35);
  color: var(--gold);
}
.vip-machine-showcase {
  background: radial-gradient(circle at 50% 45%, rgba(232, 185, 73, 0.16), rgba(8, 10, 16, 0.9) 75%);
  border: 1px solid rgba(232, 185, 73, 0.45);
  border-radius: var(--radius-md);
  padding: 16px 12px 12px;
  text-align: center;
  box-shadow: inset 0 0 26px rgba(232, 185, 73, 0.08);
}
@media (max-width: 960px) {
  .premium-studio-grid { grid-template-columns: 1fr; }
  .premium-studio-shell { padding: 22px 18px; }
}
