@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
    --brand: #7e22ce;
    --brand-dark: #581c87;
    --brand-deep: #5e238d;
    --brand-soft: #f3e8ff;
    --brand-fixed: #f0dbff;
    --brand-line: #e9d5ff;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --emerald-soft: #ecfdf5;
    --ink: #111c2d;
    --text: #475569;
    --muted: #94a3b8;
    --bg: #faf8ff;
    --card: #ffffff;
    --line: #f1f5f9;
    --chip: #f8fafc;
    --err-bg: #fef2f2;
    --err-line: #dc2626;
    --shadow-sm: 0 4px 20px -2px rgba(107, 33, 168, .05), 0 2px 6px -1px rgba(0, 0, 0, .02);
    --shadow-md: 0 12px 32px -4px rgba(88, 28, 135, .12);
    --shadow-lg: 0 24px 48px -8px rgba(88, 28, 135, .2);
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; overscroll-behavior-y: none; }
a { color: inherit; }

/* ---------- Estrutura ---------- */
.wrap { max-width: 1200px; margin: auto; padding: 0 16px; }
header .wrap, footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
header { border-bottom: 1px solid rgba(124, 58, 237, .08); }
nav { display: flex; align-items: center; gap: 16px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
nav form { margin: 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; display: block; border-radius: 12px; }
.brand-text { font: 800 24px "Plus Jakarta Sans", sans-serif; letter-spacing: -0.5px; line-height: 1; }
.brand-text span {
    display: block;
    font: 700 10px "Plus Jakarta Sans", sans-serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brand);
}

main { padding-top: 8px; }

/* ---------- Tipografia ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
    color: var(--emerald-dark); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", sans-serif; }
h1 { font-size: clamp(32px, 7vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 16px 0; font-weight: 800; }
h1 .grad { background: linear-gradient(90deg, var(--brand), var(--brand-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 26px; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 20px; margin: 4px 0 8px; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 15px; margin: 4px 0 2px; font-weight: 700; }
p { line-height: 1.6; color: var(--text); font-size: 14px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head .pill-tag, .pill-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 999px;
    background: var(--brand-fixed); color: var(--brand-deep);
    font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.section-head p { margin: 10px auto 0; }

/* ---------- Painéis e avisos ---------- */
.panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.notice {
    padding: 16px 18px;
    background: var(--emerald-soft);
    border: 1px solid rgba(16, 185, 129, .3);
    border-left: 4px solid var(--emerald);
    border-radius: 16px;
    margin: 16px auto;
    max-width: 1200px;
    line-height: 1.5;
    font-weight: 600;
    font-size: 14px;
}
.wrap > .notice { padding-left: 16px; padding-right: 16px; }
.notice.error { background: var(--err-bg); border-color: #fecaca; border-left-color: var(--err-line); color: #7f1d1d; }
.notice.ok { background: var(--emerald-soft); border-color: rgba(16,185,129,.3); border-left-color: var(--emerald-dark); }
.empty { color: var(--muted); }

/* ---------- Barra ao vivo ---------- */
.livebar {
    background: var(--chip);
    border-bottom: 1px solid rgba(124, 58, 237, .08);
}
.livebar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.livebar .live-left { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); animation: pulse 1.6s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.live-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--emerald-dark); text-transform: uppercase; flex-shrink: 0; }
.live-text { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-text strong { color: var(--ink); font-weight: 700; }
.live-right { display: none; font-size: 12px; color: var(--muted); gap: 16px; align-items: center; flex-shrink: 0; }
.live-right strong { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f3ff 0%, rgba(249,249,255,.4) 55%, var(--bg) 100%);
    padding: 48px 0 40px;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero::before { width: 380px; height: 380px; background: rgba(240,219,255,.5); top: -120px; left: -100px; }
.hero::after { width: 420px; height: 420px; background: rgba(111,251,187,.18); top: 30%; right: -140px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
h1.hero-title { max-width: 620px; }
.hero-sub { font-size: 16px; max-width: 520px; margin: 0 0 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 600; color: var(--text); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ok { color: var(--emerald-dark); font-weight: 800; }

/* Card destaque do hero */
.featured { position: relative; }
.featured::before {
    content: ""; position: absolute; inset: -8px;
    background: linear-gradient(135deg, rgba(240,219,255,.5), rgba(111,251,187,.3));
    border-radius: 28px; filter: blur(14px); z-index: 0;
}
.featured-card {
    position: relative; z-index: 1;
    background: var(--card); border-radius: 20px; padding: 18px;
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.featured-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tag-hot {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(111,251,187,.5); color: #005236;
    font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.tag-end { font-size: 11px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.featured-img { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--chip); margin-bottom: 14px; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-stock {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
    padding: 5px 12px; border-radius: 10px;
    font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 7px;
}
.featured-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.progress-box { background: var(--chip); border-radius: 14px; padding: 14px; margin: 14px 0; }
.progress-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.progress-row .purple { color: var(--brand); font-weight: 800; }
.progress-bar { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress-bar > div { height: 100%; border-radius: 999px; background: var(--brand); }
.progress-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }
.progress-foot .green { color: var(--emerald-dark); font-weight: 700; }
.featured-card h3 { font-size: 19px; margin: 0 0 4px; }
.featured-card .fdesc { font-size: 13px; margin: 0 0 14px; }

/* ---------- Banner WhatsApp ---------- */
.waba {
    background: linear-gradient(90deg, rgba(222,232,255,.6), rgba(240,243,255,.6), rgba(222,232,255,.6));
    padding: 28px 0;
}
.waba-box {
    display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: space-between;
    background: var(--card); border-radius: 20px; padding: 22px;
    box-shadow: var(--shadow-sm);
}
.waba-info { display: flex; align-items: center; gap: 16px; }
.waba-icon {
    width: 50px; height: 50px; border-radius: 16px; flex-shrink: 0;
    background: var(--emerald); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px -2px rgba(16,185,129,.4);
}
.waba-box h4 { margin: 0 0 4px; font-size: 18px; }
.waba-box p { margin: 0; font-size: 13px; }

/* ---------- Formulários ---------- */
label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    font: inherit;
    color: var(--ink);
    min-height: 50px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
}
input:user-invalid, textarea:user-invalid { border-color: var(--err-line); }

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 14px 22px;
    min-height: 50px;
    background: var(--brand);
    color: #fff;
    font: 700 15px "Plus Jakarta Sans", sans-serif;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px -2px rgba(126, 34, 206, .35);
    transition: transform .1s ease, background .15s ease;
}
button:hover, .button:hover { background: var(--brand-dark); }
button:active, .button:active { transform: scale(.98); }
button:disabled, .button.disabled { opacity: .55; cursor: wait; transform: none; }
button.whatsapp {
    background: var(--emerald);
    box-shadow: 0 4px 14px -2px rgba(16, 185, 129, .4);
}
button.whatsapp:hover { background: var(--emerald-dark); }
button.quiet, .quiet {
    background: #f1f5f9; color: var(--brand-dark);
    padding: 10px 14px; min-height: 40px; font-size: 13px; box-shadow: none;
}
button.quiet:hover { background: var(--brand-soft); }
form > button { margin-top: 14px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.wide { grid-column: 1 / -1; }
.prize-row { display: contents; }

fieldset {
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    padding: 14px 16px;
    display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0;
    background: #fdfaff;
}
legend { font-size: 13px; font-weight: 700; padding: 0 6px; color: var(--brand-dark); }
fieldset label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
fieldset input[type="radio"] { width: auto; min-height: 0; accent-color: var(--brand); }

/* ---------- Login ---------- */
.login { background: linear-gradient(135deg, #faf5ff, #f3e8ff); }
.login h2 { margin-bottom: 8px; }
.login > div { margin-bottom: 8px; }
.login .panel { box-shadow: var(--shadow-sm); }
.login .waba-box { flex-direction: column; align-items: stretch; }

/* ---------- Sorteios ---------- */
.raffles { padding: 48px 0; }
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }

.card {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--brand-soft);
    overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.media-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.badge {
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    background: var(--emerald-soft); color: #065f46;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.badge.off { background: #f1f5f9; color: var(--text); }
.badge.off::before { background: var(--muted); }
.badge.draft-badge { background: var(--brand-fixed); color: var(--brand-deep); }
.badge.draft-badge::before { background: var(--brand); }
.badge.instant {
    position: absolute; bottom: 12px; right: 12px;
    padding: 4px 10px; border-radius: 8px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
    color: var(--ink); font-size: 11px; font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-topline { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); }
.card-topline .stock { color: var(--brand); font-weight: 800; }
.card-body h3 { margin: 0; transition: color .2s; }
.card:hover .card-body h3 { color: var(--brand); }
.card-body .desc { margin: 0; font-size: 13px; }
.card ul { padding-left: 20px; line-height: 1.9; margin: 0; font-size: 13px; }
.card li span { color: var(--muted); font-size: 12px; }

/* Caixa de metadados do card */
.metabox {
    background: var(--chip);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 13px; font-weight: 600;
}
.metabox .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metabox .row .lbl { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 12px; }
.metabox .row .lbl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.metabox .row .lbl .dot.green { background: var(--emerald); }
.metabox .row .val { font-weight: 800; color: var(--ink); }
.metabox .row .val.green { color: var(--emerald-dark); }
.card form { margin-top: auto; }
.card form button, .card .button { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions button { margin-top: 8px; }

/* ---------- Como participar ---------- */
.steps-sec { background: #f0f3ff; padding: 56px 0; }
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
.step {
    background: var(--card); border-radius: 20px; padding: 26px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    position: relative; overflow: hidden;
}
.step-ico {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-fixed); color: var(--brand);
    font-weight: 800; font-size: 18px;
}
.step:nth-child(2) .step-ico { background: rgba(111,251,187,.5); color: #005236; }
.step:nth-child(3) .step-ico { background: #f2daff; color: var(--brand-deep); }
.step .passo { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.step:nth-child(2) .passo { color: var(--emerald-dark); }
.step:nth-child(3) .passo { color: var(--brand-deep); }
.step h3 { margin: 2px 0 6px; font-size: 18px; }
.step p { margin: 0; font-size: 14px; }
.step .check { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--emerald-dark); padding-top: 14px; border-top: 1px solid var(--line); }
.step .check::before { content: "✓"; font-weight: 800; }
.notice-box {
    margin-top: 24px;
    display: flex; align-items: center; gap: 14px;
    background: var(--card); border-radius: 16px; padding: 18px;
    box-shadow: var(--shadow-sm); font-size: 14px;
}
.notice-box .nicon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: rgba(240,219,255,.5); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.notice-box strong { color: var(--ink); }

/* ---------- Faixa transparência ---------- */
.strip { padding: 48px 0; }
.strip-box {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--brand-deep), var(--brand), var(--brand));
    border-radius: 28px; padding: 40px 32px;
    color: #fff; box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
}
.strip-box::after {
    content: ""; position: absolute; right: -80px; bottom: -80px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(111,251,187,.12); filter: blur(30px); pointer-events: none;
}
.strip-box .strip-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 999px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.strip-box h3 { color: #fff; font-size: 26px; margin: 12px 0 8px; }
.strip-box p { color: #e9d5ff; font-size: 15px; max-width: 560px; }
.strip-ctas { display: flex; flex-direction: column; gap: 10px; }
.strip-ctas button, .strip-ctas .button {
    background: var(--emerald); box-shadow: 0 4px 14px -2px rgba(16,185,129,.45);
}
.strip-ctas button:hover, .strip-ctas .button:hover { background: var(--emerald-dark); }
.strip-ctas .ghost {
    background: rgba(255,255,255,.12); color: #fff; box-shadow: none;
}
.strip-ctas .ghost:hover { background: rgba(255,255,255,.22); }

/* ---------- Histórico ---------- */
.history {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid var(--line);
}
.history:first-of-type { border-top: 0; }
.history p { font-size: 12px; margin: 4px 0; }
.history > span { white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--emerald-dark); }

/* ---------- Footer ---------- */
footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { padding-top: 36px; padding-bottom: 40px; flex-direction: column; align-items: flex-start; gap: 8px; }
footer .fgrid { display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
footer h5 { font-size: 14px; margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer li a, footer p { font-size: 13px; color: var(--text); text-decoration: none; }
footer .fine { font-size: 12px; color: var(--muted); }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
    .wrap { padding: 0 24px; }
    header .wrap, footer .wrap { padding-left: 24px; padding-right: 24px; }
    .brand img { width: 54px; height: 54px; }
    .brand-text { font-size: 30px; }
    .hero { padding: 72px 0 56px; }
    .hero-grid { grid-template-columns: 7fr 5fr; gap: 48px; }
    .waba-box { flex-direction: row; justify-content: space-between; padding: 26px 30px; }
    .login { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .login > div:first-child { grid-column: 1; }
    .login form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
    .login form > * { margin-top: 0; }
    .login .waba-box { flex-direction: column; align-items: stretch; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    fieldset { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .strip-box { grid-template-columns: 8fr 4fr; padding: 48px 40px; }
    .strip-ctas { flex-direction: row; }
    .strip-ctas .button { flex: 1; }
    .fgrid { grid-template-columns: 2fr 1fr 1fr; }
    .live-right { display: flex; }
    .history { flex-direction: row; align-items: center; }
}

@media (min-width: 1000px) {
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Ajustes de fidelidade ao mockup ---------- */
.navpills { display: none; gap: 4px; background: #f0f3ff; padding: 4px; border-radius: 999px; }
.navpills a { padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text); }
.navpills a:first-child { background: var(--brand); color: #fff; }
.wa-btn { background: var(--emerald-dark); min-height: 42px; padding: 10px 18px; font-size: 13px; border-radius: 999px; box-shadow: none; color: #fff; }
.wa-btn:hover { background: #047857; }
nav a.button { color: #fff; }
.nowrap { white-space: nowrap; }
.waba-forms { display: grid; gap: 12px; width: 100%; max-width: 520px; }
.inline-form { display: flex; gap: 10px; align-items: stretch; margin: 0; }
.inline-form > button { margin-top: 0; flex-shrink: 0; }
.inline-form > input { flex: 1; }
.phone-field { position: relative; flex: 1; }
.phone-field span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--text); }
.phone-field input { padding-left: 52px; }
.hero-ctas .button.quiet { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); min-height: 50px; padding: 14px 22px; font-size: 15px; }
.card-body .desc { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more { font-size: 13px; }
.more summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 4px 0; list-style: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "− "; }
.more ul { margin: 8px 0 4px; }
.safe-box { background: #f0f3ff; border-radius: 14px; padding: 16px; }
.safe-box h5 { margin: 0 0 6px; }
.safe-box p { margin: 0; font-size: 12px; }
@media (min-width: 720px) {
    .navpills { display: flex; }
    .waba-forms { width: auto; min-width: 440px; }
    .fgrid { grid-template-columns: 2fr 1fr 1fr 2fr !important; }
}
@media (max-width: 719px) {
    .inline-form { flex-direction: column; }
    .inline-form > button { width: 100%; }
}
.detail-toggle, .card .detail-toggle { width: 100%; }
.detail-login { width: 100%; margin-top: 8px; font-size: 13px; }
.more[open] { padding-bottom: 4px; }

/* Modal de resultado com suspense visual; o resultado continua decidido no servidor. */
body.modal-open { overflow: hidden; }
.roulette-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(17, 28, 45, .58);
    backdrop-filter: blur(8px);
    animation: overlay-in .2s ease-out both;
}
.roulette-dialog {
    position: relative; width: min(100%, 440px); overflow: hidden;
    padding: 28px 24px 30px; text-align: center;
    border: 1px solid rgba(255,255,255,.8); border-radius: 28px;
    background: linear-gradient(160deg, #fff 20%, #faf8ff 100%);
    box-shadow: var(--shadow-lg);
}
.roulette-close {
    position: absolute; z-index: 2; top: 12px; right: 12px;
    width: 40px; height: 40px; min-height: 40px; padding: 0;
    border-radius: 50%; background: #f1f5f9; color: var(--text);
    box-shadow: none; font-size: 26px; line-height: 1;
}
.roulette-close:hover { background: #e2e8f0; }
.roulette-kicker { margin: 2px 36px 16px; color: var(--muted); font-size: 11px; font-weight: 700; }
.roulette-wheel-wrap { position: relative; width: 214px; height: 214px; margin: 0 auto 18px; }
.roulette-wheel {
    width: 100%; height: 100%; display: grid; place-items: center;
    border: 8px solid #fff; border-radius: 50%;
    background: conic-gradient(from -15deg, #7e22ce 0 30deg, #f0dbff 30deg 60deg, #10b981 60deg 90deg, #fff 90deg 120deg, #7e22ce 120deg 150deg, #f0dbff 150deg 180deg, #10b981 180deg 210deg, #fff 210deg 240deg, #7e22ce 240deg 270deg, #f0dbff 270deg 300deg, #10b981 300deg 330deg, #fff 330deg 360deg);
    box-shadow: 0 8px 24px rgba(88,28,135,.18), inset 0 0 0 2px rgba(255,255,255,.7);
    animation: wheel-spin 2.4s cubic-bezier(.12,.72,.12,1) both;
}
.roulette-wheel::before { content: ""; position: absolute; width: 74px; height: 74px; border: 5px solid #fff; border-radius: 50%; background: var(--brand-dark); box-shadow: 0 3px 10px rgba(17,28,45,.2); }
.roulette-wheel span { position: relative; z-index: 1; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.roulette-pointer {
    position: absolute; z-index: 1; top: -5px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent;
    border-top: 28px solid #f4c95d; filter: drop-shadow(0 2px 2px rgba(17,28,45,.25));
}
.roulette-spinning { margin: 10px 0 0; color: var(--brand-dark); font-size: 15px; font-weight: 800; }
.roulette-result[hidden] { display: none; }
.roulette-result { animation: reveal-in .35s ease-out both; }
.roulette-result h2 { margin: 4px 0 8px; font-size: 24px; }
.roulette-result p { font-size: 14px; }
.roulette-outcome { margin: 0; font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.roulette-outcome.win { color: var(--emerald-dark); }
.roulette-outcome.loss { color: var(--brand); }
.roulette-action { width: 100%; margin-top: 12px; }
.roulette-overlay.revealed .roulette-wheel { animation-play-state: paused; }
@keyframes wheel-spin { from { transform: rotate(0); } to { transform: rotate(1600deg); } }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .roulette-overlay, .roulette-wheel, .roulette-result { animation-duration: .01ms !important; }
    .roulette-spinning { display: none; }
}
