.rsb-app {
    --rsb-primary: #7e2032;
    --rsb-primary-dark: #551522;
    --rsb-secondary: #14765b;
    --rsb-gold: #d5a238;
    --rsb-ink: #242126;
    --rsb-muted: #6f6870;
    --rsb-line: #e8dfe3;
    --rsb-soft: #fbf6f2;
    --rsb-white: #ffffff;
    --rsb-shadow: 0 18px 50px rgba(53, 24, 34, .10);
    color: var(--rsb-ink);
    font-family: inherit;
    line-height: 1.6;
    max-width: 1240px;
    margin: 32px auto;
    padding: 0 18px 56px;
}

.rsb-app *, .rsb-app *::before, .rsb-app *::after { box-sizing: border-box; }
.rsb-app h1, .rsb-app h2, .rsb-app h3, .rsb-app p { margin-top: 0; }
.rsb-app h1 { font-size: clamp(2.15rem, 5vw, 4.55rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 22px; }
.rsb-app h2 { font-size: clamp(1.6rem, 3vw, 2.55rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 0; }
.rsb-app h3 { line-height: 1.25; }

.rsb-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 42px;
    align-items: center;
    padding: clamp(28px, 5vw, 68px);
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(213,162,56,.28), transparent 30%),
        linear-gradient(135deg, #5d1524 0%, #8d2639 57%, #341018 100%);
    box-shadow: var(--rsb-shadow);
    overflow: hidden;
    position: relative;
}

.rsb-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    right: -100px;
    top: -120px;
}

.rsb-hero__content { position: relative; z-index: 1; }
.rsb-hero__content > p { max-width: 760px; font-size: 1.08rem; color: rgba(255,255,255,.88); }
.rsb-eyebrow, .rsb-kicker { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.rsb-eyebrow { color: #f7d889; margin-bottom: 18px; }
.rsb-kicker { color: var(--rsb-primary); margin-bottom: 8px; }
.rsb-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.rsb-hero__badges span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.09); border-radius: 999px; font-size: .87rem; }
.rsb-hero__photo { margin: 0; position: relative; z-index: 1; }
.rsb-hero__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; border-radius: 24px; display: block; border: 6px solid rgba(255,255,255,.15); }
.rsb-hero__photo figcaption { margin-top: 12px; color: rgba(255,255,255,.72); font-size: .86rem; }

.rsb-section { margin-top: 30px; padding: clamp(24px, 4vw, 44px); background: var(--rsb-white); border: 1px solid var(--rsb-line); border-radius: 26px; box-shadow: 0 10px 35px rgba(53, 24, 34, .055); }
.rsb-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.rsb-section-heading > p { max-width: 480px; color: var(--rsb-muted); margin-bottom: 3px; }

.rsb-live { color: var(--rsb-secondary); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.rsb-live span { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--rsb-secondary); box-shadow: 0 0 0 5px rgba(20,118,91,.10); }
.rsb-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rsb-stats article { min-height: 118px; padding: 18px; border-radius: 18px; background: var(--rsb-soft); border: 1px solid #efe3dc; }
.rsb-stats strong { display: block; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.1; margin-bottom: 10px; color: var(--rsb-primary); }
.rsb-stats span { color: var(--rsb-muted); font-size: .84rem; line-height: 1.3; display: block; }
.rsb-stats .rsb-stat-highlight { color: #fff; background: linear-gradient(135deg, var(--rsb-secondary), #0c5945); border-color: transparent; }
.rsb-stats .rsb-stat-highlight strong, .rsb-stats .rsb-stat-highlight span { color: #fff; }
.rsb-progress { height: 14px; margin-top: 20px; border-radius: 999px; background: #eee6e9; overflow: hidden; }
.rsb-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rsb-primary), var(--rsb-gold)); transition: width .45s ease; }
.rsb-progress-caption { margin: 9px 0 0; color: var(--rsb-muted); font-size: .84rem; }

.rsb-instructions { background: linear-gradient(180deg, #fff, #fffaf6); }
.rsb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rsb-steps li { padding: 18px; border: 1px solid var(--rsb-line); border-radius: 18px; background: #fff; }
.rsb-steps li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; margin-bottom: 15px; background: var(--rsb-primary); color: #fff; font-weight: 800; }
.rsb-steps li p { margin: 0; font-size: .92rem; }

.rsb-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rsb-info-grid article { padding: 20px; border-radius: 18px; background: #f9f5f6; border-left: 4px solid var(--rsb-primary); }
.rsb-info-grid span { display: block; color: var(--rsb-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 7px; }
.rsb-info-grid strong { display: block; line-height: 1.35; }
.rsb-rule-note { margin: 20px 0 0; padding: 16px 18px; border-radius: 14px; background: #fff8df; border: 1px solid #eedfa8; color: #5e501d; }

.rsb-prizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rsb-prize-card { border: 1px solid var(--rsb-line); border-radius: 20px; overflow: hidden; background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.rsb-prize-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(53,24,34,.10); }
.rsb-prize-card__image { position: relative; background: #f2edef; }
.rsb-prize-card__image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.rsb-prize-card__image span { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(85,21,34,.92); color: #fff; font-size: .72rem; font-weight: 800; }
.rsb-prize-card__body { padding: 17px; }
.rsb-prize-card__body h3 { font-size: 1rem; margin-bottom: 10px; }
.rsb-prize-card__body p { margin: 0; color: var(--rsb-muted); font-size: .86rem; }

.rsb-legend { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: flex-end; font-size: .82rem; color: var(--rsb-muted); }
.rsb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rsb-legend i { width: 15px; height: 15px; border-radius: 5px; border: 1px solid transparent; }
.rsb-legend i.is-available { background: #fff; border-color: #d8cdd1; }
.rsb-legend i.is-selected { background: var(--rsb-gold); }
.rsb-legend i.is-pending { background: #db8335; }
.rsb-legend i.is-confirmed { background: var(--rsb-secondary); }

.rsb-alert { padding: 15px 18px; border-radius: 14px; margin-bottom: 20px; }
.rsb-alert--closed { color: #67210f; background: #fff0e9; border: 1px solid #f0bfad; }
.rsb-number-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.rsb-number-tools label { font-weight: 700; font-size: .87rem; }
.rsb-number-tools input { width: 140px; min-height: 42px; border: 1px solid #d8cdd1; border-radius: 12px; padding: 8px 12px; background: #fff; }
.rsb-number-tools .rsb-button { margin-left: auto; }
.rsb-number-grid { display: grid; grid-template-columns: repeat(20, minmax(38px, 1fr)); gap: 7px; max-height: 620px; overflow: auto; padding: 12px; background: #f7f3f5; border: 1px solid var(--rsb-line); border-radius: 20px; scrollbar-width: thin; }
.rsb-number { appearance: none; min-height: 40px; border: 1px solid #d9cdd2; border-radius: 9px; background: #fff; color: var(--rsb-ink); font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.rsb-number.is-available:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(53,24,34,.10); border-color: var(--rsb-primary); }
.rsb-number.is-selected { background: var(--rsb-gold); color: #2d2106; border-color: #bf8623; box-shadow: 0 0 0 2px rgba(213,162,56,.18); }
.rsb-number.is-pending { background: #db8335; color: #fff; border-color: #c66c20; cursor: not-allowed; }
.rsb-number.is-confirmed { background: var(--rsb-secondary); color: #fff; border-color: #0d614a; cursor: not-allowed; }
.rsb-number:disabled { opacity: .92; }
.rsb-number--focus { animation: rsbPulseFocus 1.6s ease; }
@keyframes rsbPulseFocus { 0%,100% { box-shadow: none; } 45% { box-shadow: 0 0 0 8px rgba(126,32,50,.25); transform: scale(1.12); } }

.rsb-checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .65fr); gap: 30px; align-items: start; }
.rsb-selection-summary { display: grid; grid-template-columns: 2fr .7fr .8fr; gap: 12px; margin-bottom: 22px; }
.rsb-selection-summary > div { padding: 16px; border-radius: 16px; background: var(--rsb-soft); border: 1px solid #efe3dc; min-width: 0; }
.rsb-selection-summary span { display: block; color: var(--rsb-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; margin-bottom: 6px; }
.rsb-selection-summary strong { display: block; overflow-wrap: anywhere; }
.rsb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rsb-form label > span { display: block; font-size: .86rem; font-weight: 750; margin-bottom: 7px; }
.rsb-form input[type="text"], .rsb-form input[type="tel"] { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #d7cbd0; border-radius: 13px; background: #fff; font: inherit; }
.rsb-form input:focus, .rsb-number-tools input:focus { outline: none; border-color: var(--rsb-primary); box-shadow: 0 0 0 4px rgba(126,32,50,.10); }
.rsb-honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.rsb-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: var(--rsb-muted); font-size: .84rem; }
.rsb-consent input { margin-top: 4px; flex: 0 0 auto; }
.rsb-consent > span { font-weight: 400 !important; margin: 0 !important; }
.rsb-form-status { min-height: 24px; margin: 12px 0 0; font-weight: 700; font-size: .9rem; }
.rsb-form-status.is-error { color: #b3261e; }
.rsb-form-status.is-success { color: var(--rsb-secondary); }

.rsb-button, .rsb-whatsapp-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent; text-decoration: none !important; font-weight: 800; font-size: .9rem; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.rsb-button:hover, .rsb-whatsapp-button:hover { transform: translateY(-2px); }
.rsb-button--primary { color: #fff !important; background: linear-gradient(135deg, var(--rsb-primary), var(--rsb-primary-dark)); box-shadow: 0 10px 22px rgba(126,32,50,.22); }
.rsb-button--secondary { color: #fff !important; background: var(--rsb-secondary); }
.rsb-button--ghost { color: var(--rsb-primary) !important; background: #fff; border-color: #d9cdd2; }
.rsb-button--large { min-height: 54px; width: 100%; }
.rsb-button:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.rsb-button.is-loading { position: relative; }

.rsb-payment-card { position: sticky; top: 24px; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, #fffaf6, #f7ede7); border: 1px solid #ead9cf; }
.rsb-payment-card h2 { font-size: 1.75rem; margin-bottom: 18px; }
.rsb-qr { display: block; width: min(220px, 100%); aspect-ratio: 1; object-fit: contain; margin: 0 auto 18px; padding: 10px; background: #fff; border: 1px solid var(--rsb-line); border-radius: 16px; }
.rsb-pix-data { padding: 12px 0; border-top: 1px solid #e5d8d0; }
.rsb-pix-data span { display: block; color: var(--rsb-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.rsb-pix-data strong { overflow-wrap: anywhere; }
.rsb-payment-card .rsb-button, .rsb-payment-card .rsb-whatsapp-button { width: 100%; margin-top: 10px; }
.rsb-payment-card > p { color: var(--rsb-muted); font-size: .85rem; margin: 16px 0 0; }
.rsb-whatsapp-button { color: #fff !important; background: #1f9d58; box-shadow: 0 10px 24px rgba(31,157,88,.24); text-align: center; }
.rsb-blink { animation: rsbWhatsappPulse 1.45s ease-in-out infinite; }
@keyframes rsbWhatsappPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,157,88,.36), 0 10px 24px rgba(31,157,88,.24); } 50% { box-shadow: 0 0 0 11px rgba(31,157,88,0), 0 12px 26px rgba(31,157,88,.3); } }

.rsb-success { margin-top: 22px; padding: 22px; border-radius: 20px; background: #edf9f4; border: 1px solid #b9e0d1; }
.rsb-success h3 { font-size: 1.35rem; margin-bottom: 10px; color: #0c5b43; }
.rsb-success p { margin-bottom: 16px; }
.rsb-success__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.rsb-participants-wrap { overflow-x: auto; border: 1px solid var(--rsb-line); border-radius: 18px; }
.rsb-participants-table { width: 100%; border-collapse: collapse; min-width: 1040px; margin: 0; }
.rsb-participants-table th, .rsb-participants-table td { padding: 14px 13px; border-bottom: 1px solid var(--rsb-line); text-align: left; vertical-align: top; font-size: .84rem; }
.rsb-participants-table th { background: #f8f3f5; color: #544b51; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.rsb-participants-table tbody tr:last-child td { border-bottom: 0; }
.rsb-participant-numbers { max-width: 270px; line-height: 1.75; }
.rsb-status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.rsb-status-pill.is-pending { color: #743a08; background: #ffe8cf; }
.rsb-status-pill.is-confirmed { color: #07563f; background: #dff4eb; }
.rsb-ticket-links { display: flex; gap: 6px; }
.rsb-ticket-links a, .rsb-ticket-links button { display: inline-flex; padding: 5px 8px; border-radius: 8px; color: var(--rsb-primary); background: #f6edf0; text-decoration: none; font-weight: 800; }

.rsb-result-section { background: linear-gradient(135deg, #fff, #fbf2e8); }
.rsb-result-card { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--rsb-line); }
.rsb-result-card h3 { color: var(--rsb-primary); font-size: 1.4rem; }
.rsb-result-card--empty { color: var(--rsb-muted); border-style: dashed; }

@media (max-width: 1100px) {
    .rsb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rsb-prizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rsb-number-grid { grid-template-columns: repeat(14, minmax(38px, 1fr)); }
    .rsb-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .rsb-app { margin-top: 16px; padding-inline: 12px; }
    .rsb-hero { grid-template-columns: 1fr; padding: 28px; }
    .rsb-hero__photo { max-width: 520px; }
    .rsb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rsb-checkout { grid-template-columns: 1fr; }
    .rsb-payment-card { position: static; }
    .rsb-number-grid { grid-template-columns: repeat(10, minmax(36px, 1fr)); max-height: 560px; }
    .rsb-section-heading { align-items: flex-start; flex-direction: column; }
    .rsb-legend { justify-content: flex-start; }
}

@media (max-width: 620px) {
    .rsb-section { padding: 22px 16px; border-radius: 20px; }
    .rsb-hero { border-radius: 22px; padding: 24px 18px; }
    .rsb-hero__badges { gap: 7px; }
    .rsb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rsb-stats article:last-child { grid-column: 1 / -1; }
    .rsb-steps, .rsb-info-grid, .rsb-prizes, .rsb-form-grid, .rsb-selection-summary { grid-template-columns: 1fr; }
    .rsb-prizes { gap: 13px; }
    .rsb-prize-card { display: grid; grid-template-columns: 120px 1fr; }
    .rsb-prize-card__image img { height: 100%; aspect-ratio: auto; }
    .rsb-number-grid { grid-template-columns: repeat(5, minmax(42px, 1fr)); gap: 8px; padding: 10px; }
    .rsb-number { min-height: 43px; }
    .rsb-number-tools .rsb-button { width: 100%; margin-left: 0; }
    .rsb-success__actions > * { width: 100%; }

    .rsb-participants-wrap { overflow: visible; border: 0; }
    .rsb-participants-table { min-width: 0; display: block; }
    .rsb-participants-table thead { display: none; }
    .rsb-participants-table tbody, .rsb-participants-table tr, .rsb-participants-table td { display: block; width: 100%; }
    .rsb-participants-table tr { margin-bottom: 14px; padding: 12px; border: 1px solid var(--rsb-line); border-radius: 16px; background: #fff; }
    .rsb-participants-table td { display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 10px; padding: 8px 4px; border-bottom: 1px dashed #eadfe3; }
    .rsb-participants-table td:last-child { border-bottom: 0; }
    .rsb-participants-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--rsb-muted); }
    .rsb-participant-numbers { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rsb-app *, .rsb-app *::before, .rsb-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.rsb-ticket-links button {
    appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.rsb-ticket-jpeg.rsb-button {
    font-family: inherit;
}
