:root {
    --bg-deep: #050a14;
    --bg-card: rgba(12, 22, 42, 0.92);
    --gold: #e8c547;
    --gold-dark: #b8941e;
    --lime: #7cfc7c;
    --lime-dim: #5bd65b;
    --cream: #f5ecd7;
    --red-ribbon: #c41e3a;
    --blue-card: #1e3a5f;
    --green-wa: #25d366;
    --text: #f0f4ff;
    --glow-gold: 0 0 24px rgba(232, 197, 71, 0.35);
    --glow-blue: 0 0 32px rgba(80, 180, 255, 0.2);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(60, 140, 255, 0.25), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 50%, rgba(232, 197, 71, 0.08), transparent),
        linear-gradient(180deg, #0a1228 0%, var(--bg-deep) 45%, #020510 100%);
}

.hero-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background: url('hero.png') center top / cover no-repeat;
    z-index: 0;
}
.hero-bg.no-img { display: none; }

.wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.ribbon {
    display: inline-block;
    padding: 0.65rem 2.25rem;
    background: linear-gradient(180deg, #f0d060 0%, var(--gold-dark) 45%, #8a6b12 100%);
    border: 3px solid #fff8dc;
    border-radius: 4px;
    box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255,255,255,0.45);
    transform: perspective(400px) rotateX(4deg);
}
.ribbon h1 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(1.35rem, 4vw, 2rem);
    color: var(--red-ribbon);
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
    letter-spacing: 0.02em;
}

.subtitle {
    margin: 0.85rem 0 0;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 600;
    color: var(--lime);
    text-shadow: 0 0 20px rgba(124, 252, 124, 0.35);
}

.info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-pill {
    border-radius: 16px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: var(--glow-blue);
}
.info-pill.price {
    background: linear-gradient(135deg, #c41e3a, #8b1530);
    color: var(--gold);
    border-color: var(--gold);
}
.info-pill.date {
    background: linear-gradient(135deg, var(--blue-card), #0f2038);
}
.info-pill.contact {
    background: linear-gradient(135deg, #d4a017, var(--gold-dark));
    color: #1a0a0a;
}
.info-pill.wa {
    background: linear-gradient(135deg, #128c7e, var(--green-wa));
}
.info-pill a {
    color: inherit;
    text-decoration: none;
}

.rules-strip {
    background: linear-gradient(90deg, #0d2818, #1a4d2e);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(124, 252, 124, 0.25);
}

.grid-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--gold);
}

.num-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 0.45rem;
}

.num-btn {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid rgba(232, 197, 71, 0.55);
    background: linear-gradient(160deg, rgba(30, 58, 95, 0.9), rgba(8, 16, 32, 0.95));
    color: var(--text);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.num-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: var(--glow-gold), 0 6px 16px rgba(0,0,0,0.4);
}
.num-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.loading-msg, .error-banner {
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.loading-msg { background: rgba(30, 58, 95, 0.6); }
.error-banner {
    background: rgba(196, 30, 58, 0.35);
    border: 1px solid var(--red-ribbon);
    display: none;
}
.error-banner.visible { display: block; }

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(2, 5, 16, 0.82);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop.open { display: flex; }

.modal {
    width: min(440px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: 20px;
    box-shadow: var(--glow-gold), 0 24px 48px rgba(0,0,0,0.5);
    padding: 1.35rem 1.25rem 1.5rem;
}

.modal-num {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(232, 197, 71, 0.4);
    margin-bottom: 0.25rem;
}
.modal-num span { color: var(--lime); }

.modal-subtitle {
    text-align: center;
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.modal label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0.65rem 0 0.25rem;
    color: rgba(240, 244, 255, 0.85);
}
.modal input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(232, 197, 71, 0.4);
    background: rgba(5, 10, 20, 0.8);
    color: var(--text);
    font-family: inherit;
}
.modal input:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(124, 252, 124, 0.25);
}

.pay-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 1rem 0 0.5rem;
}
.pay-tab {
    flex: 1;
    padding: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(30, 58, 95, 0.8);
    color: var(--text);
}
.pay-tab.active {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    color: #1a0a0a;
}

.pay-panel {
    display: none;
    background: var(--cream);
    color: #1a2744;
    border-radius: 14px;
    padding: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.45;
}
.pay-panel.active { display: block; }
.pay-panel strong { display: block; margin-bottom: 0.35rem; }
.pay-panel img {
    display: block;
    max-width: 180px;
    margin: 0.5rem auto 0;
    border-radius: 8px;
    border: 2px solid var(--gold-dark);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.btn {
    flex: 1;
    min-width: 120px;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.btn-primary {
    background: linear-gradient(180deg, var(--lime), var(--lime-dim));
    color: #052208;
    box-shadow: 0 4px 14px rgba(91, 214, 91, 0.35);
}
.btn-wa {
    background: linear-gradient(180deg, var(--green-wa), #128c7e);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: rgba(240, 244, 255, 0.8);
    border: 1px solid rgba(255,255,255,0.25);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.success-box {
    display: none;
    background: rgba(124, 252, 124, 0.12);
    border: 1px solid var(--lime);
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}
.success-box.visible { display: block; }

.features {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}
.feature {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(232, 197, 71, 0.25);
    box-shadow: var(--glow-blue);
}
.feature-h {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.feature-h.b { background: linear-gradient(90deg, #2a5a9e, #1e3a5f); }
.feature-h.p { background: linear-gradient(90deg, #6b3fa0, #4a2a70); }
.feature-h.g { background: linear-gradient(90deg, #2d7a3e, #1a4d2e); }
.feature-body {
    background: var(--cream);
    color: #1a2744;
    padding: 0.85rem;
    font-size: 0.78rem;
    line-height: 1.5;
}
