.bonuslar-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    font-family: var(--font-main, 'Outfit', sans-serif);
}

.bonuslar-tabs {
    align-items: center;
    -ms-overflow-style: none;
}

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

.bonuslar-tab:hover,
.bonuslar-tab.active {
    color: rgb(var(--primary, 245, 158, 11));
}

.bonus-card:hover {
    border-color: rgb(var(--primary, 245, 158, 11), 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.bonus-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.bonus-card-sponsor img {
    display: block;
}

.bonus-card-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.bonus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.bonus-btn-secondary.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.bonus-btn-primary {
    background: var(--brand-red, #f59e0b);
}

.bonuslar-empty {
    padding: 48px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
}

.bonus-detail-modal[hidden] {
    display: none !important;
}

.bonus-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bonus-detail-backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--surface-900, #050505) 82%, transparent);
    backdrop-filter: blur(4px);
}

.bonus-detail-panel {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: min(690px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 32px 20px;
    background: var(--card-bg, var(--surface-600, #2a2a2a));
    border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.1));
    border-radius: 14px;
    box-shadow: 0 24px 70px color-mix(in srgb, var(--surface-900, #050505) 70%, transparent);
    overflow: hidden;
}

.bonus-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9px;
    background: var(--border-subtle, rgba(255, 255, 255, 0.05));
    color: var(--text-secondary, #9ca3af);
    cursor: pointer;
    font-size: 21px;
}

.bonus-detail-close:hover {
    color: var(--text-light, #ffffff);
    background: var(--border-soft, rgba(255, 255, 255, 0.1));
}

.bonus-detail-media {
    width: 300px;
    height: 300px;
    margin-top: 0;
    overflow: hidden;
    border-radius: 9px;
    background: var(--surface-900, #050505);
}

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

.bonus-detail-body {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 3px 0 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.bonus-detail-body::-webkit-scrollbar {
    width: 5px;
}

.bonus-detail-body::-webkit-scrollbar-track {
    background: transparent;
}

.bonus-detail-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.bonus-detail-heading {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding-right: 28px;
    margin-bottom: 32px;
}

.bonus-detail-logo-wrap {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
}

.bonus-detail-logo-wrap[hidden] {
    display: none;
}

.bonus-detail-logo-wrap img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.bonus-detail-heading h3 {
    margin: 0;
    color: var(--text-primary, #f8fafc);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.bonus-detail-hint {
    margin: 5px 0 0;
    color: var(--text-secondary, #9ca3af);
    opacity: 0.75;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.bonus-detail-description {
    padding-right: 8px;
    color: var(--text-primary, #f8fafc);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.75;
    white-space: pre-wrap;
}

@media (max-width: 1024px) {
    .bonus-card-image {
        width: 180px;
        min-width: 180px;
        height: 180px;
    }

    .bonus-card-title {
        font-size: 16px;
    }
}

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

    .bonuslar-tabs {
        gap: 18px;
        margin-bottom: 20px;
    }

    .bonus-card {
        flex-direction: column;
        gap: 16px;
    }

    .bonus-card-image {
        aspect-ratio: 1 / 1;
    }

    .bonus-card-top {
        margin-bottom: 12px;
    }

    .bonus-card-actions {
        flex-direction: column;
        align-items: stretch;
        padding-top: 18px;
    }

    .bonus-btn {
        width: 100%;
    }

    .bonus-detail-panel {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 46px 18px 22px;
        overflow: visible;
    }

    .bonus-detail-media {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .bonus-detail-body {
        height: auto;
        overflow: visible;
    }

    .bonus-detail-heading {
        margin-bottom: 22px;
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .bonuslar-tabs {
        gap: 14px;
    }

    .bonus-card {
        padding: 12px;
    }

    .bonus-card-title {
        font-size: 15px;
    }

    .bonus-card-hint {
        font-size: 13px;
    }

    .bonus-detail-heading {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
    }

    .bonus-detail-logo-wrap {
        width: 42px;
        height: 42px;
    }

    .bonus-detail-heading h3 {
        font-size: 17px;
    }
}

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

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

.bonuslar-tab:hover {
    color: rgba(255, 255, 255, 0.75);
}

.bonuslar-tab.active {
    color: rgb(var(--primary-text, var(--primary)));
}

.bonuslar-tab.active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: rgb(var(--primary));
}
.bonuslar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.bonus-card {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
    min-height: 0;
    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) {
    .bonus-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: none;
    }
}

.bonus-card-image {
    position: relative;
    flex: none;
    width: 180px;
    min-width: 180px;
    height: 180px;
    margin: 12px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-900);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.bonus-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.bonus-card-image-placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.bonus-card-body,
.haber-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px 16px 8px;
}

.bonus-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding-right: 70px;
    min-height: 22px;
}

.bonus-card-sponsor img {
    height: 22px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.bonus-card-sponsor-name,
.haber-card-sponsor-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
}
.bonus-card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgb(var(--primary));
    color: var(--text-on-accent, #fff);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bonus-card-title {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.bonus-card-hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
}

.bonus-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
}
.bonus-btn {
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease, background 0.2s ease;
}

.bonus-btn:hover {
    transform: none;
}

.bonus-btn:active {
    transform: scale(0.97);
}

.bonus-btn-secondary,
.haber-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgb(33, 33, 33);
    background: rgba(255, 255, 255, 0.07);
    color: #f2f2f2;
}

.bonus-btn-primary {
    border: 0;
    background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--primary)) 78%, #fff), color-mix(in srgb, rgb(var(--primary)) 90%, #000));
    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);
}

.bonus-btn-primary:hover {
    filter: brightness(1.08);
}
.page-empty-state {
    padding: 56px 16px;
}

.page-empty-state__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(var(--stroke-rgb, 140, 200, 255), 0.12);
}

.page-empty-state h3 {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

.page-empty-state p {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1100px) {
    .bonuslar-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .bonus-card-image {
        width: 120px;
        min-width: 120px;
        height: 120px;
        margin: 10px;
    }

    .bonus-card-body,
    .haber-card-body {
        gap: 6px;
        padding: 10px 12px 10px 0;
    }

    .bonus-card-title {
        font-size: 13px;
        line-height: 1.25;
    }

    .bonus-card-hint {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bonus-card-top {
        padding-right: 52px;
    }

    .bonus-btn {
        height: 36px;
        min-height: 36px;
        padding: 0 14px;
        font-size: 12.5px;
    }

    .bonus-card-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .bonuslar-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}
@media (max-width: 768px) {
    .bonuslar-wrapper .bonus-card {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .bonuslar-wrapper .bonus-card-image {
        width: 120px;
        min-width: 120px;
        height: 120px;
        align-self: flex-start;
    }

    .bonuslar-wrapper .bonus-card-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 0;
    }

    .bonuslar-wrapper .bonus-btn {
        width: auto;
        flex: 0 0 auto;
    }

    .bonuslar-wrapper .bonus-card-top {
        flex-direction: row;
    }
}

@media (max-width: 380px) {
    .bonuslar-wrapper .bonus-btn {
        padding: 0 10px;
        font-size: 12px;
    }

    .bonus-card-image {
        width: 104px;
        min-width: 104px;
        height: 104px;
    }
}
.bonus-detail-media[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .bonus-detail-modal {
        z-index: 2600;
        align-items: flex-end;
        padding: 0;
        overflow: hidden;
    }

    .bonus-detail-modal .bonus-detail-backdrop {
        background: rgba(var(--bg-rgb, 5, 8, 20), 0.72);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .bonus-detail-modal .bonus-detail-panel {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 88vh;
        max-height: 88dvh;
        padding: 22px 0 0;
        border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.14);
        border-bottom: 0;
        border-radius: 20px 20px 0 0;
        background: linear-gradient(180deg, rgb(var(--surface-700-rgb, 30, 58, 115)), rgb(var(--surface-rgb, 17, 35, 74)));
        box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.55);
        overflow: hidden;
        animation: bonus-sheet-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .bonus-detail-modal .bonus-detail-panel::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        width: 38px;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.22);
        transform: translateX(-50%);
        pointer-events: none;
    }

    .bonus-detail-modal .bonus-detail-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.45);
        color: #fff;
        font-size: 18px;
    }

    .bonus-detail-modal .bonus-detail-media {
        flex: none;
        width: auto;
        height: auto;
        margin: 0 14px;
        aspect-ratio: 16 / 9;
        max-height: 28vh;
        border-radius: 12px;
    }

    .bonus-detail-modal .bonus-detail-media img {
        height: 100%;
    }

    .bonus-detail-modal .bonus-detail-body {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .bonus-detail-modal .bonus-detail-heading {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 12px;
        padding-right: 0;
    }

    .bonus-detail-modal .bonus-detail-logo-wrap {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
    }

    .bonus-detail-modal .bonus-detail-heading h3 {
        font-size: 15px;
        font-weight: 800;
        line-height: 1.25;
        text-transform: none;
    }

    .bonus-detail-modal .bonus-detail-hint {
        margin-top: 3px;
        font-size: 11.5px;
        font-weight: 600;
        opacity: 1;
        color: rgba(255, 255, 255, 0.5);
        text-transform: none;
    }

    .bonus-detail-modal .bonus-detail-description {
        padding: 12px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        font-size: 13px;
        font-weight: 500;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.82);
        overflow-wrap: anywhere;
    }
}

@keyframes bonus-sheet-in {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

@media (prefers-reduced-motion: reduce) {
    .bonus-detail-modal .bonus-detail-panel {
        animation: none;
    }
}
