/* =====================================================================
   LzyStream Kick Bot - ana sayfa ve programla ayni tasarim dili
   Siyah / beyaz, ince cizgili kartlar, beyaz ana butonlar, parlama yok.
   Yesil sadece "canli / bagli" durum noktalarinda kullanilir.
   ===================================================================== */
:root {
    --kick-green: #ffffff;
    --kick-green-dim: rgba(255, 255, 255, 0.08);
    --kick-green-glow: transparent;
    --neon-green: #ffffff;
    --neon-green-glow: transparent;
    --neon-blue: #ffffff;
    --neon-blue-glow: transparent;
    --border-accent: rgba(255, 255, 255, 0.22);
    --shadow-glow: none;
    --bg-dark: #0a0a0a;
    --bg-primary: #0a0a0a;
    --bg-secondary: #0c0d10;
    --card-bg: #111216;
    --card-inner: #0c0d10;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-active: rgba(255, 255, 255, 0.22);
    --text-muted: #8b8d98;
    --text-subtle: #5d5f69;
    --lzy-live: #22c55e;
}

html, body { background: #0a0a0a !important; }
body { font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif !important; }

/* Ust bar: ana sayfadaki gibi buzlu cam */
.bot-navbar, .studio-navbar, header.navbar, .top-navbar, nav.navbar {
    background: rgba(10, 10, 10, 0.72) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

/* Ana butonlar: beyaz, koyu yazi, parlama yok (programdaki .lz-btn-primary) */
html body .btn-kick-connect, html body .btn-confirm-mod, html body .btn-add-action, html body .btn-subgoal-copy {
    background: #ffffff !important;
    color: #0b0b0d !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html body .btn-kick-connect:hover, html body .btn-confirm-mod:hover, html body .btn-add-action:hover,
html body .btn-subgoal-copy:hover {
    background: #e4e4e7 !important;
    border-color: #e4e4e7 !important;
    box-shadow: none !important;
    transform: none !important;
}
html body .btn-kick-connect svg, html body .btn-confirm-mod svg, html body .btn-add-action svg, html body .btn-subgoal-copy svg {
    color: #0b0b0d !important;
    stroke: currentColor;
}

/* Anahtarlar: acikken beyaz zemin + koyu topuz (programla ayni) */
html body .kick-cmd-switch input:checked + .kick-cmd-slider,
html body .protect-switch input:checked + .protect-slider,
html body .bot-master-switch input:checked + .bot-master-slider {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
}
html body .kick-cmd-switch input:checked + .kick-cmd-slider:before,
html body .protect-switch input:checked + .protect-slider:before,
html body .bot-master-switch input:checked + .bot-master-slider:before {
    background-color: #0b0b0d !important;
    box-shadow: none !important;
}

/* Giris ekrani Kick ikonu: programdaki marka kutusu gibi */
html body .auth-gate-icon {
    background: #17181d !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

/* Aktif kartlar / rozetler: yesil parlama yerine ince beyaz cizgi */
html body .platform-card.platform-active {
    background: #17181d !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
}
html body .platform-status-badge.active {
    background: #ffffff !important;
    color: #0b0b0d !important;
    border-color: #ffffff !important;
}

/* Canli / bagli durum noktalari yesil kalir */
html body .status-pulse-dot.success, .chat-bot-indicator, html body .live-dot, html body .online-dot,
html body .status-dot.online, html body .status-dot.connected, html body .connection-dot.connected {
    background: var(--lzy-live) !important;
    box-shadow: none !important;
}

/* Cekilis kazanan kartlari: parlama yok */
html body .winner-overlay-card, html body .winner-hero-showcase {
    background: #111216 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}
html body .winner-hero-avatar, html body .winner-hero-crown, html body .winner-top-dot, html body .roulette-center-laser {
    box-shadow: none !important;
}

/* Kaydirma cubugu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; border: 2px solid #0a0a0a; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* =====================================================================
   Kucuk bildirimler (sag alt, 3-5 sn)
   ===================================================================== */
#studio-toast, #kick-bot-toast { display: none !important; }
.lzy-toast-stack {
    position: fixed; right: 20px; bottom: 20px; z-index: 100000;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
    pointer-events: none; max-width: calc(100vw - 32px);
}
.lzy-toast {
    position: relative; overflow: hidden; pointer-events: auto; cursor: pointer;
    display: flex; align-items: center; gap: 11px;
    min-width: 260px; max-width: 380px; padding: 12px 16px 13px 12px;
    background: rgba(23, 24, 29, 0.96); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    font: 500 13px/1.45 'Inter', sans-serif; color: #e4e4e7;
    opacity: 0; transform: translateY(10px) scale(0.98);
    transition: opacity .22s ease, transform .22s cubic-bezier(.2, .9, .3, 1.2);
}
.lzy-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.lzy-toast-icon {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: #fff;
}
.lzy-toast-success .lzy-toast-icon { background: rgba(34, 197, 94, 0.14); color: #4ade80; }
.lzy-toast-warn .lzy-toast-icon { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.lzy-toast-text { flex: 1; min-width: 0; }
.lzy-toast-bar {
    position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
    background: rgba(255, 255, 255, 0.28); transform-origin: left;
    animation: lzyToastBar linear forwards;
}
.lzy-toast-success .lzy-toast-bar { background: rgba(74, 222, 128, 0.6); }
.lzy-toast-warn .lzy-toast-bar { background: rgba(251, 191, 36, 0.6); }
@keyframes lzyToastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 560px) {
    .lzy-toast-stack { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
    .lzy-toast { min-width: 0; max-width: none; }
}

/* =====================================================================
   Cekilis: kelime + katilim butonlari, akis durumu
   ===================================================================== */
.giveaway-keyword-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
html body .giveaway-keyword-actions .btn-set-keyword { margin-top: 0 !important; width: 100% !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-toggle-entries {
    height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer; min-width: 0;
    background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.12);
    font: 700 12.5px 'Inter', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-toggle-entries:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.btn-toggle-entries:disabled { opacity: .4; cursor: not-allowed; }
.btn-toggle-entries.is-paused { background: #fff; color: #0b0b0d; border-color: #fff; }
.btn-toggle-entries.is-paused:hover { background: #e4e4e7 !important; }
/* Sekme degisince kaydirma cubugu gelip gidiyordu ve tum icerik ~10px
   sola/saga kayiyordu. Cubugun yerini her zaman ayir. */
.bot-main-stage, .bot-sidebar { scrollbar-gutter: stable; }
/* Yonetilen kanal secici: sitenin ozel menusu kullanilir, eski ok gizli */
#channel-switcher-wrap .lzy-custom-select ~ svg { display: none !important; }
#channel-switcher-wrap .lzy-custom-select { z-index: 30; }
#channel-switcher-wrap .lzy-custom-select-trigger { height: 36px; min-height: 36px; font-size: 12.5px; }
#channel-switcher-wrap .lzy-custom-select-item { font-size: 12.5px; }
#channel-switcher-wrap .lzy-custom-select-menu { min-width: 100%; width: max-content; max-width: 260px; }
/* Kelime Belirle ve Kazanani sec: Katilimlari Durdur ile ayni koyu stil */
html body .btn-set-keyword, html body .btn-set-keyword.keyword-confirmed, html body .btn-pick-winner {
    background: rgba(255, 255, 255, 0.06) !important; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important; border-radius: 10px !important;
    box-shadow: none !important; text-shadow: none !important; transform: none !important;
    font-family: 'Inter', sans-serif !important; font-weight: 700 !important;
    transition: background .15s, border-color .15s, color .15s !important;
}
html body .btn-set-keyword { height: 40px !important; padding: 0 12px !important; font-size: 12.5px !important; }
html body .btn-set-keyword:hover:not(:disabled), html body .btn-pick-winner:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1) !important; border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important; transform: none !important;
}
html body .btn-set-keyword.keyword-confirmed { opacity: 1 !important; cursor: default !important; color: #d4d4d8 !important; }
html body .btn-pick-winner:disabled { opacity: .4 !important; cursor: not-allowed !important; }
html body .btn-pick-winner svg { color: #fff !important; stroke: currentColor; }
/* Katilimci arama */
html body .entrants-header { gap: 10px 12px; flex-wrap: wrap; }
html body #entrants-count-title { white-space: nowrap; }
.entrants-search-wrap {
    flex: 1 1 150px; min-width: 150px; max-width: 240px; margin-left: auto; height: 32px; padding: 0 10px; box-sizing: border-box;
    display: flex; align-items: center; gap: 7px; cursor: text;
    background: #0c0d10; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9px; color: #5d5f69;
    transition: border-color .15s;
}
.entrants-search-wrap:focus-within { border-color: rgba(255, 255, 255, 0.3); color: #d4d4d8; }
.entrants-search {
    flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0 !important; background: transparent !important;
    color: #fff !important; font: 500 12.5px 'Inter', sans-serif !important; padding: 0 !important; box-shadow: none !important;
}
.entrants-search::placeholder { color: #5d5f69; }
.entrants-search::-webkit-search-cancel-button { filter: invert(1); opacity: .5; cursor: pointer; }
.entrants-search-count { padding: 10px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #5d5f69; text-transform: uppercase; }
.entrants-search-empty { padding: 40px 16px; text-align: center; font-size: 13px; color: #8b8d98; }
@media (max-width: 560px) { .entrants-search-wrap { max-width: none; order: 3; flex-basis: 100%; } html body .entrants-header { flex-wrap: wrap; } }
.giveaway-feed-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: #5d5f69; }
.giveaway-feed-dot.is-live { background: #22c55e; animation: lzyFeedPulse 1.6s ease-in-out infinite; }
.giveaway-feed-dot.is-paused { background: #f59e0b; }
@keyframes lzyFeedPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* =====================================================================
   Cekilis penceresi (dikey isim makarasi + kazanan + odul sayaci)
   Kapatma butonu yok: talep edilince 5 sn sonra kendisi kapanir,
   sure dolarsa sadece "Yeniden Cek" cikar.
   ===================================================================== */
.lzy-gw-modal {
    position: fixed; inset: 0; z-index: 99990; display: none;
    align-items: center; justify-content: center; padding: 20px;
    font-family: 'Inter', sans-serif;
}
.lzy-gw-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 0; transition: opacity .3s ease;
}
.lzy-gw-card {
    position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto;
    background: #0f1013; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 22px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75);
    padding: 28px 28px 30px; text-align: center; color: #fff;
    opacity: 0; transform: translateY(16px) scale(0.98);
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1);
}
.lzy-gw-modal.open .lzy-gw-backdrop { opacity: 1; }
.lzy-gw-modal.open .lzy-gw-card { opacity: 1; transform: none; }
.lzy-gw-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a1a1aa;
}
.lzy-gw-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; animation: lzyFeedPulse 1s ease-in-out infinite; }
.lzy-gw-modal.is-result .lzy-gw-eyebrow-dot { background: #22c55e; animation: none; }
.lzy-gw-modal.is-result.is-expired .lzy-gw-eyebrow-dot { background: #ef4444; }

.lzy-gw-spin, .lzy-gw-result { display: none; }
.lzy-gw-modal.is-spinning .lzy-gw-spin { display: block; }
.lzy-gw-modal.is-result .lzy-gw-result { display: flex; }

.lzy-gw-title { margin-top: 16px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.lzy-gw-sub { margin-top: 6px; font-size: 13px; color: #8b8d98; }

/* Dikey makara: 5 satir gorunur, ortadaki satir secim cizgisi */
.lzy-gw-slot {
    --row: 54px;
    position: relative; margin: 24px auto 0; height: calc(var(--row) * 5); overflow: hidden;
    border-radius: 16px; background: #0a0b0d; border: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
}
.lzy-gw-slot-focus {
    position: absolute; left: 14px; right: 14px; top: calc(var(--row) * 2); height: var(--row);
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04);
    pointer-events: none; z-index: 1; transition: background .35s, border-color .35s;
}
.lzy-gw-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.lzy-gw-row {
    height: var(--row); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 28px;
    font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #d4d4d8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s;
}
.lzy-gw-row-sub { font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); color: #a1a1aa; }
.lzy-gw-slot.is-done .lzy-gw-slot-focus { background: #fff; border-color: #fff; }
.lzy-gw-row.is-winner { position: relative; z-index: 2; color: #0b0b0d; }
.lzy-gw-row.is-winner .lzy-gw-row-sub { background: rgba(0, 0, 0, 0.1); color: #0b0b0d; }
.lzy-gw-progress { margin: 16px auto 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.lzy-gw-progress > span { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }

/* Kazanan */
.lzy-gw-result { flex-direction: column; align-items: center; padding-top: 22px; }
.lzy-gw-crown { color: #fff; opacity: .9; animation: lzyGwRise .4s cubic-bezier(.2, .9, .3, 1) both; }
.lzy-gw-round { margin-top: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: #8b8d98; }
.lzy-gw-name {
    margin-top: 6px; max-width: 100%; font-size: clamp(30px, 7vw, 48px); font-weight: 800;
    letter-spacing: -.03em; line-height: 1.1; word-break: break-word;
    animation: lzyGwRise .45s .06s cubic-bezier(.2, .9, .3, 1) both;
}
.lzy-gw-subbadge {
    display: none; margin-top: 10px; height: 22px; padding: 0 9px; align-items: center;
    border-radius: 6px; background: rgba(255, 255, 255, 0.1); font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
}
.lzy-gw-claim {
    margin-top: 24px; width: 100%; max-width: 400px; padding: 22px 20px 20px; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center;
    background: #0a0b0d; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
    animation: lzyGwRise .45s .12s cubic-bezier(.2, .9, .3, 1) both;
}
.lzy-gw-ring { position: relative; width: 124px; height: 124px; }
.lzy-gw-ring > svg { transform: rotate(-90deg); display: block; }
.lzy-gw-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 6; }
.lzy-gw-ring-fg { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.lzy-gw-ring-num { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.lzy-gw-ring-num span { font-size: 42px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.lzy-gw-mark { width: 50px; height: 50px; }
.lzy-gw-mark path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 40; stroke-dashoffset: 40; animation: lzyGwDraw .45s cubic-bezier(.65, 0, .35, 1) forwards; }
.lzy-gw-mark path + path { animation-delay: .2s; }
.lzy-gw-claim-title { margin-top: 14px; font-size: 15px; font-weight: 700; }
.lzy-gw-claim-text { margin-top: 4px; font-size: 12.5px; color: #8b8d98; line-height: 1.5; }
.lzy-gw-claim.is-urgent .lzy-gw-ring-fg { stroke: #f59e0b; }
.lzy-gw-claim.is-urgent .lzy-gw-ring-num span { color: #fbbf24; }
.lzy-gw-claim.is-claimed { border-color: rgba(34, 197, 94, 0.25); }
.lzy-gw-claim.is-claimed .lzy-gw-ring-fg { stroke: #22c55e; }
.lzy-gw-claim.is-claimed .lzy-gw-ring-num { color: #4ade80; animation: lzyGwPop .4s cubic-bezier(.2, .9, .3, 1.3) both; }
.lzy-gw-claim.is-claimed .lzy-gw-claim-title { color: #4ade80; font-size: 17px; }
.lzy-gw-claim.is-expired { border-color: rgba(239, 68, 68, 0.25); animation: lzyGwShake .45s cubic-bezier(.36, .07, .19, .97) both; }
.lzy-gw-claim.is-expired .lzy-gw-ring-fg { stroke: #ef4444; }
.lzy-gw-claim.is-expired .lzy-gw-ring-num { color: #f87171; animation: lzyGwPop .4s cubic-bezier(.2, .9, .3, 1.3) both; }
.lzy-gw-claim.is-expired .lzy-gw-claim-title { color: #f87171; }
.lzy-gw-autoclose { margin-top: 14px; width: 100%; max-width: 220px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; display: none; }
.lzy-gw-autoclose > span { display: block; height: 100%; width: 100%; background: #22c55e; transform-origin: left; }
.lzy-gw-claim.is-claimed .lzy-gw-autoclose { display: block; }
.lzy-gw-claim.is-claimed .lzy-gw-autoclose > span { animation: lzyGwShrink 5s linear forwards; }

.lzy-gw-actions { display: none; gap: 10px; margin-top: 22px; }
.lzy-gw-modal.is-expired .lzy-gw-actions { display: flex; animation: lzyGwRise .4s .35s cubic-bezier(.2, .9, .3, 1) both; }
.lzy-gw-btn {
    height: 44px; padding: 0 24px; border-radius: 11px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 700 13.5px 'Inter', sans-serif; transition: background .15s, border-color .15s;
}
.lzy-gw-btn-primary { background: #fff; color: #0b0b0d; border: 1px solid #fff; }
.lzy-gw-btn-primary:hover { background: #e4e4e7; }

@keyframes lzyGwPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes lzyGwRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lzyGwDraw { to { stroke-dashoffset: 0; } }
@keyframes lzyGwShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes lzyGwShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
@media (max-width: 560px) {
    .lzy-gw-card { padding: 22px 16px 22px; border-radius: 18px; }
    .lzy-gw-title { font-size: 21px; }
    .lzy-gw-slot { --row: 48px; }
    .lzy-gw-row { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .lzy-gw-crown, .lzy-gw-name, .lzy-gw-claim, .lzy-gw-claim.is-expired { animation: none; }
}
