/* ===================================================================
   Raffle Platform — Public site styles
   Plain CSS (no build step) so it runs as-is on shared hosting.
   =================================================================== */

:root {
    --color-primary: #0d9b52;
    --color-primary-dark: #0a7a40;
    --color-dark: #111827;
    --color-bg: #f2f4f7;
    --color-card: #ffffff;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 20px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 20px 16px 0; }

/* ---------- Header ---------- */
.site-header { background: var(--color-dark); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.brand img { height: 34px; width: auto; }
.brand-text { color: #fff; }
.menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: #fff; display: block; }
.header-cart-link { margin-left: auto; color: #fff; display: flex; align-items: center; padding: 8px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: #d1d5db; font-size: 14px; font-weight: 600; transition: color .15s; }
.main-nav a:hover { color: #fff; }

@media (max-width: 720px) {
    .menu-toggle { display: flex; }
    .main-nav {
        /* Anchored to .site-header (top: 100% of it), not the viewport —
           position:fixed here used to ignore .phone-frame entirely and
           span the full browser width, and a hardcoded top:64px didn't
           match the 48px-tall transparent header. This adapts to both. */
        position: absolute; top: 100%; left: 0; right: 0; background: var(--color-dark);
        flex-direction: column; padding: 8px 16px 16px; gap: 4px; z-index: 30;
        box-shadow: 0 8px 16px rgba(0,0,0,.25);
        transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .15s;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/*
 * Used only on the campaign page when Estilo 2 is active: the header floats
 * transparently over the hero image instead of sitting in its own solid bar,
 * so the photo can start right at the very top of the page.
 */
.site-header--overlay {
    position: absolute;
    width: 100%;
    background: transparent;
    box-shadow: none;
}
.site-header--overlay .header-inner { height: 48px; justify-content: space-between; }
.site-header--overlay .menu-toggle span,
.site-header--overlay .brand-text { text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.site-header--overlay .menu-toggle span { box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.site-header--overlay .header-cart-link { margin-left: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }

/* ---------- Alerts ---------- */
.alert { margin: 16px 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ---------- Hero / banner ---------- */
.hero { position: relative; background: var(--color-dark); padding-bottom: 2px; }
.hero-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hero-badge {
    position: absolute; left: 16px; bottom: 16px; background: var(--color-primary);
    color: #fff; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.hero-card {
    background: var(--color-card); padding: 22px 18px 26px; box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    border-radius: 20px 20px 0 0; margin-top: -18px; position: relative; z-index: 2;
}
.hero-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.hero-sub { color: var(--color-muted); font-size: 14px; margin: 0 0 18px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--color-primary); color: #fff; border: none; border-radius: 12px;
    padding: 14px 20px; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%;
    transition: background .15s, transform .05s;
}
.btn:hover { background: var(--color-primary-dark); }
.btn:active { transform: scale(.99); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-dark { background: var(--color-dark); }
.btn-danger { background: #dc2626; }
.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; }

/* ---------- Section titles ---------- */
.section-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; margin: 28px 0 12px; }

/* ---------- Campaign cards / grid ---------- */
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,.1), 0 12px 28px rgba(0,0,0,.08); }
.card-img-wrap { position: relative; }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--color-primary); color:#fff; font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; }
.badge-muted { background: #6b7280; }
.card-body { padding: 14px 16px 18px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.card-sub { font-size: 13px; color: var(--color-muted); margin: 0 0 12px; }

/* ---------- Progress bar ---------- */
.progress { background: var(--color-border); border-radius: 999px; height: 8px; overflow: hidden; margin: 10px 0 6px; }
.progress-bar { background: var(--color-primary); height: 100%; border-radius: 999px; transition: width .3s; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-muted); }

/* ---------- Winners list ---------- */
.winners-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.winner-card { min-width: 230px; background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display:flex; gap:10px; align-items:center; }
.winner-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#22c55e,#0ea5e9);
    flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:20px;
}
.winner-name { font-weight: 700; font-size: 14px; }
.winner-prize { font-size: 12px; color: var(--color-muted); }
.winner-meta { font-size: 11px; color: var(--color-muted); }

/* ---------- Campaign detail page ---------- */
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 10px; }
/* Estilo 2: image sits flush against the viewport edges — no card rounding/shadow. */
.gallery-main--flush { border-radius: 0; box-shadow: none; margin-bottom: 0; }
.gallery-main img, .gallery-main video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.gallery-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%);
}
.gallery-overlay .badge { position: static; display: inline-block; margin-bottom: 8px; }
.gallery-overlay-title { color: #fff; font-size: 21px; font-weight: 800; margin: 0 0 2px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gallery-overlay-sub { color: #e5e7eb; font-size: 13px; margin: 0; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; }
.gallery-thumbs img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .7; border: 2px solid transparent; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--color-primary); }

.qty-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 18px; }
.quick-btn {
    position: relative; padding: 16px 8px 12px; border-radius: 14px; border: 1.5px solid var(--color-border);
    background: #f9fafb; cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .05s;
}
.quick-btn:hover { border-color: var(--color-primary); }
.quick-btn:active { transform: scale(.98); }
.quick-btn.popular { border-color: var(--color-primary); background: #f0fdf4; }
.quick-btn.active { background: var(--color-primary); border-color: var(--color-primary); }
.quick-btn.active .quick-amount, .quick-btn.active .quick-label { color: #fff; }
.quick-amount { display: block; font-size: 19px; font-weight: 800; color: var(--color-text); line-height: 1.2; }
.quick-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--color-muted); margin-top: 4px; }
.popular-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: #fff; font-size: 10px; font-weight: 700;
    padding: 3px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.qty-stepper { display: flex; align-items: center; gap: 12px; margin: 12px 0 18px; }
.stepper-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--color-border); background: #fff;
    font-size: 20px; font-weight: 700; cursor: pointer; flex-shrink: 0; line-height: 1;
}
.stepper-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.qty-stepper input { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--color-border); border-radius: 10px; font-size: 18px; font-weight: 700; }

.btn-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; }
.btn-cta .cta-value { font-size: 17px; font-weight: 800; }

/* ---------- Buy widget — Estilo 2 (escuro, com caixa de promoção) ---------- */
/* Full-bleed hero for the campaign page: no side padding, image hugs the
   very top of the viewport, header floats over it (see .site-header--overlay). */
.gallery-media { position: relative; }
.gallery-top-fade {
    position: absolute; top: 0; left: 0; right: 0; height: 90px;
    background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.gallery-thumbs--flat { padding: 8px 12px; margin-bottom: 0; background: var(--color-bg); }

.my-tickets-bar {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #1c2230; color: #fff; font-size: 12px; font-weight: 600;
    padding: 8px; cursor: pointer; border: none; width: 100%;
}

/* "Vendido" bar (real % or admin's manual override) below "Ver meus títulos". */
.s1-sold-bar, .s2-sold-bar { position: relative; width: 100%; height: 28px; background: #e5e7eb; overflow: hidden; }
.sold-bar-fill { position: absolute; inset: 0; width: 0; background: var(--color-primary); transition: width .3s; }
.sold-bar-label {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    height: 100%; color: #fff; font-weight: 800; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

/* Flat content zone: sits directly on the page background — no floating
   card/shadow around the whole widget, matching the reference exactly. */
.buy-flat { padding: 12px 16px 18px; }

.price-pill-dark {
    display: inline-block; background: var(--color-dark); color: #fff; font-weight: 500;
    padding: 5px 12px; border-radius: 7px; font-size: 11px; margin: 2px 0 12px;
}
.price-pill-dark strong { font-size: 12px; font-weight: 800; }

.promo-box { background: var(--color-dark); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.promo-box-header { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 12px; margin: 0 0 8px; }
.promo-box-header .muted { color: #fbbf24; font-weight: 600; font-size: 11px; }
.promo-inner { background: rgba(255,255,255,.06); border-radius: 8px; padding: 10px 12px; position: relative; }
.promo-badge {
    position: absolute; top: 8px; right: 8px; background: #facc15; color: var(--color-dark);
    font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px;
}
.promo-title { color: #fff; font-size: 15px; font-weight: 800; margin: 0; }
.promo-sub { color: #9ca3af; font-size: 11px; margin: 3px 0 8px; }
.promo-buy-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
    padding: 9px; border-radius: 7px; border: none; cursor: pointer; font-weight: 700;
    font-size: 12px; color: #fff; background: linear-gradient(90deg, #0ea5e9, #22c55e);
}
.promo-buy-btn:hover { filter: brightness(1.08); }

.buy-flat .quick-btn { background: #17181c; border-color: #17181c; padding: 12px 6px 9px; }
.buy-flat .quick-btn:hover { border-color: var(--color-primary); }
.buy-flat .quick-amount, .buy-flat .quick-label { color: #fff; }
.buy-flat .quick-amount { font-size: 16px; }
.buy-flat .quick-label { font-size: 9px; color: #9ca3af; }
.buy-flat .quick-btn.popular { background: var(--color-primary); border-color: var(--color-primary); }
.buy-flat .quick-btn.active { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.buy-flat .btn-cta { padding: 13px 16px; font-size: 14px; border-radius: 11px; }
.buy-flat .btn-cta .cta-value { font-size: 15px; }

.qty-stepper--pill {
    display: flex; align-items: stretch; background: #fff; border: 1px solid var(--color-border);
    border-radius: 999px; overflow: hidden; margin-bottom: 12px;
}
.qty-stepper--pill .clear-btn {
    width: 40px; flex-shrink: 0; color: #dc2626; background: none; border: none; border-right: 1px solid var(--color-border);
    font-size: 14px; cursor: pointer;
}
.qty-stepper--pill .stepper-btn {
    width: 44px; flex-shrink: 0; border: none; border-radius: 0; background: none; font-size: 18px;
}
.qty-stepper--pill .stepper-btn:first-of-type { border-right: 1px solid var(--color-border); }
.qty-stepper--pill .stepper-btn:last-of-type { border-left: 1px solid var(--color-border); }
.qty-stepper--pill input { border: none; text-align: center; font-weight: 800; font-size: 15px; flex: 1; padding: 8px 4px; font-variant-numeric: tabular-nums; }
.qty-stepper--pill input:focus { outline: none; }

/* "Descrição/Regulamento" and "Bilhetes premiados" flat rows below the CTA */
.flat-bar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; border-radius: 11px; padding: 12px; font-size: 13px; font-weight: 700;
    box-shadow: var(--shadow); margin-bottom: 10px; cursor: pointer; border: none; width: 100%;
}
.tickets-row {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 11px; padding: 12px 14px; box-shadow: var(--shadow);
}
.tickets-row .trophy { font-size: 20px; }
.tickets-row-title { font-size: 13px; font-weight: 700; margin: 0; }
.tickets-row-sub { font-size: 11px; color: var(--color-muted); margin: 1px 0 0; }

.manual-toggle { font-size: 13px; color: var(--color-primary); text-decoration: underline; cursor: pointer; background:none; border:none; padding:0; margin-bottom: 10px; }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; margin: 12px 0; padding: 8px; border: 1px solid var(--color-border); border-radius: 10px; }
.numbers-grid button { padding: 8px 2px; font-size: 12px; border-radius: 6px; border: 1px solid var(--color-border); background: #fff; cursor: pointer; }
.numbers-grid button.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.numbers-grid button:disabled { background: #f3f4f6; color: #d1d5db; cursor: not-allowed; }

.info-block { background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.info-block h2 { font-size: 16px; margin: 0 0 10px; }
.info-block .prose { font-size: 14px; color: var(--color-text); white-space: pre-line; }

/* ---------- Forms (checkout, admin) ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 12px; border: 1px solid var(--color-border); border-radius: 10px; font-size: 14px; font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Order / checkout status page ---------- */
.order-summary { background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; max-width: 640px; margin: 24px auto; }
.order-status { display:inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pending { background:#fef9c3; color:#854d0e; }
.status-paid { background:#dcfce7; color:#166534; }
.status-canceled, .status-expired { background:#fee2e2; color:#991b1b; }
.number-chip { display:inline-block; background:#f3f4f6; border-radius:8px; padding:6px 10px; font-size:13px; font-weight:700; margin:3px; }
.pix-pending-box { background:#fffbeb; border:1px solid #fde68a; border-radius: var(--radius); padding:20px; margin-top:16px; text-align:center; }

/* "Parabéns" cards on the order page (instant prize / maior-menor cota). */
.celebrate-box { background: #fff; border-color: #e5e7eb; }
.celebrate-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.celebrate-sub { font-size: 13px; color: #374151; margin: 0 0 10px; line-height: 1.5; }
.celebrate-number { font-size: 30px; font-weight: 800; margin: 6px 0; font-variant-numeric: tabular-nums; }
.celebrate-prize-label { font-size: 13px; color: var(--color-muted); margin: -4px 0 10px; }
.celebrate-footer { font-size: 12px; color: var(--color-muted); margin: 10px 0 0; }

/* WhatsApp community invite card on the order page. */
.whatsapp-community-box { background: #fff; border-color: #e5e7eb; }
.whatsapp-community-title { font-size: 14px; font-weight: 800; color: #dc2626; margin: 0 0 8px; line-height: 1.4; }
.whatsapp-community-desc { font-size: 12.5px; color: var(--color-muted); margin: 0 0 14px; line-height: 1.5; }
.whatsapp-community-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #25D366; color: #fff; font-weight: 700; font-size: 14px;
    padding: 12px 20px; border-radius: 10px; text-decoration: none; width: 100%;
}

.winners-result { margin-top: 14px; text-align: left; }
.winners-result-title { font-weight: 800; font-size: 14px; margin: 0 0 10px; text-align: center; }
.winners-result-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(0,0,0,.08); }
.winners-result-row:first-of-type { border-top: none; }
.winners-result-place {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary);
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.winners-result-info { min-width: 0; }
.winners-result-info p { margin: 0 0 4px; font-size: 13px; }
.winners-result-prize { font-weight: 700; }

footer.site-footer { background: var(--color-dark); color: #9ca3af; margin-top: 40px; padding: 32px 0; }
.footer-inner { text-align: center; }
.footer-brand { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; font-size: 13px; }
.footer-social a:hover { color: #fff; }
.footer-badge { display: inline-block; border: 1px solid #374151; border-radius: 999px; padding: 4px 12px; font-size: 12px; margin: 8px 0; }
.footer-copy, .footer-text { font-size: 12px; }

/* Per-campaign footer: red-highlighted message (admin-editable) + social icons. */
.campaign-footer-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.08); text-align: center; }
.campaign-footer-message { margin-bottom: 14px; line-height: 1.9; }
.campaign-footer-message mark {
    display: inline;
    background: #e0222c;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 3px;
}
.campaign-footer-social { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.campaign-social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    color: #fff; transition: transform .12s;
}
.campaign-social-icon svg { width: 18px; height: 18px; }
.campaign-social-icon:hover { transform: translateY(-2px); }

.empty-state { text-align: center; padding: 40px 16px; color: var(--color-muted); }

/* ---------- Checkout modal ---------- */
.checkout-modal {
    position: fixed; inset: 0; z-index: 100; background: rgba(17,24,39,.55);
    display: flex; align-items: flex-end; justify-content: center;
}
.checkout-modal-inner {
    background: #fff; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
    border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3);
}
@media (min-width: 560px) {
    .checkout-modal { align-items: center; }
    .checkout-modal-inner { border-radius: 18px; max-height: 88vh; }
}
.checkout-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--color-border); font-weight: 700; font-size: 16px;
    position: sticky; top: 0; background: #fff; z-index: 2;
}
.checkout-close { font-size: 22px; color: var(--color-muted); background: none; border: none; cursor: pointer; line-height: 1; padding: 4px; }
.checkout-modal-body { padding: 18px; }

.checkout-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.checkout-summary-label { font-size: 11px; color: var(--color-muted); font-weight: 700; letter-spacing: .03em; margin: 0; }
.checkout-summary-title { font-size: 15px; font-weight: 800; margin: 2px 0 0; }
.checkout-summary-right { text-align: right; }
.checkout-summary-qty { font-size: 12px; color: var(--color-muted); margin: 0; }
.checkout-summary-price { font-size: 16px; font-weight: 800; margin: 2px 0 0; }

.checkout-promo-upsell { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.checkout-promo-upsell-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.checkout-promo-badge { background: #f59e0b; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.checkout-promo-upsell p { font-size: 13px; margin: 0 0 10px; }
.checkout-promo-upsell .progress { margin: 0 0 8px; }
.checkout-promo-upsell-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkout-promo-upsell-bottom span { font-size: 12px; color: var(--color-muted); }
.checkout-promo-add-btn {
    background: #fff; border: 1.5px solid #f59e0b; color: #b45309; font-weight: 700; font-size: 12px;
    padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}

.checkout-error { color: #b91c1c; font-size: 12px; margin: -8px 0 12px; }
.checkout-recognized-msg { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 13px; padding: 8px 10px; border-radius: 6px; margin: -6px 0 14px; }
.btn-checkout-continue {
    display: block; width: 100%; background: var(--color-dark); color: #fff; border: none; border-radius: 11px;
    padding: 13px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-checkout-submit {
    display: block; width: 100%; background: var(--color-primary); color: #fff; border: none; border-radius: 11px;
    padding: 14px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 4px;
}
.checkout-checkbox-row {
    display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--color-muted);
    margin: 12px 0; line-height: 1.5; cursor: pointer;
}
.checkout-checkbox-row input { width: auto; flex-shrink: 0; margin-top: 2px; }
.checkout-secure { text-align: center; font-size: 12px; color: var(--color-muted); margin-top: 16px; }
input[disabled]#checkoutPhoneDisplay { background: #f3f4f6; color: var(--color-muted); }

/* ---------- Pedido / status do pagamento PIX ---------- */
.pix-banner { background: linear-gradient(135deg, #0f2138, #0d3b4f); color: #fff; padding: 18px 0 14px; }
.pix-banner-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pix-banner-title { font-size: 15px; font-weight: 700; margin: 0; }
.pix-banner-sub { font-size: 12px; color: #cbd5e1; margin: 2px 0 0; }
.pix-banner-meta { font-size: 11px; color: #93c5fd; margin: 6px 0 0; }
.pix-chances-badge { background: #2563eb; color: #fff; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pix-timer-label { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.pix-timer-label span { font-variant-numeric: tabular-nums; }
.pix-timer-bar { background: rgba(255,255,255,.15); border-radius: 999px; height: 6px; overflow: hidden; }
.pix-timer-bar-fill { background: linear-gradient(90deg, #ef4444, #f59e0b); height: 100%; width: 100%; transition: width 1s linear; }

.pix-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; margin: 14px 0 8px; }
.pix-step-num {
    background: var(--color-primary); color: #fff; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.pix-code-box { width: 100%; font-size: 12px; padding: 10px; border-radius: 8px; border: 1px solid var(--color-border); font-family: monospace; }

.order-campaign-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px; margin: 18px 0; }
.order-campaign-card img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.order-campaign-title { font-size: 13px; font-weight: 700; margin: 4px 0 0; }
.order-campaign-sub { font-size: 11px; color: var(--color-muted); margin: 1px 0 0; }

.order-details-toggle {
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    padding: 14px 0; border-top: 1px solid var(--color-border); font-size: 14px; font-weight: 700;
}
.order-details-toggle p { font-size: 12px; font-weight: 400; color: var(--color-muted); margin: 2px 0 0; }
#orderDetailsPanel { padding-bottom: 10px; }
.order-details-code { font-family: monospace; font-size: 12px; color: var(--color-muted); margin: 0 0 12px; }
.order-details-heading { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--color-muted); margin: 16px 0 8px; }
.order-details-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }

/* ---------- Estilo 2 — "Modelo 1" (referência: campanha com logo/menu overlay) ---------- */
.site-header--overlay .brand { flex: 1; justify-content: center; margin: 0; }

.campaign-category-bar { background: #e2e4e8; color: #4b5563; text-align: center; font-size: 12px; font-weight: 700; padding: 9px; }

.price-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 12px; }
.sorteio-pill { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 6px 12px; font-size: 12px; color: var(--color-muted); font-weight: 600; }
.sorteio-pill span { color: var(--color-text); font-weight: 800; margin-left: 4px; }
.price-row .price-pill-dark { margin: 0; }

.style2-info-box {
    background: #fff; border-radius: 12px; padding: 14px; font-size: 13px; color: var(--color-muted);
    box-shadow: var(--shadow); margin-bottom: 14px;
}

.qty-quick--3col { grid-template-columns: repeat(3, 1fr); }

.checkout-action-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 12px; }
.checkout-action-row .qty-stepper--pill { flex: 0 0 auto; width: auto; margin-bottom: 0; }
.checkout-action-row .qty-stepper--pill input { width: 46px; flex: none; }
.checkout-action-row .btn-cta {
    flex: 1; flex-direction: column; gap: 2px; padding: 10px 14px; justify-content: center;
}
.checkout-action-row .btn-cta .cta-value { font-size: 14px; }

.prize-list-title { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 800; margin: 18px 0 10px; }
.prize-list-title span { font-size: 11px; font-weight: 600; color: var(--color-muted); }
.prize-list { display: flex; flex-direction: column; gap: 8px; }
.prize-list-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); }
.prize-number-chip { background: #374151; color: #fff; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 7px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.prize-label { flex: 1; font-size: 12px; color: var(--color-muted); }
.prize-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; max-width: 40%; text-align: center; }
.prize-status-available { background: #dcfce7; color: #166534; }
.prize-status-sold { background: #fee2e2; color: #991b1b; }

/* Prize number that was actually won: highlight the whole row in black. */
.prize-list-row.won { background: #000; }
.prize-list-row.won .prize-number-chip { background: #fff; color: #111; }
.prize-list-row.won .prize-label { color: #d1d5db; }
.prize-list-row.won .prize-status { background: transparent; color: #fff; max-width: none; padding-right: 0; }

/* ---------- "Phone frame": keeps the campaign page mobile-width even on
   desktop, instead of stretching — used by both Estilo 1 and Estilo 2. ---------- */
.phone-frame-body { background: #ccc; display: flex; justify-content: center; padding: 24px 0; margin: 0; }
.phone-frame {
    width: 461px; max-width: 100%; background: var(--color-bg);
    box-shadow: 0 0 24px rgba(0,0,0,.25); position: relative;
}
@media (max-width: 500px) {
    .phone-frame-body { padding: 0; }
    .phone-frame { box-shadow: none; }
}

/* ===================================================================
   Estilo 1 — reprodução fiel do modelo de referência (fundo escuro,
   grade 3x2 preta/verde, "Participar" com stepper, cotas premiadas).
   Todas as classes abaixo são escopadas em .style1-layout para nunca
   colidir com o restante do site.
   =================================================================== */
.style1-layout {
    --s1-preto: #000000;
    --s1-verde-popular: #34a772;
    --s1-verde-participar: #198754;
    --s1-branco: #ffffff;
    --s1-barra-escura: #272727;
    --s1-cinza-numero: #6c757d;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

.style1-layout .s1-topbar { position: relative; line-height: 0; }
.style1-layout .s1-topbar img { display: block; width: 100%; height: 318px; object-fit: cover; }
.style1-layout .s1-badge-overlay {
    position: absolute; left: 8px; bottom: 78px; line-height: normal;
    background: var(--s1-verde-participar); color: var(--s1-branco);
    font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 6px;
    animation: s1-piscar 1.3s ease-in-out infinite;
}
@keyframes s1-piscar { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.style1-layout .s1-title-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,0) 100%);
    /* .s1-topbar sets line-height:0 to remove the whitespace gap under the
       <img> — that's inherited by everything inside it unless reset here,
       which was collapsing the title/subtitle onto each other. */
    line-height: normal;
}
.style1-layout .s1-title-overlay h1 { color: #fff; font-size: 19px; font-weight: 800; margin: 0 0 2px; }
.style1-layout .s1-title-overlay p { color: #e5e7eb; font-size: 13px; margin: 0; }

.style1-layout .s1-bar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; font-weight: 600; padding: 7px 13px; border: none; width: 100%; cursor: pointer;
    font-family: inherit;
}
.style1-layout .s1-bar-dark { background: var(--s1-barra-escura); color: var(--s1-branco); }
.style1-layout .s1-bar-light { background: #bfb9b9; color: #222; }
.style1-layout .s1-bar-topbuyers { background: var(--s1-verde-participar); color: var(--s1-branco); }
.style1-layout .s1-bar-minmax { background: var(--s1-barra-escura); color: var(--s1-branco); }
.style1-layout .s1-bar-period { font-weight: 400; opacity: .85; margin-left: 2px; }

/* ---------- "Top Compradores" / "Maior e Menor Cota" result modals
   (Estilo 1) — deliberately dark/gold, distinct from the light checkout
   modal, to read as a "prize result" screen. ---------- */
.highlight-modal {
    position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.65);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.highlight-modal-inner {
    background: #1a1a1a; color: #fff; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
    border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.5); border: 1px solid #2e2e2e;
}
.highlight-modal-header {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 18px 18px 14px; font-weight: 800; font-size: 16px; color: #ffd54a;
    border-bottom: 1px solid #2e2e2e;
}
.highlight-modal-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px; }
.highlight-modal-body { padding: 18px; }
.highlight-modal-notice { font-size: 13px; color: #d1d5db; text-align: center; margin: 0 0 14px; line-height: 1.6; }
.highlight-modal-notice strong { color: #fff; }
.highlight-countdown {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    background: var(--s1-verde-participar); color: #fff; border-radius: 8px; padding: 8px 14px;
    font-size: 13px; font-weight: 700; text-align: center; margin: 0 auto 14px; width: fit-content;
}
.highlight-countdown-timer { font-variant-numeric: tabular-nums; }
.highlight-divider { border: none; border-top: 1px solid #2e2e2e; margin: 16px 0; }
.highlight-empty { text-align: center; color: #9ca3af; font-size: 13px; padding: 10px 0; }

.highlight-result { display: flex; align-items: center; gap: 14px; }
.highlight-rank {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #2e2e2e;
    display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #ffd54a;
}
.highlight-result-info { flex: 1; min-width: 0; }
.highlight-result-label { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: #9ca3af; margin: 0 0 6px; }
.highlight-result-info p { margin: 0 0 6px; font-size: 13px; color: #e5e7eb; }
.highlight-ticket-badge {
    display: inline-block; background: var(--s1-verde-participar); color: #fff; font-weight: 700; font-size: 13px;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 6px;
}

.highlight-buyer-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #2e2e2e; font-size: 13px;
}
.highlight-buyer-row:last-child { border-bottom: none; }
.highlight-buyer-rank { flex-shrink: 0; width: 28px; font-weight: 800; color: #ffd54a; }
.highlight-buyer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }
.highlight-buyer-stats { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.highlight-buyer-qty { color: #9ca3af; font-size: 12px; }
.highlight-buyer-spent { color: #ffd54a; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.highlight-modal-footer { padding: 14px 18px 18px; text-align: right; }
.highlight-btn-close {
    background: none; border: 1px solid #4b5563; color: #fff; padding: 8px 20px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
}

.style1-layout .s1-sorteio-info { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px 16px 8px; flex-wrap: wrap; }
.style1-layout .s1-sorteio-info .col { display: flex; align-items: center; gap: 8px; }
.style1-layout .s1-sorteio-info label { font-size: 15px; font-weight: 600; color: #1a1a2e; white-space: nowrap; }
.style1-layout .s1-badge-outline {
    display: inline-block; border: 1px solid #ccc; background: var(--s1-branco); border-radius: 8px;
    padding: 8px 16px; font-size: 15px; font-weight: 600; color: #222; white-space: nowrap;
}
.style1-layout .s1-badge-solid {
    display: inline-block; background: var(--s1-preto); color: var(--s1-branco); border-radius: 8px;
    padding: 8px 16px; font-size: 16px; font-weight: 700; white-space: nowrap;
}

.style1-layout .s1-hint-box {
    margin: 4px 16px 12px; background: var(--s1-branco); border: 1px solid #e2e2e2; border-radius: 10px;
    padding: 14px; text-align: center; color: #9a9a9a; font-size: 13.5px;
}

.style1-layout .s1-promo-box { margin: 4px 16px 14px; }

.style1-layout .s1-qty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 8px; }
.style1-layout .s1-qty-btn {
    position: relative; background: var(--s1-preto); color: var(--s1-branco); border: none;
    border-radius: 7px; padding: 18px 6px; text-align: center; cursor: pointer; width: 100%;
}
.style1-layout .s1-qty-btn .num {
    font-family: "Montserrat", sans-serif; font-size: 27px; font-weight: 500; display: block; line-height: 1.15;
}
.style1-layout .s1-qty-btn .sel { font-size: 13px; color: var(--s1-branco); letter-spacing: .5px; font-weight: 400; display: block; }
.style1-layout .s1-qty-btn.popular { background: var(--s1-verde-popular); border: 2px solid var(--s1-verde-participar); }
.style1-layout .s1-tag-popular {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--s1-verde-participar); color: var(--s1-branco); font-size: 9.5px; font-weight: 700;
    padding: 3px 8px; border-radius: 20px; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.style1-layout .s1-qty-btn.active { outline: 3px solid #fff; outline-offset: -3px; }

.style1-layout .s1-manual-toggle {
    display: block; text-align: center; font-size: 12px; color: var(--s1-verde-participar);
    text-decoration: underline; background: none; border: none; cursor: pointer; margin: 10px 16px 0;
}

.style1-layout .s1-participate-row { display: flex; align-items: center; gap: 10px; padding: 16px; }
.style1-layout .s1-stepper {
    display: flex; align-items: center; gap: 10px; background: var(--s1-branco); border: 1px solid #ddd;
    border-radius: 10px; padding: 8px 12px; flex-shrink: 0;
}
.style1-layout .s1-stepper button {
    width: 30px; height: 30px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer;
}
.style1-layout .s1-btn-minus { border: 1.5px solid #cfcfcf; background: var(--s1-branco); color: #444; }
.style1-layout .s1-btn-plus { border: none; background: var(--s1-preto); color: var(--s1-branco); }
.style1-layout .s1-stepper input {
    width: 48px; text-align: center; border: none; font-size: 15px; font-weight: 700; color: #111;
    background: var(--s1-branco); font-variant-numeric: tabular-nums;
}
.style1-layout .s1-participate-btn {
    flex: 1; background: var(--s1-verde-participar); color: var(--s1-branco); border: none; border-radius: 10px;
    padding: 8px 16px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; cursor: pointer;
}
.style1-layout .s1-participate-btn .icon-box {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--s1-branco);
    color: var(--s1-verde-participar); display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700;
}
.style1-layout .s1-participate-btn .text-col { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.style1-layout .s1-participate-btn .ptitle { font-weight: 700; font-size: 15px; }
.style1-layout .s1-participate-btn .price { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); }

.style1-layout .s1-premiadas-header { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; font-weight: 700; color: #333; }
.style1-layout .s1-premiadas-header .muted { color: #999; font-weight: 500; font-size: 13px; }
.style1-layout .s1-premiadas-list { padding: 0 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.style1-layout .s1-premiada-row {
    display: flex; align-items: center; justify-content: space-between; background: var(--s1-branco);
    border: 1px solid #eee; border-radius: 10px; padding: 10px 14px;
}
.style1-layout .s1-premiada-row .numero { background: var(--s1-cinza-numero); color: var(--s1-branco); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 6px; }
.style1-layout .s1-premiada-row .premio { font-size: 13.5px; color: #333; font-weight: 600; }
.style1-layout .s1-premiada-row .status { font-size: 13px; font-weight: 700; }
.style1-layout .s1-premiada-row .status.available { color: var(--s1-verde-participar); }
.style1-layout .s1-premiada-row .status.sold { color: #b91c1c; }

/* Prize number that was actually won: highlight the whole row in black. */
.style1-layout .s1-premiada-row.won { background: var(--s1-preto); border-color: var(--s1-preto); border-radius: 999px; }
.style1-layout .s1-premiada-row.won .numero { background: var(--s1-branco); color: #111; border-radius: 999px; }
.style1-layout .s1-premiada-row.won .premio { color: var(--s1-branco); }
.style1-layout .s1-premiada-row.won .status.sold { color: var(--s1-branco); }

.style1-layout .s1-info-toggle { margin: 16px 16px 0; font-size: 13px; color: #444; }
.style1-layout .s1-info-block { padding: 12px 16px; background: var(--s1-branco); margin: 8px 16px; border-radius: 10px; border: 1px solid #eee; }
.style1-layout .s1-info-block h2 { font-size: 14px; margin: 0 0 8px; }
.style1-layout .s1-info-block .prose { font-size: 13px; color: #555; white-space: pre-line; }
