﻿/* =========================================================
   VARIÁVEIS DE DESIGN
========================================================= */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #f3e8ff;
    --secondary: #ec4899;
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========================================================
   RESET E ESTRUTURA BASE
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

    body.modal-open {
        overflow: hidden;
    }

button,
input,
select {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

    button:disabled {
        cursor: not-allowed;
    }

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1200px;
    height: 72px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-header {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
}

.btn-login {
    color: var(--text);
}

    .btn-login:hover {
        background: #f1f5f9;
    }

.btn-register {
    color: white;
    background: var(--primary);
}

    .btn-register:hover {
        background: var(--primary-dark);
    }


/* =========================================================
   HERO & BANNER
========================================================= */

.event-hero {
    padding: 28px 0 20px;
    background: radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.06), transparent 30%), radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.05), transparent 30%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    flex-wrap: wrap;
}

    .breadcrumb a {
        color: var(--primary);
        font-weight: 600;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.event-banner {
    width: 100%;
    height: 380px;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow-md);
}

    .event-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.event-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

    .event-banner-placeholder i {
        font-size: 48px;
    }

.event-title {
    color: var(--dark);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.event-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

    .event-info-item i {
        color: var(--primary);
    }


/* =========================================================
   LAYOUT DE CONTEÚDO (GRID PRINCIPAL)
========================================================= */

.event-content {
    padding: 28px 0 60px;
}

.event-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (min-width: 993px) {
    .event-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 32px;
        align-items: start;
    }
}

.event-main-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.event-card,
.purchase-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    width: 100%;
}

.event-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.event-card-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 16px;
}

.event-card-header h2 {
    color: var(--dark);
    font-size: 18px;
    font-weight: 800;
}

.event-description {
    padding: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

    .event-description p + p {
        margin-top: 14px;
    }

    .event-description strong {
        color: var(--dark);
    }


/* =========================================================
   CARACTERÍSTICAS
========================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

    .feature-item i {
        font-size: 18px;
        color: var(--primary);
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: white;
        border: 1px solid var(--border);
        flex-shrink: 0;
    }

    .feature-item strong {
        display: block;
        color: var(--dark);
        font-size: 14px;
        font-weight: 700;
    }

    .feature-item span {
        color: var(--muted);
        font-size: 13px;
    }


/* =========================================================
   PURCHASE CARD
========================================================= */

.purchase-card {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

@media (min-width: 993px) {
    .purchase-card {
        position: sticky;
        top: 92px;
    }
}

.purchase-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

    .purchase-header h2 {
        color: var(--dark);
        font-size: 19px;
        font-weight: 800;
    }

    .purchase-header p {
        margin-top: 2px;
        color: var(--muted);
        font-size: 13px;
    }

.ticket-list {
    padding: 8px 18px;
}

.ticket-item {
    padding: 16px 6px;
    border-bottom: 1px solid var(--border);
}

    .ticket-item:last-child {
        border-bottom: none;
    }

.ticket-empty {
    padding: 30px 10px;
    text-align: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .ticket-empty i {
        font-size: 32px;
        color: var(--primary);
    }

.ticket-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.ticket-name {
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
}

.ticket-description {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.ticket-map-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
}

.ticket-price {
    white-space: nowrap;
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
}

.ticket-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.ticket-location-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

    .ticket-location-status i {
        color: var(--primary);
    }


/* =========================================================
   CONTROLE DE QUANTIDADE
========================================================= */

.quantity-control {
    display: flex;
    align-items: center;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.quantity-btn {
    width: 36px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: #f8fafc;
}

    .quantity-btn:hover:not(:disabled) {
        background: var(--primary-light);
        color: var(--primary);
    }

    .quantity-btn:disabled {
        color: #cbd5e1;
        background: #f1f5f9;
    }

.quantity-value {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}


/* =========================================================
   RESUMO E TAGS DE LOCAIS
========================================================= */

.location-summary {
    display: none;
    margin-top: 12px;
    padding: 10px;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    background: var(--primary-light);
}

    .location-summary.active {
        display: block;
    }

.location-summary-title {
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.selected-location-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: white;
    border: 1px solid #ddd6fe;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.selected-location-remove {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--danger-light);
    color: var(--danger);
    font-size: 11px;
}

.purchase-summary {
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.summary-title {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
}

.summary-empty {
    color: var(--muted);
    font-size: 13px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text);
}

    .summary-item + .summary-item {
        margin-top: 6px;
    }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

    .summary-total span {
        color: var(--dark);
        font-weight: 700;
    }

    .summary-total strong {
        color: var(--primary);
        font-size: 20px;
        font-weight: 800;
    }

.btn-buy {
    width: calc(100% - 44px);
    margin: 0 22px 18px;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

    .btn-buy:disabled {
        background: #cbd5e1;
        box-shadow: none;
    }

.purchase-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

    .purchase-security i {
        color: var(--success);
    }


/* =========================================================
   MODAL DO MAPA
========================================================= */

.map-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(6px);
}

    .map-modal-overlay.active {
        display: flex !important;
    }

.map-modal {
    position: relative !important;
    width: min(1100px, 100%) !important;
    max-width: 1100px !important;
    max-height: calc(100vh - 40px) !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden !important;
}

.map-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

    .map-modal-header h3 {
        color: var(--dark);
        font-size: 18px;
        font-weight: 800;
    }

    .map-modal-header p {
        color: var(--muted);
        font-size: 12px;
    }

.map-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--muted);
    background: #f1f5f9;
    font-size: 16px;
}

    .map-modal-close:hover {
        color: var(--danger);
        background: var(--danger-light);
    }

.map-modal-body {
    flex: 1 1 auto;
    padding: 16px;
    background: #f8fafc;
    overflow-y: auto;
}

.event-map {
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: auto;
}

    .event-map svg {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 50vh !important;
        margin: auto;
    }


/* =========================================================
   STATUS SVG
========================================================= */

.map-location[data-status="DISPONIVEL"] {
    cursor: pointer;
    opacity: 1;
}

    .map-location[data-status="DISPONIVEL"] .location-shape {
        fill: #22c55e !important;
        stroke: #15803d !important;
        stroke-width: 3 !important;
    }

    .map-location[data-status="DISPONIVEL"] .location-text {
        fill: #ffffff !important;
    }

    .map-location[data-status="DISPONIVEL"] .location-subtext {
        fill: #dcfce7 !important;
    }

.map-location[data-status="INDISPONIVEL"],
.map-location[data-status="BLOQUEADO"],
.map-location[data-status="RESERVADO"] {
    cursor: not-allowed;
    opacity: 0.55;
}

    .map-location[data-status="INDISPONIVEL"] .location-shape,
    .map-location[data-status="BLOQUEADO"] .location-shape,
    .map-location[data-status="RESERVADO"] .location-shape {
        fill: #ef4444 !important;
        stroke: #b91c1c !important;
        stroke-width: 3 !important;
    }

.map-location.map-selected .location-shape {
    fill: #7c3aed !important;
    stroke: #5b21b6 !important;
    stroke-width: 4 !important;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 14px 4px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.legend-color {
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 2px solid;
    border-radius: 4px;
}

.legend-available {
    background: #22c55e;
    border-color: #15803d;
}

.legend-selected {
    background: #7c3aed;
    border-color: #5b21b6;
}

.legend-unavailable {
    background: #ef4444;
    border-color: #b91c1c;
}

.map-modal-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.map-selection-info {
    color: var(--muted);
    font-size: 13px;
}

    .map-selection-info strong {
        color: var(--primary);
        font-size: 15px;
    }

.map-footer-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary,
.btn-confirm {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: #ffffff;
}

.btn-confirm {
    color: #ffffff;
    background: var(--primary);
}

    .btn-confirm:disabled {
        background: #cbd5e1;
    }

.map-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

/* =========================================================
   CORREÇÃO DE FUNDO E OBJETOS DO SVG
========================================================= */

/*
 * Fundo do container.
 */
.event-map {
    background: #ffffff !important;
}


    /*
 * Fundo do próprio SVG.
 */
    .event-map svg {
        background: #ffffff !important;
    }


        /*
 * Caso o SVG possua o retângulo de fundo:
 *
 * <rect class="map-background" ... />
 */
        .event-map svg .map-background {
            fill: #ffffff !important;
            stroke: none !important;
        }


        /* =========================================================
   OBJETOS DISPONÍVEIS
========================================================= */

        .event-map svg
        .map-location[data-status="DISPONIVEL"]
        .location-shape,
        .event-map svg
        .map-location[data-status="DISPONIVEL"]
        rect,
        .event-map svg
        .map-location[data-status="DISPONIVEL"]
        circle,
        .event-map svg
        .map-location[data-status="DISPONIVEL"]
        ellipse,
        .event-map svg
        .map-location[data-status="DISPONIVEL"]
        polygon,
        .event-map svg
        .map-location[data-status="DISPONIVEL"]
        path {
            fill: #22c55e !important;
            stroke: #15803d !important;
            stroke-width: 3 !important;
        }


        /* =========================================================
   OBJETOS INDISPONÍVEIS
========================================================= */

        .event-map svg
        .map-location[data-status="INDISPONIVEL"]
        .location-shape,
        .event-map svg
        .map-location[data-status="BLOQUEADO"]
        .location-shape,
        .event-map svg
        .map-location[data-status="RESERVADO"]
        .location-shape,
        .event-map svg
        .map-location[data-status="INDISPONIVEL"]
        rect,
        .event-map svg
        .map-location[data-status="INDISPONIVEL"]
        circle,
        .event-map svg
        .map-location[data-status="INDISPONIVEL"]
        ellipse,
        .event-map svg
        .map-location[data-status="INDISPONIVEL"]
        polygon,
        .event-map svg
        .map-location[data-status="INDISPONIVEL"]
        path,
        .event-map svg
        .map-location[data-status="BLOQUEADO"]
        rect,
        .event-map svg
        .map-location[data-status="BLOQUEADO"]
        circle,
        .event-map svg
        .map-location[data-status="BLOQUEADO"]
        polygon,
        .event-map svg
        .map-location[data-status="BLOQUEADO"]
        path,
        .event-map svg
        .map-location[data-status="RESERVADO"]
        rect,
        .event-map svg
        .map-location[data-status="RESERVADO"]
        circle,
        .event-map svg
        .map-location[data-status="RESERVADO"]
        polygon,
        .event-map svg
        .map-location[data-status="RESERVADO"]
        path {
            fill: #ef4444 !important;
            stroke: #b91c1c !important;
            stroke-width: 3 !important;
        }


        /* =========================================================
   OBJETO SELECIONADO
========================================================= */

        .event-map svg
        .map-location.map-selected
        .location-shape,
        .event-map svg
        .map-location.map-selected
        rect,
        .event-map svg
        .map-location.map-selected
        circle,
        .event-map svg
        .map-location.map-selected
        ellipse,
        .event-map svg
        .map-location.map-selected
        polygon,
        .event-map svg
        .map-location.map-selected
        path {
            fill: #7c3aed !important;
            stroke: #5b21b6 !important;
            stroke-width: 4 !important;
        }


        /* =========================================================
   TEXTOS DO MAPA
========================================================= */

        .event-map svg
        .map-location
        .location-text {
            fill: #ffffff !important;
            stroke: none !important;
        }


        .event-map svg
        .map-location
        .location-subtext {
            fill: #ffffff !important;
            stroke: none !important;
        }


.map-background {
    fill: #ffffff !important;
}

.map-sector {
    fill: #ffffff !important;
}

.map-stage, .map-circulation {
    fill: #d6d5d5 !important;
}

.stage-title, .stage-subtitle {
    fill: #000000 !important;
}





/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;
    max-width: 360px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    background: var(--dark);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 600;
    transform: translateY(120px);
    opacity: 0;
    transition: var(--transition);
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }


/* =========================================================
   RESPONSIVIDADE (MOBILE)
========================================================= */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .event-banner {
        height: 220px;
        border-radius: var(--radius-sm);
    }

    .event-info {
        flex-direction: column;
    }

    .event-info-item {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .event-card-header {
        padding: 16px;
    }

    .event-description {
        padding: 16px;
    }

    .ticket-top {
        flex-direction: column;
        gap: 4px;
    }

    .ticket-price {
        align-self: flex-start;
    }

    .map-modal-overlay {
        padding: 0 !important;
    }

    .map-modal {
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .map-modal-footer {
        flex-direction: column;
        gap: 12px;
    }

    .map-footer-actions {
        width: 100%;
    }

        .map-footer-actions button {
            flex: 1;
        }

    .toast {
        right: 16px;
        left: 16px;
        max-width: calc(100% - 32px);
        bottom: 16px;
    }
}



/* =========================================================
   MODAL - ERRO AO CRIAR PEDIDO
========================================================= */

.pedido-error-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    /*
     * Acima do menu, mapa e demais elementos.
     */
    z-index: 12000;
}

    .pedido-error-overlay.active {
        display: flex;
    }


/* =========================================================
   CARD
========================================================= */

.pedido-error-modal {
    width: 100%;
    max-width: 500px;
    padding: 34px 32px 28px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28);
    text-align: center;
    animation: pedidoErrorEntrada .22s ease-out;
}


/* =========================================================
   ÍCONE
========================================================= */

.pedido-error-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 30px;
}


/* =========================================================
   TEXTO
========================================================= */

.pedido-error-content h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
}

.pedido-error-content p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}


/* =========================================================
   AÇÕES
========================================================= */

.pedido-error-actions {
    margin-top: 26px;
}

.pedido-error-btn {
    min-width: 150px;
    min-height: 46px;
    padding: 10px 24px;
    border: 0;
    border-radius: 11px;
    background: #7c3aed;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

    .pedido-error-btn:hover {
        background: #6d28d9;
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(124, 58, 237, .20);
    }


/* =========================================================
   ANIMAÇÃO
========================================================= */

@keyframes pedidoErrorEntrada {

    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .pedido-error-overlay {
        padding: 16px;
    }

    .pedido-error-modal {
        max-width: 100%;
        padding: 28px 20px 22px;
        border-radius: 17px;
    }

    .pedido-error-icon {
        width: 62px;
        height: 62px;
        font-size: 26px;
    }

    .pedido-error-content h3 {
        font-size: 20px;
    }

    .pedido-error-content p {
        font-size: 14px;
    }

    .pedido-error-btn {
        width: 100%;
    }
}

/* =========================================================
   INGRESSO ESGOTADO
========================================================= */

.ticket-soldout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    white-space: nowrap;
}

    .ticket-soldout i {
        font-size: 13px;
    }