.bd-wrapper {
    width: 100%;
    max-width: var(--layout-max-width, 1200px);
    margin: 0 auto;
    font-family: var(--font-main, 'Inter', sans-serif);
    background: var(--surface-800, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.bd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--surface-700, #1a1a1a);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.bd-header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bd-header-actions {
    display: flex;
    gap: 12px;
}

.btn-biletlerim {
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 45px;
    justify-content: center;
    transition: all .1s ease-in-out;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    text-decoration: none;
}

.btn-biletlerim:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-talep {
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 45px;
    justify-content: center;
    transition: all .1s ease-in-out;
    background: var(--brand-red);
    background-image: var(--gradient, linear-gradient(135deg, var(--brand-red), var(--accent-hover)));
    color: var(--text-on-accent, #000);
    text-decoration: none;
}

.btn-talep:hover {
    box-shadow: 0 0 10px rgba(var(--primary), 0.3);
}

.btn-sponsor-warning {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--primary), 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sponsor-warning:hover {
    background: rgba(var(--primary), 0.05);
}

.bd-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    line-height: 1.1;
}

.bd-status {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
}

.bd-status.badge-active {
    color: var(--brand-red, #f59e0b);
}

.bd-tabs {
    display: flex;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 12px;
    margin-bottom: 12px;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 5px;
    padding-right: 5px;
}

.bd-tab {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    padding-top: 6px;
    padding-bottom: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.bd-tab:hover {
    color: var(--text-light);
}

.bd-tab.active {
    color: var(--brand-red, #f59e0b);
}

.bd-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-red, #f59e0b);
}

.bd-content-area {
    display: flex;
    gap: 30px;
}

.bd-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: 280px;
}

.bd-image-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-900);
}

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

.bd-dates {
    display: flex;
    gap: 12px;
    width: 100%;
}

.bd-date-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bd-date-lbl {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 700;
}

.bd-date-val {
    font-size: 9px;
    color: var(--text-light);
    font-weight: 800;
    white-space: nowrap;
}

.bd-date-val.finished {
    color: var(--text-secondary);
}

.bd-date-val.end {
    color: var(--brand-red, #f59e0b);
}

.bd-total-bilet-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 5px;
    text-align: center;
    width: 100%;
}

.bd-total-lbl {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
    display: block;
}

.bd-total-val {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 900;
    display: block;
    margin-top: 4px;
}

.btn-sponsor-link {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    font-weight: 800;
    width: 100%;
    text-decoration: none;
    border-radius: 12px;
}



.bd-right {
    flex-grow: 1;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.6;
}

.bd-rules-content p {
    margin-top: 0;
    margin-bottom: 10px;
}

.bd-rules-content p:last-child {
    margin-bottom: 0;
}

.bd-rules-content strong {
    color: var(--text-light);
    font-weight: 700;
}

.bd-rules-content u {
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

.rule-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rule-check i {
    color: var(--success-color);
    font-size: 20px;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .bd-content-area {
        flex-direction: column;
    }

    .bd-left {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        align-items: stretch;
    }

    .bd-image-wrap {
        width: 310px;
        height: 310px;
        align-self: center;
    }

    .bd-header {
        flex-direction: column;
        align-items: flex-start;
        /* text-align: left; */
    }

    .bd-header-left {
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .bd-header-left>div {
        flex-direction: row;
        justify-content: flex-start;
    }

    .bd-header-actions {
        width: 100%;
        flex-direction: column;
        margin-top: 16px;
    }

    .btn-sponsor-warning,
    .btn-biletlerim,
    .btn-talep {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .bd-wrapper {
        padding: 10px;
    }

    .bd-title {
        font-size: 14px;
    }
}

/* =========================================
   SONUÃ‡LAR PANE
   ========================================= */
.bd-tab-pane {
    display: none;
}

.bd-tab-pane.active {
    display: block;
}

.bd-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bd-podium-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    position: relative;
    width: 100px;
}

.bd-podium-card.rank-1 {
    width: 120px;
    padding: 24px 10px;
    border-color: rgba(var(--primary), 0.3);
    background: rgba(var(--primary), 0.05);
}

.bd-podium-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-red, #f59e0b);
    color: var(--text-on-accent, #000);
    font-weight: 800;
    font-size: 11px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.bd-podium-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.bd-podium-card.rank-1 .bd-podium-avatar {
    width: 60px;
    height: 60px;
}

.bd-podium-name {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 700;
    text-align: center;
    word-break: break-all;
}

.bd-winners-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bd-winner-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bd-winner-rank {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
    min-width: 20px;
}

.bd-winner-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bd-winner-name {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.bd-winner-ticket-no {
    color: var(--text-light);
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
}

/* Ticket Count - Podium */
.bd-podium-card .bd-ticket-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    background: transparent;
    border: none;
    padding: 0;
}

.bd-ticket-num {
    font-size: 12px;
    font-weight: 900;
    color: var(--brand-red, #f59e0b);
    line-height: 1;
    letter-spacing: -0.5px;
}

.bd-podium-card.rank-1 .bd-ticket-num {
    font-size: 15px;
}

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

/* Ticket Badge - Liste satırları */
.bd-winner-ticket-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #cbd5e1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Biletlerim Modal List */
.my-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-ticket-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .bd-wrapper {
        padding: 10px;
    }

    .bd-title {
        font-size: 14px;
    }
}

/* =========================================
   SONUÃ‡LAR PANE
   ========================================= */
.bd-tab-pane {
    display: none;
}

.bd-tab-pane.active {
    display: block;
}

.bd-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bd-podium-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    position: relative;
    width: 100px;
}

.bd-podium-card.rank-1 {
    width: 120px;
    padding: 24px 10px;
    border-color: rgba(var(--primary), 0.3);
    background: rgba(var(--primary), 0.05);
}

.bd-podium-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-red, #f59e0b);
    color: var(--text-on-accent, #000);
    font-weight: 800;
    font-size: 11px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.bd-podium-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.bd-podium-card.rank-1 .bd-podium-avatar {
    width: 60px;
    height: 60px;
}

.bd-podium-name {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 700;
    text-align: center;
    word-break: break-all;
}

.bd-winners-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bd-winner-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bd-winner-rank {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
    min-width: 20px;
}

.bd-winner-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bd-winner-name {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.bd-winner-ticket-no {
    color: var(--text-light);
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
}

/* Ticket Count - Podium */
.bd-podium-card .bd-ticket-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    background: transparent;
    border: none;
    padding: 0;
}

.bd-ticket-num {
    font-size: 12px;
    font-weight: 900;
    color: var(--brand-red, #f59e0b);
    line-height: 1;
    letter-spacing: -0.5px;
}

.bd-podium-card.rank-1 .bd-ticket-num {
    font-size: 15px;
}

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

/* Ticket Badge - Liste satırları */
.bd-winner-ticket-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #cbd5e1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Biletlerim Modal List */
.my-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-ticket-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    gap: 16px;
}

.mtr-logo {
    flex-shrink: 0;
}

.mtr-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.mtr-date {
    flex-grow: 1;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
}

.mtr-ticket-no {
    font-size: 13px;
    color: var(--brand-red, #f59e0b);
    font-weight: 800;
    font-family: monospace;
    background: rgba(var(--primary), 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: normal;
    word-break: break-word;
    display: inline-block;
    text-align: right;
    max-width: 100%;
}