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

/* Card Container */

.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 */

/* Right: Content */

/* Top Row: Sponsor & Badge */

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

/* Header */
.bilet-head {
    text-transform: uppercase;
}

/* Countdown */

.cd-val {
    line-height: 1.2;
}

.cd-sep {
    margin-bottom: 12px;
    /* align roughly with numbers */
}

/* Bottom Row (Katılım & Buton) */
.bilet-bottom-row {
    justify-content: space-between;
}

.bilet-katilim {
    font-weight: 600;
}

.ek-val {
    margin-left: 4px;
}

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

.btn-katil {
    text-decoration: none;
}

.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 {
    flex-wrap: wrap;
    width: fit-content;
}

.biletler-tab.active .tab-count {
    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;
    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;
    }
}

/*  ===== etkinlik_bilet_ref katmanı (eski etkinlik_bilet_ref.css) buraya katlandı =====  */
.biletler-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 14px;
    border-radius: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

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

.biletler-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    padding: 10px 14px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.biletler-tab:hover {
    color: rgba(255, 255, 255, 0.75);
    background: none;
}

.biletler-tab.active {
    color: rgb(var(--primary-text, var(--primary)));
    background: none;
    box-shadow: none;
}

.biletler-tab.active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: rgb(var(--primary));
}

.biletler-tab .tab-count {
    min-width: 0;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
}

.biletler-tab.active .tab-count {
    background: rgba(var(--primary), 0.14);
}
.biletler-grid {
    flex-direction: column;
}
.bilet-card {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.1);
    border-radius: 12px;
    background: var(--card-bg, var(--surface-800));
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .bilet-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: none;
    }
}

.bilet-card--finished {
    opacity: 0.65;
    border-color: rgba(var(--stroke-rgb, 140, 200, 255), 0.1) !important;
}
.bilet-img-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    margin: 12px;
    border-radius: 10px;
}

.etkinlik-img,
.bilet-img {
    display: block;
    object-fit: cover;
    filter: none !important;
}
.card-status {
    position: absolute;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-status.is-active {
    background: rgb(var(--primary));
    color: var(--text-on-accent, #fff);
}

.card-status.is-ended,
.card-status.is-soon {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
}

.bilet-img-wrap .badge-label-dark {
    left: auto;
    bottom: auto;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 700;
}
.bilet-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px 16px 8px;
}

.bilet-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
}

.bilet-sponsor {
    font-size: 13px;
    font-weight: 700;
}

.bilet-odul-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border: 0;
    border-radius: 6px;
    background: rgba(var(--primary), 0.1);
    color: rgb(var(--primary-text, var(--primary)));
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bilet-head {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    line-height: 1.3;
}
.bilet-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.2;
}

.cd-val {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.cd-lbl {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.cd-sep {
    margin-top: -8px;
    color: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 300;
}
.bilet-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.bilet-katilim {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.ek-val {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.bilet-actions {
    margin: 0;
}

.btn-katil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.btn-katil:hover {
    filter: brightness(1.08);
}

.btn-katil:active {
    transform: scale(0.97);
}
.bilet-actions .text-muted-small,
.btn-katil.disabled,
.btn-katil:disabled {
    display: inline-flex;
    padding: 10px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
    text-decoration: none;
}

.biletler-empty {
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 768px) {
    .bilet-img-wrap {
        width: 120px;
        height: 120px;
        margin: 10px;
    }

    .bilet-content {
        gap: 6px;
        padding: 10px 12px 10px 0;
    }

    .bilet-head {
        font-size: 13px;
        line-height: 1.25;
    }

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

    .cd-box {
        min-width: 34px;
        padding: 4px 3px;
        border-radius: 6px;
    }

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

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

    .bilet-countdown {
        gap: 4px;
    }

    .bilet-bottom-row {
        gap: 6px;
    }

    .card-status,
    .bilet-img-wrap .badge-label-dark {
        font-size: 9px;
        padding: 2px 6px;
    }

    .biletler-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.biletler-tab,
.biletler-tab.active {
    border: 0;
    outline-offset: -2px;
}
.lf-hidden {
    display: none !important;
}

.lfb {
    margin: 0 0 6px;
}

.lfb__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.lfb__head-icon {
    flex: none;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(var(--surface-700-rgb, 30, 58, 115), 0.9), rgba(var(--surface-rgb, 17, 35, 74), 0.9));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(var(--stroke-rgb, 140, 200, 255), 0.14), 0 8px 18px -10px rgba(var(--primary), 0.7);
}

.lfb__head-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.lfb__title {
    margin: 0 0 3px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
}

.lfb__desc {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lfb__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lfb__tabs-slot {
    min-width: 0;
}

.lfb__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lfb__search,
.lfb__select {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(var(--surface-700-rgb, 30, 58, 115), 0.5), rgba(var(--surface-rgb, 17, 35, 74), 0.4));
    border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.1);
    color: var(--text-secondary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lfb__search:focus-within,
.lfb__select:focus-within {
    border-color: rgba(var(--primary), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.12);
}

.lfb__search > i,
.lfb__select > i {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
}

.lfb__select .lfb__caret {
    left: auto;
    right: 12px;
    font-size: 12px;
}

.lfb__search input,
.lfb__select select {
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
}

.lfb__search input {
    width: 170px;
    padding: 0 14px 0 38px;
}

.lfb__search input::placeholder {
    color: var(--text-muted);
    font-weight: 600;
}

.lfb__select select {
    min-width: 130px;
    padding: 0 34px 0 38px;
    cursor: pointer;
}

.lfb__select select option {
    background: var(--surface-800, #111);
    color: #fff;
}

.lfb__count {
    margin: 8px 2px 10px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.lfb .biletler-tabs {
    display: inline-flex;
    padding: 4px;
    margin: 0;
    gap: 4px;
    border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(var(--surface-700-rgb, 30, 58, 115), 0.5), rgba(var(--surface-rgb, 17, 35, 74), 0.4));
    overflow-x: auto;
}

.lfb .biletler-tab {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.lfb .biletler-tab::after {
    display: none;
}

.lfb .biletler-tab.active {
    color: var(--text-on-accent, #fff);
    background: linear-gradient(180deg, rgb(var(--primary)), color-mix(in srgb, rgb(var(--primary)) 75%, #000));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 8px 18px -10px rgba(var(--primary), 0.9);
}

.lfb .biletler-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.22);
}
.biletler-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.bilet-img-wrap {
    position: static !important;
}

.bilet-img-wrap > .bilet-img {
    position: static;
}

.bilet-img-wrap {
    overflow: visible;
    background: none;
    box-shadow: none;
}

.etkinlik-img,
.bilet-img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.card-status,
.bilet-img-wrap .badge-label-dark {
    top: 8px;
    right: 8px;
}

.bilet-head {
    font-size: 15px;
}
.btn-katil {
    height: 44px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #f2f2f2;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bilet-actions .text-muted-small {
    height: 44px;
    align-items: center;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #f2f2f2;
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .bilet-card:hover .btn-katil {
        background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--primary)) 78%, #fff), color-mix(in srgb, rgb(var(--primary)) 90%, #000));
        border-color: transparent;
        color: var(--text-on-accent, #fff);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -10px rgba(var(--primary), 0.85);
    }
}

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

@media (max-width: 768px) {
    .lfb__title {
        font-size: 18px;
    }

    .lfb__head-icon {
        width: 48px;
        height: 48px;
    }

    .lfb__bar {
        align-items: stretch;
    }

    .lfb__tools {
        width: 100%;
    }

    .lfb__search {
        flex: 1;
    }

    .lfb__search input {
        width: 100%;
    }

    .etkinlik-img,
    .bilet-img {
        width: 120px;
        height: 120px;
    }

    .btn-katil,
    .bilet-actions .text-muted-small {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }
}
.bilet-top-row {
    padding-right: 58px;
}

@media (max-width: 768px) {
    .bilet-top-row {
        padding-right: 50px;
    }
}
.lfb .bonuslar-tabs {
    display: inline-flex;
    padding: 4px;
    margin: 0;
    gap: 4px;
    border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(var(--surface-700-rgb, 30, 58, 115), 0.5), rgba(var(--surface-rgb, 17, 35, 74), 0.4));
    overflow-x: auto;
}

.lfb .bonuslar-tabs .bonuslar-tab {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.lfb .bonuslar-tabs .bonuslar-tab::after {
    display: none;
}

.lfb .bonuslar-tabs .bonuslar-tab.active {
    color: var(--text-on-accent, #fff);
    background: linear-gradient(180deg, rgb(var(--primary)), color-mix(in srgb, rgb(var(--primary)) 75%, #000));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 8px 18px -10px rgba(var(--primary), 0.9);
}
.sg-page-wrapper .sg-page-header.lfb__head {
    justify-content: flex-start;
    margin-bottom: 14px;
}

.sg-page-wrapper .sg-page-header .lfb__head-text {
    flex: 1;
    min-width: 0;
}

.sg-page-wrapper .sg-page-header .sg-share-btn {
    margin-left: auto;
}

@media (max-width: 640px) {
    .sg-page-wrapper .sg-page-header.lfb__head {
        flex-wrap: wrap;
    }

    .sg-page-wrapper .sg-page-header .sg-share-btn {
        max-width: none;
        width: 100%;
        justify-content: center;
    }
}
.market-badge--soon {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(255, 193, 7, 0.28);
}
.bilet-img-wrap .market-badge {
    top: 6px;
    left: 6px;
    right: auto;
}
.bilet-card[hidden],
.biletler-empty[hidden],
.page-empty-state[hidden] {
    display: none !important;
}
.bilet-card.is-unavailable {
    opacity: 0.78;
}
.biletler-grid > .biletler-empty {
    grid-column: 1 / -1;
}
.lfb__tabs-slot .market-tabs {
    margin: 0;
}
.lfb__tabs-slot .market-tabs {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.lfb__tabs-slot .market-tabs::-webkit-scrollbar {
    display: none;
}
.lfb__tabs-slot .market-tab {
    flex: none;
    white-space: nowrap;
}