.my-tickets {
    padding: 40px 0 64px;
}

/* Tabs */
.my-tickets__tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tickets-tab {
    padding: 19px 34px 19px 33px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
    font-weight: 300;
    font-size: 16px;
    color: #000;
    transition: background 0.2s, color 0.2s;
}

.tickets-tab.is-active {
    background: linear-gradient(90deg, #ed3953 0%, #a1171b 100%);
    color: #fff;
}


.ticket-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        /* name */
        minmax(0, 1fr)
        /* venue */
        minmax(0, 1fr)
        /* date */
        auto
        /* count */
        auto
        /* price */
        auto;
    /* btn */
    grid-template-areas:
        "name venue date count price btn";
    gap: 64px;
    align-items: center;
    padding: 27px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ticket-row.is-past {
    opacity: 0.6;
}

.ticket-row__name {
    grid-area: name;
    font-weight: 400;
    font-size: 24px;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.ticket-row__venue {
    grid-area: venue;
    font-weight: 400;
    font-size: 14px;
    color: #000;
    line-height: 1.3;
}

.ticket-row__date {
    grid-area: date;
    font-weight: 400;
    font-size: 20px;
    color: #000;
    white-space: nowrap;
}

.ticket-row__count {
    grid-area: count;
    font-weight: 400;
    font-size: 20px;
    color: #000;
    white-space: nowrap;
}

.ticket-row__price {
    grid-area: price;
    font-weight: 400;
    font-size: 20px;
    color: #000;
    white-space: nowrap;
}

.ticket-row__btn {
    grid-area: btn;
    padding: 18px 36px 18px 36px;
    border-radius: 45px;
    border: 1px solid #fff;
    background: linear-gradient(90deg, #ed3953 0%, #a1171b 100%);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.ticket-row__btn:hover {
    opacity: 0.9;
}

.ticket-row__details {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 12px;
}

.ticket-detail {
    min-width: 180px;
    padding: 12px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ticket-detail__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.ticket-detail__qr {
    display: block;
    width: 140px;
    height: 140px;
    margin: 10px auto 0;
    object-fit: contain;
}

.ticket-detail__barcode {
    margin-top: 8px;
    font-size: 12px;
    word-break: break-all;
}

/* Empty */
.my-tickets__empty {
    padding: 60px 0;
    text-align: center;
    color: #989fb8;
    font-size: 18px;
}

/* Skeleton */
.my-tickets__skeleton {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
}

.skeleton-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.skeleton-line {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-line--wide {
    width: 60%;
    height: 24px;
}

.skeleton-line--short {
    width: 30%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* States (error, empty, unauthorized) */
.my-tickets__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 60px 20px;
}

.my-tickets__state-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

.my-tickets__state-text {
    font-size: 18px;
    color: #191919;
    margin: 0;
}

.my-tickets__state-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 45px;
    border: 1px solid #fff;
    background: linear-gradient(90deg, #ed3953 0%, #a1171b 100%);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.my-tickets__state-btn:hover {
    opacity: 0.9;
}

.my-tickets__state--error .my-tickets__state-text {
    color: #ed3953;
}

/* Mobile */
@media (max-width: 900px) {
    .my-tickets {
        padding: 24px 0 40px;
    }

    .my-tickets__tabs {
        justify-content: center;
        gap: 10px;
        margin-bottom: 24px;
    }

    .tickets-tab {
        padding: 10px 18px;
        font-size: 13px;
    }

    .ticket-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name price"
            "date count"
            "venue btn";
        gap: 6px 12px;
        padding: 20px 0;
    }

    .ticket-row__name,
    .ticket-row__date,
    .ticket-row__count,
    .ticket-row__price {
        font-size: 12px;
    }

    .ticket-row__name {
        font-weight: 500;
    }

    .ticket-row__venue {
        font-size: 12px;
        margin-top: 4px;
    }

    .ticket-row__btn {
        justify-self: center;
        width: 135px;
        height: 27px;
        padding: 0;
        font-size: 12px;
        margin-top: 12px;
    }
}
