/* Bakiye kampanyası + sol alt satış bildirimleri */
.htr-campaign-backdrop {
    position: fixed;
    inset: 0;
    z-index: 22040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(6, 8, 14, 0.62);
    backdrop-filter: blur(4px);
}

.htr-campaign-backdrop.is-open,
.htr-campaign-backdrop.is-open[hidden] {
    display: flex !important;
}

.htr-campaign {
    position: relative;
    width: min(420px, 100%);
    background: #16181f;
    border: 1px solid rgba(47, 107, 255, 0.28);
    border-radius: 22px;
    padding: 28px 22px 18px;
    box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.08), 0 18px 50px rgba(0, 40, 140, 0.28);
    color: #fff;
    text-align: center;
}

.htr-campaign-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #d7dbe6;
    cursor: pointer;
}

.htr-campaign-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #2f6bff;
    color: #3b82f6;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.htr-campaign-title {
    margin: 14px 0 18px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #2f6bff;
    text-shadow: 0 0 18px rgba(47, 107, 255, 0.45);
}

.htr-campaign-offers {
    display: grid;
    gap: 10px;
}

.htr-campaign-offer {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: #1e212a;
    border: 1px solid #2a2e38;
    border-radius: 14px;
    padding: 12px 14px;
}

.htr-campaign-check {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #2f6bff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(47, 107, 255, 0.55);
}

.htr-campaign-offer p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #f3f4f6;
}

.htr-campaign-offer strong {
    color: #3b82f6;
}

.htr-campaign-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.htr-campaign-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.38);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.htr-campaign-cta-ico {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.htr-campaign-cta:hover {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.46);
}

.htr-campaign-later {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 1px solid #3a4150;
    background: #1c2028;
    color: #d7dbe6;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.htr-campaign-later:hover {
    background: #252a34;
    border-color: #5b6578;
    color: #fff;
}

.htr-etbis-backdrop {
    z-index: 22045;
}

.htr-etbis {
    width: min(440px, 100%);
    border-color: rgba(57, 255, 20, 0.28);
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.08), 0 18px 50px rgba(8, 40, 16, 0.32);
}

.htr-etbis-photo {
    display: flex;
    justify-content: center;
    margin: 2px 0 12px;
}

.htr-etbis-photo img {
    width: min(220px, 72%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(57, 255, 20, 0.18));
}

.htr-etbis-badge {
    border-color: #39ff14;
    color: #7dff9a;
}

.htr-etbis-title {
    margin: 12px 0 8px;
    color: #7dff9a;
    text-shadow: 0 0 18px rgba(57, 255, 20, 0.4);
}

.htr-etbis-lead {
    margin: 0 0 16px;
    color: #c5ccd8;
    font-size: 14px;
    line-height: 1.45;
}

.htr-etbis-check {
    background: #16a34a;
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
}

.htr-etbis .htr-campaign-offer strong {
    color: #7dff9a;
}

.htr-etbis-cta {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%) !important;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.38) !important;
}

.htr-etbis-cta:hover {
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.5) !important;
}

.htr-etbis-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(57, 255, 20, 0.28);
    background: rgba(20, 48, 28, 0.55);
    color: #d1ffd9 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.htr-etbis-page:hover {
    background: rgba(28, 64, 38, 0.85);
    color: #fff !important;
}

.sale-toast {
    position: fixed;
    left: 18px;
    bottom: 22px;
    z-index: 12020;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 286px;
    max-width: min(380px, calc(100vw - 36px));
    padding: 9px 16px 9px 9px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), transparent 42%),
        linear-gradient(135deg, rgba(16, 22, 42, .96), rgba(8, 12, 28, .94));
    border: 1px solid rgba(125, 211, 252, .28);
    border-radius: 18px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, .42),
        0 0 22px rgba(56, 189, 248, .16),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    transform: translateX(-130%) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .32s ease;
}

.sale-toast::before {
    content: "";
    position: absolute;
    inset: -40% auto -40% -30%;
    width: 90px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .18), transparent);
    transform: translateX(-80%) rotate(18deg);
    pointer-events: none;
}

.sale-toast.is-on {
    transform: translateX(0) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sale-toast.is-on::before {
    animation: sale-toast-shine 1.1s ease .12s both;
}

.sale-toast img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 13px;
    flex-shrink: 0;
    background: #111827;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.35);
}

.sale-toast-body {
    min-width: 0;
}

.sale-toast-title {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sale-toast-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
}

.sale-toast-meta i {
    color: #7dd3fc;
    filter: drop-shadow(0 0 6px rgba(125, 211, 252, .7));
}

.sale-toast-time {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sale-toast-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 0 12px rgba(34, 197, 94, .45);
}

.sale-toast[data-kind="live"] img,
.sale-toast[data-kind="video"] img {
    border-radius: 50%;
}

.sale-toast[data-kind="live"] img {
    box-shadow: 0 0 0 2px #ef4444, 0 0 14px rgba(239, 68, 68, .45);
}

.sale-toast[data-kind="live"] .sale-toast-badge {
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    letter-spacing: 0.04em;
    animation: sale-toast-live-pulse 1.6s ease-in-out infinite;
}

.sale-toast[data-kind="video"] .sale-toast-badge {
    background: linear-gradient(90deg, #fb7185, #e11d48);
    color: #fff;
    box-shadow: 0 0 12px rgba(244, 63, 94, .4);
}

.sale-toast[data-kind="live"] .sale-toast-title {
    color: #fff;
}

@keyframes sale-toast-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

body.mm-lock .sale-toast,
body.mm-lock .ai-sale-toast {
    display: none !important;
}

@media (max-width: 768px) {
    .sale-toast {
        left: 10px;
        right: auto;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        min-width: 0;
        width: auto;
        max-width: min(380px, calc(100vw - 24px));
        padding: 9px 14px 9px 9px;
        gap: 12px;
        border-radius: 18px;
    }
    .sale-toast img {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }
    .sale-toast[data-kind="live"] img,
    .sale-toast[data-kind="video"] img {
        width: 52px;
        height: 52px;
        border-radius: 50%;
    }
    .sale-toast-title {
        font-size: 14px;
        line-height: 1.25;
    }
    .sale-toast-meta {
        margin-top: 5px;
        font-size: 12px;
        gap: 8px;
    }
    .sale-toast-time {
        max-width: 140px;
    }
    .sale-toast-badge {
        font-size: 11px;
        padding: 3px 9px;
    }

    .htr-campaign-title {
        font-size: 22px;
    }

    .htr-etbis-title {
        font-size: 22px;
    }

    .htr-etbis-photo img {
        width: min(180px, 70%);
    }
}
