.tickets-section {
    padding: 1rem 0;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .tickets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tickets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tickets-grid {
        grid-template-columns: 1fr;
    }
}

.ticket-card {
    background: linear-gradient(180deg, var(--surface-800) 0%, var(--surface-800) 100%);
    border: 1px solid var(--surface-700);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-card.featured {
    border-color: var(--brand-red);
    box-shadow: inset 0 0 15px rgba(var(--primary), 0.1);
}

.ticket-card-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.15rem;
}

.ticket-card-brand .brand-logo {
    height: 28px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
}

.ticket-card-title {
    width: 100%;
    margin: 0;
    font-size: calc(10px + 3 * 1px);
    font-weight: 700;
    color: rgba(241, 245, 249, 0.85);
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

.ticket-card-amount {
    color: var(--brand-red);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.ticket-countdown {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
}

.ticket-countdown .sep {
    display: none;
}

.ticket-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.ticket-countdown-value {
    background: var(--surface-700, #181818);
    color: var(--text-on-dark, #f1f5f9);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-sizing: border-box;
}

.ticket-countdown-label {
    color: var(--text-gray);
    font-size: 0.55rem;
    font-weight: 600;
}

.ticket-card-btn {
    width: 100%;
    background: var(--surface-700, #1a1a1a);
    border: 1px solid rgba(51, 65, 85, 0.3);
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-card-btn:hover {
    background: rgba(var(--primary), 0.8);
    border-color: var(--brand-red-hover);
    color: var(--text-light);
}

.ticket-card.featured .ticket-card-btn {
    color: var(--brand-red);
}

.ticket-card.featured .ticket-card-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red-soft, #fcd34d);
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .tickets-grid {
        grid-template-columns: repeat(2, 179px);
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
    }

    .tickets-grid .ticket-card:nth-child(n + 3) {
        display: none;
    }

    .ticket-card {
        width: 179px;
        height: 191px;
        min-height: 191px;
        max-height: 191px;
        padding: 0.45rem 0.4rem 0.4rem;
        box-sizing: border-box;
        justify-content: flex-start;
        gap: 8px;
        overflow: hidden;
    }

    .ticket-card > * {
        position: relative;
        flex-shrink: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .ticket-card-brand {
        width: 157px;
        height: 22px;
        max-width: 157px;
        margin-top: 0;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        line-height: 1;
        overflow: hidden;
        text-transform: none;
        box-sizing: border-box;
    }

    .ticket-card-title {
        width: 157px;
        max-width: 157px;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        font-size: calc(9px + 3 * 1px);
        font-weight: 700;
        color: rgba(241, 245, 249, 0.85);
        line-height: 1.3;
        letter-spacing: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-overflow: ellipsis;
        box-sizing: border-box;
        flex-shrink: 0;
        z-index: 1;
    }

    .ticket-card-amount {
        width: 157px;
        max-width: 157px;
        min-height: 22px;
        height: 22px;
        margin-top: 0;
        margin-bottom: 0;
        font-size: calc(13px + 3 * 1.4px);
        font-weight: 800;
        line-height: 22px;
        overflow: visible;
        white-space: nowrap;
        z-index: 2;
    }

    .ticket-countdown {
        width: 130px;
        height: 30px;
        max-width: 130px;
        margin-top: 0;
        margin-bottom: 0;
        gap: 0.2rem;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .ticket-countdown-item {
        flex: 1 1 0;
        min-width: 0;
        height: 30px;
        justify-content: center;
        gap: 0.05rem;
    }

    .ticket-countdown-value {
        width: 100%;
        max-width: 28px;
        height: 18px;
        min-height: 18px;
        font-size: 0.58rem;
        padding: 0;
        margin: 0 auto;
    }

    .ticket-countdown-label {
        font-size: 0.45rem;
        line-height: 1;
    }

    .ticket-card-btn {
        width: 157px;
        max-width: 157px;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0.45rem 0.55rem;
        font-size: calc(9px + 3 * 1px);
        font-weight: 700;
        letter-spacing: 0.03em;
        gap: 0.25rem;
        white-space: nowrap;
        line-height: 1.2;
        min-height: 28px;
        box-sizing: border-box;
        color: var(--text-secondary);
    }

    .ticket-card.featured .ticket-card-btn {
        color: var(--text-secondary);
    }

    .ticket-card-btn i {
        font-size: calc(9px + 3 * 1px);
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    .tickets-grid { grid-template-columns: repeat(2, 1fr) !important; justify-content: center; gap: 8px !important; width: 100%; box-sizing: border-box; }
    .ticket-card { width: 100% !important; max-width: 100%; min-height: auto; padding: 0.45rem 0.2rem !important; margin: 0 auto; box-sizing: border-box; }
}

@media (max-width: 600px) { .tickets-grid .ticket-card:nth-child(n+3) { display: none !important; } }

