/* =====================================================================
   BEXGRAM — Gelişmiş Canlı Ses ve Sohbet Odaları Stilleri
   7 Özgün Tema, Koltuk Düzenleri, Zengin Hediyeler, Mini Oyunlar ve Mobil Uyum
   ===================================================================== */

:root {
    --bex-room-primary: var(--bex-primary, var(--color-primary));
    --bex-room-primary-rgb: 0, 128, 105;
    --bex-room-accent: var(--bex-accent, #25D366);
    --bex-room-gold: #F59E0B;
    --bex-room-danger: var(--bex-danger, #D92D20);
}

html.dark {
    --bex-room-primary: var(--bex-primary, #00A884);
    --bex-room-primary-rgb: 0, 168, 132;
    --bex-room-danger: var(--bex-danger, #FF6B6B);
}

/* ── Parent / Pane-Welcome Flex Stretch Fix ── */
#pane-welcome:has(.wa-rooms-container),
#pane-welcome.has-rooms-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    background: var(--wa-bg, var(--color-bg-light)) !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
html.dark #pane-welcome:has(.wa-rooms-container),
html.dark #pane-welcome.has-rooms-container {
    background: var(--wa-welcome, #0b141a) !important;
}

/* ── Standalone Odalar Mount (odalar.php — Serbest Sayfa Kaydırma) ── */
#bex-rooms-mount {
    position: relative !important;
    overflow: visible !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    background: var(--wa-surface, var(--color-bg-light)) !important;
    border-color: var(--wa-line, rgba(0,0,0,0.08)) !important;
    box-sizing: border-box !important;
}

html.dark #bex-rooms-mount {
    background: var(--wa-surface, #111B21) !important;
    border-color: var(--wa-line, rgba(255,255,255,0.08)) !important;
}

#bex-rooms-mount .wa-rooms-container {
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

#bex-rooms-mount .wa-rooms-header {
    border-radius: 16px 16px 0 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--wa-line, rgba(0,0,0,0.06));
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
@media (max-width: 639px) {
    #bex-rooms-mount .wa-rooms-header {
        border-radius: 0;
        padding: 8px 10px;
        gap: 6px;
    }
}

#bex-rooms-mount .wa-rooms-grid {
    height: auto !important;
    min-height: 400px !important;
    overflow: visible !important;
    overscroll-behavior-y: auto !important;
    padding-bottom: 20px !important;
    box-sizing: border-box !important;
}

.wa-rooms-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    flex: 1 1 100%;
    align-self: stretch;
    background: var(--wa-bg, var(--color-bg-light));
    color: var(--wa-text, var(--color-bg-dark));
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

html.dark .wa-rooms-container {
    background: var(--wa-bg, #0b141a);
    color: var(--wa-text, #e9edef);
}

/* ── Odalar Listesi Üst Bar (sayfa başlığı .bxh-rooms) ── */
.wa-rooms-header {
min-height: 48px;
padding: 8px 12px;
font-size: 0.95rem;
}
.room-footer {
    min-height: 48px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--wa-line);
    background: var(--wa-bar,var(--wa-surface));
}
.room-footer input {
    flex: 1;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--wa-line);
    border-radius: 0.375rem;
    background: var(--wa-surface);
    color: var(--wa-text);
}

.wa-rooms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(12px, env(safe-area-inset-top, 12px)) max(16px, env(safe-area-inset-right, 16px)) 12px max(16px, env(safe-area-inset-left, 16px));
    border-bottom: 1px solid var(--wa-line, rgba(0,0,0,0.06));
    background: var(--wa-surface, var(--color-bg-light));
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .wa-rooms-header {
        padding: 8px 10px;
        gap: 6px;
    }
}
html.dark .wa-rooms-header {
    background: var(--wa-surface, var(--color-bg-dark));
    border-bottom-color: var(--wa-line, rgba(255,255,255,0.06));
}

.wa-rooms-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wa-rooms-title .live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    animation: bex-pulse-live 1.2s infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes bex-pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.35); }
}

.wa-rooms-btn-create {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
background: linear-gradient(135deg, #00a884 0%, #25d366 100%);
color: var(--color-bg-light) !important;
border: none;
padding: 0 14px;
height: 36px;
min-height: 36px;
max-height: 36px;
box-sizing: border-box;
border-radius: 18px;
font-size: 13px;
font-weight: 700;
line-height: 1;
cursor: pointer;
box-shadow: 0 3px 10px rgba(0, 168, 132, 0.3);
transition: all 0.15s ease;
white-space: nowrap;
text-decoration: none;
user-select: none;
flex-shrink: 0;
overflow: hidden;
}
.wa-rooms-btn-create span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1;
}
.wa-rooms-btn-create svg {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.wa-rooms-btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.4);
}
.wa-rooms-btn-create:active {
    transform: scale(0.97);
}

.wa-rooms-btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--wa-text, var(--color-bg-dark));
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}
.wa-rooms-btn-refresh:hover {
    background: var(--wa-hover, rgba(0,0,0,0.06));
}
.wa-rooms-btn-refresh:active {
    transform: scale(0.92);
}
.wa-rooms-btn-refresh.is-spinning svg {
    animation: bexSpinRooms 0.6s linear infinite;
}
@keyframes bexSpinRooms {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Arama ve Tab Gezinti Alanı ── */
.wa-rooms-toolbar {
display: flex;
align-items: center;
justify-content: flex-end;
min-width: 0;
}
.wa-rooms-toolbar .wa-rooms-btn-create {
margin-left: auto;
}
@media (min-width: 768px) {
body.page-rooms .wa-rooms-toolbar { display: none; }
}
.wa-rooms-nav-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 16px;
    background: var(--wa-search, #f0f2f5);
    border-bottom: 1px solid var(--wa-line, rgba(0,0,0,0.06));
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
html.dark .wa-rooms-nav-bar {
    background: var(--wa-surface, var(--color-bg-dark));
    border-bottom-color: var(--wa-line, rgba(255,255,255,0.06));
}

.wa-rooms-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--wa-surface, var(--color-bg-light));
    border: 1px solid var(--wa-line, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 6px 12px;
    min-height: 40px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
html.dark .wa-rooms-search-wrap {
    background: var(--wa-search, #202c33);
    border-color: var(--wa-line, rgba(255,255,255,0.08));
}
.wa-rooms-search-wrap:focus-within {
    border-color: #00a884;
    box-shadow: 0 0 0 2px rgba(0,168,132,0.2);
}
.wa-rooms-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: inherit;
    padding: 2px 0;
}
.wa-rooms-search-input::placeholder {
    color: var(--wa-muted, #8696a0);
}

.wa-rooms-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.wa-rooms-tabs::-webkit-scrollbar { display: none; }
.wa-rooms-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    min-height: 40px;
    box-sizing: border-box;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wa-muted, #667781);
    background: var(--wa-surface, var(--color-bg-light));
    border: 1px solid var(--wa-line, rgba(0,0,0,0.08));
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    user-select: none;
}
html.dark .wa-rooms-tab {
    background: var(--wa-search, #202c33);
    border-color: var(--wa-line, rgba(255,255,255,0.08));
    color: #aebac1;
}
.wa-rooms-tab:hover {
    border-color: var(--bex-room-primary);
    color: var(--bex-room-primary);
}
.wa-rooms-tab.active {
    background: #00a884;
    color: var(--color-bg-light) !important;
    border-color: #00a884;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.25);
}
html.dark .wa-rooms-tab.active {
    background: #00a884;
    color: var(--color-bg-light) !important;
    border-color: #00a884;
}
.wa-room-tab-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Kategori Filtre Butonları (Pills) ── */
.wa-rooms-filters {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--wa-line, rgba(0,0,0,0.05));
    background: var(--wa-bg, #f8fafc);
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.wa-rooms-filters::-webkit-scrollbar { display: none; }
html.dark .wa-rooms-filters {
    background: var(--wa-surface, var(--color-bg-dark));
    border-bottom-color: var(--wa-line, rgba(255,255,255,0.05));
}

.wa-room-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 14px;
    min-height: 40px;
    box-sizing: border-box;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--wa-line, rgba(0,0,0,0.08));
    background: var(--wa-surface, var(--color-bg-light));
    color: var(--wa-muted, #667781);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
html.dark .wa-room-filter-pill {
    background: var(--wa-search, #202c33);
    border-color: var(--wa-line, rgba(255,255,255,0.08));
    color: #aebac1;
}
.wa-room-filter-pill:hover {
    border-color: var(--bex-room-primary);
    color: var(--bex-room-primary);
}
.wa-room-filter-pill.active {
    background: #00a884;
    color: var(--color-bg-light) !important;
    border-color: #00a884;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.3);
}
.wa-room-pill-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── İlgi Alanlarına Göre Sohbetler (3D Renkli 6 Kategori Kartı) ── */
.wa-interest-section {
    padding: 12px 12px 6px 12px;
    background: var(--wa-bg, #f8fafc);
    border-bottom: 1px solid var(--wa-line, rgba(0,0,0,0.05));
    flex-shrink: 0;
}
html.dark .wa-interest-section {
    background: var(--wa-surface, var(--color-bg-dark));
    border-bottom-color: var(--wa-line, rgba(255,255,255,0.05));
}
.wa-interest-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 10px 2px;
    letter-spacing: -0.2px;
    color: var(--wa-text, var(--color-bg-dark));
    display: flex;
    align-items: center;
    gap: 6px;
}
html.dark .wa-interest-title {
    color: #e9edef;
}
.wa-interest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
@media (max-width: 380px) {
    .wa-interest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
}
.wa-interest-card {
    position: relative;
    border-radius: 14px;
    padding: 10px 8px;
    color: var(--color-bg-light);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 58px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    border: 1px solid rgba(255,255,255,0.18);
}
.wa-interest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}
.wa-interest-card:active {
    transform: scale(0.96);
}
.wa-interest-card::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    pointer-events: none;
}
.wa-interest-card.card-oyun {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
}
.wa-interest-card.card-arkadas {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}
.wa-interest-card.card-eglenmek {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.wa-interest-card.card-ogrenmek {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.wa-interest-card.card-ag {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}
.wa-interest-card.card-baska {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.wa-interest-card-title {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    z-index: 1;
}
.wa-interest-card-icon {
    align-self: flex-end;
    opacity: 0.9;
    z-index: 1;
    display: flex;
}
.wa-interest-card-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--color-bg-light);
}

/* ── İlgi Alanı Alt Filtre Pilleri ── */
.wa-interest-subfilters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 2px 0;
}
.wa-interest-subfilters::-webkit-scrollbar { display: none; }
.wa-interest-subpill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    min-height: 36px;
    box-sizing: border-box;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--wa-muted, #64748b);
    background: var(--wa-surface, var(--color-bg-light));
    border: 1px solid var(--wa-line, rgba(0,0,0,0.08));
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    user-select: none;
}
html.dark .wa-interest-subpill {
    background: #202c33;
    border-color: rgba(255,255,255,0.08);
    color: #94a3b8;
}
.wa-interest-subpill:hover {
    border-color: #00a884;
    color: #00a884;
}
.wa-interest-subpill.active {
    background: #00a884;
    color: var(--color-bg-light) !important;
    border-color: #00a884;
    box-shadow: 0 2px 8px rgba(0,168,132,0.3);
}

/* ── Odalar Izgarası (Grid View) & 2 Sıra Halinde Kare Kare Düzen ── */
.wa-rooms-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    padding: 10px 10px 16px 10px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    align-content: start;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Tablet (>= 640px): 2 sütun */
@media (min-width: 640px) {
    .wa-rooms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        padding: 14px 14px 16px 14px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Masaüstü (>= 860px): 3 sütun */
@media (min-width: 860px) {
    .wa-rooms-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        padding: 16px 18px 24px 18px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Geniş Masaüstü (>= 1150px): 4 sütun */
@media (min-width: 1150px) {
    .wa-rooms-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
        padding: 18px 20px 24px 20px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

.wa-rooms-grid::-webkit-scrollbar {
    width: 6px;
}
.wa-rooms-grid::-webkit-scrollbar-track {
    background: transparent;
}
.wa-rooms-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}
html.dark .wa-rooms-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.wa-room-card {
background: var(--wa-surface, var(--color-bg-light));
border: 1px solid var(--wa-line, rgba(0,0,0,0.08));
border-radius: var(--bex-d-radius-lg, 16px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.wa-room-card:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(0,0,0,0.1);
border-color: rgba(0, 168, 132, 0.45);
}
.wa-room-card:active {
    transform: scale(0.98);
}
html.dark .wa-room-card {
    background: var(--wa-surface, var(--color-bg-dark));
    border-color: var(--wa-line, rgba(255,255,255,0.08));
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.wa-room-card-banner {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    min-height: 95px !important;
    max-height: unset !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-sizing: border-box;
}
.wa-room-card-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 1;
}
.wa-room-card-banner > * {
    position: relative;
    z-index: 2;
}
.wa-room-card-banner img,
.wa-room-card-banner > img.wa-room-cover {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wa-room-card-badge {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    color: var(--color-bg-light);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    max-width: 90px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.wa-room-card-badge-theme {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fef08a;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    text-transform: uppercase;
}

.wa-room-card-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wa-room-card-users {
    background: rgba(0, 168, 132, 0.95);
    color: var(--color-bg-light);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.wa-room-fav-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #cbd5e1;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.wa-room-fav-btn svg { width: 12px; height: 12px; }
.wa-room-fav-btn.is-fav {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.25);
}
.wa-room-card-report-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #cbd5e1;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.wa-room-card-report-btn svg { width: 12px; height: 12px; }
.wa-room-card-report-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    color: var(--color-bg-light);
}

.wa-room-card-body {
    padding: 8px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.wa-room-card-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    min-width: 0;
}
.wa-room-card-desc {
    font-size: 11px;
    color: var(--wa-muted, #64748b);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.wa-room-card-host {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--wa-muted, #667781);
    margin-top: 1px;
    min-width: 0;
}
.wa-room-card-host .bex-avatar-frame,
.wa-room-host-frame {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    position: relative !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.wa-room-card-host img,
.wa-room-host-img,
.wa-room-host-frame img {
    width: 100% !important;
    height: 100% !important;
    max-width: 22px !important;
    max-height: 22px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.wa-room-card-host .host-name {
    font-weight: 600;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.wa-room-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--wa-line, rgba(0,0,0,0.06));
    font-size: 11px;
    gap: 6px;
}
html.dark .wa-room-card-footer {
    border-top-color: var(--wa-line, rgba(255,255,255,0.06));
}
.wa-room-join-btn {
    background: linear-gradient(135deg, #00a884 0%, #25d366 100%);
    color: var(--color-bg-light);
    border: none;
    border-radius: 12px;
    padding: 6px 12px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.3);
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.wa-room-join-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.45);
}
.wa-room-join-btn:active {
    transform: scale(0.95);
}

@media (max-width: 599px) {
    .wa-rooms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 8px 8px 16px 8px !important;
    }
    .wa-room-card {
        border-radius: 14px;
    }
    .wa-room-card-banner {
        aspect-ratio: 16 / 10 !important;
        height: auto !important;
        padding: 6px 6px;
    }
    .wa-room-card-badge {
        font-size: 9px;
        padding: 2px 4px;
        max-width: 62px;
    }
    .wa-room-card-badge-theme {
        font-size: 8px;
        padding: 1px 3px;
    }
    .wa-room-card-users {
        font-size: 8.5px;
        padding: 2px 4px;
        gap: 2px;
    }
    .wa-room-fav-btn,
    .wa-room-card-report-btn {
        width: 19px;
        height: 19px;
    }
    .wa-room-fav-btn svg,
    .wa-room-card-report-btn svg {
        width: 10px;
        height: 10px;
    }
    .wa-room-card-body {
        padding: 6px 8px 8px 8px;
        gap: 3px;
    }
    .wa-room-card-title {
        font-size: 11.5px;
        font-weight: 700;
        line-height: 1.25;
    }
    .wa-room-card-desc {
        font-size: 9.5px;
        line-height: 1.25;
    }
    .wa-room-card-host {
        font-size: 9.5px;
        gap: 4px;
    }
    .wa-room-card-host img {
        width: 16px;
        height: 16px;
    }
    .wa-room-card-footer {
        padding-top: 4px;
        font-size: 9.5px;
    }
    .wa-room-join-btn {
        padding: 3px 7px;
        font-size: 9.5px;
        border-radius: 8px;
    }
}

@media (min-width: 640px) {
    .wa-room-card-banner {
        aspect-ratio: 16 / 10 !important;
        height: auto !important;
        padding: 10px 12px;
    }
    .wa-room-card-badge {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 12px;
        max-width: 120px;
    }
    .wa-room-card-badge-theme {
        font-size: 10px;
        padding: 3px 7px;
        border-radius: 10px;
    }
    .wa-room-card-users {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 12px;
    }
    .wa-room-card-body {
        padding: 12px 14px 14px 14px;
        gap: 7px;
    }
    .wa-room-card-title {
        font-size: 14.5px;
    }
    .wa-room-card-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        white-space: normal;
        line-height: 1.35;
    }
    .wa-room-card-host img {
        width: 24px;
        height: 24px;
    }
    .wa-room-card-host {
        font-size: 12px;
    }
    .wa-room-card-footer {
        padding-top: 10px;
        font-size: 12px;
    }
    .wa-room-join-btn {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 14px;
    }
}

@media (min-width: 1024px) {
    .wa-room-card-banner {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        padding: 12px 14px;
    }
    .wa-room-card-title {
        font-size: 15.5px;
    }
}

/* ── Live Audio Wave Equalizer ── */
.wa-live-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 9px;
    margin-left: 2px;
}
.wa-live-wave span {
    width: 2px;
    background: var(--color-bg-light);
    border-radius: 1px;
    animation: bexWaveBar 0.9s ease-in-out infinite alternate;
}
.wa-live-wave span:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.wa-live-wave span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.wa-live-wave span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
@keyframes bexWaveBar {
    0% { height: 25%; opacity: 0.6; }
    100% { height: 100%; opacity: 1; }
}

/* ── Room Card Themes (7 Özgün Tema Vurguları & Kart Tasarımları) ── */
.wa-room-card[data-room-theme="neon"] {
    border-color: rgba(139, 92, 246, 0.35);
}
.wa-room-card[data-room-theme="neon"]:hover {
    border-color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}
.wa-room-card[data-room-theme="neon"] .wa-room-card-badge-theme {
    background: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.wa-room-card[data-room-theme="purple"] {
    border-color: rgba(217, 70, 239, 0.35);
}
.wa-room-card[data-room-theme="purple"]:hover {
    border-color: #d946ef;
    box-shadow: 0 8px 24px rgba(217, 70, 239, 0.25);
}
.wa-room-card[data-room-theme="purple"] .wa-room-card-badge-theme {
    background: rgba(217, 70, 239, 0.35);
    color: #f0abfc;
    border: 1px solid rgba(217, 70, 239, 0.5);
}

.wa-room-card[data-room-theme="emerald"] {
    border-color: rgba(16, 185, 129, 0.35);
}
.wa-room-card[data-room-theme="emerald"]:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}
.wa-room-card[data-room-theme="emerald"] .wa-room-card-badge-theme {
    background: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.wa-room-card[data-room-theme="ocean"] {
    border-color: rgba(14, 165, 233, 0.35);
}
.wa-room-card[data-room-theme="ocean"]:hover {
    border-color: #0ea5e9;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}
.wa-room-card[data-room-theme="ocean"] .wa-room-card-badge-theme {
    background: rgba(14, 165, 233, 0.35);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.5);
}

.wa-room-card[data-room-theme="sunset"] {
    border-color: rgba(249, 115, 22, 0.35);
}
.wa-room-card[data-room-theme="sunset"]:hover {
    border-color: #f97316;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}
.wa-room-card[data-room-theme="sunset"] .wa-room-card-badge-theme {
    background: rgba(249, 115, 22, 0.35);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.5);
}

.wa-room-card[data-room-theme="gold"] {
    border-color: rgba(245, 158, 11, 0.35);
}
.wa-room-card[data-room-theme="gold"]:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}
.wa-room-card[data-room-theme="gold"] .wa-room-card-badge-theme {
    background: rgba(245, 158, 11, 0.35);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.wa-room-card[data-room-theme="default"] {
    border-color: rgba(0, 168, 132, 0.25);
}
.wa-room-card[data-room-theme="default"]:hover {
    border-color: #00a884;
    box-shadow: 0 8px 24px rgba(0, 168, 132, 0.2);
}
.wa-room-card[data-room-theme="default"] .wa-room-card-badge-theme {
    background: rgba(0, 168, 132, 0.3);
    color: #a7f3d0;
    border: 1px solid rgba(0, 168, 132, 0.4);
}

/* ══════════════════════════════════════════════════════════════════
   CANLI ODA SAHNESİ (STAGE VIEW) & 7 ÖZGÜN TEMA
   ══════════════════════════════════════════════════════════════════ */
.wa-room-stage-view {
    position: fixed;
    inset: 0;
    z-index: 2500 !important;
    display: flex;
    flex-direction: column;
    color: var(--color-bg-light);
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #153830 0%, #0d221e 40%, #071210 100%);
    box-sizing: border-box;
}

/* ── Canlı Oda Sahnesi Açıkken Alt Menüyü Gizle (Sohbet yazma alanının önünü açar) ── */
body.has-active-stage .page-navigation,
body:has(#wa-room-stage:not([style*="display: none"])) .page-navigation,
body:has(.wa-room-stage-view:not([style*="display: none"])) .page-navigation,
.page-navigation.wa-hidden-by-stage {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ── 7 Oda Teması Renk & Ortam Paletleri ── */
.wa-room-stage-view[data-room-theme="default"] {
    background: radial-gradient(ellipse at 50% 0%, #153830 0%, #0d221e 40%, #071210 100%);
}
.wa-room-stage-view[data-room-theme="neon"] {
    background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.25) 0%, transparent 60%),
                linear-gradient(180deg, #1c0a38 0%, #080312 100%);
}
.wa-room-stage-view[data-room-theme="purple"] {
    background: radial-gradient(circle at 50% 15%, rgba(217, 70, 239, 0.2) 0%, transparent 55%),
                linear-gradient(180deg, #240b36 0%, #0e0318 100%);
}
.wa-room-stage-view[data-room-theme="emerald"] {
    background: radial-gradient(circle at 50% 15%, rgba(16, 185, 129, 0.25) 0%, transparent 60%),
                linear-gradient(180deg, #05231c 0%, #010c0a 100%);
}
.wa-room-stage-view[data-room-theme="ocean"] {
    background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.25) 0%, transparent 60%),
                linear-gradient(180deg, #08203e 0%, #020b17 100%);
}
.wa-room-stage-view[data-room-theme="sunset"] {
    background: radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.25) 0%, transparent 60%),
                linear-gradient(180deg, #2b0f14 0%, #0e0406 100%);
}
.wa-room-stage-view[data-room-theme="gold"] {
    background: radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.25) 0%, transparent 55%),
                linear-gradient(180deg, #211905 0%, #0a0701 100%);
}

/* ── Sahne Üst Barı (Header) ── */
.wa-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(14px, env(safe-area-inset-top, 14px)) max(14px, env(safe-area-inset-right, 14px)) 12px max(14px, env(safe-area-inset-left, 14px));
    background: rgba(10, 15, 25, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
    z-index: 10;
}

.wa-stage-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.wa-stage-title-wrap h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    padding-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.wa-stage-category-pill {
    font-size: 11px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
}

.wa-stage-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.wa-stage-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-bg-light);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.wa-stage-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
.wa-stage-icon-btn.is-fav {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.25);
}
.wa-stage-leave-btn {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    padding: 6px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.wa-stage-leave-btn:hover {
    background: #ef4444;
    color: var(--color-bg-light);
}

/* ══════════════════════════════════════════════════════════════════
   KOLTUK VE SESLİ SAHNE SİSTEMİ (SEATS & SPEAKERS)
   ══════════════════════════════════════════════════════════════════ */
.wa-stage-seats {
    padding: 16px 14px 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 8px;
    justify-items: center;
    align-items: start;
    box-sizing: border-box;
}

@media (max-width: 360px) {
    .wa-stage-seats {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 4px;
    }
}

.wa-seat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 78px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wa-seat-item:active {
    transform: scale(0.95);
}

.wa-seat-avatar-wrap {
    width: 58px;
    height: 58px;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-seat-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.wa-seat-item:hover .wa-seat-avatar {
    transform: scale(1.05);
    border-color: #25d366;
}

/* Konuşan Kişi Çift Halka Ses Dalgası Efekti */
.wa-seat-item.is-speaking .wa-seat-avatar-wrap::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2.5px solid #25d366;
    animation: bex-speaking-ripple 1.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    z-index: 1;
}
.wa-seat-item.is-speaking .wa-seat-avatar-wrap::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px solid rgba(37, 211, 102, 0.45);
    animation: bex-speaking-ripple 1.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.4s;
    z-index: 1;
}
@keyframes bex-speaking-ripple {
    0% { transform: scale(0.92); opacity: 1; }
    50% { transform: scale(1.18); opacity: 0.6; }
    100% { transform: scale(1.36); opacity: 0; }
}

/* 3 Barlı Canlı Ses Dalgası */
.wa-seat-sound-wave {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    z-index: 4;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    border: 1px solid rgba(37, 211, 102, 0.4);
}
.wa-seat-sound-wave span {
    width: 2.5px;
    background: #25d366;
    border-radius: 2px;
    animation: bex-wave-bar 0.75s ease-in-out infinite alternate;
}
.wa-seat-sound-wave span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.wa-seat-sound-wave span:nth-child(2) { height: 10px; animation-delay: 0.25s; }
.wa-seat-sound-wave span:nth-child(3) { height: 6px; animation-delay: 0.4s; }
@keyframes bex-wave-bar {
    0% { height: 3px; }
    100% { height: 11px; }
}

/* Boş Koltuk Görünümü */
.wa-seat-empty {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.3);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}
.wa-seat-item:hover .wa-seat-empty {
    border-color: #00a884;
    color: #25d366;
    background: radial-gradient(circle, rgba(0, 168, 132, 0.25) 0%, rgba(0, 168, 132, 0.05) 100%);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
}

/* Koltuk Numarası Rozeti */
.wa-seat-num-badge {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.8);
    z-index: 3;
    pointer-events: none;
}

/* Kilitli Koltuk */
.wa-seat-locked {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
    box-shadow: inset 0 2px 6px rgba(239, 68, 68, 0.15);
}

/* Taç, Yönetici ve Moderatör Rozetleri */
.wa-seat-crown {
    position: absolute;
    top: -14px;
    z-index: 5;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.7));
    animation: bex-crown-float 2.4s ease-in-out infinite alternate;
}
@keyframes bex-crown-float {
    0% { transform: translateY(0) rotate(-3deg); }
    100% { transform: translateY(-3px) rotate(3deg); }
}

.wa-seat-badge-role {
    position: absolute;
    top: -8px;
    right: -4px;
    z-index: 4;
    background: #3b82f6;
    color: var(--color-bg-light);
    border-radius: 50%;
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Mikrofon Durum Rozeti */
.wa-seat-mic-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00a884;
    color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.wa-seat-mic-badge.is-muted {
    background: #ef4444;
}

.wa-seat-name {
    font-size: 11.5px;
    font-weight: 600;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.92);
}

/* ══════════════════════════════════════════════════════════════════
   CANLI MESAJ & HEDİYE AKIŞI (CHAT STREAM)
   ══════════════════════════════════════════════════════════════════ */
.wa-stage-chat-stream {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: none;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 12%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 12%);
}
.wa-stage-chat-stream::-webkit-scrollbar { display: none; }

.wa-stage-msg {
    align-self: flex-start;
    background: rgba(32, 44, 51, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 4px 16px 16px 16px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 88%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: background 0.15s ease;
}
.wa-stage-msg:hover {
    background: rgba(38, 52, 60, 0.98);
}
.wa-stage-msg-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.wa-stage-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.wa-stage-msg .msg-user {
    font-weight: 700;
    color: #25d366;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    white-space: nowrap !important;
}
.wa-stage-msg .msg-text {
    font-size: 13px;
    color: #e9edef;
    line-height: 1.42;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.wa-stage-msg.is-system {
    align-self: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    color: #e2e8f0;
    border-radius: 20px;
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.wa-stage-msg.is-gift {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.18) 100%);
    border: 1px solid rgba(245, 158, 11, 0.55);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2), inset 0 0 12px rgba(245, 158, 11, 0.1);
    color: #fef3c7;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.wa-stage-msg.is-gift::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: bex-gift-shimmer 3.2s infinite;
}
@keyframes bex-gift-shimmer {
    0% { left: -100%; }
    40%, 100% { left: 200%; }
}
.wa-stage-msg-gift-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    animation: bex-gift-pop 1.8s infinite ease-in-out;
}
@keyframes bex-gift-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(6deg); }
}
.wa-stage-msg-report {
    opacity: 0.3;
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}
.wa-stage-msg:hover .wa-stage-msg-report {
    opacity: 1;
}
.wa-stage-msg-report:hover {
    color: #ef4444;
}

/* ══════════════════════════════════════════════════════════════════
   ALT KONTROL & ETKİLEŞİM PANELİ (KOMPAKT & WEPLAY STANDARDI)
   ══════════════════════════════════════════════════════════════════ */
.wa-stage-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px max(10px, env(safe-area-inset-right, 10px)) max(8px, env(safe-area-inset-bottom, 8px)) max(10px, env(safe-area-inset-left, 10px));
    background: rgba(10, 15, 25, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 100;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    max-width: 100%;
    overflow-x: hidden;
    transition: transform 0.15s ease-out;
}

/* wa-stage-controls is always dark immersive stage */

.wa-stage-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 0 10px;
    min-width: 0;
    min-height: 38px;
    max-height: 100px;
    transition: border-color 0.15s, background 0.15s;
}

/* wa-stage-input-wrap is always dark glass */

.wa-stage-input-wrap:focus-within {
    border-color: #00a884;
    background: rgba(255, 255, 255, 0.12);
}



.wa-stage-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-bg-light);
    font-size: 13.5px;
    padding: 7px 0;
    outline: none;
    min-width: 0;
    font-family: inherit;
    line-height: 1.35;
}



.wa-stage-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}



.wa-stage-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
    color: var(--color-bg-light);
    padding: 0;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .wa-stage-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
    .wa-stage-input-wrap {
        min-height: 40px;
    }
}

.wa-stage-btn:hover {
    transform: scale(1.06);
}

.wa-stage-btn:active {
    transform: scale(0.94);
}

.wa-stage-btn.btn-gift {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.wa-stage-btn.btn-mic {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="light"] .wa-stage-btn.btn-mic,
body:not(.dark) .wa-stage-btn.btn-mic {
    background: #e9edef;
    color: #54656f;
    border-color: rgba(0, 0, 0, 0.08);
}

.wa-stage-btn.btn-mic.is-on {
    background: #00a884;
    border-color: #00a884;
    color: var(--color-bg-light);
    box-shadow: 0 0 12px rgba(0, 168, 132, 0.45);
}

.wa-stage-btn.btn-mic.is-muted {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.wa-stage-btn.btn-speaker {
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .wa-stage-btn.btn-speaker,
body:not(.dark) .wa-stage-btn.btn-speaker {
    background: #e9edef;
    color: #54656f;
}

.wa-stage-btn.btn-send {
    background: #00a884;
    color: var(--color-bg-light);
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.35);
}

/* ══════════════════════════════════════════════════════════════════
   HEDİYE ÇEKMECESİ (GIFT SHEET & COIN BALANCE)
   ══════════════════════════════════════════════════════════════════ */
.wa-gift-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: min(540px, 100vw);
    max-height: min(85vh, calc(100dvh - 24px));
    overflow-y: auto;
    z-index: 300;
    background: #18222d;
    border-radius: 24px 24px 0 0;
    padding: 14px max(14px, env(safe-area-inset-right, 14px)) max(16px, env(safe-area-inset-bottom, 16px)) max(14px, env(safe-area-inset-left, 14px));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.65);
    animation: bex-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

html[data-theme="light"] .wa-gift-sheet,
body:not(.dark) .wa-gift-sheet {
    background: var(--color-bg-light);
    border-top-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.25);
    color: var(--color-bg-dark);
}

@keyframes bex-slide-up {
    from { transform: translate(-50%, 100%); }
    to { transform: translate(-50%, 0); }
}

.wa-gift-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-bg-light);
    margin-bottom: 10px;
}

html[data-theme="light"] .wa-gift-sheet-header,
body:not(.dark) .wa-gift-sheet-header {
    color: var(--color-bg-dark);
}

.wa-gift-balance-badge {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef08a;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.15s ease;
}

html[data-theme="light"] .wa-gift-balance-badge,
body:not(.dark) .wa-gift-balance-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.wa-gift-balance-badge:hover {
    background: rgba(245, 158, 11, 0.28);
}

/* Kategori Sekmeleri */
.wa-gift-cat-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.wa-gift-cat-tabs::-webkit-scrollbar { display: none; }

.wa-gift-cat-pill {
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    touch-action: manipulation;
}

html[data-theme="light"] .wa-gift-cat-pill,
body:not(.dark) .wa-gift-cat-pill {
    background: #f0f2f5;
    color: #54656f;
    border-color: rgba(0, 0, 0, 0.08);
}

.wa-gift-cat-pill.active {
    background: #00a884;
    color: var(--color-bg-light);
    border-color: #00a884;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.35);
}

/* Alıcı & Çarpan Seçim Çubuğu */
.wa-gift-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wa-gift-recipient-select {
    flex: 1;
    min-width: 140px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-bg-light);
    font-size: 12px;
    font-weight: 600;
    outline: none;
}

html[data-theme="light"] .wa-gift-recipient-select,
body:not(.dark) .wa-gift-recipient-select {
    background: #f0f2f5;
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--color-bg-dark);
}

.wa-gift-multipliers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-gift-multi-chip {
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
    touch-action: manipulation;
}

html[data-theme="light"] .wa-gift-multi-chip,
body:not(.dark) .wa-gift-multi-chip {
    background: #f0f2f5;
    border-color: rgba(0, 0, 0, 0.1);
    color: #54656f;
}

.wa-gift-multi-chip.active {
    background: #f59e0b;
    color: var(--color-text);
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Hediye Kartları Izgarası */
.wa-gift-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    max-height: 270px;
    overflow-y: auto;
    padding: 2px;
}

@media (max-width: 480px) {
    .wa-gift-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}
@media (max-width: 360px) {
    .wa-gift-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

.wa-gift-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 7px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html[data-theme="light"] .wa-gift-item,
body:not(.dark) .wa-gift-item {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

.wa-gift-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

html[data-theme="light"] .wa-gift-item:hover,
body:not(.dark) .wa-gift-item:hover {
    background: #f1f5f9;
}

.wa-gift-item.selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.16);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.wa-gift-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease;
}

.wa-gift-item:hover .wa-gift-img,
.wa-gift-item.selected .wa-gift-img {
    transform: scale(1.1);
}

.wa-gift-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-bg-light);
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="light"] .wa-gift-name,
body:not(.dark) .wa-gift-name {
    color: var(--color-bg-dark);
}

.wa-gift-price {
    font-size: 10.5px;
    font-weight: 700;
    color: #fde047;
    font-mono: true;
}

html[data-theme="light"] .wa-gift-price,
body:not(.dark) .wa-gift-price {
    color: #d97706;
}

.wa-gift-vip-tag {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    background: #f59e0b;
    color: var(--color-text);
}

/* TikTok Tarzı Ekran Efekti & Hediye Görselleri */

.wa-gift-tiktok-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(245, 158, 11, 0.6));
    animation: bex-gift-float 1.2s ease-in-out infinite alternate;
}

@keyframes bex-gift-float {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

.wa-gift-tiktok-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-bg-light);
}

.wa-gift-tiktok-sub {
    font-size: 13px;
    color: #94a3b8;
}

.wa-gift-combo-badge {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: var(--color-bg-light);
    font-weight: 900;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 9999px;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.5);
    letter-spacing: 0.5px;
    animation: bex-combo-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes bex-combo-pulse {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

/* Canlı Ekran Sarsma (Screen Shake) */
.bex-shaking {
    animation: bex-screen-shake 0.75s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes bex-screen-shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Chat Stream Hediye Kartı */
.wa-stage-msg.is-gift {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.18) 0%, rgba(239, 68, 68, 0.15) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 12px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wa-stage-msg-gift-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ══════════════════════════════════════════════════════════════════
   MODAL VE FORM DÜZENLEMELERİ (Oda Kur, Ayarlar, Rol Yönetimi)
   ══════════════════════════════════════════════════════════════════ */
.wa-modal-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.wa-modal-input, .wa-modal-select {
    padding: 10px 12px;
    border: 1px solid var(--wa-line, #d1d7db);
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    background: var(--wa-input-bg, var(--wa-search, #f8fafc));
    color: var(--wa-text, inherit);
    outline: none;
    box-sizing: border-box;
    width: 100%;
}
html.dark .wa-modal-input, html.dark .wa-modal-select {
    background: var(--wa-input-bg, var(--color-bg-dark));
    border-color: var(--wa-line, rgba(255,255,255,0.15));
    color: var(--wa-text, #e9edef);
}
.wa-modal-input:focus, .wa-modal-select:focus {
    border-color: #00a884;
    box-shadow: 0 0 0 2px rgba(0,168,132,0.2);
}

/* Tema Seçim Paleti */
.wa-theme-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 4px;
}
.wa-theme-swatch {
    padding: 8px 6px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--color-bg-light);
    transition: all 0.15s ease;
}
.wa-theme-swatch:hover {
    transform: scale(1.04);
}
.wa-theme-swatch.active {
    box-shadow: 0 0 0 2px var(--color-bg-light), 0 0 0 4px #00a884;
}
.wa-theme-swatch[data-theme="default"] { background: linear-gradient(135deg, #111d27, #070d13); }
.wa-theme-swatch[data-theme="neon"]    { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.wa-theme-swatch[data-theme="purple"]  { background: linear-gradient(135deg, #240b36, #d946ef); }
.wa-theme-swatch[data-theme="emerald"] { background: linear-gradient(135deg, #05231c, #10b981); }
.wa-theme-swatch[data-theme="ocean"]   { background: linear-gradient(135deg, #08203e, #0ea5e9); }
.wa-theme-swatch[data-theme="sunset"]  { background: linear-gradient(135deg, #2b0f14, #f97316); }
.wa-theme-swatch[data-theme="gold"]    { background: linear-gradient(135deg, #211905, #f59e0b); }

/* Mavi Tik Rozeti */
.wa-blue-tick-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 2px;
}

/* ══════════════════════════════════════════════════════════════════
   DUYARLI TASARIM (RESPONSIVE: MOBİL, TABLET & MASAÜSTÜ UYUMU)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
    .wa-rooms-header {
        padding: max(10px, env(safe-area-inset-top, 10px)) max(12px, env(safe-area-inset-right, 12px)) 10px max(12px, env(safe-area-inset-left, 12px));
        gap: 8px;
    }
    .wa-rooms-title {
        font-size: 16px;
    }
    .wa-rooms-btn-create {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 44px;
        box-sizing: border-box;
    }
    .wa-rooms-nav-bar {
        padding: 8px 12px;
        gap: 8px;
    }
    .wa-rooms-tabs {
        gap: 5px;
    }
    .wa-rooms-tab {
        padding: 5px 11px;
        font-size: 12px;
        min-height: 40px;
    }
    .wa-rooms-filters {
        padding: 8px 12px;
        gap: 6px;
    }
    .wa-room-filter-pill {
        padding: 5px 12px;
        font-size: 12px;
        min-height: 40px;
    }
    .wa-rooms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 8px 8px max(96px, calc(72px + env(safe-area-inset-bottom, 24px))) 8px !important;
        gap: 8px !important;
    }
    .wa-room-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px !important;
    }
    .wa-room-card-banner {
        aspect-ratio: 16 / 10 !important;
        height: auto !important;
        min-height: 90px !important;
        padding: 6px !important;
    }
    .wa-room-card-body {
        padding: 6px 8px 8px 8px !important;
        gap: 3px !important;
    }
    .wa-room-card-title {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }
    .wa-room-card-desc {
        display: none !important;
    }
    .wa-room-card-host img {
        width: 18px !important;
        height: 18px !important;
    }
    .wa-room-card-host .host-name {
        font-size: 10.5px !important;
    }
    .wa-room-card-footer {
        padding-top: 4px !important;
        font-size: 10px !important;
    }
    .wa-room-join-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
        min-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    .wa-stage-header {
        padding: max(8px, env(safe-area-inset-top, 8px)) max(10px, env(safe-area-inset-right, 10px)) 8px max(10px, env(safe-area-inset-left, 10px)) !important;
        gap: 6px !important;
    }
    .wa-stage-title-wrap h2 {
        font-size: 14px !important;
    }
    .wa-stage-category-pill {
        font-size: 10.5px !important;
    }
    .wa-stage-seats {
        padding: 10px 6px 4px !important;
        gap: 10px 4px !important;
    }
    .wa-seat-avatar-wrap {
        width: 48px !important;
        height: 48px !important;
    }
    .wa-seat-avatar {
        width: 48px !important;
        height: 48px !important;
    }
    .wa-seat-name {
        font-size: 10px !important;
        max-width: 62px !important;
    }
    .wa-stage-controls {
        padding: 6px max(8px, env(safe-area-inset-right, 8px)) max(8px, env(safe-area-inset-bottom, 8px)) max(8px, env(safe-area-inset-left, 8px)) !important;
        gap: 4px !important;
    }
    .wa-stage-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
}

@media (max-width: 360px) {
    .wa-rooms-header {
        padding: max(8px, env(safe-area-inset-top, 8px)) max(8px, env(safe-area-inset-right, 8px)) 8px max(8px, env(safe-area-inset-left, 8px)) !important;
    }
    .wa-rooms-title {
        font-size: 15px !important;
    }
    .wa-interest-card {
        padding: 8px 6px !important;
        min-height: 52px !important;
    }
    .wa-interest-card-title {
        font-size: 10.5px !important;
    }
    .wa-interest-card-icon svg {
        width: 15px !important;
        height: 15px !important;
    }
    .wa-room-card-badge {
        font-size: 8px !important;
        padding: 1px 3px !important;
        max-width: 54px !important;
    }
    .wa-room-card-title {
        font-size: 11px !important;
    }
    .wa-seat-avatar-wrap {
        width: 42px !important;
        height: 42px !important;
    }
    .wa-seat-avatar {
        width: 42px !important;
        height: 42px !important;
    }
    .wa-seat-name {
        font-size: 9px !important;
        max-width: 52px !important;
    }
}

@media (min-width: 640px) and (max-width: 859px) {
    .wa-rooms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        padding: 14px 14px 20px 14px !important;
    }
}

@media (min-width: 860px) and (max-width: 1149px) {
    .wa-rooms-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        padding: 16px 16px 24px 16px !important;
    }
}

@media (min-width: 1150px) {
    .wa-rooms-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
        padding: 18px 18px 24px 18px !important;
    }
}

@media (min-width: 768px) {
    .wa-interest-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .wa-interest-card {
        min-height: 60px !important;
        padding: 8px 10px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   WEPLAY TARZI SOSYAL ETKİLEŞİM & GELİŞMİŞ SESLİ ODA BİLEŞENLERİ
   ══════════════════════════════════════════════════════════════════ */

/* ── Profil Çerçevesi (Avatar Frames) Entegrasyonu ── */
.wa-seat-avatar-wrap.bex-avatar-frame,
.wa-room-host-frame.bex-avatar-frame,
.wa-stage-msg-avatar.bex-avatar-frame,
.wa-mini-avatar-wrap.bex-avatar-frame,
.wa-user-sheet-avatar.bex-avatar-frame,
.wa-frames-preview-avatar.bex-avatar-frame,
.wa-frame-choice-avatar.bex-avatar-frame {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
}

/* Koltuk Avatarları (WebRTC & VAD) */
.wa-seat-avatar-wrap {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}
.wa-seat-avatar {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}
.wa-seat-empty,
.wa-seat-locked {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
}
@media (max-width: 480px) {
    .wa-seat-avatar-wrap {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    .wa-seat-avatar,
    .wa-seat-empty,
    .wa-seat-locked {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }
}

/* Sahne Mesaj Balonu Avatarı */
.wa-stage-msg-avatar,
.wa-stage-msg-avatar.bex-avatar-frame {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}
.wa-stage-msg-avatar-img,
.wa-stage-msg-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}

/* Mini Bar / Player Avatarı */
.wa-mini-avatar-wrap,
.wa-mini-avatar-wrap.bex-avatar-frame {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
}
.wa-mini-avatar,
.wa-mini-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}

/* Oda İçi Kullanıcı Detay Kartı (User Sheet) Avatarı */
.wa-user-sheet-avatar,
.wa-user-sheet-avatar.bex-avatar-frame {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
}
.wa-user-sheet-avatar-img,
.wa-user-sheet-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}

/* Çerçeve Seçici Diyalog Avatarları */
.wa-frames-preview-avatar {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
}
.wa-frames-preview-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}
.wa-frame-choice-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
}
.wa-frame-choice-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

/* Çerçeve Halka Konumlandırmaları */
.wa-seat-avatar-wrap.bex-avatar-frame .bex-frame {
    position: absolute !important;
    inset: -4px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 4 !important;
}
.wa-room-host-frame.bex-avatar-frame .bex-frame {
    position: absolute !important;
    inset: -2px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 4 !important;
}
.wa-stage-msg-avatar.bex-avatar-frame .bex-frame {
    position: absolute !important;
    inset: -2px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 4 !important;
}
.wa-mini-avatar-wrap.bex-avatar-frame .bex-frame {
    position: absolute !important;
    inset: -3px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 4 !important;
}
.wa-user-sheet-avatar.bex-avatar-frame .bex-frame {
    position: absolute !important;
    inset: -5px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 4 !important;
}
.wa-frames-preview-avatar.bex-avatar-frame .bex-frame {
    position: absolute !important;
    inset: -5px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 4 !important;
}
.wa-frame-choice-avatar.bex-avatar-frame .bex-frame {
    position: absolute !important;
    inset: -3px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 4 !important;
}

/* ── Gerçek Ses Aktivite Dalgası (VAD Speaking Ripple) ── */
.wa-seat-item.is-speaking .wa-seat-avatar-wrap::before {
    content: "" !important;
    position: absolute !important;
    inset: -6px !important;
    border-radius: 50% !important;
    border: 3px solid #25d366 !important;
    box-shadow: 0 0 16px rgba(37, 211, 102, 0.75) !important;
    animation: bex-speaking-ripple 1.1s cubic-bezier(0, 0, 0.2, 1) infinite !important;
    z-index: 3 !important;
    pointer-events: none !important;
}
.wa-seat-item.is-speaking .wa-seat-avatar-wrap::after {
    content: "" !important;
    position: absolute !important;
    inset: -12px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(37, 211, 102, 0.45) !important;
    animation: bex-speaking-ripple 1.1s cubic-bezier(0, 0, 0.2, 1) infinite 0.35s !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* ── Sahne İçi Hızlı Araçlar Barı (Toolbar) ── */
.wa-stage-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 14px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}
.wa-stage-toolbar::-webkit-scrollbar { display: none; }
.wa-stage-tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-bg-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    user-select: none;
}
.wa-stage-tool-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.wa-stage-tool-pill:active {
    transform: scale(0.96);
}

/* ── Canlı PK Mücadelesi Widget'ı ── */
.wa-pk-battle-wrap {
    margin: 4px 14px 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 15;
}
.wa-pk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
}
.wa-pk-vs {
    background: linear-gradient(135deg, #ef4444, #3b82f6);
    color: var(--color-bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.wa-pk-timer {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 700;
}
.wa-pk-bar-track {
    height: 10px;
    border-radius: 5px;
    background: #3b82f6;
    position: relative;
    overflow: hidden;
    display: flex;
}
.wa-pk-bar-red {
    height: 100%;
    background: #ef4444;
    transition: width 0.3s ease;
}
.wa-pk-scores {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
}
.wa-pk-score-red { color: #f87171; display: flex; align-items: center; gap: 6px; }
.wa-pk-score-blue { color: #60a5fa; display: flex; align-items: center; gap: 6px; }
.wa-pk-btn {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.1s ease;
}
.wa-pk-btn-red { background: #ef4444; }
.wa-pk-btn-blue { background: #3b82f6; }
.wa-pk-btn:active { transform: scale(0.95); }

/* ── Yüzen Emoji Tepkileri (Floating Reactions) ── */
.wa-floating-reaction {
    position: fixed;
    bottom: 80px;
    font-size: 30px;
    pointer-events: none;
    z-index: 350;
    user-select: none;
    animation: bex-reaction-fly 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes bex-reaction-fly {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.6) rotate(0deg);
    }
    50% {
        opacity: 0.95;
        transform: translateY(-140px) scale(1.25) rotate(15deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(1) rotate(-15deg);
    }
}

/* ── Zengin Hediye Gönderim Efekti / Bannerı ── */
.wa-gift-announcement-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 360;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(239, 68, 68, 0.95));
    color: var(--color-bg-light);
    padding: 10px 20px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.5);
    font-size: 13.5px;
    font-weight: 700;
    pointer-events: none;
    animation: bex-gift-slide 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes bex-gift-slide {
    0% { opacity: 0; transform: translate(-50%, -30px) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
    25% { transform: translate(-50%, 0) scale(1); }
    85% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -20px) scale(0.9); }
}

/* ── Ses Autoplay Engeli Çözüm Bannerı ── */
.wa-audio-unlock-banner {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 370;
    background: linear-gradient(135deg, #0284c7, #0284c7);
    color: var(--color-bg-light);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
    animation: bex-bounce-banner 1.5s infinite;
}
@keyframes bex-bounce-banner {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}
.wa-audio-unlock-banner button {
    background: var(--color-bg-light);
    color: #0369a1;
    border: none;
    border-radius: 14px;
    padding: 5px 14px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ── Yüzen Mini Oda (Floating Mini-Room / PiP) ── */
.wa-mini-room {
    position: fixed !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 14px) + 10px) !important;
    left: 12px !important;
    right: 80px !important;
    z-index: 99999 !important;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 8px 14px 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 168, 132, 0.25);
    color: var(--color-bg-light);
    max-width: min(340px, calc(100vw - 110px)) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: auto !important;
}
@media (max-width: 768px) {
    .wa-mini-room {
        bottom: calc(var(--bex-nav-height, 56px) + 16px) !important;
        right: max(88px, calc(env(safe-area-inset-right, 16px) + 72px)) !important;
        left: auto !important;
        max-width: calc(100vw - 110px) !important;
        margin: 0 !important;
        padding: 8px 12px !important;
    }
}
.wa-mini-room:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
}
.wa-mini-avatar-wrap {
    width: 38px;
    height: 38px;
    position: relative;
    border-radius: 50%;
}
.wa-mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00a884;
}
.wa-mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.wa-mini-title {
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wa-mini-status {
    font-size: 10.5px;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wa-mini-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wa-mini-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-bg-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}
.wa-mini-btn:hover { background: rgba(255, 255, 255, 0.22); }
.wa-mini-btn.is-muted { background: rgba(239, 68, 68, 0.35); color: #f87171; }
.wa-mini-btn.is-close { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* ── Profil Çerçeveleri Dolabı (Frames Closet Modal) ── */
.wa-frames-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060 !important;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.wa-frames-dialog {
    width: min(520px, 100%);
    max-height: calc(100dvh - 32px);
    background: linear-gradient(180deg, #111B21 0%, #0B141A 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--color-bg-light);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}
.wa-frames-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-frames-preview-area {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
}
.wa-frames-preview-avatar {
    width: 68px;
    height: 68px;
    position: relative;
    border-radius: 50%;
    flex-shrink: 0;
}
.wa-frames-preview-avatar img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}
.wa-frames-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wa-frames-tabs {
    display: flex;
    padding: 10px 16px;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: none;
}
.wa-frames-tabs::-webkit-scrollbar { display: none; }
.wa-frames-tab-btn {
    padding: 5px 12px;
    border-radius: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #8696a0;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.wa-frames-tab-btn.active {
    background: #00a884;
    color: var(--color-bg-light);
}
.wa-frames-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow-y: auto;
    max-height: 380px;
}
@media (max-width: 480px) {
    .wa-frames-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
.wa-frame-choice {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.wa-frame-choice:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}
.wa-frame-choice.active {
    border-color: #00a884;
    background: rgba(0, 168, 132, 0.15);
    box-shadow: 0 0 14px rgba(0, 168, 132, 0.35);
}
.wa-frame-choice-avatar {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 50%;
}
.wa-frame-choice-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.wa-frame-choice-name {
    font-size: 11px;
    font-weight: 700;
    color: #e9edef;
}

/* ── Kullanıcı Mini Profil Kartı (User Profile Sheet) ── */
.wa-user-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060 !important;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
@media (min-width: 640px) {
    .wa-user-sheet-overlay {
        align-items: center;
        padding: 16px;
    }
}
.wa-user-sheet-dialog {
    width: min(440px, 100%);
    background: linear-gradient(180deg, #111B21 0%, #0B141A 100%);
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    padding: 22px 20px 30px;
    color: var(--color-bg-light);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
}
@media (min-width: 640px) {
    .wa-user-sheet-dialog {
        border-radius: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
}
.wa-user-sheet-top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wa-user-sheet-avatar {
    width: 64px;
    height: 64px;
    position: relative;
    border-radius: 50%;
    flex-shrink: 0;
}
.wa-user-sheet-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.wa-user-sheet-info {
    flex: 1;
    min-width: 0;
}
.wa-user-sheet-name {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wa-user-sheet-handle {
    font-size: 12px;
    color: #8696a0;
}
.wa-user-sheet-stats {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    font-size: 11.5px;
    color: #8696a0;
}
.wa-user-sheet-stats b { color: var(--color-bg-light); }
.wa-user-sheet-bio {
    font-size: 13px;
    line-height: 1.4;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    border-radius: 12px;
}
.wa-user-sheet-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.wa-user-sheet-btn {
    padding: 10px;
    border-radius: 12px;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.wa-user-sheet-btn-primary { background: #00a884; color: var(--color-bg-light); }
.wa-user-sheet-btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--color-bg-light); }
.wa-user-sheet-btn-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.wa-user-sheet-btn:active { transform: scale(0.97); }

/* ── Ses Teşhis ve Test Paneli (Audio Diagnostics) ── */
.wa-diag-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060 !important;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.wa-diag-dialog {
    width: min(440px, 100%);
    background: #111B21;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wa-diag-meter-track {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}
.wa-diag-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #25d366, #eab308, #ef4444);
    border-radius: 7px;
    transition: width 0.08s ease;
}

/* ── TikTok-Style Screen Shake & VIP Gift Blast ── */
@keyframes bex-screen-shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-6px, -3px) rotate(-1deg); }
    20% { transform: translate(6px, 3px) rotate(1deg); }
    30% { transform: translate(-5px, 4px) rotate(-0.5deg); }
    40% { transform: translate(5px, -3px) rotate(0.5deg); }
    50% { transform: translate(-4px, -4px) rotate(-1deg); }
    60% { transform: translate(4px, 3px) rotate(0.5deg); }
    70% { transform: translate(-3px, 3px) rotate(-0.5deg); }
    80% { transform: translate(3px, -3px) rotate(0.5deg); }
    90% { transform: translate(-1px, -1px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.bex-shaking {
    animation: bex-screen-shake 0.75s cubic-bezier(.36,.07,.19,.97) both !important;
}

/* ── Modern Transparent Floating Gift Presentation (WePlay & TikTok Style) ── */
.bex-gift-overlay-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100095;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent !important;
}

/* Subtle Animated Backdrop FX for Higher Tiers */
.bex-gift-fx-backdrop {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.bex-gift-overlay-scene.tier-1 .bex-gift-fx-backdrop {
    display: none;
}

.bex-gift-sparkle-rays {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    opacity: 0.75;
    animation: bexRaySpin 12s linear infinite;
}

.bex-gift-overlay-scene.tier-2 .bex-gift-sparkle-rays {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 75%);
}

.bex-gift-overlay-scene.tier-3 .bex-gift-sparkle-rays {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(239, 68, 68, 0.15) 50%, transparent 80%);
    animation: bexRaySpin 8s linear infinite;
}

.bex-gift-overlay-scene.tier-4 .bex-gift-sparkle-rays {
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(168, 85, 247, 0.25) 45%, transparent 85%);
    animation: bexRaySpin 6s linear infinite;
}

@keyframes bexRaySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Transparent Floating GIF Container */
.bex-gift-anim-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bexGiftEnter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.bex-gift-overlay-scene.is-leaving .bex-gift-anim-container {
    animation: bexGiftExit 0.45s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

.bex-gift-float-img {
    display: block;
    object-fit: contain;
    background: transparent !important;
    animation: bexGiftHover 1.6s ease-in-out infinite alternate;
}

/* Tier-specific sizing and glowing drop-shadows */
.bex-gift-overlay-scene.tier-1 .bex-gift-float-img {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 4px 18px rgba(245, 158, 11, 0.55));
}
.bex-gift-overlay-scene.tier-2 .bex-gift-float-img {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 6px 26px rgba(239, 68, 68, 0.65));
}
.bex-gift-overlay-scene.tier-3 .bex-gift-float-img {
    width: 230px;
    height: 230px;
    filter: drop-shadow(0 8px 36px rgba(168, 85, 247, 0.75));
}
.bex-gift-overlay-scene.tier-4 .bex-gift-float-img {
    width: 280px;
    height: 280px;
    filter: drop-shadow(0 12px 48px rgba(56, 189, 248, 0.9));
}

@keyframes bexGiftEnter {
    0% { transform: scale(0.2) translateY(80px); opacity: 0; }
    70% { transform: scale(1.12) translateY(-8px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes bexGiftHover {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-12px) scale(1.04); }
}

@keyframes bexGiftExit {
    0% { transform: scale(1) translateY(0); opacity: 1; }
    100% { transform: scale(0.4) translateY(-100px); opacity: 0; }
}

/* Sleek Minimal Glassmorphism Sender Pill */
.bex-gift-sender-pill {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 95px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    padding: 6px 14px 6px 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.25);
    white-space: nowrap;
    max-width: 90vw;
    animation: bexPillSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bex-gift-overlay-scene.is-leaving .bex-gift-sender-pill {
    animation: bexPillSlideDown 0.35s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes bexPillSlideUp {
    0% { transform: translate(-50%, 40px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes bexPillSlideDown {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 40px); opacity: 0; }
}

.bex-gift-pill-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(245, 158, 11, 0.8);
}
.bex-gift-pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bex-gift-pill-text {
    font-size: 13px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #e2e8f0;
}
.bex-gift-pill-sender {
    font-weight: 700;
    color: var(--color-bg-light);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bex-gift-pill-action {
    color: #94a3b8;
    font-size: 11.5px;
}
.bex-gift-pill-name {
    font-weight: 700;
    background: linear-gradient(135deg, #fef08a, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bex-gift-pill-arrow {
    color: #64748b;
    font-size: 11px;
}
.bex-gift-pill-receiver {
    color: #38bdf8;
    font-weight: 600;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bex-gift-pill-count {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: var(--color-bg-light);
    font-size: 12px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.bex-gift-combo-fire {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--color-bg-light);
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 9999px;
    animation: bexComboPulse 0.4s infinite alternate;
}
@keyframes bexComboPulse {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

/* Fallback/Legacy classes override: completely remove any black box or background */
.wa-gift-tiktok-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100080;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent !important;
}
.wa-gift-tiktok-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ── Oda Yöneticisi & Moderatör Ayarları Modalı ── */
.wa-room-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
@media (min-width: 640px) {
    .wa-room-settings-overlay {
        align-items: center;
        padding: 24px;
    }
}
.wa-room-settings-dialog {
    width: 100%;
    max-width: 540px;
    background: var(--wa-surface, var(--color-bg-light));
    color: var(--wa-text, var(--color-bg-dark));
    border-radius: 24px 24px 0 0;
    max-height: calc(90dvh - env(safe-area-inset-top, 0px));
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
html.dark .wa-room-settings-dialog {
    background: var(--wa-surface, #111B21);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 640px) {
    .wa-room-settings-dialog {
        border-radius: 24px;
        max-height: 85vh;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    }
}
.wa-room-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--wa-line, rgba(0,0,0,0.06));
}
.wa-room-settings-body {
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wa-room-settings-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--wa-line, rgba(0,0,0,0.06));
    background: var(--wa-bar, var(--wa-surface));
}

/* ══════════════════════════════════════════════════════════════════
   YENİ CANLI SAHNE ÖZELLİKLERİ: EL KALDIR, YAZI-TURA & ALKIŞ EFEKTLERİ
   ══════════════════════════════════════════════════════════════════ */
.wa-stage-btn.btn-raise-hand {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wa-stage-btn.btn-raise-hand:hover {
    background: rgba(245, 158, 11, 0.28);
    color: #fef08a;
    transform: scale(1.08);
}
.wa-stage-btn.btn-raise-hand.is-raised {
    background: #f59e0b;
    color: #111827;
    border-color: #f59e0b;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.65);
    animation: bex-hand-pulse 1.2s infinite ease-in-out;
}
@keyframes bex-hand-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.14); }
}

/* 🪙 3D Yazı Tura Modalı & Kartı */
.wa-coinflip-overlay {
    position: fixed;
    inset: 0;
    z-index: 3100;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bex-coin-fade-in 0.2s ease-out;
}
@keyframes bex-coin-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wa-coinflip-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.25);
    border-radius: 24px;
    padding: 24px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 320px;
    width: 86%;
    animation: bex-coin-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bex-coin-pop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wa-coin-3d {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fef08a 0%, #f59e0b 60%, #b45309 100%);
    border: 3px solid #fef08a;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45), inset 0 3px 6px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: #78350f;
    letter-spacing: 1px;
    transform-style: preserve-3d;
}
.wa-coin-3d.is-flipping {
    animation: bex-coin-flip 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes bex-coin-flip {
    0% { transform: translateY(0) rotateY(0deg) scale(0.9); }
    35% { transform: translateY(-80px) rotateY(900deg) scale(1.25); }
    75% { transform: translateY(-20px) rotateY(1620deg) scale(1.05); }
    100% { transform: translateY(0) rotateY(2160deg) scale(1); }
}

.wa-coinflip-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-bg-light);
    margin: 0;
}
.wa-coinflip-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}
.wa-coinflip-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111827;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 24px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
}
.wa-coinflip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

/* 👏 Alkış & Efekt Seçim Çekmecesi */
.wa-sfx-menu {
    position: absolute;
    bottom: 58px;
    right: 60px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 200;
    animation: bex-coin-fade-in 0.15s ease-out;
}
.wa-sfx-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-bg-light);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.18s ease;
}
.wa-sfx-item:hover {
    background: rgba(0, 168, 132, 0.25);
    border-color: #00a884;
    transform: translateY(-2px);
}
.wa-sfx-item span.emoji {
    font-size: 22px;
}





/* ═══ BEXGRAM MODERN LIVE STAGE ENHANCEMENTS (2026) ═══ */
@media (min-width: 768px) {
    body.has-active-stage #wa-rail,
    body.has-active-stage .wa-desktop-rail {
        display: flex !important;
        visibility: visible !important;
        z-index: 2600 !important;
    }
    body.has-active-stage #odalar-desktop-sidebar {
        display: flex !important;
        visibility: visible !important;
        z-index: 2550 !important;
    }
    body.has-active-stage #odalar-main-section {
        display: flex !important;
        visibility: visible !important;
    }
    .wa-room-stage-view {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 444px !important;
        width: calc(100vw - 444px) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background-color: #061210 !important;
        z-index: 2500 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
}

@media (max-width: 767px) {
    .wa-room-stage-view {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background-color: #061210 !important;
        z-index: 2500 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    .wa-stage-input {
        font-size: 16px !important;
    }
    body.has-active-stage #odalar-main-section,
    body.has-active-stage #app-tabs,
    body.has-active-stage .page-navigation {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

body.has-active-stage #bex-rooms-mount {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.wa-stage-seats {
    padding: 8px 10px 4px !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px 6px !important;
    justify-items: center !important;
    align-items: start !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.wa-seat-avatar-wrap {
    width: 48px !important;
    height: 48px !important;
}

.wa-seat-avatar,
.wa-seat-empty,
.wa-seat-locked {
    width: 44px !important;
    height: 44px !important;
}

.wa-seat-name {
    font-size: 11px !important;
    max-width: 72px !important;
}

.wa-stage-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px max(10px, env(safe-area-inset-right, 10px)) max(10px, env(safe-area-inset-bottom, 10px)) max(10px, env(safe-area-inset-left, 10px)) !important;
    background: rgba(10, 20, 24, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    flex-shrink: 0 !important;
}

.wa-stage-input-wrap {
    flex: 1 !important;
    min-width: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 20px !important;
    padding: 0 12px !important;
    height: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
}

.wa-stage-input {
    color: var(--color-bg-light) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 14px;
    width: 100% !important;
}

.wa-stage-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.wa-stage-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-bg-light) !important;
    border: none !important;
    flex-shrink: 0 !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
}

.wa-stage-btn.btn-gift {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: var(--color-bg-light) !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45) !important;
}

.wa-stage-btn.btn-raise-hand.is-raised {
    background: #eab308 !important;
    color: #0f172a !important;
}

.wa-stage-msg.is-system {
    align-self: center !important;
    background: rgba(255, 255, 255, 0.09) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 14px !important;
    padding: 3px 12px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-width: 85% !important;
    text-align: center !important;
}

/* 3D Dice Modal */
.bex-dice-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bex-dice-card {
    background: var(--color-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.bex-dice-cube {
    font-size: 72px;
    margin: 16px 0;
    display: inline-block;
    animation: bex-dice-spin 0.6s ease-out;
}
@keyframes bex-dice-spin {
    0% { transform: rotate(0deg) scale(0.6); opacity: 0.5; }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

/* Party Quiz Modal */
.bex-quiz-card {
background: var(--color-bg-dark);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 24px;
padding: 24px;
max-width: 360px;
width: 100%;
color: #fff;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Liste, boş durum ve sahne — sayfa kartlarıyla aynı dil */
.wa-rooms-state {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 220px;
padding: 48px 20px;
text-align: center;
color: var(--wa-muted, #667781);
}
.wa-rooms-state p {
max-width: 320px;
margin: 0;
font-size: 14px;
line-height: 1.45;
}
.wa-rooms-state[role="alert"] { color: var(--bex-danger, #d92d20); }
.wa-rooms-state-icon {
display: grid;
place-items: center;
width: 56px;
height: 56px;
border-radius: 16px;
background: var(--wa-search, #f0f2f5);
color: var(--bex-primary, var(--color-primary));
}
.wa-rooms-state-icon svg { width: 26px; height: 26px; }
.wa-room-card-badges,
.wa-stage-meta {
display: flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
max-width: 65%;
min-width: 0;
}
.wa-live-dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--bex-accent, #25d366);
box-shadow: 0 0 6px var(--bex-accent, #25d366);
margin-right: 2px;
}
.wa-room-lock {
color: var(--bex-danger, #ef4444);
display: inline-flex;
align-items: center;
margin-right: 4px;
}
.wa-room-seat-count {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11.5px;
color: var(--wa-muted, #8696a0);
}
.wa-room-card-host .host-name { margin-left: 8px; }
.wa-stage-rtc { color: var(--bex-accent, #25d366); }
.wa-stage-btn.is-send {
background: var(--bex-primary, #00a884);
color: #fff;
}
.wa-stage-btn.is-heart {
background: rgba(239, 68, 68, 0.18);
color: #ef4444;
}
@media (max-width: 767px) {
body.page-rooms #odalar-main-section > .overflow-y-auto {
padding-bottom: calc(var(--bex-nav-height, 64px) + env(safe-area-inset-bottom, 8px));
}
}

/* Viewport locking for active rooms */
html:has(body.has-active-stage), html:has(body.is-room-active), body.has-active-stage, body.is-room-active {
    overflow: hidden !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
}
body.has-active-stage #app-tabs, body.is-room-active #app-tabs, body.has-active-stage .page-navigation, body.is-room-active .page-navigation {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* Mobil & Masaüstü Uyumlu Mini Yüzen Oda (FAB Butonu ile Çakışmaz, Sola Hizalı) */
@media (max-width: 767px) {
    html body .wa-mini-room,
    .wa-mini-room {
        left: 12px !important;
        right: auto !important;
        bottom: calc(var(--bex-nav-height, 56px) + 12px) !important;
        max-width: calc(100vw - 86px) !important;
        margin: 0 !important;
    }
}
@media (min-width: 768px) {
    html body .wa-mini-room,
    .wa-mini-room {
        left: 76px !important;
        right: auto !important;
        bottom: 24px !important;
        max-width: 320px !important;
    }
}


/* Bexgram Odalar Sayfası Yükseklik Eşitleme & Kompakt Mobil Optimizasyonu */
.wa-rooms-grid {
    align-items: stretch !important;
}
.wa-room-card-body {
    padding: 7px 9px 8px 9px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 4px !important;
    flex: 1 1 auto !important;
}
.wa-room-card-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}
.wa-room-card-desc {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.wa-room-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    margin-top: 4px !important;
    padding-top: 4px !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}
.wa-room-seat-count {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: var(--wa-muted, #8696a0) !important;
}
.wa-room-join-btn {
    padding: 4px 10px !important;
    min-height: 28px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}
