/* =========================================================
   CARIPULSE MY TICKETS
========================================================= */


/* =========================================================
   BASE
========================================================= */

.tickets-page {

    min-height: 100vh;

    background: #ffffff;

    color: #081221;

    font-family:
        "Poppins",
        sans-serif;
}


.tickets-page *,
.tickets-page *::before,
.tickets-page *::after,
.ticket-qr-modal *,
.ticket-qr-modal *::before,
.ticket-qr-modal *::after {

    box-sizing: border-box;
}


.tickets-page .container {

    width:
        min(
            1480px,
            calc(100% - 80px)
        );

    margin: 0 auto;
}


/* =========================================================
   STATE
========================================================= */

.tickets-state {

    min-height: 520px;

    padding:
        80px
        24px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.tickets-state[hidden],
.tickets-content[hidden] {

    display: none !important;
}


.tickets-state > i {

    margin-bottom: 20px;

    color: #FF0F7B;

    font-size: 34px;
}


.tickets-state strong {

    color: #081221;

    font-size: 24px;

    font-weight: 700;
}


.tickets-state p {

    margin:
        8px
        0
        0;

    color: #758095;

    font-size: 14px;
}


.tickets-state-error-icon {

    width: 58px;

    height: 58px;

    margin-bottom: 18px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            255,
            15,
            123,
            0.10
        );

    color: #FF0F7B;

    font-size: 20px;
}


.tickets-retry-button {

    min-height: 46px;

    margin-top: 20px;

    padding:
        0
        20px;

    border: 0;

    border-radius: 13px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background: #00053D;

    color: #ffffff;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.tickets-hero {

    padding:
        42px
        0
        28px;
}


.tickets-back {

    width: fit-content;

    min-height: 42px;

    margin-bottom: 30px;

    padding:
        0
        16px;

    border:
        1px solid
        #E2E7EE;

    border-radius: 999px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background: #ffffff;

    color: #081221;

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;
}


.tickets-back i {

    font-size: 11px;
}


.tickets-hero-row {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;
}


.tickets-hero-copy {

    min-width: 0;
}


.tickets-hero h1 {

    margin: 0;

    color: #081221;

    font-size:
        clamp(
            34px,
            4vw,
            52px
        );

    line-height: 1.12;

    font-weight: 700;
}


.tickets-hero p {

    max-width: 680px;

    margin:
        12px
        0
        0;

    color: #758095;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   TOTAL
========================================================= */

.tickets-total {

    min-width: 180px;

    padding:
        15px
        18px;

    border:
        1px solid
        #E2E7EE;

    border-radius: 18px;

    display: flex;

    align-items: center;

    gap: 14px;

    background: #ffffff;
}


.tickets-total-icon {

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            255,
            15,
            123,
            0.10
        );

    color: #FF0F7B;

    font-size: 16px;
}


.tickets-total-copy {

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.tickets-total-copy span {

    color: #758095;

    font-size: 11px;

    font-weight: 500;
}


.tickets-total-copy strong {

    color: #081221;

    font-size: 23px;

    line-height: 1.1;

    font-weight: 700;
}


/* =========================================================
   SECTION
========================================================= */

.tickets-section {

    padding:
        18px
        0
        80px;
}


/* =========================================================
   TABS
========================================================= */

.tickets-tabs {

    width: 100%;

    margin-bottom: 30px;

    padding: 6px;

    border:
        1px solid
        #E2E7EE;

    border-radius: 18px;

    display: flex;

    align-items: center;

    gap: 6px;

    background: #FAFBFC;
}


.tickets-tab {

    flex: 1;

    min-height: 52px;

    padding:
        0
        20px;

    border: 0;

    border-radius: 13px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background: transparent;

    color: #758095;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;
}


.tickets-tab.is-active {

    background: #FF0F7B;

    color: #ffffff;
}

.tickets-tab-count {

    min-width: 24px;

    height: 24px;

    padding:
        0
        7px;

    border-radius: 999px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            8,
            18,
            33,
            0.07
        );

    color: inherit;

    font-size: 10px;

    font-weight: 700;
}


.tickets-tab.is-active
.tickets-tab-count {

    background:
        rgba(
            255,
            255,
            255,
            0.15
        );
}


/* =========================================================
   PANELS
========================================================= */

.tickets-panel[hidden] {

    display: none !important;
}


.tickets-section-heading {

    margin-bottom: 20px;
}


.tickets-section-heading h2 {

    margin: 0;

    color: #081221;

    font-size: 20px;

    line-height: 1.4;

    font-weight: 700;
}


.tickets-section-heading p {

    margin:
        6px
        0
        0;

    color: #758095;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   LIST
========================================================= */

.tickets-list {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 24px;
}


/* =========================================================
   TICKET CARD
========================================================= */

.ticket-card {

    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        #E2E7EE;

    border-radius: 22px;

    background: #ffffff;
}


.ticket-card-image-wrap {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 7;

    overflow: hidden;

    background: #F4F6F8;
}


.ticket-card-image {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
}


.ticket-card-image-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #00053D;

    color: #ffffff;

    font-size: 30px;
}


.ticket-card-status {

    position: absolute;

    top: 14px;

    right: 14px;

    min-height: 29px;

    padding:
        0
        11px;

    border-radius: 999px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    background: #ffffff;

    color: #081221;

    font-size: 10px;

    font-weight: 700;
}


.ticket-card-status.is-active {

    color: #17B26A;
}


.ticket-card-status.is-past {

    color: #758095;
}


.ticket-card-body {

    padding: 24px;
}


.ticket-card-type {

    margin-bottom: 10px;

    display: flex;

    align-items: center;

    gap: 7px;

    color: #FF0F7B;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


.ticket-card-title {

    margin: 0;

    color: #081221;

    font-size: 19px;

    line-height: 1.4;

    font-weight: 700;
}


.ticket-card-meta {

    margin-top: 18px;

    display: grid;

    gap: 10px;
}


.ticket-card-meta-item {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color: #758095;

    font-size: 11px;

    line-height: 1.6;
}


.ticket-card-meta-item i {

    width: 16px;

    margin-top: 3px;

    color: #FF0F7B;

    text-align: center;
}


.ticket-card-details {

    margin-top: 20px;

    padding:
        15px
        0;

    border-top:
        1px solid
        #EDF0F4;

    border-bottom:
        1px solid
        #EDF0F4;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;
}


.ticket-card-detail {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.ticket-card-detail + .ticket-card-detail {

    padding-left: 12px;

    border-left:
        1px solid
        #EDF0F4;
}


.ticket-card-detail span {

    color: #758095;

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


.ticket-card-detail strong {

    overflow: hidden;

    color: #081221;

    font-size: 11px;

    font-weight: 600;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.ticket-card-actions {

    margin-top: 18px;
}


.ticket-card-primary-action {

    width: 100%;

    min-height: 46px;

    padding:
        0
        18px;

    border: 0;

    border-radius: 13px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background:
        linear-gradient(
            90deg,
            #FDB52B 0%,
            #FF0F7B 100%
        );

    color: #ffffff;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   EMPTY
========================================================= */

.tickets-empty-state {

    min-height: 300px;

    padding:
        44px
        24px;

    border:
        1px solid
        #E2E7EE;

    border-radius: 22px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    text-align: center;
}


.tickets-empty-state[hidden] {

    display: none !important;
}


.tickets-empty-icon {

    width: 58px;

    height: 58px;

    margin-bottom: 18px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            255,
            15,
            123,
            0.10
        );

    color: #FF0F7B;

    font-size: 20px;
}


.tickets-empty-state h3 {

    margin: 0;

    color: #081221;

    font-size: 19px;

    font-weight: 700;
}


.tickets-empty-state p {

    max-width: 440px;

    margin:
        8px
        0
        0;

    color: #758095;

    font-size: 12px;

    line-height: 1.7;
}


.tickets-primary-action {

    min-height: 46px;

    margin-top: 20px;

    padding:
        0
        20px;

    border-radius: 13px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background:
        linear-gradient(
            90deg,
            #FDB52B 0%,
            #FF0F7B 100%
        );

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   SECURITY
========================================================= */

.tickets-security {

    margin-top: 24px;

    padding:
        18px
        20px;

    border:
        1px solid
        #E2E7EE;

    border-radius: 18px;

    display: flex;

    align-items: center;

    gap: 14px;

    background: #ffffff;
}


.tickets-security[hidden] {

    display: none !important;
}


.tickets-security-icon {

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            253,
            181,
            43,
            0.14
        );

    color: #FDB52B;

    font-size: 17px;
}


.tickets-security-copy {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.tickets-security-copy strong {

    color: #081221;

    font-size: 12px;

    font-weight: 700;
}


.tickets-security-copy span {

    color: #758095;

    font-size: 11px;
}


/* =========================================================
   QR MODAL
========================================================= */

.ticket-qr-modal {

    position: fixed;

    inset: 0;

    z-index: 200000;

    padding: 24px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.ticket-qr-modal[hidden] {

    display: none !important;
}


.ticket-qr-modal-backdrop {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    padding: 0;

    border: 0;

    background:
        rgba(
            8,
            18,
            33,
            0.62
        );
}


.ticket-qr-modal-card {

    position: relative;

    z-index: 1;

    width:
        min(
            460px,
            100%
        );

    overflow: hidden;

    border:
        1px solid
        #E2E7EE;

    border-radius: 22px;

    background: #ffffff;
}


.ticket-qr-modal-header {

    padding:
        22px
        24px;

    border-bottom:
        1px solid
        #EDF0F4;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.ticket-qr-modal-header span {

    display: block;

    margin-bottom: 3px;

    color: #FF0F7B;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.ticket-qr-modal-header h2 {

    margin: 0;

    color: #081221;

    font-size: 20px;

    font-weight: 700;
}


.ticket-qr-modal-close {

    width: 40px;

    height: 40px;

    flex: 0 0 40px;

    border:
        1px solid
        #E2E7EE;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    color: #758095;

    cursor: pointer;
}


.ticket-qr-modal-content {

    padding:
        30px
        28px
        32px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


.ticket-qr-modal-code {

    width: 230px;

    height: 230px;

    padding: 15px;

    border:
        1px solid
        #E2E7EE;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;
}


.ticket-qr-modal-code img,
.ticket-qr-modal-code canvas {

    display: block;

    max-width: 100%;

    max-height: 100%;
}


.ticket-qr-modal-content h3 {

    margin:
        20px
        0
        5px;

    color: #081221;

    font-size: 17px;

    font-weight: 700;
}


.ticket-qr-modal-content > span {

    color: #758095;

    font-size: 10px;

    overflow-wrap: anywhere;
}


.ticket-qr-modal-content p {

    margin:
        17px
        0
        0;

    display: flex;

    align-items: center;

    gap: 7px;

    color: #758095;

    font-size: 10px;
}


.ticket-qr-modal-content p i {

    color: #FF0F7B;
}


body.ticket-modal-open {

    overflow: hidden;
}


/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) {

    .tickets-back:hover {

        border-color: #FF0F7B;

        color: #FF0F7B;
    }


    .tickets-tab:not(.is-active):hover {

        color: #FF0F7B;
    }


    .ticket-qr-modal-close:hover {

        border-color: #FF0F7B;

        color: #FF0F7B;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .tickets-page .container {

        width:
            calc(
                100% - 48px
            );
    }


    .tickets-list {

        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .tickets-page .container {

        width:
            calc(
                100% - 30px
            );
    }


    .tickets-hero {

        padding:
            28px
            0
            20px;
    }


    .tickets-back {

        margin-bottom: 22px;
    }


    .tickets-hero-row {

        align-items: stretch;

        flex-direction: column;

        gap: 20px;
    }


    .tickets-hero h1 {

        font-size: 32px;
    }


    .tickets-total {

        width: 100%;
    }


    .tickets-section {

        padding-bottom: 50px;
    }


    .ticket-card-body {

        padding: 22px;
    }


    .ticket-qr-modal {

        padding: 15px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .ticket-card-details {

        grid-template-columns: 1fr;
    }


    .ticket-card-detail + .ticket-card-detail {

        padding:
            11px
            0
            0;

        border-left: 0;

        border-top:
            1px solid
            #EDF0F4;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tickets-page *,
    .ticket-qr-modal * {

        transition: none !important;

        animation: none !important;
    }

}