html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #040b16;
    background-image:
        linear-gradient(180deg, rgba(4, 11, 22, 0.35) 0%, rgba(4, 11, 22, 0.78) 100%),
        var(--site-desktop-background-image, url('../img/cover-fast.jpeg'));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body::before {
    display: none;
}

#app {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.home-tickets-section {
    padding-top: 7.5rem;
}

.tickets-page-section {
    min-height: calc(100dvh - 96px);
    padding: 7.5rem 0 3rem;
}

.tickets-page-alert {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.tickets-results-hero {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.ticket-back-button {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.phone-form {
    backdrop-filter: blur(10px);
}

.phone-form .ticket-phone-input,
.phone-form .ticket-search-button {
    height: 2.7rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    font-size: 1rem;
}

.phone-form .ticket-phone-input {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.phone-form .ticket-phone-input::placeholder {
    color: #6c7a89;
    opacity: 1;
}

.phone-form .ticket-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
}

.tickets-scroll-area {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.tickets-container::-webkit-scrollbar {
    width: 6px;
}

.tickets-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.tickets-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.tickets-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.card-user-ticket {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 4px solid transparent;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
}

.card-user-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-user-ticket .card-body {
    padding: 1.4rem;
}

.card-user-ticket[data-status="approved"] {
    border-left-color: #28a745;
}

.card-user-ticket[data-status="pending"] {
    border-left-color: #ffc107;
}

.card-user-ticket .badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ticket-accordion-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 1.2rem 1.2rem 1rem;
    text-align: left;
}

.ticket-accordion-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.ticket-accordion-copy h6 {
    font-size: 1.05rem;
}

.ticket-status-title-approved {
    color: #0f6d3d;
}

.ticket-status-title-pending {
    color: #b86a00;
}

.ticket-accordion-date {
    color: #526274;
    font-size: 0.94rem;
}

.ticket-accordion-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ticket-status-badge {
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.82rem;
}

.ticket-status-badge-approved {
    color: #0f6d3d;
    background: #e7f7ee;
    border-color: #b7e5c8;
}

.ticket-status-badge-pending {
    color: #7a4b00;
    background: #fff1d6;
    border-color: #ffd98b;
}

.ticket-accordion-chevron {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f3f6f9;
    color: #64748b;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ticket-accordion-chevron.is-open {
    transform: rotate(180deg);
    background: #e9f7e9;
    color: #0aad0a;
}

.ticket-accordion-preview {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    color: #314356;
    font-size: 0.94rem;
    font-weight: 600;
}

.ticket-accordion-body {
    padding: 0 1.2rem 1.2rem !important;
    /* border-top: 1px solid rgba(226, 232, 240, 0.95); */
}

.ticket-info-panel,
.ticket-credential-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

.ticket-credential-value,
.ticket-meta-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #243648;
}

.ticket-password-value {
    color: #243648;
}

.ticket-credential-panel .btn-group-sm .btn {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.2rem 0.35rem;
    color: #526274;
}

.ticket-credential-panel .btn-group-sm .btn:hover,
.ticket-credential-panel .btn-group-sm .btn:focus,
.ticket-credential-panel .btn-group-sm .btn:active {
    color: #0aad0a;
    background: transparent !important;
    box-shadow: none !important;
}

.ticket-info-panel {
    display: grid;
    gap: 1rem;
}

.ticket-empty-state {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    color: #64748b;
}

.ticket-accordion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.ticket-status-message {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #526274 !important;
}

.ticket-price-block small {
    font-size: 0.84rem;
}

.ticket-price-value {
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 700;
    color: #0aad0a;
}

.ticket-status-pill {
    padding: 0.58rem 0.9rem;
    font-size: 0.82rem;
}

.tickets-row-centered {
    justify-content: center;
}

.card-ticket {
    overflow: hidden;
}

.card-ticket-skeleton {
    background: transparent;
}

.ticket-header-skeleton {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-skeleton-card {
    background: rgba(255, 255, 255, 0.94);
}

.ticket-skeleton-block {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef4;
}

.ticket-skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    animation: ticket-skeleton-shimmer 1.3s infinite;
}

.ticket-skeleton-title {
    width: min(70%, 14rem);
    height: 1.125rem;
}

.ticket-skeleton-badge {
    width: 6rem;
    height: 2rem;
}

.ticket-skeleton-label {
    width: 5rem;
    height: 0.75rem;
}

.ticket-skeleton-line {
    width: 100%;
    height: 1rem;
}

.ticket-skeleton-line-short {
    width: 72%;
}

.ticket-skeleton-price {
    width: 8rem;
    height: 1.75rem;
}

.ticket-skeleton-button {
    width: 100%;
    height: 3.25rem;
    border-radius: 999px;
}

.home-ticket-skeleton-header {
    width: 70%;
    height: 1.1rem;
    background: rgba(255, 255, 255, 0.32);
}

.home-ticket-skeleton-title {
    width: 60%;
    height: 1rem;
}

.home-ticket-skeleton-line {
    width: 100%;
    height: 0.95rem;
}

.home-ticket-skeleton-line-short {
    width: 82%;
}

.home-ticket-skeleton-price {
    width: 55%;
    height: 1.6rem;
}

@keyframes ticket-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto !important;
        background-image:
            linear-gradient(180deg, rgba(4, 11, 22, 0.28) 0%, rgba(4, 11, 22, 0.82) 100%),
            var(--site-mobile-background-image, url('../img/bg-mobile.jpeg'));
        background-position: center top;
    }

    .home-tickets-section {
        padding-top: 14rem;
    }

    .tickets-page-section {
        padding: 9.5rem 0 2.5rem;
    }

    .bottom-nav {
        position: fixed;
        top: 3.4rem;
        bottom: auto;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
        padding: 0.85rem 0.75rem !important;
        margin: 0 !important;
        background-color: var(--bs-primary) !important;
        border-radius: 0 !important;
        box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.22);
        z-index: 1023;
    }

    .bottom-nav .nav-item {
        text-align: center;
        flex: 1;
    }

    .bottom-nav .nav-item a {
        color: #fff !important;
        text-decoration: none;
        font-size: 0.95rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
    }

    .bottom-nav .nav-item a svg,
    .bottom-nav .nav-item a svg path {
        fill: #fff !important;
    }

    .horizontal-scroll-container {
        overflow: hidden;
    }

    .row-ticket {
        gap: 0;
        padding-inline: calc((100vw - min(22rem, calc(100vw - 2.5rem))) / 2);
        scroll-padding-inline: calc((100vw - min(22rem, calc(100vw - 2.5rem))) / 2);
    }

    .row-ticket > .col {
        flex: 0 0 min(22rem, calc(100vw - 2.5rem));
        width: min(22rem, calc(100vw - 2.5rem));
        max-width: min(22rem, calc(100vw - 2.5rem));
        scroll-snap-align: center;
    }

    .tickets-scroll-area {
        max-height: 65vh;
        padding-right: 2px;
    }

    .card-user-ticket .card-body {
        padding: 1rem;
    }

    .tickets-results-hero {
        margin-bottom: 1.25rem !important;
    }

    .tickets-results-hero h2 {
        font-size: 2rem;
        margin-bottom: 0.4rem !important;
    }

    .tickets-results-hero p {
        margin-bottom: 0.75rem !important;
        font-size: 1rem;
    }

    .ticket-back-button {
        width: min(100%, 22rem);
        padding: 0.7rem 1rem;
        border-radius: 999px;
    }

    .card-user-ticket {
        border-radius: 1.4rem;
    }

    .ticket-accordion-trigger {
        padding: 1rem;
    }

    .ticket-accordion-body {
        padding: 0 1rem 1rem !important;
    }

    .ticket-accordion-summary {
        align-items: flex-start;
    }

    .ticket-accordion-meta {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .ticket-status-badge,
    .ticket-status-pill {
        font-size: 0.88rem;
        padding: 0.6rem 0.85rem;
    }

    .ticket-info-panel,
    .ticket-credential-panel {
        padding: 0.9rem;
        border-radius: 0.95rem;
    }

    .ticket-accordion-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ticket-status-pill {
        justify-content: center;
        display: inline-flex;
    }

    .pagination {
        margin: 0 -5px;
    }

    .pagination .page-link {
        padding: 0.375rem 0.75rem;
        margin: 0 2px;
    }

    .mt-15 {
        margin-top: 2rem !important;
    }
}

@media (max-width: 576px) {
    .home-tickets-section {
        padding-top: 13.5rem;
    }

    .tickets-page-section {
        padding-top: 8.9rem;
    }

    .row-ticket {
        padding-inline: calc((100vw - min(20rem, calc(100vw - 2rem))) / 2);
        scroll-padding-inline: calc((100vw - min(20rem, calc(100vw - 2rem))) / 2);
    }

    .row-ticket > .col {
        flex-basis: min(20rem, calc(100vw - 2rem));
        width: min(20rem, calc(100vw - 2rem));
        max-width: min(20rem, calc(100vw - 2rem));
    }

    .tickets-scroll-area {
        max-height: 60vh;
    }

    .tickets-results-hero {
        margin-top: 0 !important;
    }

    .tickets-results-hero h2 {
        font-size: 1.75rem;
    }

    .tickets-results-hero p {
        font-size: 0.95rem;
    }

    .card-user-ticket {
        border-radius: 1.3rem;
    }

    .ticket-accordion-copy h6 {
        font-size: 0.98rem;
    }

    .ticket-accordion-date,
    .ticket-accordion-preview {
        font-size: 0.9rem;
    }

    .ticket-accordion-summary {
        gap: 0.75rem;
    }

    .ticket-status-badge {
        max-width: 8.5rem;
        justify-content: center;
        display: inline-flex;
    }

    .ticket-price-value {
        font-size: 1.55rem;
    }

    .ticket-status-message {
        font-size: 0.95rem;
    }

    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.775rem;
    }

    .ticket-skeleton-badge {
        width: 4.5rem;
    }
}
