:root {
    --primary-navy: #1e2a43;
    --accent-gold: #c5a059;
    --dusty-gold: #fcfaf5;
    --white: #fff;
    --success: #2ecc71;
    --border: #e2e8f0;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset e Base */
body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--dusty-gold);
    color: var(--primary-navy);
    margin: 0;
    padding-bottom: 60px;
}

/* Hero Section */
.hero {
    height: 35vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 42, 67, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Layout Principal */
.main-grid {
    max-width: 1100px;
    margin: -40px auto 0;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    padding: 0 20px;
    z-index: 10;
    position: relative;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(30, 42, 67, 0.05);
    margin-bottom: 25px;
}

.section-label {
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

/* Ingressos */
.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.qty-box {
    display: flex;
    align-items: center;
    background: var(--dusty-gold);
    border-radius: 12px;
    padding: 5px;
    gap: 15px;
}

.qty-btn {
    border: none;
    background: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

/* Formulários */
.buyer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group.span-2 {
    grid-column: span 2;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 5px;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

input:focus {
    border-color: var(--accent-gold);
}

/* Sidebar e Resumo */
.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.coupon-area {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: var(--dusty-gold);
    border-radius: 15px;
}

.summary-footer {
    border-top: 2px solid var(--dusty-gold);
    padding-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-weight: 600;
}

.discount-row {
    color: var(--success);
    display: none;
}

.final-total {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 800;
    margin-top: 10px;
}

/* Botões */
.btn-apply {
    background: var(--primary-navy);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.btn-checkout {
    width: 100%;
    background: var(--accent-gold);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 15px;
}

/* Painel Lateral (Sheet) */
.form-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
}

.form-overlay.active {
    display: block;
}

.form-sheet {
    position: fixed;
    right: -100%;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: white;
    z-index: 101;
    transition: 0.5s var(--ease);
    padding: 40px;
    overflow-y: auto;
}

.form-sheet.active {
    right: 0;
}

.sheet-title {
    margin-top: 0;
}

/* Pagamento */
.payment-section {
    display: none;
}

#paymentCardBrick_container {
    min-height: 600px;
}

/* Pix Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.pix-qr {
    width: 200px;
    margin: 20px auto;
    display: block;
}

.pix-code-container {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#pix-code-text {
    display: block;
    font-size: 0.7rem;
    word-break: break-all;
    max-height: 60px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.btn-primary-small {
    padding: 8px 15px;
    font-size: 0.8rem;
}

.btn-close-modal {
    margin-top: 20px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: var(--primary-navy);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--accent-gold);
    animation: slideIn 0.3s var(--ease);
    pointer-events: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .form-sheet {
        max-width: 100%;
    }
}
