.biletler-wrapper {
    width: 100%;
    max-width: var(--layout-max-width, 1200px);
    margin: 0 auto;
    font-family: var(--font-main, 'Inter', sans-serif);
}

.biletler-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Card Container */
.bilet-card {
    display: flex;
    background: var(--surface-800, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    gap: 20px;
    transition: all 0.3s ease;
}

.bilet-card:hover {
    border-color: rgba(var(--primary, 230, 25, 31), 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Left: Image */
.bilet-img-wrap {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-900, #050505);
}

.bilet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right: Content */
.bilet-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
}

/* Top Row: Sponsor & Badge */
.bilet-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bilet-sponsor {
    height: 22px;
    object-fit: contain;
}

.bilet-odul-badge {
    background: rgba(var(--primary), 0.1);
    color: var(--brand-red, #f59e0b);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

/* Header */
.bilet-head {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-on-dark, #e2e8f0);
    margin: 0 0 14px 0;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Countdown */
.bilet-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px 10px;
    min-width: 48px;
}

.cd-val {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-on-dark, #f1f5f9);
    line-height: 1.2;
}

.cd-lbl {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.cd-sep {
    color: var(--text-gray, #4b5563);
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 12px;
    /* align roughly with numbers */
}

/* Bottom Row (Katılım & Buton) */
.bilet-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.bilet-katilim {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
}

.ek-val {
    color: var(--text-secondary, #cbd5e1);
    margin-left: 4px;
}

.bilet-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-katil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary), 0.1);
    color: var(--brand-red, #f59e0b);
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(var(--primary), 0.3);
}

.btn-katil:hover {
    background: var(--brand-red, #f59e0b);
    color: var(--text-light);
    border-color: var(--brand-red, #f59e0b);
    box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
}

/* Aktif Durum Katıl Butonu için Ekstra Stil (isteğe bağlı vurgulu) */
.bilet-card.active-event .btn-katil {
    background: rgba(var(--primary), 0.1);
    color: var(--brand-red, #f59e0b);
    border: 1px solid rgba(var(--primary), 0.3);
}

.bilet-card.active-event .btn-katil:hover {
    background: var(--brand-red, #f59e0b);
    color: var(--text-light);
    border-color: var(--brand-red, #f59e0b);
    box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .biletler-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .biletler-grid {
        gap: 10px;
    }

    .bilet-card {
        flex-direction: row;
        padding: 10px;
        gap: 12px;
    }

    .bilet-img-wrap {
        width: 120px;
        height: 120px;
        border-radius: 6px;
    }

    .bilet-content {
        width: auto;
        padding: 0;
        justify-content: space-between;
    }

    .bilet-top-row {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 6px;
        gap: 6px;
    }

    .bilet-sponsor {
        height: 16px;
    }

    .bilet-odul-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .bilet-head {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .bilet-countdown {
        gap: 4px;
        margin-bottom: 8px;
    }

    .cd-box {
        min-width: 32px;
        padding: 2px 4px;
        border-radius: 4px;
    }

    .cd-val {
        font-size: 11px;
    }

    .cd-lbl {
        font-size: 8px;
    }

    .cd-sep {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .bilet-katilim {
        font-size: 10px;
    }

    .btn-katil {
        padding: 4px 14px;
        font-size: 11px;
    }
}

.biletler-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10spx;
    flex-wrap: wrap;
    background: var(--surface-900, #090909);
    border: 1px solid var(--surface-800);
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
}

.biletler-tab {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.biletler-tab:hover {
    color: var(--text-secondary, #cbd5e1);
}

.biletler-tab.active {
    background: var(--surface-800, #0d0d0d);
    color: var(--text-light);
    border: 1px solid var(--surface-700, #181818);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.biletler-tab .tab-count {
    font-size: 11px;
    background: var(--card-bg);
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 700;
    color: var(--text-secondary);
}

.biletler-tab.active .tab-count {
    background: var(--brand-red);
    color: var(--text-light);
}

.bl-section {
    display: none;
}

.bl-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.biletler-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 24px;
    background: var(--surface-800, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-height: 220px;
}

.biletler-empty-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--primary), 0.08);
    border: 1px solid rgba(var(--primary), 0.18);
    margin-bottom: 16px;
}

.biletler-empty-icon i {
    font-size: 26px;
    color: var(--brand-red, #f59e0b);
}

.biletler-empty h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-on-dark, #e2e8f0);
    letter-spacing: -0.01em;
}

.biletler-empty p {
    margin: 0;
    max-width: 360px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary, #94a3b8);
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .biletler-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .biletler-tabs::-webkit-scrollbar {
        display: none;
    }

    .biletler-tab {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }
}