:root {
  --bg:#F7F5F0; --surface:#FFFFFF; --border:#E8E4DC; --text:#1A1814; --text-muted:#8C8880;
  --accent:#C8A96E; --accent-dark:#A8893E; --radius:12px; --shadow:0 2px 16px rgba(0,0,0,0.06);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'DM Sans',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; }
header { background:var(--surface); border-bottom:1px solid var(--border); padding:0 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; height:56px; position:sticky; top:0; z-index:200; }
.logo { display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--text); }
.logo-dot { width:8px; height:8px; background:var(--accent); border-radius:50%; }
.logo-text { font-family:'DM Serif Display',serif; font-size:20px; letter-spacing:-.5px; }
.nav-lotterie { display:flex; gap:4px; flex-wrap:wrap; }
.nav-lotterie a { font-size:13px; font-weight:500; color:var(--text-muted); text-decoration:none; padding:6px 10px; border-radius:8px; }
.nav-lotterie a:hover { color:var(--text); }
.nav-lotterie a[aria-current="page"] { color:var(--text); background:var(--bg); }
.page-wrapper { max-width:900px; margin:0 auto; padding:28px 20px; }
.page-title { font-family:'DM Serif Display',serif; font-size:28px; margin-bottom:14px; }
.intro-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px 28px; margin-bottom:20px; box-shadow:var(--shadow); font-size:14px; line-height:1.7; color:var(--text-muted); }
.intro-card strong { color:var(--text); }
.jackpot-card { background:linear-gradient(135deg,#1A1814 0%,#2A2620 100%); border-radius:var(--radius); padding:24px 28px; margin-bottom:20px; color:white; display:flex; align-items:center; justify-content:space-between; gap:20px; box-shadow:0 4px 24px rgba(0,0,0,0.12); flex-wrap:wrap; }
.jackpot-label { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--accent); margin-bottom:6px; }
.jackpot-amount { font-family:'DM Serif Display',serif; font-size:42px; line-height:1; color:white; letter-spacing:-1px; margin-bottom:4px; }
.jackpot-sub { font-size:12px; color:rgba(255,255,255,.4); }
.search-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:28px; margin-bottom:20px; box-shadow:var(--shadow); }
.search-card-title { font-family:'DM Serif Display',serif; font-size:22px; margin-bottom:4px; }
.search-card-sub { font-size:13px; color:var(--text-muted); margin-bottom:24px; line-height:1.5; }
.input-label { font-size:12px; font-weight:600; color:var(--text); margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.input-label span { background:var(--bg); border:1px solid var(--border); border-radius:20px; padding:2px 9px; font-size:11px; color:var(--text-muted); font-weight:400; }
.numbers-grid { display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap; }
.number-input-wrap { display:flex; flex-direction:column; align-items:center; gap:4px; }
.number-label-small { font-size:9px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; }
.jolly-label { color:#9B59B6 !important; }
.num-input { width:54px; height:54px; border:2px solid var(--border); border-radius:10px; background:var(--bg); text-align:center; font-size:20px; font-weight:700; font-family:'DM Sans',sans-serif; color:var(--text); transition:all .2s; outline:none; -moz-appearance:textfield; }
.num-input::-webkit-outer-spin-button, .num-input::-webkit-inner-spin-button { -webkit-appearance:none; }
.num-input:focus { border-color:var(--accent); background:var(--surface); box-shadow:0 0 0 3px rgba(200,169,110,.12); }
.num-input.filled { border-color:var(--accent); background:var(--surface); }
.num-input.jolly { border-color:#9B59B6; color:#9B59B6; }
.search-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.btn-search { background:var(--text); color:var(--surface); border:none; border-radius:10px; padding:13px 28px; font-size:14px; font-weight:600; font-family:'DM Sans',sans-serif; cursor:pointer; transition:all .2s; }
.btn-search:hover { background:#333; }
.btn-reset { background:transparent; color:var(--text-muted); border:1px solid var(--border); border-radius:10px; padding:10px 18px; font-size:13px; font-weight:500; font-family:'DM Sans',sans-serif; cursor:pointer; }
.btn-reset:hover { color:var(--text); }
.result-box { margin-top:20px; border-radius:var(--radius); padding:20px; display:none; }
.stats-section { margin-bottom:20px; }
.section-title { font-family:'DM Serif Display',serif; font-size:20px; font-weight:400; margin-bottom:2px; }
.section-sub { font-size:12px; color:var(--text-muted); }
.stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:20px; }
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); }
.stat-card-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--text-muted); margin-bottom:14px; }
.freq-list { display:flex; flex-direction:column; gap:8px; }
.freq-item { display:flex; align-items:center; gap:8px; }
.freq-ball { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0; }
.freq-ball.hot { background:#FEF3E2; color:#E67E22; border:1.5px solid #F0C27F; }
.freq-ball.cold { background:#EBF5FB; color:#2980B9; border:1.5px solid #AED6F1; }
.freq-bar-wrap { flex:1; }
.freq-name { font-size:11px; font-weight:600; margin-bottom:3px; }
.freq-bar-bg { height:4px; background:var(--border); border-radius:3px; overflow:hidden; }
.freq-bar-fill { height:100%; border-radius:3px; }
.freq-bar-fill.hot { background:#E67E22; }
.freq-bar-fill.cold { background:#2980B9; }
.freq-count { font-size:11px; font-weight:600; color:var(--text-muted); white-space:nowrap; }
.table-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); margin-bottom:20px; overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:360px; }
thead th { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--text-muted); padding:0 8px 10px 8px; text-align:left; border-bottom:1px solid var(--border); }
tbody tr { border-bottom:1px solid var(--border); }
tbody tr:last-child { border-bottom:none; }
tr[hidden] { display:none; }
tbody td { padding:10px 8px; font-size:12px; }
.td-date { color:var(--text-muted); font-weight:500; white-space:nowrap; }
.td-date small { display:block; font-size:10px; font-weight:400; }
.balls-row { display:flex; gap:4px; flex-wrap:wrap; }
.ball { width:26px; height:26px; border-radius:50%; background:var(--text); color:white; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ball.jolly-ball { background:#9B59B6; }
.ball.super-ball { background:var(--accent-dark); }
#generatore-box { background:#1A1814; border-radius:16px; padding:32px; color:white; box-shadow:0 4px 24px rgba(0,0,0,0.15); margin-bottom:20px; }
.back-link { display:inline-block; margin-bottom:16px; font-size:13px; color:var(--text-muted); text-decoration:none; }
.back-link:hover { color:var(--text); }
.faq { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px 28px; margin-bottom:20px; box-shadow:var(--shadow); }
.faq h3 { font-size:14px; font-weight:600; margin:14px 0 4px; }
.faq p { font-size:13px; line-height:1.7; color:var(--text-muted); }
.altre-lotterie { margin-bottom:20px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.altre-lotterie .section-sub { width:100%; }
.altre-lotterie a { font-size:13px; font-weight:500; color:var(--text); text-decoration:none; background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:10px 16px; }
.altre-lotterie a:hover { border-color:var(--accent); }
footer { background:#1A1814; color:rgba(255,255,255,0.5); padding:32px 24px; margin-top:0; text-align:center; font-size:11px; }
@media(max-width:700px) { .nav-lotterie { display:none; } }
@media(max-width:600px) { .num-input { width:46px; height:46px; font-size:17px; } .jackpot-amount { font-size:32px; } .stats-grid { grid-template-columns:1fr; } }
