:root {
    --bg: #090d16;
    --sheet: #0e1422;
    --card: rgba(20, 28, 45, 0.75);
    --card-solid: #131b2e;
    --card-2: #1b263b;
    --line: rgba(255, 255, 255, 0.08);
    --line-light: rgba(255, 255, 255, 0.15);
    --text: #f8fafc;
    --muted: #94a3b8;
    --subtle: #64748b;
    --green: #10b981;
    --green-2: #059669;
    --green-light: #34d399;
    --green-glow: rgba(16, 185, 129, 0.35);
    --danger: #f43f5e;
    --warn: #f59e0b;
    --shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #090d16;
    color: var(--text);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.phone {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    position: relative;
    padding-bottom: 160px;
}
.desktop-nav { display: none; }
html { scroll-padding-bottom: 170px; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 13, 22, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 17px;
    color: #ffffff;
}
.brand-logo {
    padding: 2px 0;
}
.site-logo-img {
    height: 42px;
    width: auto;
    max-height: 44px;
    max-width: 190px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s ease, filter 0.2s ease;
}
.brand-logo:hover .site-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.35));
}
.mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.top-actions { display: flex; gap: 8px; }
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: var(--line-light);
}

.menu {
    margin: 0 16px 14px;
    background: rgba(20, 28, 45, 0.95);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.menu a {
    display: block;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    transition: all 0.15s ease;
}
.menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding-left: 22px;
}
.menu a:last-child { border-bottom: 0; }

main { padding: 10px 18px 24px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 12px 2px 16px; }
.section-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: #fff; }
.section-head span { color: var(--muted); font-size: 14px; font-weight: 500; }

.campaign-card {
    display: block;
    background: rgba(20, 28, 45, 0.7);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.campaign-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.15);
}
.media {
    position: relative;
    aspect-ratio: 16/8;
    background: #141c2d center/cover no-repeat;
}
.media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.8) 0%, transparent 60%);
    pointer-events: none;
}
.media .emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)); }
.badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.55);
    backdrop-filter: blur(8px);
    color: #34d399;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.badge.done {
    background: rgba(100, 116, 139, 0.25);
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}
.campaign-copy { padding: 16px 16px 6px; }
.campaign-copy h2, .campaign-copy h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.campaign-copy p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.buy-strip {
    margin: 0 14px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 14px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}
.buy-strip:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}
.buy-strip small { display: block; font-weight: 500; opacity: .9; font-size: 12px; }
.price { font-size: 20px; font-weight: 800; }

.winner-card, .panel, .prize, .offer, .combo, .ticket, .form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
.winner-card { display: flex; gap: 14px; padding: 16px; margin-bottom: 12px; align-items: center; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399; flex: 0 0 auto;
}
.winner-card h3, .panel h2, .panel h3 { margin: 0 0 4px; font-weight: 700; color: #fff; }
.muted { color: var(--muted); }
.meta { margin: 2px 0; font-size: 13.5px; color: var(--muted); }

.tabbar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 24px));
    background: rgba(14, 20, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 6px 10px;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.tabbar a {
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}
.tabbar a.on { color: #34d399; font-weight: 700; }
.tabbar .center span {
    width: 52px; height: 52px; margin-top: -26px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 4px solid #090d16;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.hero {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: #141c2d center/cover no-repeat;
    aspect-ratio: 16/10;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.8) 0%, transparent 60%);
    pointer-events: none;
}
.hero .emoji {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 84px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}
.progress {
    margin: 14px 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    height: 26px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.progress b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #059669 0%, #10b981 70%, #34d399 100%);
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
    transition: width 0.4s ease;
}
.price-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin: 12px 0 8px;
}
.price-pill {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    padding: 4px 14px;
    color: #34d399;
    font-weight: 800;
    font-size: 17px;
}

/* Secondary collapsible triggers (Replaces blocky green buttons!) */
.collapsible-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 16px;
}
.stack-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}
.stack-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-light);
    transform: translateY(-1px);
    color: #ffffff;
}
.stack-btn::after {
    content: "▾";
    font-size: 15px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}
.stack-btn.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
}
.stack-btn.active::after {
    transform: rotate(180deg);
    color: #34d399;
}
.panel {
    background: rgba(20, 28, 45, 0.6);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 6px;
}

/* Primary and Ghost actions */
.primary {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.01em;
    padding: 13px 18px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    filter: brightness(1.06);
}
.ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-light);
    color: #ffffff;
}

.row { display: flex; gap: 10px; align-items: center; }

/* Stepper and Buy form */
.sticky-buy {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin: 14px 0 10px;
    background: rgba(20, 28, 45, 0.7);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 6px 8px;
    backdrop-filter: blur(12px);
}
.stepper {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(9, 13, 22, 0.9);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 3px;
}
.stepper button {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 0;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: grid;
    place-items: center;
}
.stepper button:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #34d399;
}
.stepper input {
    width: 58px;
    text-align: center;
    background: transparent;
    border: 0;
    font-weight: 800;
    font-size: 17px;
    color: #ffffff;
    padding: 0;
}
.sticky-buy .primary {
    flex: 1;
    min-height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sticky-buy .primary span[data-total] {
    background: rgba(0, 0, 0, 0.25);
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 800;
}

/* Discount Ribbon */
.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 28, 45, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    padding: 8px 14px;
    color: #f8fafc;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chip:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}
.chip em {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* Quick Add Offer Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 0 20px;
}
@media (max-width: 580px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
.offer, .chip, .stack-btn, .prize, details, .combo { scroll-margin-bottom: 140px; }
.offer {
    position: relative;
    background: rgba(20, 28, 45, 0.65);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.offer:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.offer.on {
    outline: 2px solid var(--green);
    background: rgba(16, 185, 129, 0.12);
}
.offer strong {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.offer span {
    font-size: 13px;
    font-weight: 600;
    color: #34d399;
}
.offer .muted {
    font-size: 12px;
    color: var(--subtle);
}
.offer em {
    position: absolute;
    top: -7px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.promo, .panel { padding: 14px; margin: 12px 0; }
.promo {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
}
.combo {
    background: rgba(20, 28, 45, 0.7);
    border: 1px solid var(--line);
    border-left: 4px solid #10b981;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.combo .muted { font-size: 12px; color: #94a3b8; margin: 0; }
.combo h3 { font-size: 16px; color: #fff; margin: 2px 0 4px; font-weight: 700; }
.combo p { font-size: 13px; color: #cbd5e1; margin: 0; }
.combo strong { display: inline-block; margin-top: 6px; color: #34d399; font-size: 13px; font-weight: 700; }

.section-side-title {
    font-size: 16px;
    font-weight: 800;
    margin: 20px 0 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ranking-item, .prize {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 28, 45, 0.6);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.15s ease;
}
.ranking-item:hover, .prize:hover {
    background: rgba(20, 28, 45, 0.85);
    border-color: var(--line-light);
}
.ranking-item strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #e2e8f0;
    font-weight: 600;
}
.ranking-item .rank-badge {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.ranking-item:nth-child(1) .rank-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}
.ranking-item:nth-child(2) .rank-badge {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #000;
}
.ranking-item:nth-child(3) .rank-badge {
    background: linear-gradient(135deg, #b45309, #78350f);
    color: #fff;
}
.ranking-item span {
    font-size: 12px;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
}

.filters { display: flex; gap: 8px; margin-bottom: 10px; }
.filters button.on { background: var(--green); border-color: var(--green); }

.promo-inline { text-align: center; color: #b6f3cd; font-weight: 700; }
.bump {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 12px;
    color: var(--text);
}
.bump input { width: auto; margin-top: 4px; }
.bump small { display: block; color: var(--muted); font-weight: 500; }
.checkline { display: flex; gap: 8px; align-items: center; color: var(--text); }
.scratch { position: relative; height: 90px; border-radius: 14px; overflow: hidden; background: #123524; display: grid; place-items: center; margin-bottom: 10px; }
.scratch span { font-weight: 800; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.box-lid {
    width: 100%;
    min-height: 92px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #f5b942, #c4842a);
    color: #2a1c08;
    font-weight: 800;
    cursor: pointer;
}
.reveal.abrindo .box-lid, form.abrindo .box-lid { transform: translateY(-8px) rotate(-6deg); }
.reveal.aberta strong { display: block; margin-top: 8px; }
.reveal.acabou { outline: 2px solid var(--green-2); }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea, select {
    width: 100%; background: #101820; border: 1px solid var(--line);
    border-radius: 12px; padding: 12px; outline: none;
}
textarea { min-height: 110px; resize: vertical; }
.flash { padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; }
.flash.ok { background: #123524; color: #b6f3cd; }
.flash.err { background: #3a1720; color: #fecaca; }
.pix {
    background: white; color: #111; border-radius: 16px; padding: 12px; text-align: center;
}
.pix canvas, .pix img { margin: 0 auto; }
.numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.numbers span { background: #101820; border-radius: 8px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.ticket { padding: 14px; margin-bottom: 12px; }
.receipt {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}
.receipt h2, .receipt h3 { margin: 8px 0; }
.receipt p { margin: 8px 0; }
.receipt-actions { display: grid; gap: 10px; margin-top: 14px; }
.receipt-actions .primary, .receipt-actions .ghost { display: block; text-align: center; }
@media print {
    .topbar, .tabbar, .whats, .no-print, .menu { display: none !important; }
    body, .phone { background: white; color: #111; padding: 0; }
    .receipt { border-color: #ccc; }
    .numbers span { border: 1px solid #ccc; color: #111; }
}
.whats {
    position: fixed; right: max(16px, calc(50% - 220px)); bottom: 118px;
    background: #10b981; color: white; border-radius: 999px; padding: 10px 14px; font-weight: 800; z-index: 25;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
details {
    background: rgba(20, 28, 45, 0.6);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 12px 0 16px;
    transition: all 0.2s ease;
}
details[open] {
    background: rgba(20, 28, 45, 0.85);
    border-color: var(--line-light);
}
summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #e2e8f0; }
summary:hover { color: #34d399; }
.help { font-size: 13px; color: var(--muted); }

.admin-body { background: #0c1218; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side {
    background: #121a23;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.side a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--muted); }
.side a.brand { display: flex; align-items: center; gap: 10px; color: white; margin-bottom: 12px; }
.side a.on, .side a:hover { background: #1c2834; color: white; }
.admin-main { padding: 24px; min-width: 0; }
.admin-main .form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin: 0 0 16px;
}
.admin-main .form .row { align-items: flex-start; flex-wrap: wrap; margin: 0; }
.admin-main .form .row > label { flex: 1 1 180px; min-width: 0; }
.admin-main .form label,
.admin-main .form p { margin: 0; }
.admin-main .form button { margin: 0; }
.admin-main table { margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--card); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-size: 26px; margin-top: 6px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap {
    overflow: hidden;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
}
.admin-main .table-wrap table {
    margin: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
}
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap .num,
.table-wrap .status,
.table-wrap td.actions { vertical-align: middle; white-space: nowrap; }
.table-wrap .status { text-align: right; }
.table-wrap td.actions { width: 1%; display: table-cell; }
.table-wrap th:last-child:empty,
.table-wrap td.actions:not(:has(button, a)) { width: 0; padding: 0; font-size: 0; }
.toolbar { margin: 0 0 16px; }
.campaign-admin { display: flex; flex-direction: column; gap: 12px; }
.campaign-admin article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.campaign-admin h2 { margin: 0 0 8px; font-size: 18px; }
.campaign-admin p { margin: 0; color: var(--muted); line-height: 1.6; }
.campaign-admin .tag { margin-right: 6px; }
.campaign-admin .actions,
.action-list { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.campaign-admin .actions form,
.action-list form { margin: 0; }
.admin-main .toolbar a.mini,
.admin-main .actions a.mini,
.admin-main .actions button.mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}
.admin-main .campaign-admin .actions a.mini,
.admin-main .campaign-admin .actions button.mini,
.admin-main .action-list a.mini,
.admin-main .action-list button.mini { display: flex; width: 100%; }
.admin-main .campaign-admin .actions a.mini,
.admin-main .action-list a.mini { background: #243140; }
.admin-main .campaign-admin .actions button.mini,
.admin-main .action-list button.mini { color: #fecaca; border-color: #6b3038; }
@media (max-width: 720px) {
    .campaign-admin article { grid-template-columns: 1fr; }
}
.mini { width: auto; padding: 8px 10px; border-radius: 10px; }
.tag { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: 12px; background: #243140; }
.tag.pago { background: #123524; color: #b6f3cd; }
.tag.pendente { background: #3a3114; color: #fde68a; }
.tag.ativa { background: #123524; color: #b6f3cd; }
.login-card { width: min(420px, calc(100% - 32px)); margin: 10vh auto; background: var(--card); padding: 24px; border-radius: 20px; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .side { display: flex; gap: 6px; overflow: auto; scrollbar-width: none; }
    .side::-webkit-scrollbar { display: none; }
    .side a { white-space: nowrap; }
}

@media (min-width: 901px) {
    body { background: var(--bg); }
    html { scroll-padding-bottom: 32px; }
    .phone { padding-bottom: 48px; }
    .topbar {
        gap: 0;
        padding: 0;
        border-bottom: 1px solid var(--line);
    }
    .topbar-inner {
        width: min(1180px, calc(100% - 64px));
        margin: 0 auto;
        padding: 14px 0;
        gap: 20px;
    }
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }
    .desktop-nav a {
        padding: 8px 14px;
        border-radius: 999px;
        color: var(--muted);
        font-weight: 700;
    }
    .desktop-nav a.on,
    .desktop-nav a:hover { background: #1c2834; color: white; }
    .top-actions,
    .tabbar,
    .menu { display: none !important; }
    main {
        width: min(1180px, calc(100% - 64px));
        margin: 0 auto;
        padding: 28px 0 48px;
    }
    .campaign-grid,
    .winner-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 20px;
    }
    .campaign-card,
    .winner-card { margin-bottom: 0; }
    .media { aspect-ratio: 16/9; }
    .campaign-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
        gap: 28px;
        align-items: start;
    }
    .hero { aspect-ratio: 16/9; }
    .grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .phone .form { max-width: 560px; }
    .whats { right: 24px; bottom: 24px; }
    .offer, .chip, .stack-btn, .prize, details, .combo { scroll-margin-bottom: 24px; }
}

/* ========================================================
   Admin - Pedidos Avançados, WhatsApp, Paginação e Logs
   ======================================================== */
.admin-pedidos-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}
.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: all .15s ease;
}
.tab-pill:hover,
.tab-pill.active {
    background: #243140;
    color: var(--text);
    border-color: #3e5369;
}
.tab-pill.active {
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.badge-count {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(255,255,255,.08);
    color: var(--muted);
}
.badge-count.warn {
    background: rgba(245, 185, 66, .2);
    color: #fde68a;
}
.badge-count.ok {
    background: rgba(39, 195, 106, .2);
    color: #b6f3cd;
}

.pedidos-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: var(--sheet);
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
}
.search-input-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
}
.pedidos-filter-bar select {
    height: 38px;
    padding: 0 32px 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: 13px;
    color: var(--text);
    max-width: 260px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.search-input-wrap input {
    width: 100%;
    height: 38px;
    padding: 0 34px 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: 13px;
    color: var(--text);
    box-sizing: border-box;
}
.clear-search {
    position: absolute;
    right: 10px;
    color: var(--muted);
    font-size: 13px;
    padding: 2px 6px;
    text-decoration: none;
}
.pedidos-filter-bar button {
    height: 38px;
    box-sizing: border-box;
}
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    box-sizing: border-box;
    background: #1b382b !important;
    color: #a7f3d0 !important;
    border: 1px solid #059669 !important;
    text-decoration: none;
}
.export-btn:hover {
    background: #047857 !important;
    color: white !important;
}

.table-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

.pedidos-table th,
.pedidos-table td {
    padding: 12px 10px;
    vertical-align: middle;
}
.phone-link {
    color: #93c5fd;
    font-size: 13px;
}
.cotas-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.cota-badge {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: monospace;
    color: #cbd5e1;
}
.cota-more {
    font-size: 11px;
    color: var(--muted);
    align-self: center;
}

.action-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.whats-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: #14532d;
    color: #bbf7d0;
    border: 1px solid #16a34a;
    transition: all .15s ease;
    text-decoration: none;
}
.whats-action-btn:hover {
    background: #16a34a;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}
.page-link:hover,
.page-link.active {
    background: var(--green);
    border-color: var(--green-2);
    color: white;
}

.log-box {
    background: #090d12;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 280px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ========================================================
   Admin - Formulário Simplificado de Campanhas
   ======================================================== */
.campaign-form-container {
    max-width: 860px;
    margin: 0 auto;
}
.essential-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.card-title {
    margin: 0 0 4px 0;
    font-size: 19px;
    color: var(--text);
}
.summary-live-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: rgba(31, 157, 85, .1);
    border: 1px solid rgba(31, 157, 85, .3);
    border-radius: 14px;
    padding: 14px;
    margin-top: 14px;
}
@media (max-width: 600px) {
    .summary-live-box { grid-template-columns: 1fr; }
}
.summary-item .lbl {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}
.summary-item .val {
    font-size: 18px;
    color: var(--green-2);
}
.advanced-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all .2s ease;
}
.advanced-section summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255,255,255,.02);
    cursor: pointer;
    user-select: none;
}
.advanced-section summary:hover {
    color: white;
    background: rgba(255,255,255,.05);
}
.advanced-section[open] summary {
    border-bottom: 1px solid var(--line);
    color: var(--green-2);
}
.details-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Container do form principal sem borda duplicada */
.campaign-main-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Sistema de Grid Perfeitamente Alinhado */
.grid-fields-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.grid-fields-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
@media (max-width: 768px) {
    .grid-fields-3 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .grid-fields-2 {
        grid-template-columns: 1fr;
    }
}

/* Campo de Formulário com Alinhamento e Altura Rigorosa */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.form-field > label {
    display: flex;
    align-items: center;
    min-height: 20px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}
.form-field > input,
.form-field > select,
.form-field > textarea {
    width: 100%;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
    font-size: 14px;
    padding: 0 14px;
    background: #0d141d;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field > textarea {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    line-height: 1.5;
}
.form-field > input:focus,
.form-field > select:focus,
.form-field > textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 157, 85, .2);
}
.form-field > .help {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 0;
    line-height: 1.4;
    min-height: 17px;
}

/* Select moderno com seta SVG estilizada */
.form-field select,
select.custom-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

/* Upload de Imagem Elegante e Alinhado */
.file-upload-box {
    background: #0d141d;
    border: 1px dashed var(--line);
    border-radius: 12px;
    transition: border-color .15s ease, background .15s ease;
}
.file-upload-box:hover {
    border-color: var(--green);
    background: #111a24;
}
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    cursor: pointer;
    min-height: 46px;
    box-sizing: border-box;
    width: 100%;
}
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1c2834;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.file-upload-label:hover .file-upload-btn {
    background: var(--green);
    border-color: var(--green-2);
    color: white;
}
.file-upload-name {
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.file-native-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Alinhamento de linhas dinâmicas */
.cota-premiada-row,
.travar-row,
.offer-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, .02);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-sizing: border-box;
}
.cota-premiada-row input,
.travar-row input,
.offer-row input,
.offer-row select {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

/* Cards de Minigames da Gamificação */
.minigame-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    background: #0d141d;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    position: relative;
    box-sizing: border-box;
}
.minigame-card:hover {
    border-color: rgba(31, 157, 85, .5);
    background: #111a24;
}
.minigame-card.active {
    border-color: var(--green);
    background: rgba(31, 157, 85, .08);
    box-shadow: 0 0 15px rgba(31, 157, 85, .15);
}
.minigame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.minigame-icon {
    font-size: 26px;
    line-height: 1;
}
.minigame-checkbox {
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    cursor: pointer;
    accent-color: var(--green);
}
.minigame-title {
    font-size: 14px;
    color: white;
    font-weight: 700;
}
.minigame-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
}

/* Linhas de Prêmios da Roleta */
.roleta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .02);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 8px;
    box-sizing: border-box;
}
.roleta-row input {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}
.roleta-row .btn-remove-roleta {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ========================================================
   Checkout Moderno e Otimizado para Conversão
   ======================================================== */
.checkout-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 4px;
}

/* Stepper de Progresso */
.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 8px;
}
.step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.step.completed {
    color: var(--green-2);
}
.step.current {
    color: white;
}
.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #1c2631;
    border: 1px solid var(--line);
    color: var(--muted);
}
.step.completed .step-num {
    background: var(--green);
    border-color: var(--green-2);
    color: white;
}
.step.current .step-num {
    background: #2563eb;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 0 10px rgba(59, 130, 246, .4);
}
.step-divider {
    width: 28px;
    height: 2px;
    background: var(--line);
}
.step-divider.active {
    background: var(--green);
}
@media (max-width: 480px) {
    .checkout-stepper {
        gap: 4px;
        margin-bottom: 16px;
    }
    .step {
        font-size: 11px;
        gap: 4px;
    }
    .step-num {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    .step-divider {
        width: 14px;
    }
}

.checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color .2s ease;
}
.checkout-back-link:hover {
    color: var(--text);
}

.edit-qty-link {
    font-size: 11px;
    color: var(--muted);
    text-decoration: underline;
    transition: color .2s ease;
}
.edit-qty-link:hover {
    color: var(--green-2);
}

/* Faixa de Urgência / Timer */
.reservation-timer-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(245, 185, 66, .08);
    border: 1px solid rgba(245, 185, 66, .25);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.timer-icon {
    font-size: 24px;
    line-height: 1;
    animation: timerPulse 2s infinite ease-in-out;
}
@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.timer-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #cbd5e1;
}
.timer-text strong {
    color: #fde68a;
    font-size: 13px;
}
.countdown-clock {
    font-weight: 800;
    color: #f59e0b;
    font-variant-numeric: tabular-nums;
    background: rgba(245, 158, 11, .15);
    padding: 1px 6px;
    border-radius: 6px;
}

/* Layout 2 Colunas */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 819px) {
    .checkout-summary-col {
        order: -1;
    }
}
@media (min-width: 820px) {
    .checkout-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    }
    .checkout-summary-col {
        position: sticky;
        top: 80px;
    }
}

/* Card Resumo do Pedido */
.checkout-summary-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.summary-camp-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.summary-camp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.summary-camp-thumb-emoji {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #121a23;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 32px;
    flex-shrink: 0;
}
.summary-camp-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: white;
    line-height: 1.3;
}
.summary-camp-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

/* Linhas do Resumo */
.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
}
.summary-line strong {
    color: var(--text);
}
.summary-line.highlight {
    background: rgba(31, 157, 85, .08);
    border: 1px dashed rgba(31, 157, 85, .3);
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--green-2);
    font-weight: 600;
    font-size: 13px;
}
.summary-divider {
    height: 1px;
    background: var(--line);
    margin: 6px 0;
}
.summary-total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 6px;
}
.summary-total-line .lbl {
    font-size: 15px;
    font-weight: 700;
    color: white;
}
.summary-total-line .val {
    font-size: 26px;
    font-weight: 800;
    color: var(--green-2);
}

/* Card do Formulário de Identificação */
.checkout-form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.form-card-title {
    font-size: 18px;
    margin: 0 0 4px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-card-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 18px;
}

/* Input com Ícone Embutido */
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrap .icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: var(--muted);
    pointer-events: none;
}
.input-icon-wrap input {
    padding-left: 42px !important;
    height: 48px !important;
    border-radius: 12px;
    font-size: 14px;
    background: #0d141d;
    border: 1px solid var(--line);
    transition: all .2s ease;
}
.input-icon-wrap input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 157, 85, .2);
}

/* Order Bump Repaginado */
.order-bump-card {
    display: block;
    background: linear-gradient(180deg, #18261e 0%, #131d27 100%);
    border: 2px dashed #1f9d55;
    border-radius: 14px;
    padding: 14px;
    margin: 18px 0;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    position: relative;
}
.order-bump-card:hover {
    background: linear-gradient(180deg, #1c2d23 0%, #162431 100%);
    border-color: #27c36a;
    transform: translateY(-1px);
}
.order-bump-card.checked {
    border-style: solid;
    border-color: #27c36a;
    background: rgba(31, 157, 85, .15);
    box-shadow: 0 0 20px rgba(31, 157, 85, .2);
}
.bump-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.bump-badge {
    font-size: 11px;
    font-weight: 800;
    color: #fde68a;
    background: rgba(245, 185, 66, .2);
    border: 1px solid rgba(245, 185, 66, .35);
    border-radius: 6px;
    padding: 2px 8px;
    letter-spacing: .02em;
}
.bump-save-badge {
    font-size: 11px;
    font-weight: 800;
    color: #b6f3cd;
    background: rgba(39, 195, 106, .2);
    border: 1px solid rgba(39, 195, 106, .35);
    border-radius: 6px;
    padding: 2px 8px;
}
.bump-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.bump-checkbox-wrapper {
    padding-top: 2px;
}
.bump-input {
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    accent-color: var(--green);
    cursor: pointer;
}
.bump-text {
    flex: 1;
}
.bump-title {
    display: block;
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
    line-height: 1.3;
}
.bump-price {
    color: var(--green-2);
    font-weight: 800;
}
.bump-desc {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.bump-desc del {
    color: #94a3b8;
}

/* Botão Principal de Conclusão */
.checkout-cta-btn {
    width: 100%;
    min-height: 58px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #1f9d55 0%, #15803d 100%) !important;
    border: 1px solid #27c36a !important;
    border-radius: 16px !important;
    color: white !important;
    box-shadow: 0 8px 24px rgba(31, 157, 85, .35);
    cursor: pointer;
    transition: all .2s ease;
    padding: 10px 16px;
}
.checkout-cta-btn:hover {
    background: linear-gradient(135deg, #27c36a 0%, #1f9d55 100%) !important;
    box-shadow: 0 10px 28px rgba(31, 157, 85, .45);
    transform: translateY(-2px);
}
.checkout-cta-btn:active {
    transform: translateY(0);
}
.checkout-cta-btn .cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.checkout-cta-btn .cta-action {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
}
.checkout-cta-btn .cta-sub {
    font-size: 12px;
    opacity: .9;
    font-weight: 600;
}

/* Selos de Confiança */
.checkout-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
    .checkout-trust-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: 10px;
    padding: 8px 10px;
}
.trust-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.trust-info {
    display: flex;
    flex-direction: column;
}
.trust-info strong {
    font-size: 12px;
    color: white;
}
.trust-info span {
    font-size: 11px;
    color: var(--muted);
}

/* ========================================================
   Cotas Premiadas & Notificações de Marketing / Propaganda
   ======================================================== */
.badge-count.danger {
    background: rgba(239, 68, 68, .2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, .4);
}
.tab-perdeu-premiada.active {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, .2) !important;
    color: #fecaca !important;
}

/* Alertas de Cotas Premiadas nas Linhas de Pedido */
.cota-premiada-alert {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}
.cota-premiada-alert.win {
    background: rgba(31, 157, 85, .15);
    border: 1px solid rgba(39, 195, 106, .35);
    color: #b6f3cd;
}
.cota-premiada-alert.pending {
    background: rgba(245, 185, 66, .12);
    border: 1px solid rgba(245, 185, 66, .35);
    color: #fde68a;
}
.cota-premiada-alert.lost {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #fca5a5;
}
.prize-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
    margin: 2px 4px 2px 0;
}
.prize-pill.win { background: rgba(39, 195, 106, .25); color: #fff; }
.prize-pill.pending { background: rgba(245, 185, 66, .25); color: #fff; }
.prize-pill.lost { background: rgba(239, 68, 68, .25); color: #fff; text-decoration: line-through; }

.cota-status-live {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    text-decoration: none !important;
}
.cota-status-live.ok {
    background: #14532d;
    color: #86efac;
    border: 1px solid #16a34a;
}
.cota-status-live.taken {
    background: #450a0a;
    color: #fca5a5;
    border: 1px solid #991b1b;
}

/* Botão Gatilho de Propaganda */
.btn-promo-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: white !important;
    border: 1px solid #f87171;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220, 38, 38, .3);
    transition: all .2s ease;
    margin-top: 4px;
}
.btn-promo-trigger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, .4);
}

/* Banner de Alerta no Dashboard */
.marketing-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.15) 0%, rgba(245, 185, 66, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.marketing-alert-banner .alert-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.marketing-alert-banner .alert-icon {
    font-size: 32px;
    line-height: 1;
    animation: alertBounce 2s infinite ease-in-out;
}
@keyframes alertBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(-5deg); }
}
.marketing-alert-banner .alert-info strong {
    display: block;
    font-size: 15px;
    color: #fecaca;
    margin-bottom: 4px;
}
.marketing-alert-banner .alert-info span {
    font-size: 13px;
    color: #cbd5e1;
}
.marketing-alert-banner .alert-btn {
    background: #dc2626;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, .35);
}
.marketing-alert-banner .alert-btn:hover {
    background: #ef4444;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .marketing-alert-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .marketing-alert-banner .alert-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Modal de Propaganda / Marketing Copy */
.promo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.promo-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.promo-modal {
    background: #17212b;
    border: 1px solid var(--line);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    transform: translateY(12px) scale(.98);
    transition: all .2s ease;
}
.promo-modal-backdrop.open .promo-modal {
    transform: translateY(0) scale(1);
}
.promo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    background: #121a23;
}
.promo-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.promo-modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
}
.promo-modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, .1);
}
.promo-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.promo-case-card {
    background: rgba(220, 38, 38, .08);
    border: 1px solid rgba(220, 38, 38, .25);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    color: #e2e8f0;
}
.promo-case-card strong {
    color: #fca5a5;
}
.promo-tabs {
    display: flex;
    gap: 6px;
    background: #11171f;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.promo-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
    text-align: center;
}
.promo-tab-btn.active {
    background: #243140;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.promo-copy-area {
    width: 100%;
    min-height: 180px;
    background: #0d141c;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}
.promo-copy-area:focus {
    border-color: var(--green);
    outline: none;
}
.promo-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    background: #121a23;
}
.btn-copy-clip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
}
.btn-copy-clip:hover {
    background: var(--green-2);
}
.btn-copy-clip.copied {
    background: #2563eb;
}

/* ========================================================
   MÓDULO DE APURAÇÃO & SORTEIO (LOTERIA FEDERAL & AO VIVO)
   ======================================================== */
.sorteio-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sorteio-header-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.sorteio-campanha-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: white;
}
.sorteio-meta-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.sorteio-meta-badge {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--muted);
}
.sorteio-meta-badge strong {
    color: white;
}
.sorteio-tabs {
    display: flex;
    gap: 8px;
    background: #0d141c;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--line);
}
.sorteio-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
}
.sorteio-tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, .05);
}
.sorteio-tab-btn.active {
    background: #1e293b;
    color: #f59e0b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    border: 1px solid rgba(245, 158, 11, .3);
}

/* Modo Federal */
.federal-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
.federal-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.federal-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.federal-input-group input {
    width: 100%;
    background: #0b1118;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 2px;
    box-sizing: border-box;
}
.federal-input-group input:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}

/* Card de Resultado Ganhador */
.winner-success-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, .12) 0%, rgba(245, 158, 11, .12) 100%);
    border: 2px solid rgba(34, 197, 94, .5);
    border-radius: 18px;
    padding: 24px;
    margin-top: 20px;
    animation: pulseWin 2s infinite ease-in-out;
}
@keyframes pulseWin {
    0%, 100% { border-color: rgba(34, 197, 94, .5); box-shadow: 0 0 20px rgba(34, 197, 94, .15); }
    50% { border-color: rgba(245, 158, 11, .7); box-shadow: 0 0 30px rgba(245, 158, 11, .25); }
}
.winner-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.winner-big-cota {
    background: #f59e0b;
    color: #000;
    font-size: 26px;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 12px;
    font-family: monospace;
    letter-spacing: 2px;
    display: inline-block;
}
.winner-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    background: rgba(0, 0, 0, .25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.winner-detail-item span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
}
.winner-detail-item strong {
    font-size: 16px;
    color: white;
}

/* Card de Alerta Cota Não Vendida / Desempate */
.winner-unpaid-card {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 16px;
    padding: 22px;
    margin-top: 20px;
}
.tiebreaker-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.tiebreaker-btn {
    background: #1e293b;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    transition: all .2s ease;
    color: white;
    width: 100%;
}
.tiebreaker-btn:hover {
    border-color: #f59e0b;
    background: #28374a;
    transform: translateY(-2px);
}
.tiebreaker-btn strong {
    display: block;
    font-size: 14px;
    color: #fde68a;
    margin-bottom: 4px;
}
.tiebreaker-btn span {
    font-size: 12px;
    color: var(--muted);
}

/* ========================================================
   SORTEADOR AO VIVO (ROLETA / GLOBO VIRTUAL)
   ======================================================== */
.roulette-arena {
    background: radial-gradient(circle at center, #1b2636 0%, #0c1219 100%);
    border: 2px solid rgba(245, 158, 11, .3);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.roulette-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, .15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.roulette-title {
    font-size: 24px;
    color: #fde68a;
    margin: 0 0 8px;
    font-weight: 800;
}
.roulette-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px;
}
.slot-machine-wrap {
    display: inline-flex;
    gap: 12px;
    background: #090e14;
    padding: 18px 24px;
    border-radius: 20px;
    border: 3px solid #334155;
    box-shadow: inset 0 6px 18px rgba(0, 0, 0, .8), 0 10px 30px rgba(0, 0, 0, .5);
    margin-bottom: 30px;
}
.slot-digit-box {
    width: 68px;
    height: 100px;
    background: linear-gradient(180deg, #182230 0%, #0f1620 50%, #182230 100%);
    border: 2px solid #475569;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 52px;
    font-weight: 900;
    color: #f8fafc;
    text-shadow: 0 0 15px rgba(245, 158, 11, .7);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6);
    overflow: hidden;
    position: relative;
}
.slot-digit-box.spinning {
    animation: digitGlow .1s infinite alternate;
}
@keyframes digitGlow {
    from { color: #f59e0b; border-color: #f59e0b; }
    to { color: #22c55e; border-color: #22c55e; }
}
.slot-digit-box.winner {
    background: linear-gradient(180deg, #b45309 0%, #78350f 50%, #b45309 100%);
    border-color: #fbbf24;
    color: #fff;
    text-shadow: 0 0 20px #fbbf24;
    animation: bounceWinner .5s ease;
}
@keyframes bounceWinner {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.roulette-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.btn-spin-action {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 18px 48px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 158, 11, .4);
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.btn-spin-action:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(245, 158, 11, .6);
}
.btn-spin-action:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.roulette-options-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    color: var(--muted);
}
.roulette-options-bar label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Modo Tela Cheia / Live */
body.live-presentation-mode .admin-shell .side,
body.live-presentation-mode .toolbar {
    display: none !important;
}
body.live-presentation-mode .admin-main {
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
}
body.live-presentation-mode .roulette-arena {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#confettiCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    width: 100%;
    height: 100%;
}

/* ========================================================
   CENTRAL DE PRÊMIOS INSTANTÂNEOS (MINI-GAME PÓS-COMPRA)
   ======================================================== */
.mini-game-arena {
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: 20px;
    padding: 24px 20px;
    margin: 24px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mini-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.game-icon {
    font-size: 24px;
    line-height: 1;
}
.game-title {
    font-size: 17px;
    font-weight: 800;
    color: #fde68a;
    letter-spacing: .5px;
}
.game-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(245, 158, 11, .3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    color: #f8fafc;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
    50% { transform: scale(1.2); opacity: .8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Abas de Navegação entre Minigames */
.game-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.game-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.game-tab-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fde68a;
    transform: translateY(-1px);
}
.game-tab-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: #000;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Indicadores de Rodadas (Pill Dots) */
.game-progress-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.pill-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    transition: all .25s ease;
}
.pill-dot.pending {
    background: #1e293b;
    border: 2px solid #f59e0b;
    color: #fde68a;
    box-shadow: 0 0 8px rgba(245, 158, 11, .2);
}
.pill-dot.used {
    background: #22c55e;
    border: 2px solid #16a34a;
    color: white;
}

/* ============================
   ROLETA INTERATIVA (CANVAS)
   ============================ */
.wheel-outer-wrap {
    position: relative;
    width: 290px;
    height: 290px;
    margin: 0 auto 20px;
}
.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 26px;
    color: #ef4444;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .6), 0 0 10px #f59e0b;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .6), 0 0 20px rgba(245, 158, 11, .2);
    display: block;
}
.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
    border: 3px solid #fde68a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .6), inset 0 2px 4px rgba(255, 255, 255, .4);
    color: #000;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    padding: 0;
}
.wheel-center-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(245, 158, 11, .6);
}
.wheel-center-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    background: #475569;
    border-color: #64748b;
    color: #cbd5e1;
}

.btn-spin-game {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 158, 11, .35);
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}
.btn-spin-game:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(245, 158, 11, .5);
}
.btn-spin-game:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    background: #334155;
    color: #94a3b8;
    box-shadow: none;
}

/* ============================
   RASPADINHA INTERATIVA
   ============================ */
.scratch-card-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.scratch-card {
    position: relative;
    width: 280px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
    border: 2px solid #f59e0b;
}
.scratch-secret-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}
.scratch-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 1px;
}
.scratch-prize-text {
    font-size: 20px;
    color: #fde68a;
    font-weight: 900;
    text-align: center;
    margin-top: 4px;
}
.scratch-canvas {
    position: absolute;
    inset: 0;
    cursor: crosshair;
    touch-action: none;
}
.scratch-hint {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0;
}

/* ============================
   CAIXINHAS MISTERIOSAS
   ============================ */
.box-hint {
    font-size: 14px;
    color: #fde68a;
    margin: 0 0 16px;
    font-weight: 700;
}
.mystery-boxes-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.mystery-box {
    background: rgba(255, 255, 255, .04);
    border: 2px dashed rgba(245, 158, 11, .4);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
}
.mystery-box:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.05);
    border-color: #f59e0b;
    background: rgba(245, 158, 11, .1);
    box-shadow: 0 8px 20px rgba(245, 158, 11, .3);
}
.mystery-box:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.box-visual {
    font-size: 38px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.mystery-box span {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.mystery-box .box-prize-reveal {
    font-size: 12px;
    font-weight: 800;
    margin-top: 2px;
    display: none;
}
@keyframes boxShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-6px) rotate(-4deg); }
    40% { transform: translateX(6px) rotate(4deg); }
    60% { transform: translateX(-4px) rotate(-2deg); }
    80% { transform: translateX(4px) rotate(2deg); }
}
.mystery-box.shaking {
    animation: boxShake .5s ease-in-out infinite;
    border-color: #f59e0b;
}
.mystery-box.opened {
    transform: scale(1.05);
    cursor: default;
    border-style: solid;
    transition: all .3s ease;
}
.mystery-box.opened .box-prize-reveal {
    display: block;
}
.mystery-box.opened.win {
    background: rgba(16, 185, 129, .2);
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, .4);
}
.mystery-box.opened.lose {
    background: rgba(100, 116, 139, .15);
    border-color: #64748b;
}

@media (max-width: 360px) {
    .wheel-outer-wrap {
        width: 250px;
        height: 250px;
    }
    .wheel-center-btn {
        width: 54px;
        height: 54px;
        font-size: 10px;
    }
}

/* Banner de Notificação de Prêmio */
.game-prize-banner {
    margin-top: 18px;
    animation: popBanner .3s ease;
}
@keyframes popBanner {
    0% { transform: scale(.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.prize-banner-content {
    background: rgba(16, 185, 129, .15);
    border: 1px solid #10b981;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    position: relative;
}
.prize-banner-content.lose {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .4);
}
.prize-banner-icon {
    font-size: 28px;
    line-height: 1;
}
.prize-banner-text strong {
    display: block;
    font-size: 15px;
    color: white;
}
.prize-banner-text span {
    font-size: 13px;
    color: #e2e8f0;
}
.banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

/* Histórico Compacto de Prêmios (Tray) */
.game-history-tray {
    margin-top: 22px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    overflow: hidden;
    text-align: left;
}
.history-tray-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .03);
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}
.history-tray-head:hover {
    color: white;
}
.history-tray-body {
    padding: 12px 16px;
}
.history-empty {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0;
    text-align: center;
}
.history-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d141c;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
}
.history-item.win {
    border-color: rgba(16, 185, 129, .4);
    background: rgba(16, 185, 129, .08);
}
.hist-idx {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    min-width: 20px;
}
.hist-icon {
    font-size: 16px;
}
.hist-prize {
    flex: 1;
    color: white;
}
.hist-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
}
.history-item.win .hist-tag {
    background: #10b981;
    color: white;
}

/* Aviso e Oferta Inteligente de Cotas Restantes */
.cotas-restantes-box {
    animation: fadeInSlide .3s ease-out;
}
.btn-levar-todas {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .3);
}
.btn-levar-todas:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, .45);
    background: #fbbf24 !important;
}
.btn-levar-todas:active {
    transform: translateY(1px);
}

.oferta-restante-card {
    animation: fadeInSlide .35s ease-out;
}
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}







