*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% -10%,#183153 0,#08111e 34%,#04070d 75%);color:#f8fafc;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}.top{max-width:1180px;margin:auto;padding:22px 20px}.brand{display:flex;align-items:center;gap:12px}.brand small{display:block;color:#7f91a8;margin-top:2px}.brandball{display:grid;place-items:center;width:45px;height:45px;border-radius:15px;background:linear-gradient(135deg,#f5c451,#a96d08);color:#101010;font-weight:950;box-shadow:0 10px 35px #d99b1e33}.wrap{max-width:1120px;margin:auto;padding:10px 18px 60px}.card{background:linear-gradient(145deg,#111c2bd9,#0a111dde);border:1px solid #ffffff12;border-radius:24px;box-shadow:0 22px 70px #0008;backdrop-filter:blur(14px)}.hero{text-align:center;padding:38px 28px;margin:12px 0 20px}.eyebrow{font-size:11px;letter-spacing:2px;color:#e7b94e;font-weight:900}.hero h1,.dashhead h1{margin:8px 0 12px;font-size:clamp(28px,5vw,48px)}.muted{color:#8292a8}.status{display:inline-flex;padding:7px 11px;border-radius:999px;background:#263347;color:#c7d2e2;font-size:11px;font-weight:900;text-transform:uppercase}.status.pronto{background:#4b390e;color:#ffd76c}.status.finalizado{background:#0d432d;color:#6ff0b0}.machine{width:170px;height:170px;margin:30px auto 18px;border-radius:50%;padding:12px;background:linear-gradient(145deg,#ffffff35,#2f91ff15);border:1px solid #ffffff38;box-shadow:0 0 0 12px #ffffff06,0 30px 80px #0b76ff2b,inset 0 0 35px #fff2}.machine-inner{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#cce2ff 35%,#6aa8f7);color:#07111f;font-size:60px;font-weight:950;box-shadow:inset -12px -18px 30px #1d5ba855}.balls{display:flex;justify-content:center;flex-wrap:wrap;gap:13px;max-width:760px;margin:25px auto}.ball{width:66px;height:66px;border-radius:50%;position:relative;display:grid;place-items:center;border:2px solid #ffffff2b;background:radial-gradient(circle at 35% 25%,#ffffff1f,#ffffff08 48%,#0002);box-shadow:inset -8px -10px 18px #0004,0 10px 24px #0005}.ball small{position:absolute;top:-7px;right:-5px;background:#18263a;border:1px solid #ffffff20;padding:3px 6px;border-radius:999px;color:#8fa2ba;font-size:9px}.ball strong{font-size:22px}.ball.filled{background:radial-gradient(circle at 35% 25%,#fff,#d8e9ff 35%,#78adf0);color:#07111f;border-color:#fff8}.btn{border:0;border-radius:14px;padding:14px 19px;font-weight:900;cursor:pointer;color:white;text-decoration:none;display:inline-block}.primary{background:linear-gradient(135deg,#e9b843,#a66a06);color:#120d03}.warning{background:#59420c}.stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0 34px}.stat{padding:22px}.stat b{display:block;font-size:28px;color:#f0c45e}.stat span{color:#8999ad}.section-head{display:flex;justify-content:space-between;align-items:end;margin:22px 3px 14px}.section-head h2{margin:5px 0}.history-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.history{padding:22px}.history-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.history h3{font-size:25px;margin:3px 0}.history time{font-size:12px;color:#8798ad}.result-lines{margin-top:15px}.result-lines div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-top:1px solid #ffffff0d}.result-lines strong{color:#f0c45e}.install,.login{max-width:520px;margin:8vh auto;padding:30px}.login{text-align:center}.form{display:grid;gap:15px;margin-top:20px}.form label,.prizes label{display:grid;gap:7px;color:#9aacbf;font-size:12px;font-weight:800}.form input,.prizes input{width:100%;background:#07101c;border:1px solid #ffffff17;border-radius:12px;padding:14px;color:#fff;outline:none}.form input:focus{border-color:#d7a632}.alert,.success{padding:13px 15px;border-radius:12px;margin:14px 0}.alert{background:#5a1d25;color:#ffc4cc}.success{background:#123e2b;color:#83efb6}.dash{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.dash aside{padding:24px 18px;background:#070c14;border-right:1px solid #ffffff0d}.dash nav{display:grid;gap:8px;margin-top:35px}.dash nav a{padding:13px;border-radius:11px;color:#9aabc0;text-decoration:none}.dash nav a.active,.dash nav a:hover{background:#ffffff0b;color:white}.dashmain{padding:32px;max-width:1200px;width:100%}.dashhead{display:flex;justify-content:space-between;align-items:center}.admin-card{padding:25px;margin:20px 0}.info-grid,.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.info-grid div{background:#ffffff07;padding:16px;border-radius:14px}.info-grid small{display:block;color:#8191a5}.info-grid b{font-size:22px}.prizes{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0 20px}.danger-zone{margin-top:20px;padding:18px;border:1px solid #e4ae3944;background:#4a350b35;border-radius:16px}.table{overflow:hidden}.tr{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:10px;padding:14px 18px;border-top:1px solid #ffffff0b}.th{color:#75869b;font-size:11px;text-transform:uppercase}.empty{padding:30px;color:#8495a9}@media(max-width:760px){.history-grid,.stats,.info-grid,.form-grid,.prizes{grid-template-columns:1fr}.dash{display:block}.dash aside{position:static;border-right:0}.dash nav{grid-template-columns:repeat(3,1fr);margin-top:18px}.dash nav a{text-align:center;font-size:12px}.dashmain{padding:20px 12px}.dashhead{align-items:flex-start}.hero{padding:28px 13px}.ball{width:58px;height:58px}.history-grid{gap:12px}.tr{grid-template-columns:1fr 1.4fr}.tr>*:last-child{display:none}}
/* V3 - sorteio ao vivo e histórico mobile 2x5 */
.prize-total{margin:20px auto 6px;max-width:390px;padding:18px 22px;border:1px solid rgba(250,204,21,.22);border-radius:18px;background:linear-gradient(135deg,rgba(250,204,21,.10),rgba(245,158,11,.04));box-shadow:0 14px 35px rgba(245,158,11,.08);text-align:center}.prize-total small{display:block;color:#fbbf24;font-weight:800;letter-spacing:1.2px}.prize-total strong{display:block;font-size:clamp(30px,7vw,48px);line-height:1.1;margin-top:5px;color:#fff}.draw-now{margin-top:22px;font-size:16px;min-height:56px;padding:0 26px;box-shadow:0 15px 35px rgba(34,197,94,.2)}.admin-note,.waiting-admin{font-size:12px;color:#94a3b8;margin-top:10px}.draw-progress{color:#94a3b8;font-weight:700}.machine.spinning{animation:pulse .35s infinite alternate}.ball.reveal{animation:ballReveal .55s cubic-bezier(.2,1.5,.4,1)}@keyframes ballReveal{0%{transform:scale(.35) rotate(-30deg);opacity:.25}100%{transform:scale(1) rotate(0);opacity:1}}.result-actions{margin-top:20px}.admin-shortcut{color:#e2e8f0;text-decoration:none;border:1px solid rgba(255,255,255,.1);padding:9px 12px;border-radius:11px;font-size:12px}.history-total{font-size:20px;font-weight:900;color:#fbbf24;margin:10px 0 8px}.history-seq{font-size:12px;line-height:1.65;color:#cbd5e1;word-break:break-word}.history details{margin-top:12px}.history summary{cursor:pointer;color:#94a3b8;font-size:12px;font-weight:800}.history details .result-lines{margin-top:10px}
@media(max-width:650px){.history-grid.compact-mobile{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.history-grid.compact-mobile .history{padding:12px!important;border-radius:16px;min-width:0}.history-grid.compact-mobile .history-top{display:block}.history-grid.compact-mobile .history-top h3{font-size:16px;margin:1px 0}.history-grid.compact-mobile .history-top time{display:block;font-size:9px;margin-top:4px;color:#64748b}.history-grid.compact-mobile .history-total{font-size:14px;margin:8px 0 5px}.history-grid.compact-mobile .history-seq{font-size:10px;line-height:1.45;max-height:44px;overflow:hidden}.history-grid.compact-mobile details summary{font-size:10px}.history-grid.compact-mobile .result-lines div{display:block;font-size:9px;padding:5px 0}.history-grid.compact-mobile .result-lines strong{display:block;margin-top:2px}.prize-total{padding:15px}.top{padding-left:12px;padding-right:12px}.admin-shortcut{font-size:0;padding:9px}.admin-shortcut::first-letter{font-size:16px}}
/* V4 */
.prize-hero{margin:24px auto 14px;padding:24px 18px;max-width:560px;border-radius:22px;background:linear-gradient(135deg,#3d2b07,#17130a);border:1px solid #f0b72d55;box-shadow:0 18px 55px #e5a91e18}.prize-hero small{display:block;color:#e8c66f;font-weight:900;letter-spacing:1.3px}.prize-hero strong{display:block;margin-top:5px;font-size:clamp(38px,7vw,68px);line-height:1;color:#ffd568;text-shadow:0 5px 25px #d8991740}.history-total{font-size:24px;font-weight:950;color:#f0c45e;margin:10px 0 8px}.history-prizes{display:grid;gap:4px}.history-prizes div{display:flex;justify-content:space-between;gap:6px;border-top:1px solid #ffffff0c;padding:7px 0;font-size:12px}.history-prizes strong{color:#f2ca6b}.ball{transition:opacity .18s ease,transform .25s ease,filter .25s ease}.ball.fade-out{opacity:.15;transform:scale(.82)}.ball.live-reveal{animation:liveReveal .55s ease both}@keyframes liveReveal{0%{opacity:0;transform:scale(.55);filter:blur(5px)}60%{opacity:1;transform:scale(1.12);filter:blur(0)}100%{transform:scale(1)}}
@media(max-width:760px){.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.history{padding:12px 10px;min-width:0}.history h3{font-size:17px}.history time{font-size:9px}.history-total{font-size:16px}.history-prizes div{font-size:10px;padding:5px 0}.history-top{display:block}.prize-hero{padding:20px 10px}.prize-hero strong{font-size:38px}.balls{gap:9px}.ball{width:55px;height:55px}}
/* V5 - cards de resultados e exclusão administrativa */
.secondary{background:#1b2a3d;color:#e7eef8;border:1px solid #ffffff16}.result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.history-title{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:15px}.history-title b{color:#fff}.history-title span{color:#8ea0b5;font-size:12px}.history-total-label{margin:12px 0 8px;padding:9px 10px;border-radius:10px;background:#e9b84312;color:#d9c28d;font-size:11px;font-weight:900}.history-total-label strong{color:#ffd568;font-size:14px}.history-results div{align-items:center}.history-results span{white-space:nowrap}.history-results strong{white-space:nowrap}.tr-actions{grid-template-columns:1fr 1.5fr 1fr auto;align-items:center}.delete-btn{background:#6f1d28;color:#ffdce1;padding:9px 12px;font-size:11px}.delete-btn:hover{background:#8d2633}
@media(max-width:760px){.history-grid.compact-mobile{grid-template-columns:repeat(2,minmax(0,1fr))!important}.history-title{display:block;font-size:11px;line-height:1.35}.history-title span{display:block;font-size:8px;margin-top:2px}.history-total-label{font-size:8px;padding:7px 5px;margin:7px 0 5px}.history-total-label strong{font-size:10px;display:block;margin-top:2px}.history-results div{display:flex!important;padding:4px 0!important;font-size:8.5px!important;gap:3px}.history-results span{font-size:8.5px}.history-results strong{font-size:8.5px}.tr-actions{grid-template-columns:1fr 1.2fr auto}.tr-actions>*:nth-child(3){display:none}.delete-btn{padding:8px;font-size:0}.delete-btn::first-letter{font-size:14px}}

/* V6 - compartilhamento, CTA WhatsApp e histórico mobile vertical */
.facebook-share{background:#1877f2!important;color:#fff!important;border:1px solid #4593f7!important;box-shadow:0 10px 28px rgba(24,119,242,.22)}.facebook-share:hover{background:#166fe5!important}.whatsapp-share,.whatsapp-group{background:#25d366!important;color:#06180d!important;border:1px solid #46e47f!important;box-shadow:0 10px 28px rgba(37,211,102,.18)}.community-cta{margin:20px 0 34px;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.community-cta h2{margin:5px 0 5px}.community-cta p{margin:0;color:#91a1b5}.history{padding:25px}.history-title{line-height:1.55;margin-bottom:4px}.history-total-label{margin:16px 0 12px;line-height:1.55}.history-prizes{gap:7px}.history-prizes div{padding:10px 0;line-height:1.55}.history-prizes span,.history-prizes strong{letter-spacing:.1px}.result-actions .btn{min-width:150px}
@media(max-width:760px){.history-grid.compact-mobile{grid-template-columns:1fr!important;gap:14px!important}.history-grid.compact-mobile .history{padding:18px 16px!important;border-radius:18px}.history-grid.compact-mobile .history-title{display:flex;font-size:13px;line-height:1.6;gap:5px}.history-grid.compact-mobile .history-title span{display:inline;font-size:11px;margin:0}.history-grid.compact-mobile .history-total-label{font-size:10px;padding:10px 9px;margin:12px 0 9px;line-height:1.55}.history-grid.compact-mobile .history-total-label strong{font-size:13px;display:inline;margin:0}.history-grid.compact-mobile .history-results div{font-size:11px!important;padding:8px 0!important;gap:7px;line-height:1.55}.history-grid.compact-mobile .history-results span,.history-grid.compact-mobile .history-results strong{font-size:11px}.community-cta{display:block;text-align:center;padding:20px 16px}.community-cta .btn{margin-top:14px;width:100%}.result-actions{display:grid;grid-template-columns:1fr;gap:9px}.result-actions .btn{width:100%}}

/* V7 - ajustes de compartilhamento e personalizacao */
.facebook-share,.result-actions .facebook-share{background:#1877F2!important;background-color:#1877F2!important;color:#fff!important;border-color:#1877F2!important;font-weight:900!important}.facebook-share:hover,.result-actions .facebook-share:hover{background:#166FE5!important;background-color:#166FE5!important;color:#fff!important}.form textarea{width:100%;background:#07101c;border:1px solid #ffffff17;border-radius:12px;padding:14px;color:#fff;outline:none;resize:vertical;font:inherit}.form textarea:focus{border-color:#d7a632}
