:root {
    --bg: #0d1117;
    --bg-soft: #151a22;
    --panel: rgba(17, 24, 31, 0.9);
    --panel-alt: rgba(255, 255, 255, 0.04);
    --panel-strong: #fff;
    --text: #f5f3ef;
    --muted: #c7c0b7;
    --line: rgba(255, 255, 255, 0.08);
    --gold: #f7c96c;
    --gold-strong: #f1ae2c;
    --green: #2ed47a;
    --green-soft: rgba(46, 212, 122, 0.12);
    --danger-soft: rgba(255, 79, 79, 0.12);
    --shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
    --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(247, 201, 108, 0.18), transparent 20%),
        radial-gradient(circle at bottom right, rgba(46, 212, 122, 0.08), transparent 22%),
        linear-gradient(180deg, #0d1117 0%, #101821 100%);
    color: var(--text);
}

button, input, a {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 18px 60px;
}

/* ================= TOPBAR / CABEÇALHO ================= */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding: 10px 8px;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: #1b1208;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(241, 174, 44, 0.35);
    flex-shrink: 0;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.9);
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7c96c, #f1ae2c);
    color: #1b1208;
    text-decoration: none;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(241, 174, 44, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-voltar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(241, 174, 44, 0.35);
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.catalog-copy {
    margin-top: 0 !important;
}

/* ================= HERO / DESTAQUE ================= */
.hero {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 26px;
}

.hero-copy,
.prize-card,
.raffle-panel {
    background: linear-gradient(180deg, rgba(17, 24, 31, 0.92), rgba(13, 17, 23, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 34px 30px 28px;
}

.eyebrow,
.section-tag,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.eyebrow {
    background: rgba(247, 201, 108, 0.12);
    color: var(--gold);
    border: 1px solid rgba(247, 201, 108, 0.22);
}

.hero-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
    font-weight: 900;
    max-width: 620px;
}

.hero-copy h1 span {
    color: var(--gold);
}

.hero-copy p {
    margin: 0;
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 24px;
    text-decoration: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: #1d1206;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 22px 40px rgba(241, 174, 44, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 48px rgba(241, 174, 44, 0.34);
}

.mini-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-badges span {
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}

.prize-card {
    position: relative;
    overflow: hidden;
    padding: 24px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(247, 201, 108, 0.08), rgba(14, 17, 23, 0.94)),
        #0f1720;
}

.prize-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.prize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    background: rgba(247, 201, 108, 0.12);
    color: var(--gold);
    border: 1px solid rgba(247, 201, 108, 0.25);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(46, 212, 122, 0.1);
}

.label {
    margin: 14px 0 4px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.prize-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.prize-value {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1;
    letter-spacing: -0.08em;
    font-weight: 900;
    color: var(--gold);
}

.prize-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ================= RIFA PANEL / PAINEL DA RIFA ================= */
.raffle-panel {
    padding: 24px 24px 22px;
}

.panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.section-tag {
    background: rgba(247, 201, 108, 0.12);
    color: var(--gold);
    border: 1px solid rgba(247, 201, 108, 0.2);
    margin-bottom: 9px;
}

.panel-header h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.06em;
}

.chosen-box {
    min-width: 155px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(247, 201, 108, 0.06);
    border: 1px solid rgba(247, 201, 108, 0.26);
    text-align: center;
}

.chosen-box span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

.chosen-box strong {
    display: block;
    margin-top: 5px;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.08em;
    color: var(--text);
}

.status-line {
    margin: 12px 0 18px;
    color: #f3d7a8;
    font-weight: 700;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(44px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
}

.numero {
    appearance: none;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 12px;
    min-height: 48px;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.numero:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(46, 212, 122, 0.12), rgba(255,255,255,0.04));
    box-shadow: 0 12px 20px rgba(0,0,0,0.22);
}

.numero.reservado {
    background: linear-gradient(180deg, rgba(140, 133, 126, 0.28), rgba(76, 70, 65, 0.18));
    color: rgba(255,255,255,0.45);
    cursor: not-allowed;
}

.numero.pendente {
    background: linear-gradient(180deg, rgba(247, 201, 108, 0.25), rgba(241, 174, 44, 0.18));
    color: #f7e0a8;
    cursor: not-allowed;
}

.numero.selecionado {
    background: linear-gradient(135deg, var(--green), #1eb666);
    color: #08130d;
    border-color: rgba(46, 212, 122, 0.6);
    box-shadow: 0 16px 28px rgba(46, 212, 122, 0.26);
}

/* ================= FORMULÁRIOS & BOTÕES ================= */
.raffle-form {
    margin-top: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px 16px;
}

input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder {
    color: rgba(255,255,255,0.4);
}

input:focus {
    outline: none;
    border-color: rgba(247, 201, 108, 0.7);
    box-shadow: 0 0 0 4px rgba(247, 201, 108, 0.08);
    background: rgba(255,255,255,0.04);
}

.numero-escolhido {
    background: rgba(247, 201, 108, 0.06);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(100%, 420px);
    min-height: 60px;
    margin-top: 18px;
    border: none;
    cursor: pointer;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: #1a140d;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 20px 34px rgba(241, 174, 44, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 40px rgba(241, 174, 44, 0.32);
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.alert.error {
    background: var(--danger-soft);
    color: #ffd5d5;
    border: 1px solid rgba(255, 124, 124, 0.28);
}

.alert.success {
    background: var(--green-soft);
    color: #c9f8dc;
    border: 1px solid rgba(46, 212, 122, 0.26);
}

.prova-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    color: var(--muted);
    font-weight: 700;
}

/* ================= MEDIA QUERIES (RESPONSIVIDADE) ================= */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-name {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .hero-copy {
        padding: 24px 18px 20px;
    }

    .hero-copy h1 {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
        line-height: 1;
    }

    .hero-actions {
        width: 100%;
    }

    .mini-badges {
        width: 100%;
    }

    .mini-badges span {
        flex: 1 1 100%;
        text-align: center;
    }

    .topbar-meta {
        gap: 10px;
    }

    .hero-copy,
    .prize-card,
    .raffle-panel {
        border-radius: 22px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chosen-box {
        width: 100%;
    }

    .number-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
        padding: 8px;
    }

    .numero {
        min-height: 44px;
        border-radius: 10px;
    }

    .raffle-panel {
        padding: 20px 14px 18px;
    }

    .status-line {
        font-size: 0.9rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}