@font-face {
    font-family: 'MonumentExtended';
    src: url('../fonts/MonumentExtended-Ultrabold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/* ─── Reset / Base ──────────────────────────────────────────────────────────── */
body {
    background-color: #0a0a0a;
    justify-content: normal !important;
    overflow-x: hidden;
    --bs-body-color: #ffffff;
    color: #ffffff;
}

header {
    background-color: transparent !important;
    position: relative !important;
    z-index: 10;
}

header .bg-menu {
    background-image: none !important;
    position: static !important;
}

[v-cloak] { display: none; }

/* ─── Background blur ───────────────────────────────────────────────────────── */
.page-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(48px);
    transform: scale(1.12);
    z-index: -2;
    pointer-events: none;
}

.page-bg-overlay {
    position: fixed;
    inset: 0;
    bottom: auto;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    z-index: -1;
    pointer-events: none;
}

/* FOOTER ELEMENTOR — abaixo do modal QR */
.elementor-3362471 {
    position: relative;
    z-index: 100;
}

/* ─── Main section ──────────────────────────────────────────────────────────── */
.main-section {
    position: relative;
    padding-top: 24px;
}

.main-section .container {
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 991px) {
    .main-section .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb-nav a,
.breadcrumb-nav span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #aaaaaa;
    text-decoration: none;
}

.breadcrumb-nav span {
    color: #E3409E;
    font-weight: 600;
}

.breadcrumb-nav i {
    font-size: 11px;
    color: #555;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero-title {
    font-family: 'MonumentExtended', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: #aaaaaa;
    font-weight: 400;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 26px;
    }
}

/* ─── Ticket Card ───────────────────────────────────────────────────────────── */
.ticket-card {
    background: #161616;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 28px;
    border: 1px solid #2a2a2a;
    max-width: 560px;
}

.ticket-card-image {
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    background: #1f1f1f;
}

.ticket-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ─── Card Header (voucher + name + badge) ──────────────────────────────────── */
.ticket-card-header {
    padding: 16px;
    border-bottom: 1px solid #2a2a2a;
}

.voucher-code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.event-name {
    font-family: 'MonumentExtended', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.badge-pago {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

/* ─── Card Sections ─────────────────────────────────────────────────────────── */
.ticket-card-section {
    padding: 16px;
}

.event-date-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #E3409E;
    margin: 0;
}

.event-location {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin: 6px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-location i,
.event-location .ticket-icon {
    font-size: 13px;
    color: #ffffff;
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

.info-box {
    background: #1f1f1f;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row + .info-row {
    margin-top: 8px;
}

.info-row i,
.info-row .ticket-icon {
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ticket-icon {
    filter: brightness(0) invert(1);
}

.ticket-icon-pink {
    filter: brightness(0) saturate(100%) invert(35%) sepia(85%) saturate(1200%) hue-rotate(295deg) brightness(100%);
}

.info-row span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    color: #ffffff;
    font-weight: 400;
}

/* ─── Dashed divider ────────────────────────────────────────────────────────── */
.dashed-divider {
    border: none;
    border-top: 1px dashed #2e2e2e;
    margin: 0 16px;
}

/* ─── Ticket type / qty ─────────────────────────────────────────────────────── */
.ticket-type-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.badge-qty {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: #252525;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 3px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Value row ─────────────────────────────────────────────────────────────── */
.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.value-row > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-row > div:first-child i,
.value-row > div:first-child .ticket-icon {
    font-size: 14px;
    color: #ffffff;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.unit-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.divider-v {
    color: #444;
    font-size: 16px;
}

.btn-qr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #252525;
    border: 1px solid #383838;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-qr:hover {
    background: #303030;
}

.btn-qr i {
    font-size: 14px;
    color: #E3409E;
}

/* ─── Summary ───────────────────────────────────────────────────────────────── */
.summary-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.summary-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.summary-label-small {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
}

.summary-value-small {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
}

.total-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.total-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* ─── 3-dots menu ───────────────────────────────────────────────────────────── */
.btn-dots {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 4px 6px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.btn-dots:hover {
    color: #ffffff;
}

.dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #242424;
    border: 1px solid #333;
    border-radius: 10px;
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu-custom a {
    display: block;
    padding: 11px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.1s;
}

.dropdown-menu-custom a:hover {
    background: #2e2e2e;
}

/* ─── Meus ingressos button ─────────────────────────────────────────────────── */
.btn-meus-ingressos {
    display: inline-flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 50px;
    padding: 10px 24px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-meus-ingressos:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: #000000;
}

/* ─── QR Bottom Sheet ───────────────────────────────────────────────────────── */
.qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qr-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.qr-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #161616;
    border-top: 1px solid #2a2a2a;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 0 28px 36px;
    max-height: 90vh;
    overflow-y: auto;
}

.qr-sheet.active {
    transform: translateY(0);
}

.qr-sheet-handle {
    width: 44px;
    height: 4px;
    background: #3a3a3a;
    border-radius: 4px;
    margin: 14px auto 24px;
    cursor: pointer;
}

/* Desktop: centraliza horizontalmente, mantém fixo embaixo */
@media (min-width: 768px) {
    .qr-sheet {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100%);
        width: 740px;
        max-width: 96vw;
        border-radius: 20px 20px 0 0;
        padding: 0 36px 40px;
    }

    .qr-sheet.active {
        transform: translateX(-50%) translateY(0);
    }
}

/* ── Layout interno do sheet ── */
.qr-sheet-content {
    padding-bottom: 4px;
}

.qr-sheet-body {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.qr-left {
    flex: 1;
    padding-right: 28px;
    min-width: 0;
}

.qr-vdivider {
    width: 1px;
    border-left: 1px dashed #ffffff;
    flex-shrink: 0;
    align-self: stretch;
}

.qr-right {
    flex-shrink: 0;
    padding-left: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Tipografia do sheet ── */
.qr-event-name {
    font-family: 'MonumentExtended', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 6px 0 0 0;
}

.qr-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.qr-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.qr-row-between {
    justify-content: space-between;
}

.qr-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.qr-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #aaaaaa;
    margin-top: 2px;
}

.qr-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
}

.qr-purchase-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1f1f1f;
    border-radius: 10px;
    padding: 12px 14px;
}

/* ── QR Code box ── */
.qr-code-box {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background: #ffffff;
    border-radius: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .qr-code-box {
        width: 250px;
        height: 250px;
    }
}

.qr-code-box img,
.qr-code-box canvas {
    display: block;
    width: 85% !important;
    height: 85% !important;
}

/* ─── Loading overlay ───────────────────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Toast ─────────────────────────────────────────────────────────────────── */
.toast-error {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.toast-error.show {
    opacity: 1;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ticket-card {
        max-width: 100%;
    }

    .qr-sheet-body {
        flex-direction: column;
    }

    .qr-vdivider {
        width: 100%;
        height: 1px;
        border-left: none;
        border-top: 1px dashed #ffffff;
        align-self: auto;
        margin: 20px 0;
    }

    .qr-left {
        padding-right: 0;
    }

    .qr-right {
        padding-left: 0;
        justify-content: center;
    }

    .qr-code-box {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .value-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─── Crachá 3D ─────────────────────────────────────────────────────────────── */
.badge-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 80px;
    user-select: none;
    width: 260px;
    /* posição sticky para acompanhar o scroll */
    position: sticky;
    top: 40px;
}

.badge-hook-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.badge-hook-bar {
    width: 32px;
    height: 12px;
    background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
    border-radius: 5px 5px 2px 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.badge-hook-ring {
    margin-top: -1px;
}

.cord-canvas {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
}

.badge-perspective-wrap {
    perspective: 900px;
    perspective-origin: 50% -20px;
    position: relative;
    z-index: 3;
    margin-top: 8px;
}

.badge-card-3d {
    width: 210px;
    height: 290px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow:
            0 24px 70px rgba(0,0,0,0.65),
            0 6px 20px rgba(0,0,0,0.4),
            inset 0 0 0 1px rgba(255,255,255,0.07);
    transition: box-shadow 0.15s ease;
}

.badge-card-3d:active {
    cursor: grabbing;
}

.badge-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    pointer-events: none;
    border-radius: 18px;
}

.badge-shine {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: background 0.04s linear;
}

.badge-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}

.badge-card-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.badge-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
