/* =================================================================
   BIRLIKTE IZLE - WATCH PARTY STYLE
   Erpida.com tasarim sistemine uyumlu
================================================================= */

:root {
    /* ── Kurumsal tasarim dili (erpida.com marka): mor-mavi #667EEA/#764BA2 + glassmorphism ──
       Not: mevcut bilesenlerin --orange-* degiskenleri bozulmasin diye ISIMLER korundu, DEGERLER
       kurumsal marka paletine yeniden yonlendirildi (surgical re-theme; sifirdan yazim degil). */
    --bg-primary: #F3F2EF;      /* kurumsal sicak acik gri */
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-cream: #FAFAFA;        /* kurumsal off-white */
    --bg-dark: #0a0a0f;
    --bg-darker: #050509;

    /* Marka token'lari (kurumsal ile ayni) */
    --brand-primary: #667EEA;
    --brand-secondary: #764BA2;
    --brand-accent: #A78BFA;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    /* Glassmorphism (kurumsal ile ayni) */
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    --glass-blur: blur(10px);

    /* Ana vurgu: eski turuncu -> kurumsal marka mor-mavisi (isimler geriye-uyum icin korundu) */
    --orange-primary: #667EEA;
    --orange-light: #A78BFA;
    --orange-dark: #5566d8;
    --orange-bg: #eef1fe;

    /* Ikincil vurgu: marka moru */
    --purple-primary: #764BA2;
    --purple-light: #A78BFA;
    --purple-dark: #5b3a80;

    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
    --blue: #3b82f6;

    --text-primary: #111827;
    --text-secondary: #4a4a68;
    --text-muted: #6b6b85;
    --text-on-dark: #f5f5f7;
    --text-on-dark-muted: #a1a1aa;

    --border-color: #E0E0E0;
    --border-light: #ECECEC;
    --border-dark: rgba(255,255,255,0.08);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: .375rem;
    --radius-md: .5rem;
    --radius-lg: .75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--orange-primary); text-decoration: none; }
a:hover { text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* =================================================================
   GIRIS SAYFASI (index.php)
================================================================= */

.bi-page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 20% 0%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(73, 89, 196, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

.bi-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.bi-topbar .bi-brand {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 18px; color: var(--text-primary);
}
.bi-topbar .bi-brand i {
    color: var(--orange-primary);
    font-size: 22px;
}
.bi-topbar a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.bi-topbar a:hover { color: var(--orange-primary); }
.bi-topbar-right { display: flex; align-items: center; gap: 18px; }

/* 3 kolonlu topbar: marka (sol) | oturum widget'i (GERÇEKTEN ortada) | geri linki (sağ).
   Kullanıcı geri bildirimi: "giriş yap sağ üstte gizlenmiş gibi" -> ortalandı + belirgin buton yapıldı. */
.bi-topbar-3col { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bi-topbar-3col .bi-brand { justify-self: start; }
.bi-topbar-3col .bi-auth-widget { justify-self: center; }
.bi-topbar-3col .bi-topbar-back { justify-self: end; }
@media (max-width: 640px) {
    /* Dar ekranda 3 kolon sıkışır — marka+ortalanmış widget önceliği, geri linki ikinci satıra */
    .bi-topbar-3col { grid-template-columns: auto 1fr; row-gap: 10px; }
    .bi-topbar-3col .bi-topbar-back { grid-column: 1 / -1; justify-self: center; order: 3; }
}

/* ===== Opsiyonel oturum acma widget'i (magic-link) — BELİRGİN buton (site CTA'sıyla aynı ağırlıkta) ===== */
.bi-auth-widget { min-height: 20px; display: flex; align-items: center; }
.bi-auth-link {
    display: flex; align-items: center; gap: 8px;
    background: var(--gradient-primary);
    color: #fff; text-decoration: none; font-size: 14px; font-weight: 700;
    padding: 10px 20px; border-radius: var(--radius-md, 10px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    transition: transform .15s ease, box-shadow .15s ease;
}
.bi-auth-link:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(102, 126, 234, 0.38); }
.bi-auth-menu { position: relative; }
.bi-auth-trigger {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-cream, rgba(102,126,234,.08)); border: 1px solid var(--border-color, rgba(102,126,234,.25));
    cursor: pointer; border-radius: var(--radius-md, 10px);
    color: var(--text-primary); font-size: 14px; font-weight: 700; font-family: inherit;
    padding: 9px 16px;
}
.bi-auth-trigger:hover { border-color: var(--orange-primary); color: var(--orange-primary); }
.bi-auth-dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.15));
    min-width: 220px;
    padding: 10px;
    z-index: 200;
}
.bi-auth-email { font-size: 12px; color: var(--text-muted); padding: 4px 8px 10px; border-bottom: 1px solid var(--glass-border); margin-bottom: 6px; word-break: break-all; }
.bi-auth-avatar-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bi-auth-menu-link {
    width: 100%; display: flex; align-items: center; gap: 8px;
    color: var(--text-primary); text-decoration: none; font-size: 14px; font-weight: 600;
    padding: 8px; border-radius: 8px; box-sizing: border-box;
}
.bi-auth-menu-link:hover { background: var(--bg-cream, rgba(102,126,234,.08)); color: var(--orange-primary); }
.bi-auth-menu-link i { width: 16px; text-align: center; color: var(--text-muted); }
.bi-auth-cikis {
    width: 100%; display: flex; align-items: center; gap: 8px;
    background: transparent; border: none; cursor: pointer;
    color: #ef4444; font-size: 14px; font-weight: 600; font-family: inherit;
    padding: 8px; border-radius: 8px; text-align: left; margin-top: 4px;
}
.bi-auth-cikis:hover { background: rgba(239, 68, 68, 0.08); }
@media (max-width: 640px) { .bi-auth-link, .bi-auth-trigger { font-size: 13px; padding: 8px 14px; } }

.bi-hero {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 60px 24px;
}

.bi-hero-content {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.bi-hero-text h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.bi-hero-text h1 .bi-orange { color: var(--orange-primary); }
.bi-hero-text p {
    margin-top: 20px;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
}
.bi-hero-features {
    margin-top: 28px;
    display: flex; flex-direction: column; gap: 12px;
}
.bi-hero-features .item {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-secondary); font-size: 14px;
}
.bi-hero-features .item i { color: var(--green); font-size: 16px; }

.bi-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    border: 1px solid var(--border-light);
}

/* "Hadi başlayalım" kartının EN ÜSTÜNDE, oda oluşturmadan önce görülen giriş/kayıt bölümü —
   boş iken (JS henüz yuklenmeden) yer kaplamasin diye min-height yok, mount olunca dolar. */
.bi-card-auth:empty { display: none; }
.bi-card-auth { margin-bottom: 20px; }
.bi-card-auth-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    background: var(--gradient-primary, linear-gradient(135deg, #667EEA, #764BA2));
    border-radius: var(--radius-lg, 12px);
    padding: 16px 20px;
}
.bi-card-auth-text { display: flex; align-items: center; gap: 12px; color: #fff; }
.bi-card-auth-text i { font-size: 26px; opacity: .9; flex-shrink: 0; }
.bi-card-auth-text strong { display: block; font-size: 14px; }
.bi-card-auth-text span { display: block; font-size: 12.5px; opacity: .85; margin-top: 2px; }
.bi-card-auth-btn {
    flex-shrink: 0; white-space: nowrap;
    background: #fff; color: var(--orange-primary, #667EEA);
    text-decoration: none; font-weight: 700; font-size: 14px;
    padding: 10px 18px; border-radius: var(--radius-md, 10px);
    transition: transform .15s ease;
}
.bi-card-auth-btn:hover { transform: translateY(-1px); color: var(--orange-primary, #667EEA); }
.bi-card-auth-welcome {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg, 12px);
    padding: 14px 18px;
}
.bi-card-auth-welcome i { font-size: 22px; color: var(--green, #10b981); flex-shrink: 0; }
.bi-card-auth-welcome > div { flex: 1; min-width: 0; }
.bi-card-auth-welcome strong { display: block; font-size: 14px; color: var(--text-primary); }
.bi-card-auth-welcome span { display: block; font-size: 12px; color: var(--text-muted); word-break: break-all; }
.bi-card-auth-cikis {
    flex-shrink: 0; background: transparent; border: 1px solid var(--border-color, rgba(0,0,0,.15));
    color: var(--text-secondary); font-size: 13px; font-weight: 600; font-family: inherit;
    padding: 7px 14px; border-radius: var(--radius-md, 8px); cursor: pointer;
}
.bi-card-auth-cikis:hover { border-color: #ef4444; color: #ef4444; }
@media (max-width: 480px) {
    .bi-card-auth-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .bi-card-auth-text { justify-content: center; }
    .bi-card-auth-btn { text-align: center; }
}

.bi-card h2 {
    font-size: 22px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 6px;
}
.bi-card .subtitle {
    color: var(--text-muted); font-size: 14px;
    margin-bottom: 22px;
}

.bi-tabs {
    display: flex;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 22px;
}
.bi-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.bi-tab.active {
    background: var(--bg-card);
    color: var(--orange-primary);
    box-shadow: var(--shadow-sm);
}

.bi-form-group { margin-bottom: 16px; }
.bi-form-label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.bi-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s;
}
.bi-input:focus {
    outline: none;
    border-color: var(--orange-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}
.bi-input::placeholder { color: var(--text-muted); }

.bi-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 600; font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}
.bi-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}
.bi-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(102, 126, 234, 0.38); }
.bi-btn-primary:disabled { background: #d6d3d1; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

.bi-btn-secondary {
    background: var(--bg-cream);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.bi-btn-secondary:hover { background: var(--bg-card); }

.bi-btn-danger {
    background: var(--red);
    color: white;
}
.bi-btn-danger:hover { background: #dc2626; }

.bi-btn-block { width: 100%; }
.bi-btn-sm { padding: 8px 14px; font-size: 13px; }
.bi-btn-icon { padding: 10px; }

.bi-alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.bi-alert i { font-size: 16px; flex-shrink: 0; }
.bi-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bi-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.bi-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.bi-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* =================================================================
   ODA SAYFASI (oda.php) - Koyu tema
================================================================= */

.bi-room-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--bg-darker);
    color: var(--text-on-dark);
}

/* ===== ŞIK SCROLLBAR (kurumsal tarzı) — varsayılan kalın beyaz çubuk çirkindi; ince + yarı-saydam + yuvarlak.
   style.css yalnız birlikte-izle sayfalarında yüklendiği için global kural güvenli (kurumsal/kariyer etkilenmez). */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }
::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.22) transparent; } /* Firefox */

.bi-room-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 10;
}
.bi-room-header .left { display: flex; align-items: center; gap: 16px; }
.bi-room-header .brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 16px; color: var(--text-on-dark);
}
.bi-room-header .brand i { color: var(--orange-primary); }
.bi-room-header .room-info {
    font-size: 13px; color: var(--text-on-dark-muted);
    padding-left: 16px; border-left: 1px solid var(--border-dark);
}
.bi-room-header .room-info code {
    color: var(--orange-light); font-family: 'SF Mono', Monaco, monospace;
    background: rgba(102, 126, 234, 0.12); padding: 2px 8px; border-radius: 4px;
    margin-left: 6px;
}
.bi-room-header .right { display: flex; align-items: center; gap: 10px; }

.bi-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
    background: rgba(255,255,255,0.06);
    color: var(--text-on-dark-muted);
}
.bi-pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}
.bi-pill.bi-pill-host { background: rgba(102, 126, 234, 0.2); color: var(--orange-light); }

@keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.bi-room-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
    height: calc(100vh - 60px);
}

/* SOL PANEL: Chat + katilimcilar */
.bi-side {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border-dark);
    overflow: hidden;
}

.bi-side-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-dark);
}
.bi-side-section h3 {
    font-size: 12px; font-weight: 700;
    color: var(--text-on-dark-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex; align-items: center; justify-content: space-between;
}

/* Sesli sohbet */
.bi-voice {
    display: flex; align-items: center; gap: 10px;
}
.bi-voice .mic-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    font-weight: 600; font-size: 13px;
    transition: all 0.2s;
}
.bi-voice .mic-btn:hover { background: rgba(16, 185, 129, 0.25); }
.bi-voice .mic-btn.muted {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}
.bi-voice .vol-btn {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    color: var(--text-on-dark);
}

/* Katilimcilar */
.bi-participants {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-dark);
    max-height: 220px;
    overflow-y: auto;
}
.bi-participant {
    display: flex; align-items: center; gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.bi-participant:hover { background: rgba(255,255,255,0.04); }
.bi-participant .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 13px;
    flex-shrink: 0;
    position: relative;
}
/* Presence rozeti (avatar sag-alt) — online yesil, idle sari */
.bi-presence {
    position: absolute; right: -1px; bottom: -1px;
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid var(--bg-dark);
    background: var(--text-muted);
}
.bi-presence.online { background: #22c55e; }
.bi-presence.idle { background: #f59e0b; }
.bi-participant .avatar.host {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
}
.bi-participant .info { flex: 1; min-width: 0; }
.bi-participant .name {
    font-size: 14px; font-weight: 600; color: var(--text-on-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bi-participant .role {
    font-size: 11px; color: var(--text-on-dark-muted);
}
.bi-participant .role.bekliyor { color: var(--yellow); }
.bi-participant .role.moderator { color: var(--purple-light); font-weight: 600; }
.bi-participant .actions {
    display: flex; gap: 4px;
    opacity: 0; transition: opacity 0.2s;
}
.bi-participant:hover .actions { opacity: 1; }
.bi-participant .icon-btn {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    color: var(--text-on-dark-muted);
    transition: all 0.2s;
    font-size: 12px;
}
.bi-participant .icon-btn:hover { background: rgba(255,255,255,0.12); color: var(--text-on-dark); }
.bi-participant .icon-btn.green { color: var(--green); }
.bi-participant .icon-btn.red { color: var(--red); }

/* Chat */
.bi-chat {
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}
.bi-chat-header {
    padding: 10px 16px;
    font-size: 12px; font-weight: 700;
    color: var(--text-on-dark-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-dark);
}
.bi-chat-messages {
    overflow-y: auto;
    padding: 12px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.bi-chat-msg {
    background: rgba(255,255,255,0.04);
    padding: 8px 12px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    max-width: 85%;
}
.bi-chat-msg.mine {
    align-self: flex-end;
    background: rgba(102, 126, 234, 0.18);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 4px;
}
.bi-chat-msg .msg-name {
    font-size: 11px; font-weight: 700;
    color: var(--orange-light);
    margin-bottom: 2px;
}
.bi-chat-msg.mine .msg-name { color: var(--orange-primary); }
.bi-chat-msg .msg-text {
    font-size: 14px; color: var(--text-on-dark);
    word-wrap: break-word;
    white-space: pre-wrap;
}
.bi-chat-msg .msg-time {
    font-size: 10px;
    color: var(--text-on-dark-muted);
    margin-top: 4px;
}
.bi-chat-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1;
    color: var(--text-on-dark-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}
.bi-chat-empty i { font-size: 32px; margin-bottom: 12px; opacity: 0.4; }

.bi-chat-input {
    display: flex; gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-dark);
    background: rgba(0,0,0,0.2);
}
.bi-chat-input input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-dark);
    color: var(--text-on-dark);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
}
.bi-chat-input input:focus {
    outline: none;
    border-color: var(--orange-primary);
    background: rgba(255,255,255,0.08);
}
.bi-chat-input button {
    padding: 8px 14px;
    background: var(--orange-primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600; font-size: 14px;
}
.bi-chat-input button:hover { background: var(--orange-dark); }

/* SAG PANEL: Video alani */
.bi-stage {
    display: grid;
    grid-template-rows: auto auto 1fr auto; /* url-bar | randevu-şerit | video | kontroller */
    overflow: hidden;
    background: var(--bg-dark);
}
/* KRITIK: cocuklara ACIK grid-row ver. URL cubugu misafirde display:none olunca grid auto-yerlesimi
   video-area'yi 'auto' satirina (yukseklik 0) kaydiriyordu -> misafirde paylasim alani BOS gorunuyordu.
   Acik grid-row ile url-bar gizlense bile video-area 1fr satirini (tum bos alan) korur.
   Randevu şeridi (grid-row 2) gizliyken 'auto' satır 0 yükseklik alır — boşluk olmaz. */
.bi-url-bar        { grid-row: 1; }
.bi-randevu-serit  { grid-row: 2; }
.bi-video-area     { grid-row: 3; }
.bi-controls       { grid-row: 4; }

.bi-url-bar {
    display: flex; gap: 8px; align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-dark);
}
.bi-url-bar .mode-tabs {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 3px;
}
.bi-url-bar .mode-tab {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px; font-weight: 600;
    color: var(--text-on-dark-muted);
    transition: all 0.2s;
}
.bi-url-bar .mode-tab.active {
    background: var(--orange-primary);
    color: white;
}
.bi-url-bar input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-dark);
    color: var(--text-on-dark);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: 'SF Mono', Monaco, monospace;
}
.bi-url-bar input:focus {
    outline: none;
    border-color: var(--orange-primary);
}
.bi-url-bar input:disabled { opacity: 0.6; }

/* Video alani */
.bi-video-area {
    position: relative;
    overflow: hidden;
    background: #000;
}
.bi-video-area iframe,
.bi-video-area video {
    width: 100%; height: 100%;
    border: 0;
    display: block;
    background: #000;
    object-fit: contain;
}

.bi-video-empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-on-dark-muted);
    text-align: center;
    padding: 40px;
    /* Markali "bekleme sahnesi" — boslugu doldurur, kasitli/karsilayici gorunur */
    background:
        radial-gradient(circle at 50% 42%, rgba(102, 126, 234, 0.10) 0%, transparent 55%);
}
/* Ikon markali bir rozet icinde — sonuk 0.3 opaklik yerine belirgin, marka renginde.
   DIKKAT: yalniz DOGRUDAN cocuk (>): aksi halde icerideki buton/davet-karti ikonlari da
   104px dev rozete donusuyordu (davet kartindaki WhatsApp ikonu kocaman cikti). */
.bi-video-empty > i {
    font-size: 42px; margin-bottom: 22px;
    width: 104px; height: 104px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(102, 126, 234, 0.14);
    color: var(--brand-accent);
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.28), 0 8px 30px rgba(102, 126, 234, 0.15);
}
.bi-video-empty h3 { font-size: 22px; color: var(--text-on-dark); margin-bottom: 8px; font-weight: 700; letter-spacing: -0.01em; }
.bi-video-empty p { font-size: 14px; max-width: 460px; line-height: 1.6; }

.bi-video-empty .quick-actions {
    display: flex; gap: 12px; margin-top: 24px;
}

/* Alt kontrol cubugu */
.bi-controls {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid var(--border-dark);
}
/* flex-wrap: dar ekranda .left/.right ikinci satira dussun (aksi halde .right=KVKK/Kosullar linkleri
   .bi-stage overflow:hidden ile ekran disinda kirpilir; masaustunde tek satira sigar -> kural inert). */
.bi-controls-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
.bi-controls .left, .bi-controls .right { display: flex; gap: 8px; }
.bi-controls .left { align-items: center; }

/* SEEK / ilerleme cubugu (YouTube stili) — host/mod tikla-surukle ile geri-ileri sarar; misafir salt-goster */
.bi-seek-row { display: flex; align-items: center; gap: 10px; }
.bi-time { font-size: 12px; color: var(--text-on-dark-muted); font-variant-numeric: tabular-nums; min-width: 40px; }
#bi-time-dur { text-align: right; }
.bi-seek { position: relative; flex: 1; height: 16px; cursor: pointer; touch-action: none; }
.bi-seek-track { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); height: 4px; background: rgba(255,255,255,0.18); border-radius: 2px; overflow: hidden; transition: height 0.12s; }
.bi-seek-buffered, .bi-seek-played { position: absolute; top: 0; left: 0; height: 100%; border-radius: 2px; }
.bi-seek-buffered { background: rgba(255,255,255,0.30); width: 0; }
.bi-seek-played { background: var(--brand-primary, #667EEA); width: 0; }
.bi-seek-handle { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 50%; background: var(--brand-primary, #667EEA); opacity: 0; transition: opacity 0.15s; box-shadow: 0 0 0 4px rgba(102,126,234,0.22); pointer-events: none; }
.bi-seek:hover .bi-seek-track { height: 6px; }
.bi-seek:hover .bi-seek-handle { opacity: 1; }
/* Misafir: seek cubugunu SURUKLEYEMEZ (salt-goster); handle gizli; oynat/duraklat butonu gizli.
   JS de (canControlContent) gizler; bu CSS katmani savunma derinligi (JS gecikse/bozulsa bile misafir kontrol edemez). */
#bi-room.bi-guest .bi-seek { pointer-events: none; cursor: default; }
#bi-room.bi-guest .bi-seek:hover .bi-seek-track { height: 4px; }
#bi-room.bi-guest .bi-seek-handle { display: none; }
#bi-room.bi-guest #bi-playpause-btn { display: none !important; }
/* Ikon-odakli (YouTube stili) dugmeler: tam-ekran + ses — yalniz ikon, kompakt */
.bi-control-btn.bi-icon-only { padding: 8px 11px; }
.bi-control-btn.bi-icon-only svg { display: block; }
.bi-control-btn.bi-icon-only i { font-size: 17px; }
/* Video ses seviyesi kontrolu (herkese acik) */
.bi-vol-ctrl { display: inline-flex; align-items: center; gap: 6px; }
.bi-vol-ctrl #bi-vol-mute { padding: 8px 10px; }
.bi-vol-ctrl #bi-vol-slider { width: 84px; height: 4px; cursor: pointer; accent-color: var(--brand-primary, #667EEA); vertical-align: middle; }
/* MOBİL: uygulama-içi ses kaydırıcısını GİZLE. iOS setVolume()'u yok sayar (kaydırıcı işe yaramaz);
   YouTube gibi ses seviyesini TELEFONUN donanım ses tuşları kontrol etsin. Yalnız sustur/aç butonu kalır. */
@media(max-width: 600px){ .bi-vol-ctrl #bi-vol-slider { display: none !important; } }
.bi-control-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    color: var(--text-on-dark);
    font-size: 13px; font-weight: 600;
    white-space: nowrap;      /* yazi alt alta bolunmesin (Paneli Daralt / Sekme Paylas tek satirda) */
    flex-shrink: 0;           /* dar alanda butonlar sikismasin -> tek satir korunur */
    transition: all 0.2s;
}
.bi-control-btn:hover { background: rgba(255,255,255,0.12); }
.bi-control-btn.active {
    background: var(--orange-primary);
    color: white;
}
.bi-control-btn.danger:hover {
    background: var(--red); color: white;
}

/* Davet modal */
.bi-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.bi-modal-overlay.show { display: flex; }
.bi-modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 560px; width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    color: var(--text-primary);
}
.bi-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}
.bi-modal-header h3 {
    font-size: 18px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.bi-modal-header h3 i { color: var(--orange-primary); }
.bi-modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}
.bi-modal-close:hover { background: var(--bg-cream); color: var(--text-primary); }
.bi-modal-body { padding: 20px 24px; }
.bi-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex; justify-content: flex-end; gap: 10px;
}

/* Davet linki kart */
.bi-invite-list {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 16px;
}
.bi-invite-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.bi-invite-link {
    flex: 1;
    background: var(--bg-card);
    padding: 8px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border: 1px solid var(--border-light);
}
.bi-invite-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.bi-invite-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.bi-invite-status.aktif { background: #d1fae5; color: #065f46; }
.bi-invite-status.kullanildi { background: #fee2e2; color: #991b1b; }
.bi-invite-status.gecmis { background: #f3f4f6; color: #6b7280; }

/* Bekleyen modal (misafir icin) */
.bi-waiting {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: 40px 20px;
}
.bi-waiting .spinner {
    width: 56px; height: 56px;
    border: 4px solid var(--border-light);
    border-top-color: var(--orange-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bi-waiting h2 { font-size: 22px; margin-bottom: 8px; }
.bi-waiting p { color: var(--text-secondary); font-size: 15px; max-width: 360px; }

/* Toast */
.bi-toast-wrap {
    position: fixed; top: 20px; right: 20px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 9999; pointer-events: none;
}
.bi-toast {
    pointer-events: auto;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    display: flex; align-items: center; gap: 10px;
    border-left: 4px solid var(--orange-primary);
    min-width: 240px; max-width: 360px;
    animation: slideIn 0.3s ease;
}
.bi-toast.success { border-left-color: var(--green); }
.bi-toast.error { border-left-color: var(--red); }
.bi-toast.warning { border-left-color: var(--yellow); }
.bi-toast i { font-size: 18px; flex-shrink: 0; }
.bi-toast.success i { color: var(--green); }
.bi-toast.error i { color: var(--red); }
.bi-toast.warning i { color: var(--yellow); }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* Iframe uyari banner */
.bi-iframe-warning {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    color: white; padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    display: flex; align-items: center; gap: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.bi-iframe-warning i { color: var(--yellow); flex-shrink: 0; font-size: 18px; }
.bi-iframe-warning .text { flex: 1; }
.bi-iframe-warning .text strong { display: block; margin-bottom: 2px; }
.bi-iframe-warning button {
    color: var(--orange-light); text-decoration: none;
    font-weight: 600; font-size: 13px;
    background: none; padding: 0;
}

/* Hidden audio */
.bi-hidden-audio { display: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .bi-hero-content { grid-template-columns: 1fr; gap: 32px; }
    .bi-hero-text { text-align: center; }
    .bi-hero-text p, .bi-hero-features { margin-left: auto; margin-right: auto; }
    .bi-hero-features { align-items: center; }
    /* Kullanıcı geri bildirimi: giriş/kayıt bölümü (kartın içinde) mobilde AŞAĞI KAYDIRMADAN
       görülmeli. Kart (ve içindeki bi-card-auth) tanıtım metninden ÖNCE gösterilir. */
    .bi-hero-text { order: 2; }
    .bi-card { order: 1; }
}
@media (max-width: 768px) {
    .bi-room-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    .bi-side {
        order: 2;
        max-height: 40vh;
        border-right: none;
        border-top: 1px solid var(--border-dark);
    }
    .bi-room-header { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
    .bi-room-header .room-info { padding-left: 0; border-left: none; width: 100%; }
    .bi-controls { flex-wrap: wrap; gap: 8px; }
    .bi-card { padding: 24px; }
    .bi-hero { padding: 30px 16px; }
    .bi-topbar { padding: 14px 18px; }
}

/* ===== MOBİL SEKME ÇUBUĞU + URL ŞERİDİ (baz stiller; yalnız app-shell'de görünür) ===== */
.bi-mtab-bar {
    display: none;              /* masaüstünde asla; body.bi-mshell açar */
    background: rgba(255,255,255,0.03);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}
.bi-mtab {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 8px;
    font-size: 13px; font-weight: 600;
    color: var(--text-on-dark-muted);
    background: transparent; border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    font-family: var(--font-family);
}
.bi-mtab.active { color: var(--text-on-dark); border-bottom-color: var(--brand-primary, #667EEA); }
.bi-mtab-mic { flex: 0 0 64px; font-size: 15px; }
.bi-mtab-mic.acik { color: var(--green); }
.bi-mtab-mic:not(.acik) { color: var(--red); }
.bi-murl-toggle {
    display: none;              /* masaüstünde asla; body.bi-mshell + host/mod açar */
    align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 9px 12px;
    font-size: 12.5px; font-weight: 600;
    color: var(--text-on-dark-muted);
    background: rgba(255,255,255,0.03); border: 0; border-bottom: 1px solid var(--border-dark);
    cursor: pointer; font-family: var(--font-family);
}
.bi-murl-toggle .chev { transition: transform .2s; font-size: 10px; }
body.bi-urlbar-open .bi-murl-toggle .chev { transform: rotate(180deg); }
.bi-pseudo-fs-el #bi-murl-toggle { display: none !important; } /* tam ekranda asla */

/* ============ MOBİL (≤640px) — kompakt oda düzeni ============ */
@media (max-width: 640px) {
    /* Üst bar: kompakt + ikon-only butonlar (yazılar .lbl ile gizlenir) */
    .bi-room-header { padding: 8px 10px; gap: 6px; align-items: center; }
    .bi-room-header .brand span { display: none; }
    .bi-room-header .left { gap: 8px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
    .bi-room-header .room-info { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bi-room-header .right { gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
    .bi-room-header .bi-btn .lbl,
    .bi-room-header .bi-pill .lbl { display: none; }
    .bi-room-header .bi-btn.bi-btn-sm { padding: 9px 11px; }
    .bi-room-header .bi-pill { padding: 6px 8px; }

    /* Gövde: dikey akış (flex-column) -> sayfa kaydırılabilir; video üstte 16:9, sohbet altta.
       Eski rijit 56vh/1fr + overflow:hidden dar ekranda video-area'yı sıfıra sıkıştırıp (video
       oynamıyor gibi görünüyordu) chat input'u erişilemez yapıyordu (yorum kısmı "kapalı"). */
    .bi-room-body { display: flex; flex-direction: column; height: auto; overflow: visible; }
    .bi-stage { order: 1; min-height: 0; }
    .bi-video-area { aspect-ratio: 16 / 9; min-height: 190px; }   /* daima görünür + oynatılabilir yükseklik */
    .bi-side {
        order: 2; max-height: none; min-height: 0; overflow: visible;
        border-right: none; border-top: 1px solid var(--border-dark);
    }
    #bi-participants { max-height: 116px !important; }            /* inline 220px'i ez -> sohbete yer aç */
    .bi-chat-messages { max-height: 46vh; }                       /* sohbet kendi içinde kayar; input hep altta erişilir */

    /* URL bar: input tam satır; font 16px -> iOS odakta zoom yapmaz */
    .bi-url-bar { padding: 8px 10px; gap: 6px; flex-wrap: wrap; }
    .bi-url-bar input { flex: 1 1 100%; min-width: 0; font-size: 16px; }

    /* Kontrol çubuğu: ikon-only, sıkı; KVKK linkleri küçülür/alta sarar */
    .bi-controls { padding: 8px 10px; }
    .bi-controls-main .left { gap: 6px; flex-wrap: wrap; }
    .bi-controls-main .right { gap: 10px; font-size: 10px; }
    .bi-control-btn { padding: 9px 11px; font-size: 12px; }
    .bi-control-btn .lbl { display: none; }
    .bi-vol-ctrl #bi-vol-slider { display: none !important; } /* mobilde kaydırıcı yok -> donanım ses tuşları kontrol eder (YouTube gibi) */
    .bi-seek-row { gap: 6px; }
    .bi-time { min-width: 32px; font-size: 11px; }
    #bi-screen-hint { font-size: 10px; }

    /* Sohbet + emoji tepkileri */
    .bi-reactions { padding: 6px 8px 0; gap: 4px; }
    .bi-reactions button { width: 30px; height: 30px; font-size: 14px; }
    .bi-chat-input { padding: 8px; }
    .bi-chat-input input { font-size: 16px; }

    /* Modaller: tam genişlik + kaydırılabilir; input'lar 16px (iOS zoom önle) */
    .bi-modal { max-width: 95vw; width: 95vw; max-height: 90vh; }
    .bi-modal-body { max-height: 64vh; overflow-y: auto; }
    .bi-input, .bi-modal input, .bi-modal select, .bi-modal textarea { font-size: 16px; }
}

/* ============ MOBİL APP-SHELL (≤640px + body.bi-mshell — JS ekler) ============
   Sayfa scroll YOK: uygulama gibi sabit kabuk. Video hep üstte görünür; altında sekme çubuğu
   (Sohbet | Katılımcılar | Mik); içerik alanı kendi içinde kayar; mesaj kutusu HEP altta erişilir.
   Klavye açılınca JS visualViewport ile kabuk yüksekliğini günceller -> video kaybolmaz, input klavye üstünde.
   JS çalışmazsa yukarıdaki eski akış (fallback) devrede kalır. */
@media (max-width: 640px) {
    body.bi-mshell { overflow: hidden; }
    body.bi-mshell .bi-room-wrap { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
    body.bi-mshell .bi-room-header { flex-shrink: 0; }
    body.bi-mshell .bi-room-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; height: auto; overflow: hidden; }
    /* SIRA: video sahnesi -> sekme çubuğu -> içerik */
    body.bi-mshell .bi-stage { order: 1; flex: 0 0 auto; display: flex; flex-direction: column; min-height: 0; }
    body.bi-mshell .bi-mtab-bar { display: flex; order: 2; flex-shrink: 0; }
    body.bi-mshell .bi-side { order: 3; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; max-height: none; border-top: 0; }
    /* Video: 16:9, ekranın en fazla %42'si (sohbete yer kalsın) */
    body.bi-mshell .bi-video-area { aspect-ratio: 16 / 9; min-height: 170px; max-height: 42vh; width: 100%; }
    /* URL çubuğu: varsayılan gizli; şerit açar (yalnız host/mod — misafirde JS inline none) */
    body.bi-mshell .bi-url-bar { display: none; }
    body.bi-mshell.bi-urlbar-open .bi-url-bar { display: flex; }
    body.bi-mshell .bi-murl-toggle { display: flex; }
    body.bi-mshell .bi-controls { flex-shrink: 0; }
    /* SEKMELER: varsayılan = Sohbet (ses+katılımcı bölümleri gizli, sohbet tam alan) */
    body.bi-mshell .bi-side .bi-side-section { display: none; }
    body.bi-mshell .bi-chat { flex: 1 1 auto; min-height: 0; }
    body.bi-mshell .bi-chat-messages { max-height: none; }
    /* Katılımcılar sekmesi */
    body.bi-mshell.bi-mtab-people .bi-side .bi-side-section { display: block; }
    body.bi-mshell.bi-mtab-people .bi-chat { display: none; }
    body.bi-mshell.bi-mtab-people .bi-participants-section { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
    body.bi-mshell.bi-mtab-people #bi-participants { max-height: none !important; }
    /* Mobilde anlamsız/yer kaplayan öğeler: panel-daralt (panel yok), Sekme Paylaş + ipucu (mobil tarayıcı
       ekran paylaşamaz), çift "SOHBET" başlığı (sekme çubuğu zaten söylüyor) */
    body.bi-mshell #bi-collapse-btn,
    body.bi-mshell #bi-screen-btn,
    body.bi-mshell #bi-screen-hint,
    body.bi-mshell .bi-chat-header { display: none !important; }
    /* Android GERÇEK tam-ekranda da YouTube-tarzı dokun-göster kontrol bandı (sözde-fs ile aynı davranış) */
    .bi-stage:fullscreen .bi-controls {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
        background: linear-gradient(transparent, rgba(0,0,0,0.85)) !important;
        border: 0 !important;
        opacity: 0; pointer-events: none; transform: translateY(8px);
        transition: opacity .2s ease, transform .2s ease;
    }
    .bi-stage:fullscreen.bi-fs-ctrl-acik .bi-controls { opacity: 1; pointer-events: auto; transform: none; }
    /* YAZMA MODU (klavye açık — JS bi-kbd ekler): video küçülür, kontroller geçici gizlenir ->
       sohbet + mesaj kutusu klavye üstünde TAM sığar (içerik taşması/kayması olmaz). */
    body.bi-mshell.bi-kbd .bi-video-area { aspect-ratio: auto !important; height: 120px !important; min-height: 120px !important; max-height: 120px !important; }
    body.bi-mshell.bi-kbd .bi-controls,
    body.bi-mshell.bi-kbd .bi-murl-toggle,
    body.bi-mshell.bi-kbd .bi-mtab-bar { display: none !important; }

    /* ---- İÇERİK YOKKEN (boş durum) MOBİL DÜZENİ ----
       Boş-durum + davet kartı 16:9 kutuya sığmayıp KIRPILIYORDU (başlık şerit altında, WhatsApp butonu yarım).
       İçerik yokken alan içeriğe göre esner; metin/ikon kompaktlaşır; işlevsiz kontrol çubuğu gizlenir. */
    body.bi-mshell .bi-video-area:has(.bi-video-empty) { aspect-ratio: auto; height: auto; min-height: 0; max-height: none; }
    body.bi-mshell .bi-video-empty { position: static; padding: 16px 14px 20px; }
    body.bi-mshell .bi-video-empty > i { width: 54px; height: 54px; font-size: 22px; margin-bottom: 10px; }
    body.bi-mshell .bi-video-empty h3 { font-size: 16px; margin-bottom: 2px; }
    body.bi-mshell .bi-video-empty p { display: none; } /* "Ekran Paylaş" mobilde geçersiz; metin kalabalık */
    body.bi-mshell .bi-davet-karti { margin-top: 12px; padding: 14px; max-width: 100%; }
    body.bi-mshell .bi-davet-karti .dk-alt { font-size: 11.5px; margin-bottom: 10px; }
    body.bi-mshell .bi-davet-karti .dk-butonlar { flex-direction: column; }
    body.bi-mshell .bi-davet-karti .dk-butonlar .bi-btn { width: 100%; justify-content: center; }
    body.bi-mshell .bi-stage:has(.bi-video-empty) .bi-controls { display: none; } /* video yokken tam-ekran/ses anlamsız */
    /* Üst bar: satır1 = oda bilgisi, satır2 = ikon butonları tam genişliğe eşit dağılı (derli toplu iki satır) */
    body.bi-mshell .bi-room-header { flex-wrap: wrap; }
    body.bi-mshell .bi-room-header .right { flex-basis: 100%; width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 4px; }
    body.bi-mshell .bi-room-header .right .bi-btn.bi-btn-sm { padding: 8px 9px; }
    body.bi-mshell .bi-room-header .right .bi-pill { padding: 6px 7px; }
    /* iOS lastik-kaydırma taşmasını kes: kabuk sabitlenir (alt kenarda kırpık şerit görünmesin) */
    body.bi-mshell { position: fixed; inset: 0; width: 100%; overscroll-behavior: none; }
}

/* ===== Sistem mesajlari (katildi/ayrildi) ===== */
.bi-chat-system {
    text-align: center;
    font-size: 12px;
    color: var(--text-on-dark-muted);
    padding: 5px 10px;
    margin: 3px 0;
    opacity: 0.85;
}
.bi-chat-system i { margin-right: 5px; opacity: 0.7; }

/* ===== Emoji tepki cubugu ===== */
.bi-reactions {
    display: flex;
    gap: 5px;
    padding: 8px 12px 0;
    flex-wrap: wrap;
}
.bi-reactions button {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-full);
    font-size: 16px;
    line-height: 1;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
}
.bi-reactions button:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-2px) scale(1.1);
}

/* ===== Randevulu izleme (film gecesi geri sayım şeridi) ===== */
.bi-randevu-serit {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(102,126,234,0.16), rgba(118,75,162,0.16));
    border-bottom: 1px solid rgba(102,126,234,0.25);
    font-size: 13px; color: var(--text-on-dark);
}
.bi-randevu-serit > i { color: var(--brand-accent, #A78BFA); font-size: 15px; }
.bi-randevu-serit .rv-metin { font-weight: 600; }
.bi-randevu-serit .rv-sayac {
    margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums;
    color: var(--brand-accent, #A78BFA); background: rgba(0,0,0,0.22);
    padding: 3px 10px; border-radius: 999px; font-size: 13px;
}
.bi-randevu-serit .rv-ics, .bi-randevu-serit .rv-duzenle {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-on-dark); width: 30px; height: 28px; border-radius: 8px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.bi-randevu-serit .rv-ics:hover, .bi-randevu-serit .rv-duzenle:hover { background: rgba(255,255,255,0.16); }
.bi-randevu-serit .rv-sayac + .rv-ics { margin-left: 4px; }
input[type="datetime-local"].bi-input {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
    color: var(--text-on-dark); padding: 10px 12px; border-radius: 10px; font-size: 14px;
    color-scheme: dark; /* tarayıcının tarih seçici paletini koyu tema yapar */
}
@media (max-width: 640px) { .bi-randevu-serit { font-size: 12px; padding: 7px 12px; } }

/* ===== Web modu bilgi çubuğu ===== */
.bi-web-bar {
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 5;
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(15, 15, 30, 0.86);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 11.5px; color: var(--text-on-dark-muted);
    pointer-events: none;
}
.bi-web-bar i { color: var(--brand-accent, #A78BFA); }
.bi-web-bar .wb-host { color: var(--text-on-dark); font-weight: 700; }
.bi-web-bar .wb-not { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .bi-web-bar .wb-not { display: none; } } /* dar ekranda yalnız alan adı */

/* ===== Video bitti paneli (YT bitiş-ekranı önerilerini örter — yeni sekmeye kaçışı önler) ===== */
.bi-bitti-panel {
    position: absolute; inset: 0;
    z-index: 6;                          /* iframe üstü; oynat-overlay(7) altı */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px;
    background: rgba(10, 10, 20, 0.94);
    text-align: center; padding: 24px;
}
.bi-bitti-panel .bp-ic {
    width: 74px; height: 74px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    background: rgba(102, 126, 234, 0.14);
    color: var(--brand-accent, #A78BFA); font-size: 30px;
    box-shadow: inset 0 0 0 1px rgba(102,126,234,0.28);
    margin-bottom: 4px;
}
.bi-bitti-panel .bp-baslik { font-size: 21px; font-weight: 700; color: var(--text-on-dark); }
.bi-bitti-panel .bp-alt { font-size: 13.5px; color: var(--text-on-dark-muted); max-width: 420px; line-height: 1.55; }
.bi-bitti-panel .bp-butonlar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ===== .SRT altyazı overlay + kontrolleri ===== */
.bi-cc-overlay {
    position: absolute;
    left: 50%; bottom: 7%;
    transform: translateX(-50%);
    z-index: 5;
    max-width: 88%;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 8px;
    color: #fff;
    font-size: clamp(14px, 2.6vw, 22px);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    white-space: pre-line;         /* .srt satır sonları korunur */
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.bi-control-btn.cc-aktif { color: var(--brand-accent, #A78BFA); border-color: rgba(167,139,250,0.5); }
#bi-cc-offset { display: inline-flex; align-items: center; }
#bi-cc-offset .bi-control-btn { font-weight: 800; padding: 7px 10px; }
/* Mobil sözde tam-ekran sadeleştirmesi: CC kontrolleri gizli (yalnız video+ses+tam-ekran kuralı); altyazı OVERLAY görünür kalır */
/* Tam ekranda .srt yükleme + zaman-kaydırma gizli; ama altyazı AÇ/KAPA (#bi-cc-btn) GÖRÜNÜR kalsın
   (izleyen kişi tam ekranda da altyazıyı kapatabilsin — kullanıcı isteği) */
.bi-pseudo-fs-el #bi-cc-yukle, .bi-pseudo-fs-el #bi-cc-offset { display: none !important; }
/* Mobil üst bar dar: facepile gizli (katılımcı sayısı zaten sekme çubuğunda) */
@media (max-width: 640px) { .bi-facepile { display: none; } }

/* ===== Güven bloğu + rehber footer (landing) ===== */
.bi-guven-blok { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bi-guven-blok .g {
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #6ee7b7;
    font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: 999px;
}
.bi-rehber-footer {
    max-width: 1100px; margin: 0 auto; padding: 18px 22px 34px;
    font-size: 12.5px; color: var(--text-on-dark-muted);
    display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
}
.bi-rehber-footer strong { color: var(--text-on-dark); }
.bi-rehber-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.bi-rehber-footer a:hover { color: var(--brand-accent, #A78BFA); }

/* ===== Tam ekran baloncuk sohbet ===== */
.bi-fs-bubbles {
    position: absolute;
    right: 14px; bottom: 18px;          /* SAĞ ALT — tam ekranda izleyen yeni mesajları burada 5sn görür */
    z-index: 6;
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    max-width: min(64vw, 380px);
    pointer-events: none;
}
.bi-fs-bubble {
    background: rgba(15, 15, 30, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 7px 12px;
    color: var(--text-on-dark);
    font-size: 13px; line-height: 1.4;
    word-wrap: break-word;
    animation: biBubbleGir .25s ease, biBubbleCik .4s ease 4.6s forwards;
}
.bi-fs-bubble strong { color: var(--brand-accent, #A78BFA); margin-right: 4px; }
@keyframes biBubbleGir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes biBubbleCik { to { opacity: 0; } }

/* ===== Kumanda çipi ("Kumanda: Eren") ===== */
.bi-kumanda-cipi {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    background: rgba(102,126,234,0.12);
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: var(--radius-full);
    color: var(--text-on-dark);
    font-size: 11.5px; font-weight: 600;
    white-space: nowrap;
}
.bi-kumanda-cipi i { color: var(--brand-accent, #A78BFA); font-size: 11px; }
@media (max-width: 640px) { .bi-kumanda-cipi { display: none !important; } } /* mobilde yer dar; rozet zaten bilgilendiriyor */

/* ===== Boş oda davet kartı ===== */
.bi-davet-karti {
    margin-top: 26px;
    padding: 20px 26px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 440px;
}
.bi-davet-karti .dk-baslik { font-size: 15px; font-weight: 700; color: var(--text-on-dark); margin-bottom: 6px; }
.bi-davet-karti .dk-baslik i { color: var(--brand-accent, #A78BFA); margin-right: 6px; }
.bi-davet-karti .dk-alt { font-size: 12.5px; color: var(--text-on-dark-muted); line-height: 1.5; margin-bottom: 14px; }
.bi-davet-karti .dk-butonlar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bi-davet-karti .dk-wa { background: #25D366; border-color: #25D366; }   /* WhatsApp yeşili */
.bi-davet-karti .dk-wa:hover { background: #1ebe5b; }

/* ===== Oynatma hızı seçici (kontrol çubuğu) ===== */
.bi-rate-sel {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border-dark);
    color: var(--text-on-dark);
    border-radius: var(--radius-md);
    padding: 7px 6px;
    font-size: 12px; font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
}
.bi-rate-sel:focus { outline: none; border-color: var(--brand-primary, #667EEA); }
.bi-rate-sel option { background: #14142a; color: #fff; }

/* ===== FACEPILE (üst bar avatar dizilimi) + konuşma halkası ===== */
.bi-facepile { display: flex; align-items: center; }
.bi-fp-av {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    border: 2px solid var(--bg-darker);
    margin-left: -8px;
    transition: box-shadow .15s ease;
}
.bi-fp-av:first-child { margin-left: 0; }
.bi-fp-av.bi-fp-artik { background: rgba(255,255,255,0.14); font-size: 10px; }
.bi-fp-av.konusuyor {
    box-shadow: 0 0 0 2px var(--brand-primary, #667EEA), 0 0 10px rgba(102,126,234,0.55);
    animation: biKonusmaNabiz 1.1s ease-in-out infinite;
}
@keyframes biKonusmaNabiz {
    0%,100% { box-shadow: 0 0 0 2px var(--brand-primary, #667EEA), 0 0 8px rgba(102,126,234,0.4); }
    50%     { box-shadow: 0 0 0 3px var(--brand-primary, #667EEA), 0 0 14px rgba(102,126,234,0.75); }
}
/* Auto-duck ayarı (Sesli Sohbet bölümünde) */
.bi-duck-ayar {
    display: flex; align-items: center; gap: 7px;
    margin-top: 9px;
    font-size: 11.5px; color: var(--text-on-dark-muted);
    cursor: pointer; user-select: none;
}
.bi-duck-ayar input { accent-color: var(--brand-primary, #667EEA); }

/* ===== Senkron farkındalık rozeti ("Eren durdurdu") ===== */
.bi-sync-rozet {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 6;
    display: inline-flex; align-items: center;
    padding: 7px 14px;
    background: rgba(15, 15, 30, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    color: var(--text-on-dark);
    font-size: 13px; font-weight: 600;
    pointer-events: none;
    animation: biRozetGirCik 2.2s ease forwards;
}
@keyframes biRozetGirCik {
    0%   { opacity: 0; transform: translateY(-8px); }
    10%  { opacity: 1; transform: translateY(0); }
    85%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== Ucusan emoji tepkileri ===== */
.bi-video-area { position: relative; }
.bi-float-emoji {
    position: absolute;
    bottom: 16px;
    font-size: 34px;
    pointer-events: none;
    animation: biFloatUp 2.5s ease-out forwards;
    z-index: 5;
    will-change: transform, opacity;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@keyframes biFloatUp {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    15%  { opacity: 1; transform: translateY(-24px) scale(1.15); }
    100% { transform: translateY(-230px) scale(1); opacity: 0; }
}

/* ===== Sessiz autoplay -> sesi ac overlay ===== */
.bi-unmute-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--orange-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    animation: biPulse 1.8s ease-in-out infinite;
}
.bi-unmute-btn:hover { background: var(--orange-dark); animation: none; }
@keyframes biPulse {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.06); }
}

/* ===== MOBİL "OYNAT" OVERLAY — mobil tarayıcı autoplay'i engellerse video üstünde büyük dokunma hedefi ===== */
.bi-play-overlay {
    position: absolute; inset: 0; z-index: 7;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.30);
    border: 0; padding: 0; margin: 0; width: 100%; height: 100%;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bi-play-overlay .ic {
    width: 84px; height: 84px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    background: var(--orange-primary); color: #fff;
    font-size: 30px; padding-left: 5px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.45);
    transition: transform .14s ease, background .14s ease;
}
.bi-play-overlay:hover .ic { background: var(--orange-dark); }
.bi-play-overlay:active .ic { transform: scale(0.92); }
.bi-play-overlay { flex-direction: column; gap: 14px; }
.bi-play-overlay .op-label {
    color: #fff; font-size: 14px; font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    padding: 0 20px; text-align: center;
}
.bi-play-overlay.acil .ic { animation: biPulse 1.4s ease-in-out infinite; } /* oda oynuyor -> nabız */

/* ===== SÖZDE TAM-EKRAN — iOS Safari <div>/<iframe> için gerçek Fullscreen API'yi desteklemez;
   gerçek API yoksa/reddedilirse bu sınıf sahneyi CSS ile ekranı kaplayacak şekilde büyütür (her cihazda çalışır) ===== */
.bi-pseudo-fs-el {
    position: fixed !important;
    /* SADECE dört kenarı 0'a sabitle (width/height/vh/dvh VERME): element viewport'a edge-to-edge stretch olur.
       Eskiden inset:0 + height:100dvh ÇAKIŞIYORDU (dvh, bottom:0'ı ezip elemanı kısaltıyordu → üstte/altta boşluk,
       site header'ı görünüyordu). Dört-kenar-0 ile mobilde (iOS toolbar dahil) tam kaplar. */
    top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    z-index: 99999 !important;        /* header(10)/sidebar/modal(1000)/toast(9999) üstünde; toast/modal override'ları (aşağıda) bunun ÜstÜnde kalır */
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    background: #000 !important;
}
/* Sözde-fs'te video-area 16:9 kısıtını bırak -> tüm alanı doldur (büyük video) */
.bi-pseudo-fs-el .bi-video-area { aspect-ratio: auto !important; min-height: 0 !important; height: auto !important; }
body.bi-pseudo-fs { overflow: hidden !important; }
/* Gerçek :fullscreen ile EŞDEĞER reflow: URL çubuğunu gizle + grid'i 2 satıra indir (video tüm alanı alsın,
   kontrol çubuğu altta). Yoksa host/mod'da URL çubuğu üstte yer kaplayıp videoyu küçültüyordu. */
.bi-pseudo-fs-el { grid-template-rows: 1fr auto !important; }
.bi-pseudo-fs-el .bi-url-bar { display: none !important; }
.bi-pseudo-fs-el .bi-video-area { grid-row: 1 !important; }
.bi-pseudo-fs-el .bi-controls { grid-row: 2 !important; }
.bi-pseudo-fs-el iframe, .bi-pseudo-fs-el #bi-yt-player, .bi-pseudo-fs-el video { width: 100% !important; height: 100% !important; }
/* Sözde-fs sahne z-index:99999 -> toast (9999) ve modallar (1000) ARKASINDA kalıp görünmez oluyordu.
   Yalnız sözde-fs aktifken bunları sahnenin ÜSTÜNE çıkar (normal/gerçek-fs modu etkilenmez). */
body.bi-pseudo-fs .bi-toast-wrap { z-index: 100001 !important; }
body.bi-pseudo-fs .bi-modal-overlay { z-index: 100000 !important; }
/* MOBİL PORTRE sözde-fs: sahneyi 90° döndür -> 16:9 video portre ekranı da DOLDURUR (iOS orientation.lock yok).
   width=ekran yüksekliği, height=ekran genişliği; sol-üst köşeden döndürülünce tam ekranı kaplar. Kullanıcı telefonu
   yana çevirince video dik/tam görünür. (Telefon zaten yataysa .bi-fs-rotate eklenmez, native yatay dolar.) */
.bi-pseudo-fs-el.bi-fs-rotate {
    top: 0 !important;
    left: 100vw !important;
    right: auto !important;
    bottom: auto !important;
    width: 100vh !important;   /* döndürülünce genişlik = ekran yüksekliği */
    height: 100vw !important;  /* döndürülünce yükseklik = ekran genişliği */
    transform-origin: 0 0 !important;
    transform: rotate(90deg) !important;
}
/* Döndürülmüş sözde-fs'te seek çubuğu ekranda dikey -> parmakla sürüklemesi biSeekFraction'da clientY ile ele alınır. */

/* MOBİL TAM EKRAN = YouTube uygulaması gibi:
   - Video TÜM ekranı kaplar; kontroller varsayılan GİZLİ (saf video).
   - Ekrana TEK DOKUNUŞ -> altta kontrol bandı belirir: durdur/başlat + süre/ilerleme çubuğu + ses + tam-ekran
     (aynı butonla küçültme). ~3sn dokunulmazsa band kaybolur (JS bi-fs-ctrl-acik sınıfını yönetir).
   - Gizli kalanlar: Paneli Daralt, hız seçici, Sekme Paylaş, ipucu, KVKK linkleri. */
.bi-pseudo-fs-el #bi-collapse-btn,
.bi-pseudo-fs-el #bi-rate-sel,
.bi-pseudo-fs-el #bi-screen-btn,
.bi-pseudo-fs-el #bi-screen-hint,
.bi-pseudo-fs-el .bi-controls-main .right { display: none !important; }
/* Kontrol bandı: video ÜSTÜNE overlay (alt kenar, degrade); dokun-göster ile açılır */
.bi-pseudo-fs-el .bi-controls {
    position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    z-index: 8;
    padding: 10px 14px 12px !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.85)) !important;
    border: 0 !important;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}
.bi-pseudo-fs-el.bi-fs-ctrl-acik .bi-controls { opacity: 1; pointer-events: auto; transform: none; }
.bi-pseudo-fs-el .bi-controls-main { justify-content: flex-start !important; gap: 8px; }
/* Dokunuş yakalayıcı: iframe'in üstünde görünmez katman (host'un dokunuşu iframe'e gitmesin; band aç/kapa) */
.bi-fs-tap { position: absolute; inset: 0; z-index: 4; background: transparent; }

/* ============ OYUNLAR ============ */
.bi-game-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bi-game-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 18px 10px; border-radius: var(--radius-lg);
    background: var(--bg-cream); border: 1px solid var(--border-light);
    color: var(--text-primary); cursor: pointer; transition: all .18s; text-align: center;
}
.bi-game-card i { font-size: 26px; color: var(--orange-primary); }
.bi-game-card span { font-weight: 600; font-size: 14px; }
.bi-game-card small { color: var(--text-muted); font-size: 11px; }
.bi-game-card:not(.disabled):hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--orange-primary); }
.bi-game-card.disabled { opacity: .5; cursor: not-allowed; }
.bi-game-card.disabled i { color: var(--text-muted); }

.bi-xox { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bi-xox-players { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.bi-xox-players .p.x { color: var(--purple-primary); }
.bi-xox-players .p.o { color: var(--orange-primary); }
.bi-xox-status { font-size: 15px; color: var(--text-secondary); min-height: 22px; }
.bi-xox-board { display: grid; grid-template-columns: repeat(3, 78px); grid-template-rows: repeat(3, 78px); gap: 8px; }
.bi-xox-cell {
    width: 78px; height: 78px; border-radius: var(--radius-md);
    background: var(--bg-cream); border: 2px solid var(--border-light);
    font-size: 40px; font-weight: 700; line-height: 1; cursor: pointer; transition: all .12s;
    display: flex; align-items: center; justify-content: center;
}
.bi-xox-cell:not(:disabled):hover { border-color: var(--orange-primary); background: var(--orange-bg); }
.bi-xox-cell:disabled { cursor: default; }
.bi-xox-cell.x { color: var(--purple-primary); }
.bi-xox-cell.o { color: var(--orange-primary); }
.bi-xox-cell.win { background: var(--green); color: #fff; border-color: var(--green); }
.bi-xox-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Taş-Kağıt-Makas */
.bi-tkm, .bi-bilgi { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bi-tkm-choices { display: flex; gap: 12px; }
.bi-tkm-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 92px; padding: 14px 8px; border-radius: var(--radius-lg);
    background: var(--bg-cream); border: 2px solid var(--border-light);
    color: var(--text-primary); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s;
}
.bi-tkm-btn .e { font-size: 34px; line-height: 1; }
.bi-tkm-btn:hover { transform: translateY(-3px); border-color: var(--orange-primary); }
.bi-tkm-btn.sel { border-color: var(--orange-primary); background: var(--orange-bg); box-shadow: var(--shadow-md); }
.bi-tkm-results { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 320px; }
.bi-tkm-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--bg-cream); font-weight: 500; }
.bi-tkm-row .e { font-size: 22px; }
.bi-tkm-row.win { background: #ecfdf5; color: #065f46; font-weight: 700; }

/* Bilgi Yarışması */
.bi-bilgi { width: 100%; max-width: 460px; }
.bi-bilgi-q { font-size: 16px; line-height: 1.45; text-align: center; color: var(--text-primary); }
.bi-bilgi-opts { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.bi-bilgi-opt {
    width: 100%; text-align: left; padding: 13px 16px; border-radius: var(--radius-md);
    background: var(--bg-cream); border: 2px solid var(--border-light);
    color: var(--text-primary); font-size: 15px; font-weight: 500; cursor: pointer; transition: all .15s;
}
button.bi-bilgi-opt:not(:disabled):hover { border-color: var(--orange-primary); background: var(--orange-bg); }
.bi-bilgi-opt.sel { border-color: var(--orange-primary); background: var(--orange-bg); }
.bi-bilgi-opt.dogru { border-color: var(--green); background: #ecfdf5; color: #065f46; font-weight: 700; }
.bi-bilgi-opt.yanlis { border-color: var(--red); background: #fef2f2; color: #991b1b; }

/* Satranç */
.bi-chess { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bi-chess-board {
    display: grid; grid-template-columns: repeat(8, 44px); grid-template-rows: repeat(8, 44px);
    border: 3px solid #8a5a3c; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-md);
}
.bi-sq {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 30px; line-height: 1; padding: 0; border: none; cursor: default; position: relative;
    transition: background .1s;
}
.bi-sq.light { background: #f0d9b5; }
.bi-sq.dark  { background: #b58863; }
.bi-sq:not(:disabled) { cursor: pointer; }
.bi-sq.sel { background: #f6eb72 !important; box-shadow: inset 0 0 0 3px #e0a800; }
.bi-sq.last { background: #cdd26a; }
.bi-sq.dark.last { background: #aaa23a; }
.bi-sq.target::after {
    content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%;
    background: rgba(0,0,0,0.28);
}
.bi-sq.target:not(:empty)::after { width: 82%; height: 82%; background: transparent; border: 3px solid rgba(0,0,0,0.28); border-radius: 50%; }
@media (max-width: 520px) {
    .bi-chess-board { grid-template-columns: repeat(8, 38px); grid-template-rows: repeat(8, 38px); }
    .bi-sq { width: 38px; height: 38px; font-size: 26px; }
}

/* Satranç taş renkleri: dolu glyph + 4-yönlü kontur → her iki kare renginde net ayrım */
.bi-sq.p-w {
    color: #fafafa;
    text-shadow: -1.2px -1.2px 0 #2b2b2b, 1.2px -1.2px 0 #2b2b2b, -1.2px 1.2px 0 #2b2b2b, 1.2px 1.2px 0 #2b2b2b, 0 2px 3px rgba(0,0,0,0.35);
}
.bi-sq.p-b {
    color: #171717;
    text-shadow: -1.2px -1.2px 0 rgba(255,255,255,0.6), 1.2px -1.2px 0 rgba(255,255,255,0.6), -1.2px 1.2px 0 rgba(255,255,255,0.6), 1.2px 1.2px 0 rgba(255,255,255,0.6);
}

/* Satranç saati (süreli mod) */
.bi-chess-clocks { display: flex; gap: 16px; }
.bi-clock {
    font-family: 'SF Mono', Monaco, monospace; font-size: 18px; font-weight: 700;
    padding: 6px 14px; border-radius: var(--radius-md); background: var(--bg-cream);
    color: var(--text-secondary); border: 2px solid transparent; min-width: 88px; text-align: center;
}
.bi-clock.aktif { border-color: var(--orange-primary); color: var(--text-primary); background: var(--orange-bg); }
.bi-clock.dusuk { color: var(--red); }
.bi-clock.aktif.dusuk { border-color: var(--red); background: #fef2f2; }

/* Şah: kral karesi kırmızı vurgu + yanıp sönme */
.bi-sq.check { background: #ff6b6b !important; animation: biSahYanip 0.9s ease-in-out infinite; }
@keyframes biSahYanip { 0%,100% { box-shadow: inset 0 0 0 3px #d90429; } 50% { box-shadow: inset 0 0 0 5px #ff0033; } }

/* Kaybeden tahtası: soluk + hafif sarsıntı */
.bi-chess-board.kayip { filter: grayscale(0.85) brightness(0.92); animation: biKayipSars 0.5s ease 2; }
@keyframes biKayipSars { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Konfeti (kazanan kutlaması) */
.bi-konfeti { position: fixed; top: -14px; width: 10px; height: 14px; z-index: 99999; opacity: .95; pointer-events: none; border-radius: 2px; animation-name: biKonfetiDus; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes biKonfetiDus { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(104vh) rotate(720deg); opacity: .2; } }

/* ===== DÖRT TAŞ (Dörtlü Sıra) ===== */
.bi-dort { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bi-dort-drops, .bi-dort-board { display: grid; grid-template-columns: repeat(7, 44px); gap: 6px; }
.bi-dort-drop { height: 26px; border: none; background: transparent; color: var(--orange-primary); font-size: 18px; cursor: pointer; border-radius: var(--radius-sm); }
.bi-dort-drop:not(:disabled):hover { background: var(--orange-bg); }
.bi-dort-drop:disabled { color: var(--text-muted); opacity: .35; cursor: default; }
.bi-dort-board { background: #1e3a8a; padding: 8px; border-radius: var(--radius-lg); }
.bi-dort-cell { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.bi-dort-cell.k { background: radial-gradient(circle at 35% 30%, #f87171, #dc2626); }
.bi-dort-cell.s { background: radial-gradient(circle at 35% 30%, #fde047, #eab308); }
.bi-dort-cell.win { box-shadow: 0 0 0 3px #10b981, 0 0 10px #10b981; }

/* ===== MANGALA ===== */
.bi-mangala { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bi-mangala-board { display: flex; align-items: stretch; gap: 10px; background: #7c4a1e; padding: 12px; border-radius: var(--radius-xl); }
.bi-mangala-store { width: 54px; border-radius: 27px; background: #5b3413; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.bi-mangala-store.a { box-shadow: inset 0 0 0 2px #3b82f6; }
.bi-mangala-store.b { box-shadow: inset 0 0 0 2px #ef4444; }
.bi-mangala-rows { display: flex; flex-direction: column; gap: 10px; }
.bi-mangala-row { display: grid; grid-template-columns: repeat(6, 46px); gap: 8px; }
.bi-mangala-pit { width: 46px; height: 46px; border-radius: 50%; border: 2px solid transparent; background: #a86a34; color: #fff; font-size: 16px; font-weight: 700; cursor: default; }
.bi-mangala-pit.a { background: #b5763c; }
.bi-mangala-pit.b { background: #96602f; }
.bi-mangala-pit:not(:disabled) { cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.bi-mangala-pit:not(:disabled):hover { transform: scale(1.08); border-color: #fff; }
.bi-mangala-pit.son { box-shadow: 0 0 0 3px #fde047; }

/* ===== İKİ DOĞRU BİR YALAN ===== */
.bi-iki { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 10px; }
.bi-iki-form { display: flex; flex-direction: column; gap: 8px; }
.bi-iki-inrow { display: flex; align-items: center; gap: 8px; }
.bi-iki-inrow input[type="radio"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--red); cursor: pointer; }
.bi-iki-input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--glass-border, #e7e5e4); border-radius: var(--radius-md); font-size: 14px; }
.bi-iki-input:focus { outline: none; border-color: var(--orange-primary); }
.bi-iki-list { display: flex; flex-direction: column; gap: 8px; }
.bi-iki-item { padding: 11px 14px; border-radius: var(--radius-md); background: var(--bg-cream); border: 1.5px solid transparent; text-align: left; font-size: 14px; }
button.bi-iki-item.choice { cursor: pointer; }
button.bi-iki-item.choice:not(:disabled):hover { border-color: var(--orange-primary); background: var(--orange-bg); }
.bi-iki-item.sel { border-color: var(--orange-primary); background: var(--orange-bg); }
.bi-iki-item.yalan { background: #fef2f2; border-color: var(--red); }
.bi-iki-item.dogru { background: #f0fdf4; border-color: #10b981; }
.bi-iki-guesses { display: flex; flex-wrap: wrap; gap: 6px; }
.bi-iki-guess { font-size: 12px; padding: 4px 10px; border-radius: var(--radius-full, 999px); background: var(--bg-cream); }
.bi-iki-guess.win { background: #f0fdf4; color: #059669; font-weight: 600; }

/* ===== 5 HARF (Wordle) ===== */
.bi-besharf { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bi-besharf-board { display: flex; flex-direction: column; gap: 6px; width: 100%; align-items: center; }
.bi-besharf-row { display: flex; gap: 6px; align-items: center; }
.bi-besharf-cell { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; text-transform: uppercase; border-radius: var(--radius-sm); color: #fff; }
.bi-besharf-cell.dogru { background: #10b981; }
.bi-besharf-cell.var { background: #f59e0b; }
.bi-besharf-cell.yok { background: #78716c; }
.bi-besharf-who { font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.bi-besharf-input { display: flex; gap: 8px; width: 100%; max-width: 300px; }
.bi-besharf-field { flex: 1; padding: 10px 14px; border: 1.5px solid var(--glass-border, #e7e5e4); border-radius: var(--radius-md); font-size: 18px; letter-spacing: 3px; text-align: center; }
.bi-besharf-field:focus { outline: none; border-color: var(--orange-primary); }

/* ===== HelloTalk-esinli sohbet gelistirmeleri (2026-07-03) ===== */
/* "yaziyor..." gostergesi */
.bi-typing {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 14px; font-size: 12px; color: var(--text-on-dark-muted);
    min-height: 22px;
}
.bi-typing-dots { display: inline-flex; gap: 3px; }
.bi-typing-dots span {
    width: 5px; height: 5px; border-radius: 50%; background: var(--brand-accent);
    animation: biTypingBounce 1.2s infinite ease-in-out both;
}
.bi-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.bi-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes biTypingBounce { 0%,80%,100% { transform: scale(0.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Yanit onizleme (input ustunde) */
.bi-reply-preview {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0 12px 6px; padding: 8px 12px;
    background: rgba(102,126,234,0.12); border-left: 3px solid var(--brand-primary);
    border-radius: var(--radius-md); font-size: 12px;
}
.bi-reply-preview .rp-body { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bi-reply-preview .rp-body > i { color: var(--brand-accent); }
.bi-reply-preview .rp-info { display: flex; flex-direction: column; min-width: 0; }
.bi-reply-preview .rp-name { color: var(--brand-accent); font-weight: 700; }
.bi-reply-preview .rp-text { color: var(--text-on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.bi-reply-preview #bi-reply-cancel { background: transparent; border: none; color: var(--text-on-dark-muted); cursor: pointer; padding: 4px; }
.bi-reply-preview #bi-reply-cancel:hover { color: var(--text-on-dark); }

/* Mesaj icindeki yanit alintisi */
.bi-msg-reply {
    display: flex; flex-direction: column; gap: 1px;
    margin-bottom: 4px; padding: 4px 8px;
    background: rgba(255,255,255,0.06); border-left: 2px solid var(--brand-accent);
    border-radius: 6px; font-size: 11px;
}
.bi-msg-reply .rn { color: var(--brand-accent); font-weight: 700; }
.bi-msg-reply .rs { color: var(--text-on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-msg-reply.silik { color: var(--text-muted); font-style: italic; }

/* Mesaj alt-bilgi + balon aksiyonlari (hover'da Yanitla/Cevir) */
.bi-chat-msg .msg-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.bi-msg-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s; }
.bi-chat-msg:hover .bi-msg-actions { opacity: 1; }
.bi-msg-act {
    width: 22px; height: 22px; border-radius: 5px; border: none; cursor: pointer;
    background: rgba(255,255,255,0.08); color: var(--text-on-dark-muted);
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.bi-msg-act:hover { background: var(--brand-primary); color: #fff; }
.bi-msg-act:disabled { opacity: .5; cursor: default; }
/* Mesaj sil (host/moderator) + silinen mesaj tombstone'u */
.bi-msg-act.sil:hover { background: var(--color-danger, #ef4444); color: #fff; }
.bi-chat-msg.silindi .msg-text.tombstone {
    color: var(--text-muted); font-style: italic; opacity: .8;
    display: flex; align-items: center; gap: 6px;
}
.bi-chat-msg.silindi .msg-text.tombstone > i { font-size: 11px; }

/* Ceviri sonucu (mesaj altinda inline) */
.bi-msg-ceviri {
    margin-top: 4px; padding: 6px 8px; font-size: 13px; line-height: 1.4;
    background: rgba(16,185,129,0.10); border-left: 2px solid #10b981; border-radius: 6px;
    color: var(--text-on-dark);
}
.bi-msg-ceviri > i { color: #10b981; margin-right: 4px; }
.bi-msg-ceviri .src { font-size: 10px; color: var(--text-on-dark-muted); margin-left: 4px; text-transform: uppercase; }

/* ===== VIDEO/ICERIK KUYRUGU (Sıradaki) ===== */
.bi-queue-add { display: flex; gap: 8px; margin-bottom: 8px; }
.bi-queue-add input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); font-size: 14px; color: var(--text-primary); background: var(--bg-cream);
}
.bi-queue-add input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(102,126,234,0.12); }
.bi-queue-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.bi-queue-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.bi-queue-empty { text-align: center; color: var(--text-muted); padding: 28px 12px; font-size: 14px; }
.bi-queue-empty i { display: block; font-size: 28px; margin-bottom: 8px; opacity: .5; }
.bi-queue-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-md);
    background: var(--bg-cream); border: 1px solid var(--border-light);
}
.bi-queue-item .q-no {
    width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
    background: var(--gradient-primary); color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.bi-queue-item .q-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bi-queue-item .q-title { font-size: 13px; color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-queue-item .q-by { font-size: 11px; color: var(--text-muted); }
.bi-queue-item .q-acts { display: flex; gap: 4px; flex-shrink: 0; }
.bi-queue-item .q-btn {
    width: 28px; height: 28px; border-radius: 6px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
    background: rgba(102,126,234,0.10); color: var(--brand-primary);
}
.bi-queue-item .q-btn.play:hover { background: var(--brand-primary); color: #fff; }
.bi-queue-item .q-btn.del { background: rgba(239,68,68,0.10); color: var(--red); }
.bi-queue-item .q-btn.del:hover { background: var(--red); color: #fff; }

/* ===== Sol panel daraltma (daha büyük video) + tam ekran ===== */
/* DIKKAT: .bi-side display:none olunca grid akisindan CIKAR; kolonlar '0 1fr' kalirsa tek kalan .bi-stage
   ilk (0px) kolona otomatik yerlesir -> video 0/dar kalir (siyah). Cozum: daraltmada TEK kolon (1fr). */
#bi-room.bi-side-collapsed .bi-room-body { grid-template-columns: 1fr; }
#bi-room.bi-side-collapsed .bi-side { display: none; }
/* Tam ekran: SAHNE (video + kontrol cubugu) fullscreen olur → "Çık"/kontroller erisilebilir kalir.
   URL cubugu gizlenir; video 1fr tum bos alani, kontroller altta. */
.bi-stage:fullscreen { width: 100vw; height: 100vh; background: #000; grid-template-rows: 1fr auto; }
.bi-stage:fullscreen .bi-url-bar { display: none; }
.bi-stage:fullscreen .bi-video-area { grid-row: 1; }
.bi-stage:fullscreen .bi-controls { grid-row: 2; }
.bi-stage:fullscreen iframe, .bi-stage:fullscreen #bi-yt-player, .bi-stage:fullscreen video { width: 100% !important; height: 100% !important; }
/* Eski davranis (dogrudan .bi-video-area fullscreen — YouTube ⤢ butonundan) icin de tam kapla */
.bi-video-area:fullscreen { width: 100vw; height: 100vh; background: #000; }
.bi-video-area:fullscreen iframe, .bi-video-area:fullscreen #bi-yt-player { width: 100% !important; height: 100% !important; }

/* NOT: Onceki "imlec sinema modu / her zaman gizle" (cursor:none + iframe pointer-events:none) GERI ALINDI.
   Kullanicinin sikayet ettigi kirmizi/parlayan imlec, sitenin degil Claude-in-Chrome OTOMASYON imleciydi.
   Kullanicinin kendi OS faresi video dahil her yerde normal calismali + YouTube kontrolleri tiklanabilir olmali. */
/* MISAFIR (bi-guest): video iframe'i TIKLANAMAZ → oynat/duraklat/seek engellenir (controls=0 tek basina yetmiyor;
   YouTube tiklamayla duraklatiyor + fallback iframe controls tam acik). Ses/tam-ekran kendi kontrol cubugumuzda. */
#bi-room.bi-guest .bi-video-area iframe,
#bi-room.bi-guest .bi-video-area #bi-yt-player,
#bi-room.bi-guest .bi-video-area video { pointer-events: none; }
.bi-control-btn .lbl { }
@media (max-width: 640px) { .bi-control-btn .lbl { display: none; } }

/* ===== PROFIL SAYFASI (profil.php) — avatar yukleme + ilgi alani chip secimi ===== */
.bi-profil-avatar-alan { text-align: center; margin-bottom: 24px; }
.bi-profil-avatar-wrap {
    position: relative; width: 96px; height: 96px; margin: 0 auto;
    border-radius: 50%; overflow: hidden; cursor: pointer;
    background: var(--bg-cream, rgba(102,126,234,.08)); border: 2px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
}
.bi-profil-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.bi-profil-avatar-wrap i#bi-avatar-placeholder { font-size: 34px; color: var(--text-muted); }
.bi-profil-avatar-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    opacity: 0; transition: opacity .15s ease;
}
.bi-profil-avatar-wrap:hover .bi-profil-avatar-overlay { opacity: 1; }

.bi-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bi-chip {
    background: var(--bg-cream, rgba(102,126,234,.06)); border: 1px solid var(--border-light);
    color: var(--text-secondary); font-size: 13px; font-weight: 600; font-family: inherit;
    padding: 7px 14px; border-radius: var(--radius-full, 9999px); cursor: pointer;
    transition: all .15s ease;
}
.bi-chip:hover { border-color: var(--orange-primary); }
.bi-chip.active { background: var(--gradient-primary); border-color: transparent; color: #fff; }

/* ===== ODA GORUNURLUGU SECIMI (index.php — yalniz girisli kullaniciya gorunur) ===== */
.bi-gorunurluk-secim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bi-gorunurluk-opt {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    border: 2px solid var(--border-light); border-radius: var(--radius-md, 10px);
    padding: 12px; transition: all .15s ease;
}
.bi-gorunurluk-opt input { display: none; }
.bi-gorunurluk-opt i { font-size: 18px; color: var(--text-muted); flex-shrink: 0; }
.bi-gorunurluk-opt strong { display: block; font-size: 13px; color: var(--text-primary); }
.bi-gorunurluk-opt span { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.bi-gorunurluk-opt.active { border-color: var(--orange-primary); background: var(--bg-cream, rgba(102,126,234,.06)); }
.bi-gorunurluk-opt.active i { color: var(--orange-primary); }
@media (max-width: 480px) { .bi-gorunurluk-secim { grid-template-columns: 1fr; } }
/* KOK DUZELTME: yukaridaki --text-primary/--text-muted/--border-light degiskenleri acik-tema-sabit
   (koyu moddan habersiz) — koyu modda "Ozel" secenegi neredeyse gorunmez oluyordu (koyu yazi/ikon,
   koyu zemin ustunde). Apple temasinin kendi --ap-* tokenlarina baglandi (acik/koyu otomatik dogru). */
.bi-theme-apple .bi-gorunurluk-opt { border-color: var(--ap-border-strong); background: var(--ap-surface-2); }
.bi-theme-apple .bi-gorunurluk-opt i { color: var(--ap-text-3); }
.bi-theme-apple .bi-gorunurluk-opt strong { color: var(--ap-text); }
.bi-theme-apple .bi-gorunurluk-opt span { color: var(--ap-text-2); }
.bi-theme-apple .bi-gorunurluk-opt.active { border-color: var(--bi-accent); background: rgba(var(--bi-accent-rgb),.1); }
.bi-theme-apple .bi-gorunurluk-opt.active i { color: var(--bi-accent); }

/* ===== KESFET SAYFASI (kesfet.php) — herkese acik oda kart grid'i ===== */
.bi-kesfet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; }
.bi-kesfet-card {
    background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg, 14px);
    padding: 18px; box-shadow: var(--shadow-md, 0 2px 8px rgba(0,0,0,.06));
}
.bi-kesfet-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bi-kesfet-avatar-img, .bi-kesfet-avatar-fallback {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.bi-kesfet-avatar-fallback { background: var(--bg-cream, rgba(102,126,234,.08)); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.bi-kesfet-baslik { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.bi-kesfet-host { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.bi-kesfet-aciklama { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.bi-kesfet-card-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bi-kesfet-card-alt span { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.bi-kesfet-katil-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.bi-kesfet-onay-label { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--text-muted); line-height: 1.4; cursor: pointer; }
.bi-kesfet-onay-label input { margin-top: 2px; flex-shrink: 0; accent-color: var(--orange-primary); }
.bi-kesfet-onay-label a { color: var(--orange-primary); }

/* =================================================================
   ★★★ EĞLENCE KATMANI — renkli, canlı, oyunbaz "birlikte izle" hissi
   Erpida paletine SADIK (mor-mavi #667EEA/#764BA2 + glassmorphism + turuncu vurgu),
   ama daha eğlenceli: animasyonlu gradient zemin, yüzen emojiler, parıltılar,
   ışıltılı butonlar. Tümü saf CSS (ek JS kütüphanesi yok, hafif).
================================================================= */

/* Animasyonlu canlı gradient zemin — giriş/oturum sayfalarında .bi-page-wrap'e eklenir */
.bi-fun-page {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 45%, #5b6ee8 100%) !important;
    background-size: 220% 220% !important;
    animation: biFunGradient 18s ease infinite;
}
@keyframes biFunGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Hareketli "spotlight" halkaları — sinema/parti hissi */
.bi-fun-page::before {
    content: '';
    position: absolute; inset: -20%;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.16) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(167,139,250,.30) 0%, transparent 42%),
        radial-gradient(circle at 60% 10%, rgba(255,184,120,.16) 0%, transparent 32%);
    animation: biFunSpots 20s ease-in-out infinite alternate;
    pointer-events: none; z-index: 0;
}
@keyframes biFunSpots {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(-3%,4%) scale(1.08); }
}

/* Yüzen emoji motifleri (🍿🎬📺🎵❤️✨🎮🎉) — arka planda yavaşça süzülür */
.bi-fun-emojis { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bi-fun-emoji {
    position: absolute; bottom: -70px;
    font-size: 2.4rem;
    animation: biFunFloat linear infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.18));
    will-change: transform, opacity;
}
@keyframes biFunFloat {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    12%  { opacity: .24; }
    88%  { opacity: .24; }
    100% { transform: translateY(-118vh) rotate(150deg); opacity: 0; }
}

/* İçerik (topbar + kart) emojilerin ÜSTÜNDE kalsın */
.bi-fun-page > .bi-topbar,
.bi-fun-page > .bi-hero { position: relative; z-index: 2; }

/* Gradient zeminde topbar şeffaf + beyaz metin */
.bi-fun-page > .bi-topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.16); }
.bi-fun-page > .bi-topbar .bi-brand,
.bi-fun-page > .bi-topbar a { color: #fff; }
.bi-fun-page > .bi-topbar .bi-brand i { color: #ffd8a8; }
.bi-fun-page > .bi-topbar a:hover { color: #ffd8a8; }

/* Eğlenceli kart — glassmorphism korunur, dönen gradient parıltılı kenar + giriş animasyonu */
.bi-fun-card {
    position: relative;
    background: rgba(255,255,255,0.98) !important;
    border: none !important;
    border-radius: var(--radius-2xl, 24px) !important;
    box-shadow: 0 28px 70px -14px rgba(45, 30, 100, .55), 0 2px 8px rgba(0,0,0,.1) !important;
    animation: biFunCardIn .6s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes biFunCardIn {
    0%   { transform: translateY(26px) scale(.96); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.bi-fun-card::before {
    content: '';
    position: absolute; inset: -2.5px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #667eea, #a78bfa, #ffb478, #10b981, #667eea);
    filter: blur(9px); opacity: .45;
    z-index: -1;
    animation: biFunSpin 9s linear infinite;
}
@keyframes biFunSpin { to { transform: rotate(360deg); } }

/* Eğlenceli başlık — akan gradient metin + el sallayan emoji */
.bi-fun-title {
    font-size: clamp(23px, 3.4vw, 30px) !important; font-weight: 800 !important;
    line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 6px;
    background: linear-gradient(90deg, #667eea, #a78bfa, #ffb478, #667eea);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: biFunShine 5s linear infinite;
}
@keyframes biFunShine { to { background-position: 220% center; } }
.bi-fun-wave { display: inline-block; animation: biFunWave 2.4s ease-in-out infinite; transform-origin: 70% 70%; -webkit-text-fill-color: initial; }
@keyframes biFunWave {
    0%,60%,100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); } 20% { transform: rotate(-9deg); }
    30% { transform: rotate(15deg); } 40% { transform: rotate(-5deg); }
    50% { transform: rotate(11deg); }
}

/* Işıltılı buton — hover'da içinden ışık geçer (mevcut .bi-btn-primary ile birlikte kullanılır) */
.bi-fun-btn { position: relative; overflow: hidden; }
.bi-fun-btn::after {
    content: ''; position: absolute; top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.6), transparent);
    transform: skewX(-20deg); pointer-events: none;
}
.bi-fun-btn:hover::after { animation: biFunSheen .85s ease; }
@keyframes biFunSheen { 0% { left: -80%; } 100% { left: 135%; } }

/* Canlı istatistik rozeti (🟢 şu an X kişi izliyor) — pulse eden nokta */
.bi-fun-live {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16,185,129,.12); color: #059669;
    border: 1px solid rgba(16,185,129,.3);
    padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.bi-fun-live .dot {
    width: 9px; height: 9px; border-radius: 50%; background: #10b981; flex-shrink: 0;
    animation: biFunPulse 1.6s infinite;
}
@keyframes biFunPulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Landing (2 kolonlu) gradient zeminde SOL tanıtım metni beyaz + okunur */
.bi-fun-page .bi-hero-text h1 { color: #fff; }
.bi-fun-page .bi-hero-text h1 .bi-orange { color: #ffd8a8; }
.bi-fun-page .bi-hero-text p { color: rgba(255,255,255,.92); }
.bi-fun-page .bi-hero-features .item { color: rgba(255,255,255,.92); }
.bi-fun-page .bi-hero-features .item i { color: #6ee7b7; }
.bi-fun-page .bi-guven-blok .g {
    background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
/* Üst bardaki auth widget gradient zeminde okunur (giriş yapmış: cam kutu) */
.bi-fun-page .bi-auth-trigger { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.bi-fun-page .bi-auth-trigger:hover { border-color: #ffd8a8; color: #ffd8a8; }

/* ★ OTURUM AÇILMIŞ "Hoş geldin" kutusu — eğlenceli kutlama hissi + hızlı aksiyon butonları */
.bi-fun-welcome {
    text-align: center; padding: 6px 0 18px; margin-bottom: 6px;
    border-bottom: 1px dashed var(--border-light);
}
.bi-fun-welcome .bi-fun-welcome-ava {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: block;
    object-fit: cover; border: 3px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box, conic-gradient(from 0deg, #667eea, #a78bfa, #ffb478, #10b981, #667eea) border-box;
    animation: biFunSpin 6s linear infinite;
}
.bi-fun-welcome-ava-ph {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff; background: var(--gradient-primary);
    box-shadow: 0 8px 20px -6px rgba(102,126,234,.6);
}
.bi-fun-welcome h3 { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 3px; }
.bi-fun-welcome .mail { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.bi-fun-quick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bi-fun-quick a, .bi-fun-quick button {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none;
    padding: 9px 14px; border-radius: var(--radius-md, 10px);
    background: var(--bg-cream, rgba(102,126,234,.08)); color: var(--text-primary);
    border: 1px solid var(--border-light); transition: all .15s ease;
}
.bi-fun-quick a:hover, .bi-fun-quick button:hover { border-color: var(--orange-primary); color: var(--orange-primary); transform: translateY(-1px); }
.bi-fun-quick .primary { background: var(--gradient-primary); color: #fff; border: none; }
.bi-fun-quick .primary:hover { color: #fff; box-shadow: 0 6px 16px -4px rgba(102,126,234,.5); }
.bi-fun-quick .cikis { color: #ef4444; }
.bi-fun-quick .cikis:hover { border-color: #ef4444; color: #ef4444; }

/* =================================================================
   ★ LOBİ / ANA EKRAN (lobi.php) — oturum açılmış zengin deneyim
================================================================= */
/* Üst bar: Erpida logosu + "Birlikte İzle" (sol) | kullanıcı menüsü (sağ) */
.bi-lobi-topbar { display: flex; align-items: center; justify-content: space-between; }
.bi-lobi-brand { display: flex; align-items: center; text-decoration: none; }
/* Tam logo gorseli (erpida-logo.png), orijinal orani (1.83:1) korunarak — sikistirilmis
   ikon/rozet YENIDEN INSA ETMEK yerine dogrudan kullanicinin gonderdigi dosya. Koyu modda
   dogal renkleriyle (beyaz+mavi kareler) parlar; acik modda siyah siluete doner (okunurluk). */
.bi-logo-full { height: 52px; width: auto; display: block; filter: brightness(0); }
[data-bi-tema="dark"] .bi-logo-full { filter: none; }

/* Zengin kullanıcı dropdown başlığı (büyük avatar + isim + email) */
.bi-auth-head { display: flex; align-items: center; gap: 11px; padding: 6px 8px 12px; border-bottom: 1px solid var(--glass-border); margin-bottom: 6px; }
.bi-auth-head-ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bi-auth-head-ava.ph { display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; background: var(--gradient-primary); }
.bi-auth-head-info { min-width: 0; }
.bi-auth-head-info strong { display: block; font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-auth-head-info span { display: block; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-auth-menu-group { border-bottom: 1px solid var(--glass-border); padding-bottom: 6px; margin-bottom: 6px; }
.bi-auth-dropdown { min-width: 240px; }

/* KRİTİK: gradient zeminde "topbar linkleri beyaz" kuralı dropdown İÇİNDEKİ linkleri de beyaz
   yapıp beyaz kart üstünde görünmez kılıyordu — dropdown metinleri açıkça koyu tutulur. */
.bi-fun-page .bi-auth-dropdown a,
.bi-fun-page .bi-auth-dropdown .bi-auth-menu-link,
.bi-fun-page .bi-auth-dropdown .bi-auth-head-info strong { color: var(--text-primary); }
.bi-fun-page .bi-auth-dropdown a:hover,
.bi-fun-page .bi-auth-dropdown .bi-auth-menu-link:hover { color: var(--orange-primary); }
.bi-fun-page .bi-auth-dropdown .bi-auth-head-info span,
.bi-fun-page .bi-auth-dropdown .bi-auth-email { color: var(--text-muted); }
.bi-fun-page .bi-auth-dropdown .bi-auth-cikis { color: #ef4444; }

.bi-lobi { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 32px 28px 60px; width: 100%; }

/* Karşılama rozet şeridi */
.bi-lobi-badges { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bi-lobi-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3);
    padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; backdrop-filter: blur(4px);
}
.bi-lobi-badge.lvl i { color: #ffd166; }

/* Karşılama */
.bi-lobi-hero { text-align: center; margin-bottom: 30px; }
.bi-lobi-ava, .bi-lobi-ava-ph {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: flex;
    align-items: center; justify-content: center; object-fit: cover;
}
.bi-lobi-ava { border: 4px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box, conic-gradient(from 0deg, #667eea, #a78bfa, #ffb478, #10b981, #667eea) border-box; }
.bi-lobi-ava-ph { font-size: 38px; color: #fff; background: rgba(255,255,255,.18); border: 3px solid rgba(255,255,255,.4); }
.bi-lobi-hero .bi-fun-title { justify-content: center; }
.bi-lobi-sub { color: rgba(255,255,255,.9); font-size: 15px; margin: 4px 0 14px; }

/* Büyük aksiyon kartları */
.bi-lobi-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); gap: 16px; margin-bottom: 30px; }
.bi-lobi-action {
    position: relative; display: flex; align-items: center; gap: 14px; text-decoration: none;
    background: rgba(255,255,255,0.98); border-radius: var(--radius-xl, 18px); padding: 20px;
    box-shadow: 0 14px 34px -12px rgba(45,30,100,.5);
    transition: transform .18s ease, box-shadow .18s ease; overflow: hidden;
}
.bi-lobi-action::before { content:''; position:absolute; inset:0 auto 0 0; width:5px; background: var(--gradient-primary); }
.bi-lobi-action.act-explore::before { background: linear-gradient(180deg,#f59e0b,#d97706); }
.bi-lobi-action.act-profile::before { background: linear-gradient(180deg,#10b981,#059669); }
.bi-lobi-action:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -12px rgba(45,30,100,.6); }
.bi-lobi-action .ic { font-size: 30px; flex-shrink: 0; line-height: 1; }
.bi-lobi-action .tx { flex: 1; min-width: 0; }
.bi-lobi-action h3 { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 2px; }
.bi-lobi-action p { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.bi-lobi-action .go { color: var(--text-muted); transition: transform .18s ease; flex-shrink: 0; }
.bi-lobi-action:hover .go { transform: translateX(4px); color: var(--orange-primary); }

/* Kategori çipleri */
.bi-lobi-cats { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; justify-content: center; }
.bi-lobi-cat {
    background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3);
    font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer;
    padding: 8px 16px; border-radius: 999px; transition: all .15s ease; backdrop-filter: blur(4px);
}
.bi-lobi-cat:hover { background: rgba(255,255,255,.28); }
.bi-lobi-cat.active { background: #fff; color: var(--orange-primary); border-color: #fff; font-weight: 700; }

/* Canlı odalar başlığı */
.bi-lobi-rooms-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bi-lobi-rooms-head h2 { font-size: 20px; font-weight: 800; color: #fff; }
.bi-lobi-more { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.bi-lobi-more:hover { color: #ffd8a8; }
.bi-lobi-loading { text-align: center; padding: 40px; color: #fff; font-size: 28px; opacity: .85; }

/* Oda kartında CANLI rozeti */
.bi-lobi-room { position: relative; }
.bi-lobi-room-live {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(239,68,68,.12); color: #dc2626; border: 1px solid rgba(239,68,68,.3);
    font-size: 10.5px; font-weight: 800; letter-spacing: .3px; padding: 3px 9px; border-radius: 999px;
}
.bi-lobi-room-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: biFunPulse 1.6s infinite; }
.bi-lobi-room-ornek {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    background: rgba(107,107,133,.15); color: #6b6b85; border: 1px dashed rgba(107,107,133,.4);
    font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 3px 9px; border-radius: 999px;
}

/* Eğlenceli boş durum */
.bi-lobi-empty { }
.bi-lobi-empty-hero {
    text-align: center; background: rgba(255,255,255,0.98); border-radius: var(--radius-2xl, 24px);
    padding: 40px 28px; box-shadow: 0 18px 44px -14px rgba(45,30,100,.5); margin-bottom: 26px;
}
.bi-lobi-empty-hero .emoji { font-size: 46px; margin-bottom: 12px; animation: biFunWave 3s ease-in-out infinite; display: inline-block; }
.bi-lobi-empty-hero h3 { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.bi-lobi-empty-hero p { font-size: 14px; color: var(--text-secondary); max-width: 420px; margin: 0 auto 20px; line-height: 1.6; }
.bi-lobi-empty-samples .lbl { color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; margin-bottom: 12px; text-align: center; }
.bi-lobi-room.ornek { opacity: .55; filter: saturate(.7); pointer-events: none; }

@media (max-width: 760px) {
    .bi-lobi-actions { grid-template-columns: 1fr; }
    .bi-lobi-rooms-head h2 { font-size: 18px; }
}

/* Mobilde emoji/parıltı biraz sadeleşsin (performans + okunurluk) */
@media (max-width: 640px) {
    .bi-fun-emoji { font-size: 1.8rem; }
    .bi-fun-card::before { filter: blur(6px); opacity: .35; }
}
/* Hareket hassasiyeti olan kullanıcılar için animasyonları kıs */
@media (prefers-reduced-motion: reduce) {
    .bi-fun-page, .bi-fun-page::before, .bi-fun-emoji, .bi-fun-card, .bi-fun-card::before,
    .bi-fun-title, .bi-fun-wave, .bi-fun-live .dot { animation: none !important; }
    .bi-fun-emojis { display: none; }
}

/* =================================================================
   ★ TASARIM 2 — "SİNEMA GECESİ" (koyu, premium, sinematik)
   Erpida mor-mavisi KORUNUR ama koyu/gece yorumu + sıcak altın vurgu.
   bi-theme-sinema, bi-fun-* öğelerini koyu temaya çevirir.
================================================================= */
.bi-theme-sinema {
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse 120% 80% at 50% -10%, #2b1e52 0%, #1a1436 45%, #0b0918 100%) !important;
}
/* Projeksiyon huzmesi + sıcak spot */
.bi-theme-sinema::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(circle at 22% -5%, rgba(167,139,250,.28) 0%, transparent 45%),
        radial-gradient(circle at 80% 5%, rgba(255,193,120,.16) 0%, transparent 42%),
        radial-gradient(circle at 50% 120%, rgba(102,126,234,.20) 0%, transparent 50%);
    animation: biFunSpots 22s ease-in-out infinite alternate;
}
/* Emojiler sinema-gece'de daha soluk (yıldız tozu hissi) */
.bi-theme-sinema .bi-fun-emoji { opacity: 1; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)) grayscale(.2); }
.bi-theme-sinema > .bi-topbar,
.bi-theme-sinema > .bi-hero { position: relative; z-index: 2; }
.bi-theme-sinema > .bi-topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.bi-theme-sinema > .bi-topbar .bi-brand, .bi-theme-sinema > .bi-topbar a { color: #fff; }
.bi-theme-sinema > .bi-topbar .bi-brand i { color: #ffc878; }

/* Koyu cam kart + sıcak altın kenar parıltısı */
.bi-theme-sinema .bi-fun-card {
    position: relative;
    background: rgba(26, 20, 48, 0.82) !important;
    border: 1px solid rgba(255,200,120,.18) !important;
    border-radius: var(--radius-2xl, 24px) !important;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04) inset !important;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    animation: biFunCardIn .6s cubic-bezier(.2,.9,.3,1.2);
}
.bi-theme-sinema .bi-fun-card::before {
    content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
    background: conic-gradient(from 0deg, #a78bfa, #ffc878, #667eea, #a78bfa);
    filter: blur(11px); opacity: .4; animation: biFunSpin 10s linear infinite;
}
/* Başlık: altın→mor akan gradient */
.bi-theme-sinema .bi-fun-title {
    background: linear-gradient(90deg, #ffd89b, #ffc878, #a78bfa, #ffd89b);
    background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Kart içi metinler açık (koyu zeminde) */
.bi-theme-sinema .bi-fun-card .subtitle { color: rgba(255,255,255,.72); }
.bi-theme-sinema .bi-fun-card .bi-form-label { color: rgba(255,255,255,.9); }
.bi-theme-sinema .bi-fun-card .bi-input {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff;
}
.bi-theme-sinema .bi-fun-card .bi-input::placeholder { color: rgba(255,255,255,.4); }
.bi-theme-sinema .bi-fun-card .bi-input:focus { border-color: #ffc878; box-shadow: 0 0 0 3px rgba(255,200,120,.18); background: rgba(255,255,255,.09); }
/* Sekmeler koyu */
.bi-theme-sinema .bi-tabs { background: rgba(255,255,255,.06); }
.bi-theme-sinema .bi-tab { color: rgba(255,255,255,.6); }
.bi-theme-sinema .bi-tab.active { background: rgba(255,200,120,.16); color: #ffd89b; }
/* Onay kutuları alanı koyu */
.bi-theme-sinema .bi-fun-card label[style*="bg-cream"],
.bi-theme-sinema .bi-fun-card > label { color: rgba(255,255,255,.7) !important; }
.bi-theme-sinema .bi-fun-card label span { color: rgba(255,255,255,.7); }
/* Ana buton: altın-mor gradient */
.bi-theme-sinema .bi-btn-primary {
    background: linear-gradient(135deg, #ffc878 0%, #a78bfa 100%) !important; color: #1a1436 !important; font-weight: 800;
}
.bi-theme-sinema .bi-btn-primary:hover { box-shadow: 0 10px 28px -8px rgba(255,200,120,.5) !important; }
/* Canlı rozet altın */
.bi-theme-sinema .bi-fun-live { background: rgba(255,200,120,.14); color: #ffd89b; border-color: rgba(255,200,120,.3); }
.bi-theme-sinema .bi-fun-live .dot { background: #ffc878; }
/* Linkler (şifremi unuttum, koşullar) sıcak */
.bi-theme-sinema .bi-fun-card a, .bi-theme-sinema #bi-sifremi-unuttum-ac, .bi-theme-sinema #bi-unuttum-geri { color: #ffc878 !important; }

/* =================================================================
   ★ TASARIM 3 — "MODERN" (2026 estetiği: gradient mesh + temiz cam + net tipografi)
   Uçuşan emoji YOK. Yumuşak renkli ışık lekeleri (Linear/Stripe dili), grain dokusu,
   sofistike cam yüzeyler, minimal ve anlaşılır. Erpida mor-mavisi korunur.
================================================================= */
.bi-theme-modern { position: relative; overflow: hidden; background: #08080f !important; }
.bi-theme-modern .bi-fun-emojis { display: none !important; }   /* uçuşan sembolleri kaldır */
.bi-theme-modern .bi-fun-wave { display: none; }                /* el sallayan emojiyi kaldır */

/* Yumuşak, hareketli gradient mesh (birden çok blob, ağır blur) */
.bi-theme-modern::before {
    content: ''; position: absolute; inset: -35%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(closest-side at 22% 28%, rgba(102,126,234,.60), transparent 70%),
        radial-gradient(closest-side at 78% 22%, rgba(167,139,250,.48), transparent 70%),
        radial-gradient(closest-side at 62% 78%, rgba(118,75,162,.55), transparent 70%),
        radial-gradient(closest-side at 18% 82%, rgba(59,130,246,.38), transparent 70%);
    filter: blur(70px) saturate(1.25);
    animation: biMeshMove 26s ease-in-out infinite alternate;
}
@keyframes biMeshMove {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(4%,-3%) scale(1.12); }
}
/* İnce film grain (modern doku) */
.bi-theme-modern::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bi-theme-modern > .bi-topbar, .bi-theme-modern > .bi-hero { position: relative; z-index: 2; }
.bi-theme-modern > .bi-topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.07); }
.bi-theme-modern > .bi-topbar .bi-brand, .bi-theme-modern > .bi-topbar a { color: rgba(255,255,255,.92); }
.bi-theme-modern > .bi-topbar .bi-brand i { color: #a78bfa; }

/* Temiz, sofistike cam kart — dönen parıltı YOK, sade */
.bi-theme-modern .bi-fun-card {
    background: rgba(18,18,28,0.66) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 20px !important;
    box-shadow: 0 32px 90px -28px rgba(0,0,0,.85), 0 1px 0 rgba(255,255,255,.06) inset !important;
    backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3);
    animation: biFunCardIn .5s cubic-bezier(.2,.8,.3,1);
}
.bi-theme-modern .bi-fun-card::before { display: none; }   /* dönen renk halesi kaldır — temiz */

/* Net, modern tipografi — düz beyaz, sıkı harf aralığı (gradient/parıltı yok) */
.bi-theme-modern .bi-fun-title {
    background: none !important; -webkit-text-fill-color: #fff !important; color: #fff !important;
    font-weight: 700 !important; letter-spacing: -0.025em !important; font-size: clamp(22px, 3vw, 28px) !important;
    animation: none !important;
}
.bi-theme-modern .bi-fun-card .subtitle { color: rgba(255,255,255,.6); }
.bi-theme-modern .bi-fun-card .bi-form-label { color: rgba(255,255,255,.85); font-weight: 600; }
.bi-theme-modern .bi-fun-card .bi-input {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); color: #fff; border-radius: 12px;
}
.bi-theme-modern .bi-fun-card .bi-input::placeholder { color: rgba(255,255,255,.34); }
.bi-theme-modern .bi-fun-card .bi-input:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.2); background: rgba(255,255,255,.08); }
/* Sekmeler: sade koyu, ince alt-çizgi aktif göstergesi */
.bi-theme-modern .bi-tabs { background: rgba(255,255,255,.05); border-radius: 12px; }
.bi-theme-modern .bi-tab { color: rgba(255,255,255,.5); }
.bi-theme-modern .bi-tab.active { background: rgba(255,255,255,.10); color: #fff; }
.bi-theme-modern .bi-fun-card > label, .bi-theme-modern .bi-fun-card label span { color: rgba(255,255,255,.62) !important; }
/* Modern buton — düz mor-mavi gradient, net */
.bi-theme-modern .bi-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important; color: #fff !important; border-radius: 12px; font-weight: 700;
}
.bi-theme-modern .bi-btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(102,126,234,.6) !important; transform: translateY(-1px); }
/* "Canlı" rozeti sadeleşir — küçük, ince, modern */
.bi-theme-modern .bi-fun-live { background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.12); font-weight: 500; }
.bi-theme-modern .bi-fun-live .dot { background: #34d399; }
.bi-theme-modern .bi-fun-card a, .bi-theme-modern #bi-sifremi-unuttum-ac, .bi-theme-modern #bi-unuttum-geri { color: #a78bfa !important; }

/* =================================================================
   ★ TASARIM 4 — "PREMIUM" (kurumsal login estetiği, geliştirilmiş)
   Koyu lacivert-mor gradient + yumuşak SÜZÜLEN ışık blobları (emoji YOK) +
   temiz BEYAZ kart + üstte mor-mavi accent şerit. Sofistike, dingin, kurumsal kalite.
================================================================= */
.bi-theme-premium { position: relative; overflow: hidden;
    background: linear-gradient(135deg, #171730 0%, #16213e 55%, #1c2a58 100%) !important; }
.bi-theme-premium .bi-fun-emojis { display: none !important; }
.bi-theme-premium .bi-fun-wave { display: none; }

/* Yumuşak, büyük, süzülen ışık blobları (kurumsal deseni — geliştirilmiş, mor-mavi) */
.bi-theme-premium::before {
    content: ''; position: absolute; width: 460px; height: 460px; top: 4%; left: 6%; z-index: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(102,126,234,.28) 0%, transparent 68%);
    animation: biPremFloat 9s ease-in-out infinite;
}
.bi-theme-premium::after {
    content: ''; position: absolute; width: 540px; height: 540px; bottom: 2%; right: 4%; z-index: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(167,139,250,.22) 0%, transparent 68%);
    animation: biPremFloat 12s ease-in-out infinite reverse;
}
@keyframes biPremFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-38px) scale(1.14); } }
.bi-theme-premium > .bi-topbar, .bi-theme-premium > .bi-hero { position: relative; z-index: 2; }
.bi-theme-premium > .bi-topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.bi-theme-premium > .bi-topbar .bi-brand, .bi-theme-premium > .bi-topbar a { color: #fff; }
.bi-theme-premium > .bi-topbar .bi-brand i { color: #a78bfa; }

/* Temiz BEYAZ kart + güçlü gölge (kurumsal) + üstte mor-mavi accent şerit */
.bi-theme-premium .bi-fun-card {
    position: relative; background: #fff !important; border: none !important; border-radius: 24px !important;
    box-shadow: 0 34px 100px -22px rgba(0,0,0,.62) !important; overflow: hidden;
    animation: biFunCardIn .5s cubic-bezier(.2,.8,.3,1);
}
.bi-theme-premium .bi-fun-card::before {
    content: ''; display: block; position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 3;
    background: linear-gradient(90deg, #667eea, #764ba2, #a78bfa);
    inset: 0 0 auto 0; filter: none; opacity: 1; animation: none; border-radius: 0;
}
/* Başlık: düz koyu-mor (beyaz kartta net + kurumsal) — gradient-text riski yok */
.bi-theme-premium .bi-fun-title {
    background: none !important; background-clip: border-box !important; -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #3a2a68 !important; color: #3a2a68 !important;
    animation: none !important; font-weight: 800 !important; letter-spacing: -0.01em;
}
/* Canlı rozet mor */
.bi-theme-premium .bi-fun-live { background: rgba(102,126,234,.1); color: #667eea; border: 1px solid rgba(102,126,234,.28); }
.bi-theme-premium .bi-fun-live .dot { background: #667eea; }
/* Buton kurumsal mor-mavi */
.bi-theme-premium .bi-btn-primary { background: linear-gradient(135deg, #667eea, #764ba2) !important; }
.bi-theme-premium .bi-btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(102,126,234,.55) !important; }

/* =================================================================
   ★ ZENGİN GİRİŞ EKRANI — çift panel: sol canlı sahne + sağ form
   (premium zemin üzerine kurulur; boş kart yerine platformu gösteren dolu deneyim)
================================================================= */
.bi-giris-topbar { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.bi-giris-back { display: inline-flex; align-items: center; gap: 6px; }

.bi-giris-split {
    position: relative; z-index: 2; flex: 1;
    /* align-items:start (center DEGIL) — Kayit Ol formu Giris Yap'tan daha uzun (ekstra alanlar+onay
       kutulari); center olsaydi sag sutun uzayinca sol sutun da asagi kayardi (kullanici sikayeti). */
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start;
    max-width: 1120px; width: 100%; margin: 0 auto; padding: 40px 28px 60px;
}

/* SOL — canlı sahne */
.bi-giris-sahne { color: #fff; }
.bi-giris-canli {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.35); color: #ffd7d3;
    padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; margin-bottom: 22px;
}
.bi-giris-canli b { font-weight: 700; color: #fff; }
.bi-giris-canli .dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; animation: biFunPulse 1.6s infinite; }
.bi-giris-sahne h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.bi-giris-sahne h1 em { font-style: normal; background: linear-gradient(90deg, #a78bfa, #8fb8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bi-giris-sahne > p { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.65; max-width: 480px; margin-bottom: 26px; }

/* Mini canlı oda kartları (platformu gösteren gerçekçi mockup) */
.bi-giris-odalar { display: flex; flex-direction: column; gap: 12px; max-width: 470px; }
.bi-mini-oda {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.bi-mini-oda:hover { transform: translateX(6px); background: rgba(255,255,255,.11); border-color: rgba(167,139,250,.4); }
.bi-mini-oda .thumb {
    position: relative; width: 78px; height: 58px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
}
.bi-mini-oda .thumb.tb1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.bi-mini-oda .thumb.tb2 { background: linear-gradient(135deg, #db5aa0, #764ba2); }
.bi-mini-oda .thumb.tb3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bi-mini-oda .thumb .live {
    position: absolute; top: 5px; left: 5px; display: inline-flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,.55); color: #fff; font-size: 8.5px; font-weight: 700; letter-spacing: .3px;
    padding: 2px 6px; border-radius: 999px;
}
.bi-mini-oda .thumb .live .dot { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; animation: biFunPulse 1.6s infinite; }
.bi-mini-oda .body { flex: 1; min-width: 0; }
.bi-mini-oda .baslik { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.bi-mini-oda .alt { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.bi-mini-oda .foot { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 7px; }
.bi-mini-oda .avs { display: inline-flex; }
.bi-mini-oda .av {
    width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff; margin-left: -7px; border: 2px solid #171730;
}
.bi-mini-oda .av:first-child { margin-left: 0; }

/* =================================================================
   ★ SANAT KATMANI — sinematik bokeh + projeksiyon huzmesi + perspektif grid
   Emoji/sembol değil; ışık ve derinlik ile sofistike atmosfer.
================================================================= */
.bi-sanat { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* Odak-dışı büyük ışık daireleri (sinema bokeh) — yumuşak, renkli, hafif yüzen */
.bi-sanat .bokeh.big { position: absolute; border-radius: 50%; filter: blur(2px); }
.bi-sanat .bokeh.big.b1 { width: 150px; height: 150px; top: 58%; left: 16%;
    background: radial-gradient(circle, rgba(102,126,234,.28) 0%, rgba(102,126,234,.05) 55%, transparent 72%);
    animation: biBokehFloat 15s ease-in-out infinite; }
.bi-sanat .bokeh.big.b2 { width: 110px; height: 110px; top: 20%; left: 46%;
    background: radial-gradient(circle, rgba(219,90,160,.22) 0%, transparent 70%);
    animation: biBokehFloat 19s ease-in-out infinite reverse; }
.bi-sanat .bokeh.big.b3 { width: 190px; height: 190px; bottom: 8%; right: 10%;
    background: radial-gradient(circle, rgba(167,139,250,.20) 0%, transparent 72%);
    animation: biBokehFloat 22s ease-in-out infinite; }

/* Küçük parlak ışık noktaları (yıldız tozu) */
.bi-sanat .bokeh.dot { position: absolute; border-radius: 50%; background: #cdbcff;
    box-shadow: 0 0 14px 3px rgba(167,139,250,.55); animation: biTwinkle 6s ease-in-out infinite; }
.bi-sanat .bokeh.dot.d1 { width: 6px; height: 6px; top: 24%; left: 22%; animation-delay: 0s; }
.bi-sanat .bokeh.dot.d2 { width: 4px; height: 4px; top: 68%; left: 38%; animation-delay: 1.5s; background: #ffd9a8; box-shadow: 0 0 12px 3px rgba(255,193,120,.5); }
.bi-sanat .bokeh.dot.d3 { width: 5px; height: 5px; top: 42%; left: 8%; animation-delay: 3s; }
.bi-sanat .bokeh.dot.d4 { width: 4px; height: 4px; top: 14%; right: 30%; animation-delay: 2.2s; }
.bi-sanat .bokeh.dot.d5 { width: 7px; height: 7px; bottom: 22%; right: 26%; animation-delay: 4s; background: #a8d0ff; box-shadow: 0 0 14px 3px rgba(120,170,255,.5); }
@keyframes biTwinkle { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: .9; transform: scale(1.35); } }
@keyframes biBokehFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,-22px); } }

/* İnce projeksiyon huzmeleri (sinema ışık kirişi) */
.bi-sanat .huzme { position: absolute; top: -15%; width: 240px; height: 130%; transform-origin: top center;
    background: linear-gradient(to bottom, rgba(167,139,250,.10), transparent 70%);
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); mix-blend-mode: screen; }
.bi-sanat .huzme.h1 { left: 8%; transform: rotate(16deg); }
.bi-sanat .huzme.h2 { right: 12%; transform: rotate(-13deg);
    background: linear-gradient(to bottom, rgba(255,193,120,.07), transparent 70%); }

/* Çok ince perspektif grid (zeminde derinlik — sofistike, neredeyse hissedilir) */
.bi-sanat .grid-perspektif { position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: perspective(340px) rotateX(58deg); transform-origin: bottom;
    mask-image: linear-gradient(to top, #000 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 90%);
}
@media (prefers-reduced-motion: reduce) {
    .bi-sanat .bokeh, .bi-sanat .huzme { animation: none !important; }
}

/* =================================================================
   ★ SANATSAL ANİMASYON MOTORU CANVAS + EFEKT SEÇİCİ (bi-fx.js)
================================================================= */
.bi-fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
/* Canvas üstünde sol sahne metni her efektte okunur kalsın */
.bi-giris-zengin .bi-giris-sahne { text-shadow: 0 2px 14px rgba(0,0,0,.45); }

/* Efekt seçici — sağ altta yüzen buton + panel */
.bi-fx-secici { position: fixed; right: 20px; bottom: 20px; z-index: 30; }
.bi-fx-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); color: #fff;
    font-size: 13px; font-weight: 600; font-family: inherit; padding: 10px 16px; border-radius: 999px;
    cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); transition: background .15s ease, transform .15s ease;
}
.bi-fx-btn:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.bi-fx-btn i { color: #ffd89b; }
.bi-fx-panel {
    position: absolute; right: 0; bottom: calc(100% + 12px); width: 244px; max-height: 360px; overflow-y: auto;
    background: rgba(26,22,51,.96); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 8px;
    box-shadow: 0 24px 60px -12px rgba(0,0,0,.6); display: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bi-fx-panel.acik { display: block; animation: biFunCardIn .2s ease; }
.bi-fx-panel button {
    display: block; width: 100%; text-align: left; background: none; border: none;
    color: rgba(255,255,255,.82); font-size: 13px; font-family: inherit; padding: 9px 12px; border-radius: 9px; cursor: pointer;
    transition: background .12s ease;
}
.bi-fx-panel button:hover { background: rgba(255,255,255,.08); color: #fff; }
.bi-fx-panel button.aktif { background: rgba(167,139,250,.28); color: #fff; font-weight: 600; }
.bi-fx-panel::-webkit-scrollbar { width: 8px; }
.bi-fx-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 8px; }
@media (max-width: 640px) { .bi-fx-secici { right: 12px; bottom: 12px; } .bi-fx-btn span, .bi-fx-btn { font-size: 12px; } }

.bi-giris-rozetler { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.bi-giris-rozetler span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.72); }
.bi-giris-rozetler i { color: #a78bfa; font-size: 14px; }

/* SAĞ — form kartı (zengin ekranda sağa yaslı, tam yükseklik değil) */
.bi-giris-form { width: 100%; max-width: 420px; justify-self: end; }
.bi-giris-form .bi-fun-title { text-align: left; }

/* Mobil: tek kolon — önce form, sonra sahne */
@media (max-width: 900px) {
    .bi-giris-split { grid-template-columns: 1fr; gap: 30px; padding: 24px 18px 40px; }
    .bi-giris-form { order: 1; justify-self: center; max-width: 440px; }
    .bi-giris-sahne { order: 2; text-align: center; }
    .bi-giris-sahne > p { margin-left: auto; margin-right: auto; }
    .bi-giris-canli { }
    .bi-giris-odalar { margin: 0 auto; }
    .bi-giris-rozetler { justify-content: center; }
}

/* =================================================================
   ★ UYGULAMA STİLİ TEMALARI — zengin çift-panel yapısını (bi-giris-zengin)
   popüler uygulamaların ruhuyla boyar: Netflix / Discord / Spotify / Apple
================================================================= */

/* ---- NETFLIX: çok koyu, sinematik, kırmızı vurgu ---- */
.bi-theme-netflix { position: relative; overflow: hidden; background: #0c0c0c !important; }
.bi-theme-netflix::before { content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:
        radial-gradient(circle at 12% 15%, rgba(229,9,20,.16) 0%, transparent 42%),
        radial-gradient(circle at 88% 85%, rgba(229,9,20,.10) 0%, transparent 46%),
        linear-gradient(180deg, #141414 0%, #0a0a0a 100%); }
.bi-theme-netflix > .bi-topbar, .bi-theme-netflix > .bi-hero { position:relative; z-index:2; }
.bi-theme-netflix > .bi-topbar { background:transparent; border-bottom:1px solid rgba(255,255,255,.08); }
.bi-theme-netflix > .bi-topbar .bi-brand, .bi-theme-netflix > .bi-topbar a { color:#fff; }
.bi-theme-netflix .bi-giris-canli { background:rgba(229,9,20,.16); border-color:rgba(229,9,20,.42); color:#ffb3b3; }
.bi-theme-netflix .bi-giris-canli b { color:#fff; } .bi-theme-netflix .bi-giris-canli .dot { background:#e50914; }
.bi-theme-netflix .bi-giris-sahne h1 em { background:linear-gradient(90deg,#e50914,#ff6b6b); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.bi-theme-netflix .bi-mini-oda .thumb.tb1{background:linear-gradient(135deg,#e50914,#831010);}
.bi-theme-netflix .bi-mini-oda .thumb.tb2{background:linear-gradient(135deg,#b81d24,#5c0a0f);}
.bi-theme-netflix .bi-mini-oda .thumb.tb3{background:linear-gradient(135deg,#e87c03,#8a3c00);}
.bi-theme-netflix .bi-giris-rozetler i { color:#e50914; }
.bi-theme-netflix .bi-fun-card { background:rgba(0,0,0,.72)!important; border:1px solid rgba(255,255,255,.12)!important; border-radius:10px!important; box-shadow:0 30px 80px -20px rgba(0,0,0,.85)!important; backdrop-filter:blur(10px); }
.bi-theme-netflix .bi-fun-card::before { background:#e50914; }
.bi-theme-netflix .bi-fun-title { background:none!important; -webkit-text-fill-color:#fff!important; color:#fff!important; }
.bi-theme-netflix .bi-fun-card .subtitle { color:rgba(255,255,255,.6); }
.bi-theme-netflix .bi-fun-card .bi-form-label { color:rgba(255,255,255,.88); }
.bi-theme-netflix .bi-fun-card .bi-input { background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.16); color:#fff; }
.bi-theme-netflix .bi-fun-card .bi-input::placeholder { color:rgba(255,255,255,.4); }
.bi-theme-netflix .bi-fun-card .bi-input:focus { border-color:#e50914; box-shadow:0 0 0 3px rgba(229,9,20,.22); }
.bi-theme-netflix .bi-tabs { background:rgba(255,255,255,.06); }
.bi-theme-netflix .bi-tab { color:rgba(255,255,255,.55); } .bi-theme-netflix .bi-tab.active { background:rgba(229,9,20,.24); color:#fff; }
.bi-theme-netflix .bi-fun-card > label, .bi-theme-netflix .bi-fun-card label span { color:rgba(255,255,255,.6)!important; }
.bi-theme-netflix .bi-btn-primary { background:#e50914!important; border-radius:6px; }
.bi-theme-netflix .bi-btn-primary:hover { background:#f6121d!important; box-shadow:0 8px 24px -8px rgba(229,9,20,.6)!important; }
.bi-theme-netflix .bi-fun-card a, .bi-theme-netflix #bi-sifremi-unuttum-ac, .bi-theme-netflix #bi-unuttum-geri { color:#ff6b6b!important; }

/* ---- DISCORD: mor gradyan zemin, eğlenceli, beyaz kart ---- */
.bi-theme-discord { position: relative; overflow: hidden; background: linear-gradient(160deg, #5865F2 0%, #404EED 45%, #3641c9 100%) !important; }
.bi-theme-discord::before { content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,.14) 0%, transparent 40%),
        radial-gradient(circle at 82% 80%, rgba(88,101,242,.4) 0%, transparent 48%); }
.bi-theme-discord > .bi-topbar, .bi-theme-discord > .bi-hero { position:relative; z-index:2; }
.bi-theme-discord > .bi-topbar { background:transparent; border-bottom:1px solid rgba(255,255,255,.16); }
.bi-theme-discord > .bi-topbar .bi-brand, .bi-theme-discord > .bi-topbar a { color:#fff; }
.bi-theme-discord .bi-giris-canli { background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.3); color:#fff; }
.bi-theme-discord .bi-giris-canli b { color:#fff; } .bi-theme-discord .bi-giris-canli .dot { background:#57F287; }
.bi-theme-discord .bi-giris-sahne h1 em { background:none; -webkit-text-fill-color:#fff; color:#fff; }
.bi-theme-discord .bi-mini-oda { background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.2); }
.bi-theme-discord .bi-mini-oda .thumb.tb1{background:linear-gradient(135deg,#5865F2,#404EED);}
.bi-theme-discord .bi-mini-oda .thumb.tb2{background:linear-gradient(135deg,#EB459E,#a12d6d);}
.bi-theme-discord .bi-mini-oda .thumb.tb3{background:linear-gradient(135deg,#FEE75C,#d9a800);}
.bi-theme-discord .bi-giris-rozetler i { color:#fff; }
.bi-theme-discord .bi-fun-card { background:#fff!important; border:none!important; border-radius:14px!important; box-shadow:0 30px 80px -18px rgba(0,0,0,.5)!important; }
.bi-theme-discord .bi-fun-card::before { background:#5865F2; }
.bi-theme-discord .bi-fun-title { background:none!important; -webkit-text-fill-color:#060607!important; color:#060607!important; }
.bi-theme-discord .bi-btn-primary { background:#5865F2!important; border-radius:8px; }
.bi-theme-discord .bi-btn-primary:hover { background:#4752c4!important; }
.bi-theme-discord .bi-tab.active { background:rgba(88,101,242,.14); color:#5865F2; }
.bi-theme-discord .bi-fun-card a, .bi-theme-discord #bi-sifremi-unuttum-ac, .bi-theme-discord #bi-unuttum-geri { color:#5865F2!important; }

/* ---- SPOTIFY: koyu, canlı yeşil, modern ---- */
.bi-theme-spotify { position: relative; overflow: hidden; background: #121212 !important; }
.bi-theme-spotify::before { content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:
        radial-gradient(circle at 15% 12%, rgba(29,185,84,.20) 0%, transparent 44%),
        radial-gradient(circle at 85% 88%, rgba(30,215,96,.12) 0%, transparent 46%),
        linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%); }
.bi-theme-spotify > .bi-topbar, .bi-theme-spotify > .bi-hero { position:relative; z-index:2; }
.bi-theme-spotify > .bi-topbar { background:transparent; border-bottom:1px solid rgba(255,255,255,.08); }
.bi-theme-spotify > .bi-topbar .bi-brand, .bi-theme-spotify > .bi-topbar a { color:#fff; }
.bi-theme-spotify .bi-giris-canli { background:rgba(29,185,84,.16); border-color:rgba(29,185,84,.4); color:#7ee2a8; }
.bi-theme-spotify .bi-giris-canli b { color:#fff; } .bi-theme-spotify .bi-giris-canli .dot { background:#1DB954; }
.bi-theme-spotify .bi-giris-sahne h1 em { background:linear-gradient(90deg,#1DB954,#1ed760); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.bi-theme-spotify .bi-mini-oda .thumb.tb1{background:linear-gradient(135deg,#1DB954,#0d5c2a);}
.bi-theme-spotify .bi-mini-oda .thumb.tb2{background:linear-gradient(135deg,#8b5cf6,#4c2d99);}
.bi-theme-spotify .bi-mini-oda .thumb.tb3{background:linear-gradient(135deg,#f59e0b,#8a5a00);}
.bi-theme-spotify .bi-giris-rozetler i { color:#1DB954; }
.bi-theme-spotify .bi-fun-card { background:rgba(24,24,24,.9)!important; border:1px solid rgba(255,255,255,.09)!important; border-radius:14px!important; box-shadow:0 30px 80px -20px rgba(0,0,0,.85)!important; }
.bi-theme-spotify .bi-fun-card::before { background:#1DB954; }
.bi-theme-spotify .bi-fun-title { background:none!important; -webkit-text-fill-color:#fff!important; color:#fff!important; }
.bi-theme-spotify .bi-fun-card .subtitle { color:rgba(255,255,255,.6); }
.bi-theme-spotify .bi-fun-card .bi-form-label { color:rgba(255,255,255,.88); }
.bi-theme-spotify .bi-fun-card .bi-input { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); color:#fff; border-radius:6px; }
.bi-theme-spotify .bi-fun-card .bi-input::placeholder { color:rgba(255,255,255,.4); }
.bi-theme-spotify .bi-fun-card .bi-input:focus { border-color:#1DB954; box-shadow:0 0 0 3px rgba(29,185,84,.22); }
.bi-theme-spotify .bi-tabs { background:rgba(255,255,255,.06); }
.bi-theme-spotify .bi-tab { color:rgba(255,255,255,.55); } .bi-theme-spotify .bi-tab.active { background:rgba(29,185,84,.2); color:#1ed760; }
.bi-theme-spotify .bi-fun-card > label, .bi-theme-spotify .bi-fun-card label span { color:rgba(255,255,255,.6)!important; }
.bi-theme-spotify .bi-btn-primary { background:#1DB954!important; color:#000!important; font-weight:800; border-radius:999px; }
.bi-theme-spotify .bi-btn-primary:hover { background:#1ed760!important; transform:scale(1.02); }
.bi-theme-spotify .bi-fun-card a, .bi-theme-spotify #bi-sifremi-unuttum-ac, .bi-theme-spotify #bi-unuttum-geri { color:#1ed760!important; }

/* ============================================================
   APPLE TEMASI — degisken tabanli (light + dark + accent kisisel.)
   --bi-accent / --bi-accent-rgb: JS ile degistirilir (kisisellestirme)
   [data-bi-tema="dark"]: koyu mod override'lari
   ============================================================ */
/* Tema degiskenleri :root/documentElement seviyesinde — body'ye eklenen panel dahil HER yer miras alir.
   Vurgu rengini JS (bi-prefs) documentElement.style ile override eder (kisisellestirme). */
/* BIRLIKTE IZLE OZGUN PALETI (2026-07-12): genel Apple-notr yerine erpida'nin KENDI marka renkleri.
   Acik mod = erpida.com ana sayfa "Kariyer" paleti (sicak krem + turuncu). Koyu mod = kurumsal paleti
   (lacivert-mor + mor-mavi gradyan). Vurgu rengi varsayilani da erpida turuncusuna cekildi; kullanici
   kisisellestirme panelinden yine 6 renkten (mavi/mor/pembe/yesil/turuncu/kirmizi) secebilir. */
:root {
    --bi-accent:#FF6B35; --bi-accent-rgb:255,107,53; --bi-accent-2:#D94F1A;
    --ap-bg:#FFF6EC; --ap-surface:#ffffff; --ap-surface-2:#FBEADC;
    --ap-border:rgba(27,40,56,.08); --ap-border-strong:rgba(27,40,56,.15);
    --ap-text:#1B2838; --ap-text-2:#5b6b80; --ap-text-3:#8b96a5;
    --ap-shadow:rgba(27,40,56,.10); --ap-logo-filter:brightness(0) saturate(100%);
}
/* Kurumsal'in GERCEK [data-theme="dark"] blogundan birebir (kurumsal.css) — main.css'teki genel
   referans paleti DEGIL. Kurumsal neredeyse saf siyah + glassmorphism kullanir, koyu-mor-lacivert degil. */
[data-bi-tema="dark"] {
    --ap-bg:#000000; --ap-surface:#0A0A0A; --ap-surface-2:#141414;
    --ap-border:rgba(255,255,255,.1); --ap-border-strong:#2A2A2A;
    --ap-text:#FFFFFF; --ap-text-2:#E0E0E0; --ap-text-3:#B3B3B3;
    --ap-shadow:rgba(0,0,0,.9); --ap-logo-filter:brightness(0) invert(1);
}

/* ---- GIRIS EKRANI (bi-theme-apple) ---- */
.bi-theme-apple { position:relative; overflow:hidden; background:var(--ap-bg) !important; }
.bi-theme-apple::before { content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:
        radial-gradient(circle at 20% 15%, rgba(var(--bi-accent-rgb),.08) 0%, transparent 42%),
        radial-gradient(circle at 82% 82%, rgba(var(--bi-accent-rgb),.06) 0%, transparent 46%); }
.bi-theme-apple > .bi-topbar, .bi-theme-apple > .bi-hero { position:relative; z-index:2; }
.bi-theme-apple > .bi-topbar { background:transparent; border-bottom:1px solid var(--ap-border); }
.bi-theme-apple > .bi-topbar .bi-brand, .bi-theme-apple > .bi-topbar a { color:var(--ap-text); }
.bi-theme-apple .bi-giris-sahne { text-shadow:none; }
.bi-theme-apple .bi-giris-sahne h1 { color:var(--ap-text); }
.bi-theme-apple .bi-giris-sahne h1 em { background:none; -webkit-text-fill-color:var(--bi-accent); color:var(--bi-accent); }
.bi-theme-apple .bi-giris-sahne > p { color:var(--ap-text-2); }
.bi-theme-apple .bi-giris-canli { background:rgba(var(--bi-accent-rgb),.08); border-color:rgba(var(--bi-accent-rgb),.2); color:var(--bi-accent); }
.bi-theme-apple .bi-giris-canli b { color:var(--ap-text); } .bi-theme-apple .bi-giris-canli .dot { background:#ef4444; }
.bi-theme-apple .bi-mini-oda { background:var(--ap-surface); border-color:var(--ap-border); box-shadow:0 2px 12px var(--ap-shadow); }
.bi-theme-apple .bi-mini-oda .baslik { color:var(--ap-text); } .bi-theme-apple .bi-mini-oda .alt { color:var(--ap-text-2); } .bi-theme-apple .bi-mini-oda .foot { color:var(--ap-text-2); }
.bi-theme-apple .bi-mini-oda .thumb.tb1{background:linear-gradient(135deg,#0071e3,#0a4d9e);}
.bi-theme-apple .bi-mini-oda .thumb.tb2{background:linear-gradient(135deg,#af52de,#6d2b91);}
.bi-theme-apple .bi-mini-oda .thumb.tb3{background:linear-gradient(135deg,#ff9500,#c26a00);}
.bi-theme-apple .bi-mini-oda .av { border-color:var(--ap-surface); }
.bi-theme-apple .bi-giris-rozetler span { color:var(--ap-text-2); } .bi-theme-apple .bi-giris-rozetler i { color:var(--bi-accent); }
.bi-theme-apple .bi-fun-card { background:var(--ap-surface)!important; border:1px solid var(--ap-border)!important; border-radius:18px!important; box-shadow:0 20px 60px -18px var(--ap-shadow)!important; }
.bi-theme-apple .bi-fun-card::before { display:none; }
.bi-theme-apple .bi-fun-title { background:none!important; -webkit-text-fill-color:var(--ap-text)!important; color:var(--ap-text)!important; font-weight:600!important; }
.bi-theme-apple .bi-fun-card label, .bi-theme-apple .bi-fun-card .bi-form-label { color:var(--ap-text-2); }
.bi-theme-apple .bi-fun-card input, .bi-theme-apple .bi-fun-card textarea, .bi-theme-apple .bi-fun-card select {
    background:var(--ap-surface-2); border:1px solid var(--ap-border-strong); color:var(--ap-text); }
.bi-theme-apple .bi-fun-card input::placeholder, .bi-theme-apple .bi-fun-card textarea::placeholder { color:var(--ap-text-3); }
.bi-theme-apple .bi-btn-primary { background:var(--bi-accent)!important; border-radius:999px; color:#fff!important; }
.bi-theme-apple .bi-btn-primary:hover { filter:brightness(1.06); }
.bi-theme-apple .bi-tab { color:var(--ap-text-2); }
.bi-theme-apple .bi-tab.active { background:rgba(var(--bi-accent-rgb),.1); color:var(--bi-accent); }
.bi-theme-apple .bi-fun-card a, .bi-theme-apple #bi-sifremi-unuttum-ac, .bi-theme-apple #bi-unuttum-geri { color:var(--bi-accent)!important; }

/* ============================================================
   APPLE LOBI (oturum acilmis ana ekran)
   ============================================================ */
.bi-lobi-apple { background:var(--ap-bg); min-height:100vh; color:var(--ap-text); }
.bi-lobi-apple::before { content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
    background:
      radial-gradient(760px 420px at 12% -5%, rgba(var(--bi-accent-rgb),.09), transparent 60%),
      radial-gradient(680px 420px at 105% 8%, rgba(175,82,222,.06), transparent 60%); }
.bi-lobi-apple > * { position:relative; z-index:1; }

/* Topbar */
.bi-lobi-apple .bi-lobi-topbar { background:rgba(var(--bi-accent-rgb),0); background-color:color-mix(in srgb, var(--ap-bg) 82%, transparent);
    backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-bottom:1px solid var(--ap-border);
    position:sticky; top:0; z-index:20; padding:14px 32px; display:flex; align-items:center; justify-content:space-between; }
.bi-lobi-apple .bi-lobi-brand { display:flex; align-items:center; gap:11px; text-decoration:none; }
.bi-lobi-apple .bi-lobi-topbar-right, .bi-giris-topbar-right { display:flex; align-items:center; gap:12px; }
.bi-tema-btn { width:40px; height:40px; border-radius:50%; border:1px solid var(--ap-border-strong);
    background:var(--ap-surface); color:var(--ap-text-2); font-size:16px; cursor:pointer; display:flex;
    align-items:center; justify-content:center; transition:all .15s ease; box-shadow:0 1px 4px var(--ap-shadow); flex:0 0 auto; }
.bi-tema-btn:hover { color:var(--bi-accent); border-color:rgba(var(--bi-accent-rgb),.5); transform:translateY(-1px); }
/* Giris topbar: logo buyut + yazi yok */

/* Ana govde */
.bi-lobi-apple .bi-lobi { max-width:1280px; margin:0 auto; padding:38px 32px 80px; }

/* Karsilama + istatistik */
.bi-lobi-apple .bi-lobi-hero { display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; margin-bottom:34px; }
.bi-lobi-apple .bi-lobi-hero-main { display:flex; align-items:center; gap:18px; }
.bi-lobi-apple .bi-lobi-ava, .bi-lobi-apple .bi-lobi-ava-ph { width:66px; height:66px; border-radius:50%; object-fit:cover; flex:0 0 auto; box-shadow:0 6px 20px -6px rgba(0,0,0,.22); }
.bi-lobi-apple .bi-lobi-ava-ph { display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; font-size:26px; }
.bi-lobi-apple .bi-lobi-hero-text h1 { font-size:29px; font-weight:700; letter-spacing:-.02em; color:var(--ap-text); margin:0 0 5px; line-height:1.15; }
.bi-lobi-apple .bi-lobi-hero-text h1 .wave { display:inline-block; }
.bi-lobi-apple .bi-lobi-sub { color:var(--ap-text-2); font-size:15px; margin:0; }

/* Istatistik kartlari */
.bi-lobi-apple .bi-lobi-stats { display:flex; gap:12px; flex-wrap:wrap; }
.bi-lobi-apple .bi-lobi-statcard { display:flex; align-items:center; gap:11px; background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:16px; padding:12px 16px; min-width:120px; box-shadow:0 2px 10px var(--ap-shadow); }
.bi-lobi-apple .bi-lobi-statcard .lvl-ring { width:42px; height:42px; border-radius:50%; flex:0 0 auto; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:16px; background:conic-gradient(var(--bi-accent) 0 30%, rgba(var(--bi-accent-rgb),.15) 30% 100%); position:relative; }
.bi-lobi-apple .bi-lobi-statcard .lvl-ring::after { content:''; position:absolute; inset:4px; border-radius:50%; background:var(--bi-accent); }
.bi-lobi-apple .bi-lobi-statcard .lvl-ring span { position:relative; z-index:1; }
.bi-lobi-apple .bi-lobi-statcard .ic { width:42px; height:42px; border-radius:12px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; font-size:17px; }
.bi-lobi-apple .bi-lobi-statcard .ic-blue { background:rgba(var(--bi-accent-rgb),.14); color:var(--bi-accent); }
.bi-lobi-apple .bi-lobi-statcard .ic-green { background:rgba(52,199,89,.16); color:#30d158; }
.bi-lobi-apple .bi-lobi-statcard .ic-orange { background:rgba(255,149,0,.16); color:#ff9f0a; }
.bi-lobi-apple .bi-lobi-statcard .tx { display:flex; flex-direction:column; line-height:1.2; }
.bi-lobi-apple .bi-lobi-statcard .tx strong { font-size:16px; font-weight:700; color:var(--ap-text); }
.bi-lobi-apple .bi-lobi-statcard .tx span { font-size:12px; color:var(--ap-text-3); }

/* Aksiyon kartlari */
.bi-lobi-apple .bi-lobi-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(224px,1fr)); gap:16px; margin-bottom:38px; }
.bi-lobi-apple .bi-lobi-action { display:flex; align-items:center; gap:15px; background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:18px; padding:20px; text-decoration:none; box-shadow:0 2px 12px var(--ap-shadow); transition:transform .2s ease, box-shadow .2s ease; position:relative; }
.bi-lobi-apple .bi-lobi-action:hover { transform:translateY(-3px); box-shadow:0 14px 32px -12px rgba(0,0,0,.28); }
.bi-lobi-apple .bi-lobi-action .ic { width:52px; height:52px; border-radius:14px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; font-size:21px; color:#fff; }
.bi-lobi-apple .act-open .ic { background:linear-gradient(135deg,#0071e3,#0a4d9e); }
.bi-lobi-apple .act-explore .ic { background:linear-gradient(135deg,#af52de,#6d2b91); }
.bi-lobi-apple .act-profile .ic { background:linear-gradient(135deg,#ff9500,#c26a00); }
.bi-lobi-apple .act-event .ic { background:linear-gradient(135deg,#34c759,#1a8f3c); }
.bi-lobi-apple .bi-lobi-action .tx { flex:1; }
.bi-lobi-apple .bi-lobi-action .tx h3 { font-size:16px; font-weight:600; color:var(--ap-text); margin:0 0 3px; letter-spacing:-.01em; }
.bi-lobi-apple .bi-lobi-action .tx p { font-size:13px; color:var(--ap-text-3); margin:0; line-height:1.35; }
.bi-lobi-apple .bi-lobi-action .go { color:var(--ap-text-3); font-size:14px; transition:transform .2s ease, color .2s ease; }
.bi-lobi-apple .bi-lobi-action:hover .go { color:var(--bi-accent); transform:translateX(3px); }

/* Kategori cipleri — sola hizali, Canli Odalar basliginin hemen altinda (odalari filtreler) */
.bi-lobi-apple .bi-lobi-cats { display:flex; gap:9px; flex-wrap:wrap; justify-content:flex-start; margin:-2px 0 18px; }
.bi-lobi-apple .bi-lobi-cat { display:inline-flex; align-items:center; gap:7px; background:var(--ap-surface); border:1px solid var(--ap-border-strong); border-radius:999px; padding:8px 16px; font-size:13px; font-weight:500; color:var(--ap-text-2); cursor:pointer; transition:all .15s ease; font-family:inherit; }
.bi-lobi-apple .bi-lobi-cat i { font-size:12px; color:var(--ap-text-3); }
.bi-lobi-apple .bi-lobi-cat:hover { border-color:rgba(var(--bi-accent-rgb),.5); color:var(--bi-accent); }
.bi-lobi-apple .bi-lobi-cat.active { background:var(--bi-accent); border-color:var(--bi-accent); color:#fff; }
.bi-lobi-apple .bi-lobi-cat.active i { color:#fff; }

/* Canli odalar basligi */
.bi-lobi-apple .bi-lobi-rooms-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.bi-lobi-apple .bi-lobi-rooms-head h2 { display:flex; align-items:center; gap:10px; font-size:19px; font-weight:700; color:var(--ap-text); letter-spacing:-.02em; margin:0; }
.bi-lobi-apple .bi-lobi-rooms-head h2 > i { color:var(--bi-accent); font-size:17px; }
.bi-lobi-apple .bi-lobi-rooms-head .live-dot { width:9px; height:9px; border-radius:50%; background:#ef4444; box-shadow:0 0 0 0 rgba(239,68,68,.5); animation:biLobiPulse 2s infinite; }
@keyframes biLobiPulse { 0%{box-shadow:0 0 0 0 rgba(239,68,68,.45);} 70%{box-shadow:0 0 0 8px rgba(239,68,68,0);} 100%{box-shadow:0 0 0 0 rgba(239,68,68,0);} }
.bi-lobi-apple .bi-lobi-more { color:var(--bi-accent); text-decoration:none; font-size:13px; font-weight:600; display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:999px; background:rgba(var(--bi-accent-rgb),.1); transition:background .15s ease; white-space:nowrap; }
.bi-lobi-apple .bi-lobi-more:hover { background:rgba(var(--bi-accent-rgb),.2); }
.bi-lobi-apple .bi-lobi-more i { transition:transform .15s ease; }
.bi-lobi-apple .bi-lobi-more:hover i { transform:translateX(2px); }
.bi-lobi-apple .bi-lobi-loading { text-align:center; padding:50px; color:var(--ap-text-3); font-size:26px; }

/* Oda kartlari (Apple) */
.bi-lobi-apple .bi-kesfet-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.bi-lobi-apple .bi-kesfet-card { background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:16px; padding:16px; box-shadow:0 2px 12px var(--ap-shadow); position:relative; }
.bi-lobi-apple .bi-lobi-room-live { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; color:#ef4444; letter-spacing:.04em; margin-bottom:10px; }
.bi-lobi-apple .bi-lobi-room-live .dot { width:7px; height:7px; border-radius:50%; background:#ef4444; }
.bi-lobi-apple .bi-lobi-room-ornek { display:inline-block; font-size:10px; font-weight:700; color:var(--ap-text-3); background:var(--ap-surface-2); border-radius:999px; padding:3px 9px; letter-spacing:.05em; margin-bottom:10px; }
.bi-lobi-apple .bi-kesfet-card.ornek { opacity:.62; }
.bi-lobi-apple .bi-kesfet-card-top { display:flex; align-items:center; gap:11px; margin-bottom:11px; }
.bi-lobi-apple .bi-kesfet-avatar-img, .bi-lobi-apple .bi-kesfet-avatar-fallback { width:42px; height:42px; border-radius:50%; object-fit:cover; flex:0 0 auto; display:flex; align-items:center; justify-content:center; }
.bi-lobi-apple .bi-kesfet-avatar-fallback { background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; font-size:16px; }
.bi-lobi-apple .bi-kesfet-baslik { font-size:15px; font-weight:600; color:var(--ap-text); }
.bi-lobi-apple .bi-kesfet-host { font-size:12.5px; color:var(--ap-text-3); }
.bi-lobi-apple .bi-kesfet-aciklama { font-size:13px; color:var(--ap-text-2); margin-bottom:12px; line-height:1.4; }
.bi-lobi-apple .bi-kesfet-card-alt { display:flex; align-items:center; justify-content:space-between; }
.bi-lobi-apple .bi-kesfet-card-alt span { font-size:12.5px; color:var(--ap-text-3); display:inline-flex; align-items:center; gap:6px; }
.bi-lobi-apple .bi-btn-primary { background:var(--bi-accent); color:#fff; border:none; border-radius:999px; padding:8px 18px; font-size:13px; font-weight:600; text-decoration:none; cursor:pointer; transition:filter .15s ease; }
.bi-lobi-apple .bi-btn-primary:hover { filter:brightness(1.08); }
.bi-lobi-apple .bi-btn-sm { padding:6px 15px; font-size:12.5px; }
.bi-lobi-apple .bi-btn-block { width:100%; text-align:center; }
/* Kesfet katilim formu — Apple */
.bi-lobi-apple .bi-kesfet-katil-form { margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.bi-lobi-apple .bi-kesfet-katil-form .bi-input { width:100%; background:var(--ap-surface-2); border:1px solid var(--ap-border-strong); border-radius:10px; padding:10px 13px; font-size:13.5px; color:var(--ap-text); font-family:inherit; transition:border-color .15s ease, box-shadow .15s ease; }
.bi-lobi-apple .bi-kesfet-katil-form .bi-input::placeholder { color:var(--ap-text-3); }
.bi-lobi-apple .bi-kesfet-katil-form .bi-input:focus { outline:none; border-color:var(--bi-accent); box-shadow:0 0 0 3px rgba(var(--bi-accent-rgb),.15); }
.bi-lobi-apple .bi-kesfet-onay-label { display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--ap-text-3); line-height:1.45; cursor:pointer; }
.bi-lobi-apple .bi-kesfet-onay-label input { margin-top:2px; flex-shrink:0; accent-color:var(--bi-accent); }
.bi-lobi-apple .bi-kesfet-onay-label a { color:var(--bi-accent); }
/* Kesfet ust bilgi + bos durum */
.bi-lobi-apple #bi-kesfet-grid { margin-top:4px; }
.bi-lobi-apple .bi-alert { display:flex; align-items:flex-start; gap:9px; padding:12px 14px; border-radius:12px; font-size:13.5px; line-height:1.45; margin-bottom:14px; }
.bi-lobi-apple .bi-alert-error { background:rgba(239,68,68,.1); color:#ff453a; border:1px solid rgba(239,68,68,.25); }
.bi-lobi-apple .bi-alert-success { background:rgba(52,199,89,.12); color:#1a8f3c; border:1px solid rgba(52,199,89,.28); }
.bi-lobi-apple .bi-alert-info { background:rgba(var(--bi-accent-rgb),.1); color:var(--bi-accent); border:1px solid rgba(var(--bi-accent-rgb),.25); }

/* ============================================================
   YENI ODA AC MODALI (Apple) — lobi "Yeni Oda Aç" ile acilir
   ============================================================ */
.bi-oda-modal-ov { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px;
    background:rgba(0,0,0,.5); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); animation:biOdaModalFade .2s ease; }
@keyframes biOdaModalFade { from { opacity:0; } to { opacity:1; } }
.bi-oda-modal { position:relative; width:100%; max-width:480px; max-height:92vh; overflow-y:auto; background:var(--ap-surface);
    border:1px solid var(--ap-border); border-radius:24px; box-shadow:0 30px 80px -20px rgba(0,0,0,.5); animation:biOdaModalUp .25s cubic-bezier(.16,1,.3,1); }
@keyframes biOdaModalUp { from { transform:translateY(16px) scale(.98); opacity:0; } to { transform:none; opacity:1; } }
.bi-oda-modal-close { position:absolute; top:18px; right:18px; width:34px; height:34px; border-radius:50%; border:none;
    background:var(--ap-surface-2); color:var(--ap-text-3); font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s ease; z-index:2; }
.bi-oda-modal-close:hover { background:rgba(239,68,68,.12); color:#ff453a; }
.bi-oda-modal-head { padding:28px 30px 6px; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.bi-oda-modal-head h3 { font-size:24px; font-weight:800; letter-spacing:-.02em; color:var(--ap-text); margin:0 0 4px; }
.bi-oda-modal-head p { font-size:14px; color:var(--ap-text-3); margin:0; }
.bi-oda-modal-user { display:inline-flex; align-items:center; gap:8px; background:var(--ap-surface-2); border:1px solid var(--ap-border); border-radius:999px; padding:5px 12px 5px 6px; flex-shrink:0; }
.bi-oda-modal-user img, .bi-oda-modal-user .ph { width:26px; height:26px; border-radius:50%; object-fit:cover; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; font-size:12px; font-weight:700; }
.bi-oda-modal-user span { font-size:13px; font-weight:600; color:var(--ap-text); max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bi-oda-modal-body { padding:16px 30px 4px; }
.bi-oda-modal-body .bi-form-label { display:block; font-size:13px; font-weight:600; color:var(--ap-text-2); margin-bottom:7px; margin-top:16px; }
.bi-oda-modal-body .bi-form-label:first-child { margin-top:0; }
.bi-oda-modal-body .bi-input { width:100%; background:var(--ap-surface-2); border:1px solid var(--ap-border-strong); border-radius:12px;
    padding:12px 14px; font-size:14px; color:var(--ap-text); font-family:inherit; transition:border-color .15s ease, box-shadow .15s ease; }
.bi-oda-modal-body .bi-input::placeholder { color:var(--ap-text-3); }
.bi-oda-modal-body .bi-input:focus { outline:none; border-color:var(--bi-accent); box-shadow:0 0 0 3px rgba(var(--bi-accent-rgb),.15); }
.bi-oda-modal .bi-gorunurluk-secim { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.bi-oda-modal .bi-gorunurluk-opt { display:flex; flex-direction:column; gap:6px; padding:14px; border:1.5px solid var(--ap-border-strong);
    border-radius:14px; cursor:pointer; transition:all .15s ease; position:relative; }
.bi-oda-modal .bi-gorunurluk-opt input { position:absolute; opacity:0; pointer-events:none; }
.bi-oda-modal .bi-gorunurluk-opt > i { font-size:18px; color:var(--ap-text-3); }
.bi-oda-modal .bi-gorunurluk-opt strong { display:block; font-size:14px; font-weight:700; color:var(--ap-text); }
.bi-oda-modal .bi-gorunurluk-opt span { font-size:11.5px; color:var(--ap-text-3); line-height:1.35; }
.bi-oda-modal .bi-gorunurluk-opt.active { border-color:var(--bi-accent); background:rgba(var(--bi-accent-rgb),.07); }
.bi-oda-modal .bi-gorunurluk-opt.active > i, .bi-oda-modal .bi-gorunurluk-opt.active strong { color:var(--bi-accent); }
.bi-oda-modal .bi-kalici-toggle { display:flex; gap:11px; align-items:flex-start; cursor:pointer; margin-top:18px; }
.bi-oda-modal .bi-kalici-toggle input { margin-top:2px; flex-shrink:0; accent-color:var(--bi-accent); width:16px; height:16px; }
.bi-oda-modal .bi-kalici-toggle strong { font-size:13.5px; color:var(--ap-text); font-weight:600; }
.bi-oda-modal .bi-kalici-toggle strong i { color:var(--bi-accent); margin-right:4px; }
.bi-oda-modal .bi-kalici-toggle small { display:block; margin-top:3px; font-size:12px; color:var(--ap-text-3); line-height:1.4; }
.bi-oda-modal .bi-legal-check-label { display:flex; gap:11px; align-items:flex-start; cursor:pointer; margin-top:16px; padding:14px;
    background:var(--ap-surface-2); border-radius:14px; }
.bi-oda-modal .bi-legal-check-label input { margin-top:2px; flex-shrink:0; accent-color:var(--bi-accent); width:16px; height:16px; }
.bi-oda-modal .bi-legal-check-label span { font-size:12px; color:var(--ap-text-3); line-height:1.5; }
.bi-oda-modal .bi-legal-check-label strong { color:var(--ap-text-2); }
.bi-oda-modal .bi-legal-check-label a { color:var(--bi-accent); }
.bi-oda-modal-foot { padding:8px 30px 28px; }
.bi-oda-modal-foot .bi-btn-primary { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:13px; font-size:15px; font-weight:700; border-radius:14px; background:var(--bi-accent); border:none; color:#fff; cursor:pointer; font-family:inherit; transition:filter .15s ease; }
.bi-oda-modal-foot .bi-btn-primary:hover { filter:brightness(1.08); }
.bi-oda-modal-foot .bi-btn-primary:disabled { opacity:.7; cursor:default; }
.bi-oda-modal-note { margin-top:14px; font-size:12px; color:var(--ap-text-3); text-align:center; }
#bi-oda-modal-alert:not(:empty) { margin-bottom:14px; }
@media (max-width:520px) { .bi-oda-modal-head, .bi-oda-modal-body, .bi-oda-modal-foot { padding-left:20px; padding-right:20px; } .bi-oda-modal .bi-gorunurluk-secim { grid-template-columns:1fr; } }

/* Bos durum */
.bi-lobi-apple .bi-lobi-empty { display:flex; flex-direction:column; gap:30px; }
.bi-lobi-apple .bi-lobi-empty-hero { text-align:center; background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:20px; padding:44px 30px; box-shadow:0 2px 14px var(--ap-shadow); }
.bi-lobi-apple .bi-lobi-empty-ic { width:66px; height:66px; margin:0 auto 18px; border-radius:20px; background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; font-size:27px; display:flex; align-items:center; justify-content:center; box-shadow:0 12px 30px -10px rgba(var(--bi-accent-rgb),.5); }
.bi-lobi-apple .bi-lobi-empty-hero h3 { font-size:22px; font-weight:700; color:var(--ap-text); margin:0 0 8px; letter-spacing:-.02em; }
.bi-lobi-apple .bi-lobi-empty-hero p { font-size:14.5px; color:var(--ap-text-2); max-width:440px; margin:0 auto 22px; line-height:1.5; }
.bi-lobi-apple .bi-lobi-empty-hero .bi-btn-primary { display:inline-flex; align-items:center; gap:8px; padding:11px 24px; font-size:14px; }
.bi-lobi-apple .bi-lobi-empty-samples .lbl { font-size:12.5px; color:var(--ap-text-3); text-align:center; margin-bottom:14px; text-transform:uppercase; letter-spacing:.06em; font-weight:600; }

/* Auth dropdown — Apple uyumu */
.bi-lobi-apple .bi-auth-trigger { display:inline-flex; align-items:center; gap:8px; background:var(--ap-surface); border:1px solid var(--ap-border-strong); border-radius:999px; padding:6px 14px 6px 6px; color:var(--ap-text); font-size:14px; font-weight:500; cursor:pointer; font-family:inherit; box-shadow:0 1px 4px var(--ap-shadow); }
.bi-lobi-apple .bi-auth-trigger:hover { border-color:rgba(var(--bi-accent-rgb),.5); }
.bi-lobi-apple .bi-auth-avatar-img { width:30px; height:30px; border-radius:50%; object-fit:cover; }
.bi-lobi-apple .bi-auth-trigger > i.fa-user-circle { font-size:26px; color:var(--bi-accent); }
.bi-lobi-apple .bi-auth-dropdown { position:absolute; right:0; top:calc(100% + 10px); width:288px; background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:18px; box-shadow:0 24px 60px -18px rgba(0,0,0,.4); overflow:hidden; z-index:50; }
.bi-lobi-apple .bi-auth-menu { position:relative; }
.bi-lobi-apple .bi-auth-head { display:flex; align-items:center; gap:12px; padding:18px; background:linear-gradient(135deg, rgba(var(--bi-accent-rgb),.08), rgba(175,82,222,.06)); border-bottom:1px solid var(--ap-border); }
.bi-lobi-apple .bi-auth-head-ava { width:46px; height:46px; border-radius:50%; object-fit:cover; flex:0 0 auto; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; font-size:19px; font-weight:700; }
.bi-lobi-apple .bi-auth-head-info { display:flex; flex-direction:column; min-width:0; }
.bi-lobi-apple .bi-auth-head-info strong { font-size:15px; color:var(--ap-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bi-lobi-apple .bi-auth-head-info span { font-size:12.5px; color:var(--ap-text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bi-lobi-apple .bi-auth-menu-group { padding:8px; }
.bi-lobi-apple .bi-auth-menu-link { display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:11px; color:var(--ap-text); text-decoration:none; font-size:14px; font-weight:500; transition:background .12s ease; cursor:pointer; }
.bi-lobi-apple .bi-auth-menu-link i { width:18px; text-align:center; color:var(--ap-text-3); font-size:15px; }
.bi-lobi-apple .bi-auth-menu-link:hover { background:rgba(var(--bi-accent-rgb),.1); }
.bi-lobi-apple .bi-auth-menu-link:hover i { color:var(--bi-accent); }
.bi-lobi-apple .bi-auth-cikis { width:calc(100% - 16px); margin:4px 8px 10px; display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:11px; border:none; background:rgba(239,68,68,.1); color:#ff453a; font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; transition:background .12s ease; }
.bi-lobi-apple .bi-auth-cikis:hover { background:rgba(239,68,68,.18); }

@media (max-width:860px) {
    .bi-lobi-apple .bi-lobi-actions { grid-template-columns:1fr; }
    .bi-lobi-apple .bi-lobi-hero { flex-direction:column; align-items:flex-start; }
    .bi-lobi-apple .bi-lobi-stats { width:100%; }
    .bi-lobi-apple .bi-lobi-statcard { flex:1 1 calc(50% - 6px); min-width:0; }
    .bi-lobi-apple .bi-lobi { padding:26px 18px 60px; }
    .bi-lobi-apple .bi-lobi-topbar { padding:12px 18px; }
    .bi-logo-full { height:38px; }
}

/* ============================================================
   KISISELLESTIRME PANELI (gorunum + vurgu rengi) — Apple dili
   ============================================================ */
.bi-kisisel-overlay { position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.4); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); display:none; align-items:center; justify-content:center; padding:20px; }
.bi-kisisel-overlay.acik { display:flex; }
.bi-kisisel-panel { width:100%; max-width:440px; background:var(--ap-surface,#fff); border:1px solid var(--ap-border,rgba(0,0,0,.08)); border-radius:22px; box-shadow:0 30px 80px -20px rgba(0,0,0,.5); overflow:hidden; animation:biKisiselIn .25s ease; }
@keyframes biKisiselIn { from{opacity:0; transform:translateY(14px) scale(.98);} to{opacity:1; transform:none;} }
.bi-kisisel-head { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--ap-border,rgba(0,0,0,.07)); }
.bi-kisisel-head h3 { font-size:18px; font-weight:700; color:var(--ap-text,#1d1d1f); margin:0; letter-spacing:-.02em; display:flex; align-items:center; gap:10px; }
.bi-kisisel-head h3 i { color:var(--bi-accent,#0071e3); }
.bi-kisisel-close { width:34px; height:34px; border-radius:50%; border:none; background:var(--ap-surface-2,#f5f5f7); color:var(--ap-text-2,#6e6e73); font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s ease; }
.bi-kisisel-close:hover { background:var(--ap-border-strong,rgba(0,0,0,.12)); }
.bi-kisisel-body { padding:22px; display:flex; flex-direction:column; gap:24px; }
.bi-kisisel-grup > .lbl { font-size:12.5px; font-weight:700; color:var(--ap-text-3,#8a8a8e); text-transform:uppercase; letter-spacing:.05em; margin-bottom:12px; }
/* Gorunum segmentli kontrol */
.bi-gorunum-seg { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.bi-gorunum-opt { display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 8px; border-radius:14px; border:2px solid var(--ap-border,rgba(0,0,0,.08)); background:var(--ap-surface-2,#f5f5f7); cursor:pointer; transition:all .15s ease; font-family:inherit; }
.bi-gorunum-opt i { font-size:19px; color:var(--ap-text-2,#6e6e73); }
.bi-gorunum-opt span { font-size:12.5px; font-weight:600; color:var(--ap-text,#1d1d1f); }
.bi-gorunum-opt:hover { border-color:rgba(var(--bi-accent-rgb,0,113,227),.4); }
.bi-gorunum-opt.active { border-color:var(--bi-accent,#0071e3); background:rgba(var(--bi-accent-rgb,0,113,227),.08); }
.bi-gorunum-opt.active i, .bi-gorunum-opt.active span { color:var(--bi-accent,#0071e3); }
/* Vurgu rengi noktalari */
.bi-accent-list { display:flex; gap:12px; flex-wrap:wrap; }
.bi-accent-dot { width:40px; height:40px; border-radius:50%; border:3px solid transparent; cursor:pointer; position:relative; transition:transform .15s ease; padding:0; }
.bi-accent-dot:hover { transform:scale(1.1); }
.bi-accent-dot.active { border-color:var(--ap-surface,#fff); box-shadow:0 0 0 2px var(--ap-text-3,#8a8a8e); }
.bi-accent-dot.active::after { content:'\f00c'; font-family:'Font Awesome 6 Free'; font-weight:900; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:13px; }
.bi-kisisel-foot { padding:16px 22px; border-top:1px solid var(--ap-border,rgba(0,0,0,.07)); display:flex; justify-content:flex-end; }
.bi-kisisel-foot .bi-btn-primary { background:var(--bi-accent,#0071e3); color:#fff; border:none; border-radius:999px; padding:10px 22px; font-size:14px; font-weight:600; cursor:pointer; }

/* ============================================================
   APPLE PROFIL & AYARLAR SAYFASI
   ============================================================ */
.bi-profil-apple .bi-profil-geri { color:var(--ap-text-2); text-decoration:none; font-size:14px; font-weight:500; display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:999px; border:1px solid var(--ap-border-strong); background:var(--ap-surface); transition:all .15s ease; }
.bi-profil-apple .bi-profil-geri:hover { color:var(--bi-accent); border-color:rgba(var(--bi-accent-rgb),.5); }
.bi-profil-apple .bi-profil { max-width:1280px; margin:0 auto; padding:34px 32px 80px; }
.bi-profil-apple .bi-profil-loading { text-align:center; padding:80px; color:var(--ap-text-3); font-size:30px; }

/* Başlık kartı */
.bi-profil-apple .bi-profil-hero { display:flex; align-items:center; gap:22px; background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:22px; padding:26px; box-shadow:0 2px 14px var(--ap-shadow); margin-bottom:16px; flex-wrap:wrap; }
.bi-profil-apple .bi-profil-avatar-wrap { position:relative; width:96px; height:96px; border-radius:50%; cursor:pointer; flex:0 0 auto; box-shadow:0 8px 24px -8px rgba(0,0,0,.3); }
.bi-profil-apple .bi-profil-avatar-wrap img { width:96px; height:96px; border-radius:50%; object-fit:cover; }
.bi-profil-apple .bi-profil-avatar-ph { width:96px; height:96px; border-radius:50%; background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; font-size:38px; display:flex; align-items:center; justify-content:center; }
.bi-profil-apple .bi-profil-avatar-overlay { position:absolute; inset:0; border-radius:50%; background:rgba(0,0,0,.45); color:#fff; font-size:22px; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .18s ease; }
.bi-profil-apple .bi-profil-avatar-wrap:hover .bi-profil-avatar-overlay { opacity:1; }
.bi-profil-apple .bi-profil-hero-info { flex:1; min-width:220px; }
.bi-profil-apple .bi-profil-hero-info h1 { font-size:26px; font-weight:700; letter-spacing:-.02em; color:var(--ap-text); margin:0 0 8px; }
.bi-profil-apple .bi-profil-hero-badges { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.bi-profil-apple .bi-profil-lvl-badge { display:inline-flex; align-items:center; gap:7px; background:rgba(var(--bi-accent-rgb),.12); color:var(--bi-accent); font-size:13px; font-weight:600; padding:5px 13px; border-radius:999px; }
.bi-profil-apple .bi-profil-mail { font-size:13px; color:var(--ap-text-3); }
.bi-profil-apple .bi-profil-lvl-bar { height:8px; border-radius:999px; background:var(--ap-surface-2); overflow:hidden; max-width:360px; }
.bi-profil-apple .bi-profil-lvl-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,var(--bi-accent),var(--bi-accent-2)); transition:width .5s ease; }
.bi-profil-apple .bi-profil-lvl-hint { font-size:12px; color:var(--ap-text-3); margin-top:7px; }

/* İstatistik şeridi */
.bi-profil-apple .bi-profil-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px; }
.bi-profil-apple .bi-profil-stat { display:flex; align-items:center; gap:12px; background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:16px; padding:15px 18px; box-shadow:0 2px 10px var(--ap-shadow); }
.bi-profil-apple .bi-profil-stat .ic { width:44px; height:44px; border-radius:12px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; font-size:18px; }
.bi-profil-apple .bi-profil-stat .ic-blue { background:rgba(var(--bi-accent-rgb),.14); color:var(--bi-accent); }
.bi-profil-apple .bi-profil-stat .ic-green { background:rgba(52,199,89,.16); color:#30d158; }
.bi-profil-apple .bi-profil-stat .ic-purple { background:rgba(175,82,222,.16); color:#bf5af2; }
.bi-profil-apple .bi-profil-stat .ic-orange { background:rgba(255,149,0,.16); color:#ff9f0a; }
.bi-profil-apple .bi-profil-stat strong { display:block; font-size:19px; font-weight:700; color:var(--ap-text); line-height:1.1; }
.bi-profil-apple .bi-profil-stat span { font-size:12px; color:var(--ap-text-3); }

/* İki kolonlu düzen */
.bi-profil-apple .bi-profil-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:16px; align-items:start; }
.bi-profil-apple .bi-profil-sag { display:flex; flex-direction:column; gap:16px; }
.bi-profil-apple .bi-profil-kart { background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:20px; padding:24px; box-shadow:0 2px 14px var(--ap-shadow); }
.bi-profil-apple .bi-profil-kart h2 { font-size:17px; font-weight:700; color:var(--ap-text); letter-spacing:-.01em; margin:0 0 4px; display:flex; align-items:center; gap:9px; }
.bi-profil-apple .bi-profil-kart h2 i { color:var(--bi-accent); font-size:15px; }
.bi-profil-apple .bi-profil-kart-alt { font-size:13px; color:var(--ap-text-3); margin:0 0 18px; line-height:1.4; }
.bi-profil-apple .bi-profil-alt-lbl { font-size:12px; font-weight:700; color:var(--ap-text-3); text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; }

/* Form alanları */
.bi-profil-apple .bi-profil-alan { margin-bottom:16px; }
.bi-profil-apple .bi-profil-alan label { display:block; font-size:13px; font-weight:600; color:var(--ap-text-2); margin-bottom:7px; }
.bi-profil-apple .bi-profil-alan input, .bi-profil-apple .bi-profil-alan textarea, .bi-profil-apple .bi-profil-alan select {
    width:100%; background:var(--ap-surface-2); border:1px solid var(--ap-border-strong); border-radius:12px; padding:11px 14px;
    font-size:14px; color:var(--ap-text); font-family:inherit; transition:border-color .15s ease; }
.bi-profil-apple .bi-profil-alan input:focus, .bi-profil-apple .bi-profil-alan textarea:focus, .bi-profil-apple .bi-profil-alan select:focus {
    outline:none; border-color:var(--bi-accent); box-shadow:0 0 0 3px rgba(var(--bi-accent-rgb),.15); }
.bi-profil-apple .bi-profil-alan textarea { resize:vertical; }
.bi-profil-apple .bi-profil-chipler { display:flex; flex-wrap:wrap; gap:8px; }
.bi-profil-apple .bi-profil-chip { background:var(--ap-surface-2); border:1px solid var(--ap-border-strong); border-radius:999px; padding:7px 14px; font-size:13px; color:var(--ap-text-2); cursor:pointer; font-family:inherit; transition:all .15s ease; }
.bi-profil-apple .bi-profil-chip:hover { border-color:rgba(var(--bi-accent-rgb),.5); }
.bi-profil-apple .bi-profil-chip.active { background:var(--bi-accent); border-color:var(--bi-accent); color:#fff; }
.bi-profil-apple .bi-profil-kaydet-btn { width:100%; background:var(--bi-accent); color:#fff; border:none; border-radius:999px; padding:12px; font-size:15px; font-weight:600; cursor:pointer; margin-top:6px; display:flex; align-items:center; justify-content:center; gap:8px; transition:filter .15s ease; }
.bi-profil-apple .bi-profil-kaydet-btn:hover { filter:brightness(1.08); }
.bi-profil-apple .bi-profil-kaydet-btn:disabled { opacity:.7; cursor:default; }
.bi-profil-apple .bi-profil-atla { display:block; text-align:center; margin-top:14px; font-size:13px; color:var(--ap-text-3); text-decoration: none; }

/* Alert */
.bi-profil-apple .bi-alert { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:12px; font-size:13px; margin-bottom:16px; }
.bi-profil-apple .bi-alert-success { background:rgba(52,199,89,.14); color:#248a3d; } [data-bi-tema="dark"] .bi-profil-apple .bi-alert-success { color:#30d158; }
.bi-profil-apple .bi-alert-error { background:rgba(239,68,68,.12); color:#c81e1e; } [data-bi-tema="dark"] .bi-profil-apple .bi-alert-error { color:#ff453a; }
.bi-profil-apple .bi-alert-info { background:rgba(var(--bi-accent-rgb),.1); color:var(--bi-accent); }

/* Rozet grid */
.bi-profil-apple .bi-rozet-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.bi-profil-apple .bi-rozet { text-align:center; padding:18px 12px; border-radius:16px; border:1px solid var(--ap-border); background:var(--ap-surface-2); transition:transform .15s ease; }
.bi-profil-apple .bi-rozet.kazanildi { transform:none; }
.bi-profil-apple .bi-rozet.kazanildi:hover { transform:translateY(-2px); }
.bi-profil-apple .bi-rozet-ic { width:48px; height:48px; margin:0 auto 10px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:20px; }
.bi-profil-apple .bi-rozet.kazanildi .bi-rozet-ic { background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; box-shadow:0 8px 20px -8px rgba(var(--bi-accent-rgb),.6); }
.bi-profil-apple .bi-rozet.kilitli .bi-rozet-ic { background:var(--ap-border); color:var(--ap-text-3); }
.bi-profil-apple .bi-rozet.kilitli { opacity:.7; }
.bi-profil-apple .bi-rozet-ad { font-size:13.5px; font-weight:600; color:var(--ap-text); margin-bottom:3px; }
.bi-profil-apple .bi-rozet.kilitli .bi-rozet-ad { color:var(--ap-text-2); }
.bi-profil-apple .bi-rozet-ac { font-size:11px; color:var(--ap-text-3); line-height:1.35; }

@media (max-width:820px) {
    .bi-profil-apple .bi-profil-grid { grid-template-columns:1fr; }
    .bi-profil-apple .bi-profil-stats { grid-template-columns:repeat(2,1fr); }
    .bi-profil-apple .bi-profil { padding:24px 18px 60px; }
}

/* Apple kartinda giris-yapmis karsilama blogu (auth.js mountCardAuth -> bi-fun-welcome) */
.bi-theme-apple .bi-fun-welcome { text-align:center; padding:4px 0 18px; margin-bottom:18px; border-bottom:1px solid var(--ap-border); }
.bi-theme-apple .bi-fun-welcome-ava, .bi-theme-apple .bi-fun-welcome-ava-ph { position:static !important; width:58px; height:58px; border-radius:50%; margin:0 auto 10px !important; display:flex; align-items:center; justify-content:center; object-fit:cover; }
.bi-theme-apple .bi-fun-welcome-ava-ph { background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; font-size:23px; }
.bi-theme-apple .bi-fun-welcome h3 { color:var(--ap-text) !important; -webkit-text-fill-color:var(--ap-text); background:none !important; font-size:17px; font-weight:700; margin:0 0 4px; }
.bi-theme-apple .bi-fun-welcome .mail { color:var(--ap-text-3); font-size:13px; margin-bottom:14px; }
.bi-theme-apple .bi-fun-quick { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.bi-theme-apple .bi-fun-quick a, .bi-theme-apple .bi-fun-quick button { font-size:13px; font-weight:600; padding:8px 14px; border-radius:999px; text-decoration:none; cursor:pointer; border:1px solid var(--ap-border-strong); background:var(--ap-surface-2); color:var(--ap-text-2); -webkit-text-fill-color:currentColor; display:inline-flex; align-items:center; gap:6px; font-family:inherit; transition:all .15s ease; }
.bi-theme-apple .bi-fun-quick a.primary { background:var(--bi-accent); border-color:var(--bi-accent); color:#fff; -webkit-text-fill-color:#fff; }
.bi-theme-apple .bi-fun-quick a.primary:hover { color:#fff; -webkit-text-fill-color:#fff; }
.bi-theme-apple .bi-fun-quick .cikis { color:#ff453a; -webkit-text-fill-color:#ff453a; border-color:rgba(239,68,68,.3); }

/* SEO ic-link nav: gorunmez, taranabilir (footer kaldirildi, linkler korundu) */
.bi-seo-gizli { display:none; }

/* KOK DUZELTME: .bi-tabs/.bi-tab.active Apple temasinde --bg-cream/--bg-card (acik/beyaz) kullaniyordu,
   koyu modda "beyaz kutu" gibi duruyordu. Apple yuzey tokenlarina baglandi (acik/koyu otomatik doner). */
.bi-theme-apple .bi-tabs { background:var(--ap-surface-2); }
.bi-theme-apple .bi-tab { color:var(--ap-text-2); }
.bi-theme-apple .bi-tab.active { background:var(--ap-surface); color:var(--bi-accent); box-shadow:0 1px 4px var(--ap-shadow); }

/* Giris/Kayit sekmesi + "Misafir": TEK bir pill govdesi icinde 3 esit segment (beyaz/koyu uyumsuzlugu
   ortadan kalkar, Misafir ayri bir kutu degil ayni segmentli kontrolun parcasi gibi gorunur). */
.bi-auth-tabrow { display:flex; align-items:stretch; background:var(--ap-surface-2); border-radius:var(--radius-md); padding:4px; margin-bottom:22px; }
.bi-auth-tabrow .bi-tabs { flex:2; background:none; padding:0; margin-bottom:0; }
.bi-auth-tabrow .bi-tab.active { box-shadow:none; }
.bi-misafir-link {
    flex:1; display:flex; align-items:center; justify-content:center; gap:6px;
    border-radius:var(--radius-sm); font-weight:600; font-size:13px; white-space:nowrap;
    text-decoration:none; color:var(--ap-text-2); border-left:1px solid var(--ap-border); margin-left:4px;
    padding-left:10px; transition:all .2s ease;
}
.bi-misafir-link:hover { color:var(--bi-accent); text-decoration:none; transform:none; }
.bi-misafir-link i { color:var(--bi-accent); }

/* index.php (misafir landing) topbar auth-widget — geri eklendi (uyelik girisine tek yol buydu).
   Apple temasinde eski agir mor-gradyan yerine "Misafir" pilliyle ayni sade/tutarli gorunum. */
.bi-theme-apple .bi-auth-link { background:var(--ap-surface); color:var(--ap-text-2); border:1px solid var(--ap-border-strong); box-shadow:none; font-weight:600; }
.bi-theme-apple .bi-auth-link:hover { color:var(--bi-accent); border-color:rgba(var(--bi-accent-rgb),.5); background:var(--ap-surface); box-shadow:none; transform:none; text-decoration:none; }
.bi-theme-apple .bi-auth-trigger { display:inline-flex; align-items:center; gap:8px; background:var(--ap-surface); border:1px solid var(--ap-border-strong); border-radius:999px; padding:6px 14px 6px 6px; color:var(--ap-text); font-size:14px; font-weight:500; cursor:pointer; font-family:inherit; box-shadow:0 1px 4px var(--ap-shadow); }
.bi-theme-apple .bi-auth-trigger:hover { border-color:rgba(var(--bi-accent-rgb),.5); }
.bi-theme-apple .bi-auth-avatar-img { width:30px; height:30px; border-radius:50%; object-fit:cover; }
.bi-theme-apple .bi-auth-trigger > i.fa-user-circle { font-size:26px; color:var(--bi-accent); }
.bi-theme-apple .bi-auth-menu { position:relative; }
.bi-theme-apple .bi-auth-dropdown { position:absolute; right:0; top:calc(100% + 10px); width:288px; background:var(--ap-surface); border:1px solid var(--ap-border); border-radius:18px; box-shadow:0 24px 60px -18px rgba(0,0,0,.4); overflow:hidden; z-index:50; }
.bi-theme-apple .bi-auth-head { display:flex; align-items:center; gap:12px; padding:18px; background:linear-gradient(135deg, rgba(var(--bi-accent-rgb),.08), rgba(175,82,222,.06)); border-bottom:1px solid var(--ap-border); }
.bi-theme-apple .bi-auth-head-ava { width:46px; height:46px; border-radius:50%; object-fit:cover; flex:0 0 auto; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--bi-accent),var(--bi-accent-2)); color:#fff; font-size:19px; font-weight:700; }
.bi-theme-apple .bi-auth-head-info { display:flex; flex-direction:column; min-width:0; }
.bi-theme-apple .bi-auth-head-info strong { font-size:15px; color:var(--ap-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bi-theme-apple .bi-auth-head-info span { font-size:12.5px; color:var(--ap-text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bi-theme-apple .bi-auth-menu-group { padding:8px; }
.bi-theme-apple .bi-auth-menu-link { display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:11px; color:var(--ap-text); text-decoration:none; font-size:14px; font-weight:500; transition:background .12s ease; cursor:pointer; }
.bi-theme-apple .bi-auth-menu-link i { width:18px; text-align:center; color:var(--ap-text-3); font-size:15px; }
.bi-theme-apple .bi-auth-menu-link:hover { background:rgba(var(--bi-accent-rgb),.1); }
.bi-theme-apple .bi-auth-menu-link:hover i { color:var(--bi-accent); }
.bi-theme-apple .bi-auth-cikis { width:calc(100% - 16px); margin:4px 8px 10px; display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:11px; border:none; background:rgba(239,68,68,.1); color:#ff453a; font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; transition:background .12s ease; }
.bi-theme-apple .bi-auth-cikis:hover { background:rgba(239,68,68,.18); }

/* "Hadi baslayalim" basligi + auth-widget ayni satirda, sag hizali (topbar'dan buraya tasindi) */
.bi-giris-form-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.bi-giris-form-head-text { min-width:0; flex:1 1 auto; }
.bi-giris-form-head-text .bi-fun-title { white-space:nowrap; }
.bi-giris-form-head .bi-auth-widget { flex:0 0 auto; }
.bi-giris-form-head .bi-auth-link { padding:7px 13px; font-size:12.5px; white-space:nowrap; }
.bi-giris-form-head .bi-auth-link i { font-size:13px; }
.bi-giris-form-head .bi-auth-trigger { padding:5px 12px 5px 5px; font-size:13px; }

/* Yasal onay checkbox etiketi (18 yas + KVKK) — inline stiller ortak class'a tasindi.
   KOK DUZELTME: --bg-cream Apple/koyu temada acik/beyaz kaliyordu ("tasarim disi" beyaz kutu). */
.bi-legal-check-label { display:flex; align-items:flex-start; gap:10px; padding:12px; background:var(--bg-cream); border-radius:var(--radius-md); cursor:pointer; margin-bottom:16px; font-size:13px; line-height:1.5; color:var(--text-secondary); }
.bi-legal-check-tight { margin-bottom:12px; }
.bi-legal-check-label input[type="checkbox"] { margin-top:3px; flex-shrink:0; accent-color:var(--orange-primary); }
.bi-legal-check-label a { color:var(--orange-primary); }
.bi-theme-apple .bi-legal-check-label { background:var(--ap-surface-2); color:var(--ap-text-2); }
.bi-theme-apple .bi-legal-check-label a { color:var(--bi-accent); }
.bi-theme-apple .bi-legal-check-label input[type="checkbox"] { accent-color:var(--bi-accent); }

/* "Sifremi unuttum" / "Girise geri don" — inline stiller kaldirildi, ortak temiz link stili.
   Zorunlu alt-cizgi yerine "Ana Sayfa" ile ayni sade dil: hover'da alt cizgi (affordance), varsayilanda yok. */
.bi-link-btn { background:none; border:0; padding:0; font-size:13px; color:var(--orange-primary); cursor:pointer; font-family:inherit; text-decoration:none; transition:opacity .15s ease; }
.bi-link-btn:hover { text-decoration: none; }
.bi-link-btn-center { display:block; text-align:center; width:100%; margin-top:14px; }

/* "Canli sahne" bolumu — gercek oda yokken sabit mockup'in ORNEK oldugu acikca belirtilir (yaniltici
   sahte "canli" sayisi gosterilmez). bi-sahne.js gercek veri varsa bu sinifi hic eklemez. */
.bi-giris-canli.ornek { background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.16); color:rgba(255,255,255,.7); }
.bi-giris-canli.ornek .dot { background:#9a9a9e; animation:none; }
.bi-giris-canli.ornek b { color:rgba(255,255,255,.92); }
.bi-theme-apple .bi-giris-canli.ornek { background:var(--ap-surface-2); border-color:var(--ap-border-strong); color:var(--ap-text-2); }
.bi-theme-apple .bi-giris-canli.ornek b { color:var(--ap-text); }
.bi-mini-oda .thumb .live.ornek .dot { background:#9a9a9e; animation:none; }

/* Mini-oda thumb ikonlari + kesfet avatar-fallback: duz tek-renk FA glif yerine buyuk/canli emoji
   (kullanici geri bildirimi: "cok basit gorunuyor" — ek font/CDN bagimliligi olmadan daha ifadeli). */
.bi-mini-oda .thumb .thumb-emoji { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.bi-kesfet-avatar-emoji { font-size: 20px !important; }

/* Arka plan parcacik efekti (particles.js — kurumsal ile ayni kutuphane/mantik). Sabit, tikanmaz,
   icerigin ARKASINDA (pointer-events:none — hicbir butonu/linki engellemez). */
#bi-particles-js { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .8; }
.bi-theme-apple #bi-particles-js { opacity: .55; }

/* Kisisellestirme panelinde efekt secici (7 kucuk pill dugme, ayni Gorunum/Vurgu Rengi diliyle) */
.bi-fx-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bi-fx-opt { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ap-border, rgba(0,0,0,.08));
    background: var(--ap-surface-2, #f5f5f7); color: var(--ap-text-2, #6e6e73); font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: inherit; transition: all .15s ease; }
.bi-fx-opt:hover { border-color: rgba(var(--bi-accent-rgb, 0,113,227), .4); }
.bi-fx-opt.active { background: var(--bi-accent, #0071e3); border-color: var(--bi-accent, #0071e3); color: #fff; }

/* Misafir icin oda-olusturma giris kapisi (index.php "Yeni Oda Olustur" sekmesi) */
.bi-olustur-gate { text-align: center; padding: 26px 10px 10px; }
.bi-olustur-gate-ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
    background: linear-gradient(135deg, var(--bi-accent, #667eea), var(--bi-accent-2, #764ba2));
    color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px -10px rgba(var(--bi-accent-rgb, 102,126,234), .55); }
.bi-olustur-gate h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text-primary); }
.bi-theme-apple .bi-olustur-gate h3 { color: var(--ap-text); }
.bi-olustur-gate p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; max-width: 340px; margin: 0 auto 20px; }
.bi-theme-apple .bi-olustur-gate p { color: var(--ap-text-2); }
.bi-olustur-gate .bi-btn-primary { display: inline-flex; align-items: center; gap: 8px; }

/* KOK DUZELTME: .bi-theme-apple .bi-fun-card a { color:var(--bi-accent)!important } genel kurali,
   dolgulu (solid mavi) .bi-btn-primary linklerinin yazisini da mavi yapip GORUNMEZ birakiyordu
   (yazi=zemin ayni renk). Daha spesifik selector'la beyaz zorlanir. */
.bi-theme-apple .bi-fun-card a.bi-btn-primary { color:#fff!important; -webkit-text-fill-color:#fff!important; }

/* Otomatik gorunum secildiginde gun dogumu/batimi bilgisi (kurumsal'daki seffaf-oto-tema panelinin ayni mantigi) */
.bi-gorunum-info { display:flex; align-items:center; gap:7px; margin-top:10px; padding:9px 12px;
    border-radius:10px; background:rgba(var(--bi-accent-rgb,0,113,227),.08); color:var(--ap-text-2,#6e6e73);
    font-size:12px; line-height:1.4; }
.bi-gorunum-info i { color:var(--bi-accent,#0071e3); flex-shrink:0; }

/* ============================================================
   RANDEVULU IZLEME — Etkinlik sayfasi (etkinlik.php) + lobi etkinlik kartlari
   ============================================================ */
.bi-etkinlik-wrap { max-width:640px; margin:0 auto; padding:8px 4px 60px; position:relative; z-index:1; }
.bi-etkinlik-wrap h1 { font-size:26px; font-weight:800; letter-spacing:-.02em; color:var(--ap-text,#1B2838);
    margin:0 0 6px; display:flex; align-items:center; gap:10px; }
.bi-etkinlik-wrap h1 > i { color:var(--bi-accent,#0071e3); }
.bi-sub { font-size:14px; color:var(--ap-text-3,#8b96a5); line-height:1.5; margin:0 0 18px; }
.bi-etkinlik-wrap .bi-form-label { color:var(--ap-text-2,#5b6b80); margin-top:14px; }
.bi-etkinlik-wrap .bi-input { background:var(--ap-surface,#fff); border:1px solid var(--ap-border-strong,rgba(27,40,56,.15));
    color:var(--ap-text,#1B2838); }
.bi-etkinlik-wrap .bi-input:focus { border-color:var(--bi-accent,#0071e3);
    box-shadow:0 0 0 3px rgba(var(--bi-accent-rgb,0,113,227),.18); }

.bi-info { display:flex; align-items:flex-start; gap:9px; margin-top:14px; padding:12px 14px; border-radius:12px;
    background:rgba(var(--bi-accent-rgb,0,113,227),.09); border:1px solid rgba(var(--bi-accent-rgb,0,113,227),.2);
    color:var(--ap-text-2,#5b6b80); font-size:13.5px; line-height:1.5; }
.bi-info i { color:var(--bi-accent,#0071e3); margin-top:2px; flex-shrink:0; }
.bi-info .bi-input { margin-top:8px; font-size:13px; }

.bi-etk-meta { font-size:13px; color:var(--ap-text-3,#8b96a5); margin:0 0 14px; display:flex;
    flex-wrap:wrap; gap:6px 4px; align-items:center; }
.bi-etk-meta b { color:var(--ap-text-2,#5b6b80); font-weight:600; }
.bi-etk-rsvp-grid { display:grid; gap:10px; margin-top:16px; }
.bi-etk-rsvp-btns { display:flex; gap:8px; }
.bi-etk-rsvp-btns .bi-btn { flex:1; }
.bi-etk-durum-rozet { display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:999px;
    font-size:12px; font-weight:700; }
.bi-etk-durum-rozet.planlandi { background:rgba(var(--bi-accent-rgb,0,113,227),.14); color:var(--bi-accent,#0071e3); }
.bi-etk-durum-rozet.canli { background:rgba(52,199,89,.16); color:#1a8f3c; }
.bi-etk-durum-rozet.canli .dot { width:7px; height:7px; border-radius:50%; background:#34c759;
    box-shadow:0 0 0 0 rgba(52,199,89,.6); animation:biEtkPulse 1.6s infinite; }
@keyframes biEtkPulse { 0%{box-shadow:0 0 0 0 rgba(52,199,89,.55);} 70%{box-shadow:0 0 0 7px rgba(52,199,89,0);} 100%{box-shadow:0 0 0 0 rgba(52,199,89,0);} }

/* Lobi: Yaklasan etkinliklerim — yatay banner (sol tarih rozeti + orta bilgi + sag aksiyon) */
#bi-lobi-etkinlikler { margin-bottom:34px; }
.bi-etk-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(360px,1fr)); gap:14px; }
.bi-etk-card { display:flex; align-items:center; gap:16px; text-decoration:none; background:var(--ap-surface,#fff);
    border:1px solid var(--ap-border,rgba(27,40,56,.08)); border-left:4px solid var(--bi-accent,#0071e3); border-radius:16px;
    padding:14px 18px; box-shadow:0 2px 12px var(--ap-shadow,rgba(27,40,56,.10)); transition:transform .2s ease, box-shadow .2s ease; }
.bi-etk-card:hover { transform:translateY(-2px); box-shadow:0 16px 34px -16px rgba(0,0,0,.32); }
.bi-etk-tarih { flex:0 0 auto; width:56px; text-align:center; border-radius:13px; padding:9px 0;
    background:rgba(var(--bi-accent-rgb,0,113,227),.12); }
.bi-etk-tarih .gun { display:block; font-size:21px; font-weight:800; line-height:1; color:var(--bi-accent,#0071e3); }
.bi-etk-tarih .ay { display:block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
    color:var(--bi-accent,#0071e3); margin-top:3px; }
.bi-etk-orta { flex:1; min-width:0; }
.bi-etk-baslik { font-size:16px; font-weight:700; color:var(--ap-text,#1B2838); margin-bottom:5px;
    display:flex; align-items:center; gap:8px; letter-spacing:-.01em; }
.bi-etk-baslik span.bi-etk-adi { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bi-etk-alt { font-size:12.5px; color:var(--ap-text-3,#8b96a5); display:flex; flex-wrap:wrap; gap:4px 14px; }
.bi-etk-alt i { color:var(--bi-accent,#0071e3); margin-right:4px; }
.bi-etk-sag { flex:0 0 auto; display:flex; flex-direction:column; align-items:flex-end; gap:7px; text-align:right; }
.bi-etk-kalan { font-size:11.5px; font-weight:600; color:var(--ap-text-2,#5b6b80); white-space:nowrap;
    background:var(--ap-surface-2,#f5f5f7); border-radius:999px; padding:5px 12px; }
.bi-etk-git { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--bi-accent,#0071e3); white-space:nowrap; }
.bi-etk-git i { transition:transform .2s ease; }
.bi-etk-card:hover .bi-etk-git i { transform:translateX(3px); }
.bi-etk-live { font-size:10px; font-weight:800; letter-spacing:.04em; color:#fff; background:#34c759;
    padding:2px 8px; border-radius:999px; display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; }
.bi-etk-live::before { content:''; width:6px; height:6px; border-radius:50%; background:#fff; animation:biEtkPulse 1.6s infinite; }
.bi-lobi-empty-mini { padding:18px 20px; border-radius:14px; border:1px dashed var(--ap-border-strong,rgba(27,40,56,.15));
    background:var(--ap-surface,#fff); color:var(--ap-text-3,#8b96a5); font-size:13.5px; text-align:center; }
.bi-lobi-empty-mini a { color:var(--bi-accent,#0071e3); font-weight:600; text-decoration:none; }
.bi-lobi-empty-mini a:hover { text-decoration: none; }

@media (max-width:640px) { .bi-etkinlik-wrap { padding:4px 2px 48px; } .bi-etkinlik-wrap h1 { font-size:22px; } }
@media (max-width:520px) {
    .bi-etk-card { gap:12px; padding:12px 14px; }
    .bi-etk-tarih { width:48px; padding:7px 0; }
    .bi-etk-kalan { display:none; }
    .bi-etk-git span.tx { display:none; }
}
