/* ==========================================================================
   SohbetDenizi — Bespoke Broadcast & Real-Time Chat Design System
   Crafted with dark coastal carbon surfaces, sea-teal & broadcast-amber accents
   ========================================================================== */

:root {
    --bg-canvas: #090d13;
    --bg-surface-1: #0f151f;
    --bg-surface-2: #151d2a;
    --bg-surface-3: #1c2636;
    --bg-glass: rgba(13, 18, 27, 0.82);
    --bg-glass-heavy: rgba(10, 14, 22, 0.91);

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-teal: #14b8a6;
    --accent-teal-hover: #0d9488;
    --accent-amber: #f59e0b;
    --accent-live: #f43f5e;
    --accent-emerald: #10b981;

    --room-accent: #14b8a6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

/* Custom thin scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.38);
}

/* ==========================================================================
   SHARED BUTTONS & BADGES
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.16s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(180deg, #16c4b0 0%, #0d9488 100%);
    color: #041f1c;
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow: 0 2px 12px rgba(20, 184, 166, 0.22);
}
.btn-primary:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.btn-amber {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #1f1300;
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.2);
}
.btn-amber:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-surface {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}
.btn-surface:hover {
    background: var(--bg-surface-3);
    border-color: var(--border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.14);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.35);
}
.btn-danger:hover {
    background: rgba(244, 63, 94, 0.24);
}

.btn-sm {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: 7px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    display: inline-block;
    flex-shrink: 0;
}

.live-dot-red {
    background: var(--accent-live);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25);
    animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

/* ==========================================================================
   LOBBY PAGE (SOHBET KANALLARI KUTULARI)
   ========================================================================== */

.lobby-page {
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(20, 184, 166, 0.11), transparent 60%),
        radial-gradient(ellipse 60% 40% at 88% 0%, rgba(245, 158, 11, 0.08), transparent 55%),
        var(--bg-canvas);
    display: flex;
    flex-direction: column;
}

.lobby-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 13, 19, 0.84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.lobby-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.lobby-topbar-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-emblem {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 60%, #fbbf24 130%);
    display: grid;
    place-items: center;
    color: #041e1b;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.25);
    flex-shrink: 0;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    line-height: 1.1;
}

.brand-title span {
    color: var(--accent-teal);
}

.brand-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.lobby-stats-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 12.5px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.stat-chip strong {
    color: var(--text-primary);
    font-weight: 700;
}

.lobby-hero {
    padding: 34px 0 22px;
}

.lobby-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.lobby-heading {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 6px;
    color: #f8fafc;
}

.lobby-lead {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 640px;
}

.lobby-filter-bar {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 7px 13px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: rgba(20, 184, 166, 0.14);
    border-color: rgba(20, 184, 166, 0.45);
    color: #5eead4;
}

.search-box {
    position: relative;
    min-width: 240px;
    flex: 0 1 280px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: var(--bg-surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}
.search-box input:focus {
    border-color: var(--accent-teal);
}
.search-box svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

/* CHANNEL CARDS GRID */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 20px 0 48px;
}

.channel-box {
    position: relative;
    background: linear-gradient(180deg, rgba(22, 30, 44, 0.92) 0%, rgba(14, 20, 30, 0.96) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    text-align: left;
}

.channel-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-teal));
    opacity: 0.88;
}

.channel-box:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.channel-box-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.channel-hash-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.channel-hash-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--card-accent, var(--accent-teal));
}

.channel-box-name {
    font-size: 16.5px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.channel-box-cat {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.30);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.channel-box-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.channel-radio-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(9, 13, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.channel-radio-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.channel-radio-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #cbd5e1;
}

.dj-live-tag {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
    flex-shrink: 0;
}

.dj-auto-tag {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    flex-shrink: 0;
}

.channel-box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 12px;
}

.channel-owner-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fbbf24;
    font-weight: 600;
}

.channel-enter-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #5eead4;
    font-size: 12.5px;
}

/* ==========================================================================
   CHAT ROOM WORKSPACE (100dvh, REVERSIBLE SIDEBAR & COMPOSER)
   ========================================================================== */

.chat-viewport {
    position: relative;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-canvas);
}

.broadcast-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(20, 184, 166, 0.10), transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.07), transparent 50%),
        #090d13;
    background-size: cover;
    background-position: center;
    transition: background-image 0.6s ease, background 0.6s ease;
}

.broadcast-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, var(--theme-overlay-opacity, 0.65));
    transition: background 0.4s ease;
}

/* TOP BROADCAST & RADIO HEADER */
.room-header {
    position: relative;
    z-index: 25;
    min-height: 64px;
    padding: 8px 14px;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* When user pulls User List to the right, keep radio player left-aligned */
.chat-viewport.sidebar-right .room-header-broadcast-zone {
    flex-direction: row;
}

.room-brand-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-users-btn {
    display: none;
}

.channel-switcher-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #f8fafc;
    font-weight: 700;
    font-size: 13.5px;
    padding: 6px 10px;
    border-radius: 8px;
    outline: none;
}

.room-header-broadcast-zone {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

/* LIVE DJ STATUS CAPSULE */
.dj-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-subtle);
    min-width: 0;
    flex: 1 1 320px;
    max-width: 560px;
}

.dj-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.dj-avatar-wrap img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.dj-meta {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.dj-meta-top {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .room-header {
        flex-wrap: wrap;
    }
    .room-header-broadcast-zone {
        order: 3;
        flex-basis: 100%;
    }
}

.dj-meta-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RADIO PLAYER MODULE */
.radio-player-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    border-radius: 11px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.24);
    flex-shrink: 0;
}

.radio-play-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--room-accent, var(--accent-teal));
    color: #041f1c;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.radio-play-btn:hover {
    transform: scale(1.06);
}

.eq-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    width: 14px;
}
.eq-bars span {
    width: 3px;
    background: var(--room-accent, var(--accent-teal));
    border-radius: 2px;
    height: 4px;
    transition: height 0.2s ease;
}
.radio-player-box.is-playing .eq-bars span:nth-child(1) { animation: eqBounce 0.7s infinite ease-in-out; }
.radio-player-box.is-playing .eq-bars span:nth-child(2) { animation: eqBounce 0.55s infinite ease-in-out 0.15s; }
.radio-player-box.is-playing .eq-bars span:nth-child(3) { animation: eqBounce 0.8s infinite ease-in-out 0.3s; }

@keyframes eqBounce {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

.radio-station-label {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-status-small {
    font-size: 10.5px;
    color: var(--text-secondary);
}

.volume-slider {
    width: 66px;
    accent-color: var(--room-accent, var(--accent-teal));
    cursor: pointer;
}

/* RIGHT HEADER CONTROLS & PROFILE TRIGGER */
.room-actions-cluster {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.layout-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
}
.layout-toggle-btn:hover,
.layout-toggle-btn.is-active {
    color: #5eead4;
    border-color: rgba(20, 184, 166, 0.42);
    background: rgba(20, 184, 166, 0.11);
}

.profile-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-strong);
    color: #f8fafc;
    font-weight: 700;
    font-size: 12.5px;
}
.profile-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.09);
}
.profile-trigger-btn img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
}

/* ==========================================================================
   MAIN BODY: SIDEBAR (LEFT OR RIGHT) + CHAT STREAM (COMPOSER BOTTOM OR TOP)
   ========================================================================== */

.room-body {
    position: relative;
    z-index: 10;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
}

.chat-viewport.sidebar-right .room-body {
    flex-direction: row-reverse;
}

/* USER LIST SIDEBAR */
.users-sidebar {
    width: 282px;
    flex-shrink: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-viewport.sidebar-right .users-sidebar {
    border-right: none;
    border-left: 1px solid var(--border-subtle);
}

.sidebar-head {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-head-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.sidebar-search {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 12.5px;
    outline: none;
}
.sidebar-search:focus {
    border-color: var(--room-accent, var(--accent-teal));
}

.users-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: var(--user-list-bg, transparent);
    cursor: pointer;
    text-align: left;
    transition: filter 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.user-row:hover {
    border-color: rgba(255, 255, 255, 0.14);
    filter: brightness(1.08);
    background: var(--user-list-bg, rgba(255, 255, 255, 0.045));
}

.user-row-avatar {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #1e293b;
}

.user-row-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    overflow: hidden;
    background: #1e293b;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.user-row-status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-emerald);
    border: 2px solid #0d131d;
}

.user-row-main {
    flex: 1;
    min-width: 0;
}

.user-row-nick-line {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.user-row-nick {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.rank-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1.5px 6px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    font-family: var(--font-ui);
}

.user-row .rank-chip {
    background-color: rgba(10, 14, 22, 0.84) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.dj-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1.5px 6px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
    background: rgba(9, 16, 24, 0.86);
    border: 1px solid rgba(45, 212, 191, 0.55);
    color: #5eead4;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   CHAT COLUMN & REVERSIBLE COMPOSER / STREAM FLOW
   ========================================================================== */

.chat-main-column {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    backdrop-filter: none;
}

.topic-banner {
    padding: 7px 16px;
    background: rgba(15, 23, 36, 0.48);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #cbd5e1;
}

.topic-banner-text {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wrapper containing stream + composer so flipping order is instant */
.chat-flow-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Mode B: Composer at TOP, latest message appears at top and pushes older messages DOWNWARD */
.chat-viewport.composer-top .chat-flow-stage {
    flex-direction: column-reverse;
}

.messages-viewport {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msg-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 2px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: msgFadeIn 0.18s ease-out;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-item:hover {
    background: transparent;
}

.msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.msg-content-wrap {
    flex: 1;
    min-width: 0;
}

.msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.msg-author {
    cursor: pointer;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 0 8px rgba(0, 0, 0, 0.55);
}
.msg-author:hover {
    text-decoration: underline;
}

.msg-time {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    margin-left: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.msg-delete-btn {
    opacity: 0;
    background: transparent;
    border: none;
    color: #fda4af;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
    transition: opacity 0.14s ease;
}
.msg-item:hover .msg-delete-btn {
    opacity: 1;
}
.msg-delete-btn:hover {
    background: rgba(244, 63, 94, 0.18);
}

.msg-body {
    word-break: break-word;
    line-height: 1.48;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 0 8px rgba(0, 0, 0, 0.6);
}

/* Message Style Preset Decorations (Kutu ve çizgi olmadan doğrudan yazı) */
.msg-decor-amber-bar {
    border: none;
    padding: 0;
}
.msg-decor-teal-pill {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}
.msg-decor-crimson-bar {
    border: none;
    padding: 0;
}
.msg-decor-warm-glow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(251, 191, 36, 0.35);
}
.msg-decor-quote-line {
    border: none;
    padding: 0;
}
.msg-decor-emerald-pill {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}
.msg-decor-mono-box {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}
.msg-decor-silver-bar {
    border: none;
    padding: 0;
    letter-spacing: 0.02em;
}

/* Stamp / Icon Card Messages (Kutusuz doğrudan büyük ikon ve yazı) */
.stamp-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    margin-top: 2px;
    box-shadow: none;
}
.stamp-card.tone-teal,
.stamp-card.tone-rose,
.stamp-card.tone-emerald,
.stamp-card.tone-sky {
    background: transparent;
    border: none;
}
.stamp-emoji {
    font-size: 50px;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.stamp-title {
    font-weight: 800;
    font-size: 16.5px;
    color: #f8fafc;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92), 0 0 8px rgba(0, 0, 0, 0.6);
}
.stamp-card.tone-teal .stamp-title { color: #5eead4; }
.stamp-card.tone-rose .stamp-title { color: #fda4af; }
.stamp-card.tone-emerald .stamp-title { color: #6ee7b7; }
.stamp-card.tone-sky .stamp-title { color: #7dd3fc; }

/* System & Announcement Messages */
.msg-system {
    padding: 3px 6px;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 12px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
}

.msg-announcement {
    padding: 4px 6px;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #fef3c7;
    font-weight: 700;
    font-size: 13.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* ==========================================================================
   COMPOSER ZONE (WRITING + FONT/SIZE/COLOR + PRESETS + ICONS)
   ========================================================================== */

.composer-dock {
    position: relative;
    z-index: 20;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-subtle);
    padding: 9px 14px 11px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-viewport.composer-top .composer-dock {
    border-top: none;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.composer-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.toolbar-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 12px;
    color: #e2e8f0;
    outline: none;
}
.toolbar-select option {
    background: #111827;
    color: #f8fafc;
}

.toolbar-icon-btn {
    height: 28px;
    min-width: 28px;
    padding: 0 8px;
    border-radius: 7px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.toolbar-icon-btn.is-on {
    background: rgba(20, 184, 166, 0.18);
    border-color: rgba(45, 212, 191, 0.5);
    color: #5eead4;
}

.color-swatch-input {
    width: 28px;
    height: 28px;
    padding: 2px;
    border-radius: 7px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.composer-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.composer-text-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(7, 10, 16, 0.78);
    border: 1px solid var(--border-strong);
    color: #f1f5f9;
    outline: none;
    transition: border-color 0.15s ease;
}
.composer-text-input:focus {
    border-color: var(--room-accent, var(--accent-teal));
}

/* POPOVER FOR EMOJIS & CHAT STAMPS */
.icons-popover {
    position: absolute;
    left: 14px;
    bottom: calc(100% + 8px);
    width: min(420px, calc(100vw - 28px));
    background: #111826;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    padding: 12px;
    z-index: 60;
}

.chat-viewport.composer-top .icons-popover {
    bottom: auto;
    top: calc(100% + 8px);
}

.stamps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.stamp-pick-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
    text-align: left;
}
.stamp-pick-btn:hover {
    background: rgba(20, 184, 166, 0.13);
    border-color: rgba(45, 212, 191, 0.4);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.emoji-pick-btn {
    height: 32px;
    border-radius: 7px;
    border: none;
    background: transparent;
    font-size: 18px;
}
.emoji-pick-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MODALS & PROFILE CARD WITH TOP-RIGHT PANEL BUTTONS
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 7, 12, 0.76);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #111824;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.modal-card-wide {
    max-width: 680px;
}

/* PROFILE HERO COVER + TOP-RIGHT ROLE/DJ PANELS */
.profile-cover-banner {
    position: relative;
    height: 148px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-topright-panels {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.panel-jump-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(9, 13, 20, 0.86);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.55);
    color: #fde68a;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
}
.panel-jump-btn:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 36, 0.96);
}
.panel-jump-btn.is-dj-panel {
    border-color: rgba(45, 212, 191, 0.65);
    color: #5eead4;
}

.profile-identity-bar {
    padding: 0 20px 16px;
    margin-top: -36px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-avatar-xl {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #111824;
    background: #1e293b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   FORMS & STUDIO CONTROL PANELS (TAÇ, SÜPER ADMİN, YÖNETİCİ, MOD, DJ)
   ========================================================================== */

.form-group {
    margin-bottom: 13px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    background: #0b1018;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-teal);
}

.panel-shell {
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 70% 40% at 10% 0%, rgba(20, 184, 166, 0.09), transparent 55%),
        var(--bg-canvas);
    padding-bottom: 60px;
}

.panel-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 13, 19, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.panel-card {
    grid-column: span 12;
    background: var(--bg-surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 15px;
    padding: 20px;
}

.panel-card.col-6 {
    grid-column: span 6;
}
.panel-card.col-5 {
    grid-column: span 5;
}
.panel-card.col-7 {
    grid-column: span 7;
}

.panel-card-title {
    font-size: 15.5px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-card-sub {
    margin: 0 0 16px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* PERMISSION MATRIX TABLE */
.matrix-table-wrap {
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.matrix-table th,
.matrix-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.matrix-table th:first-child,
.matrix-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
}

.matrix-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-teal);
    cursor: pointer;
}

/* THEME GALLERY CARDS IN DJ PANEL */
.themes-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.theme-card {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface-2);
    display: flex;
    flex-direction: column;
}
.theme-card.is-live-theme {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.25);
}

.theme-preview-box {
    height: 118px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px;
}

.theme-card-body {
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-banner {
    padding: 11px 15px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
}
.alert-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}
.alert-error {
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(251, 113, 133, 0.35);
    color: #fda4af;
}

.toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-msg {
    padding: 10px 14px;
    border-radius: 10px;
    background: #131c2b;
    border: 1px solid var(--border-strong);
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */

@media (max-width: 1024px) {
    .panel-card.col-6,
    .panel-card.col-5,
    .panel-card.col-7 {
        grid-column: span 12;
    }
}

@media (max-width: 900px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (max-width: 860px) {
    .mobile-users-btn {
        display: inline-flex;
    }

    .room-header {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 8px;
    }

    .room-header-broadcast-zone {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }

    .dj-status-bar {
        flex: 1 1 200px;
        max-width: none;
    }

    .radio-player-box {
        flex: 1 1 auto;
        justify-content: space-between;
    }

    .users-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 80;
        width: min(300px, 86vw);
        transform: translateX(-104%);
        transition: transform 0.24s ease;
        box-shadow: 12px 0 36px rgba(0, 0, 0, 0.6);
    }

    .chat-viewport.sidebar-right .users-sidebar {
        left: auto;
        right: 0;
        transform: translateX(104%);
        box-shadow: -12px 0 36px rgba(0, 0, 0, 0.6);
    }

    .users-sidebar.mobile-open,
    .chat-viewport.sidebar-right .users-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-sidebar-scrim {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 75;
        background: rgba(0, 0, 0, 0.55);
    }
    .mobile-sidebar-scrim.is-open {
        display: block;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }

    .lobby-stats-bar .hide-mobile {
        display: none;
    }
}

/* ==========================================================================
   QUICK HEADER PANEL BADGES (FOR CHAT ROOM HEADER)
   ========================================================================== */
.panel-quick-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--trans-fast);
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.panel-quick-header-badge.is-auth {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}
.panel-quick-header-badge.is-auth:hover {
    background: rgba(245, 158, 11, 0.28);
    color: #fff;
    transform: translateY(-1px);
}

.panel-quick-header-badge.is-dj {
    background: rgba(20, 184, 166, 0.16);
    border-color: rgba(45, 212, 191, 0.35);
    color: #5eead4;
}
.panel-quick-header-badge.is-dj:hover {
    background: rgba(20, 184, 166, 0.28);
    color: #fff;
    transform: translateY(-1px);
}

.panel-quick-header-badge.is-master {
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(244, 63, 94, 0.35);
    color: #fecdd3;
}
.panel-quick-header-badge.is-master:hover {
    background: rgba(244, 63, 94, 0.28);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   PANEL STUDIO LAYOUT (LEFT SIDEBAR NAVIGATION SYSTEM FOR TAÇ, DJ & SUPER ADMIN)
   ========================================================================== */
.panel-studio-layout {
    display: flex;
    min-height: 100dvh;
    background: var(--bg-canvas);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

.panel-studio-sidebar {
    width: 275px;
    flex-shrink: 0;
    background: #0b1018;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    z-index: 70;
    padding: 18px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.panel-studio-sidebar-header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.panel-studio-channel-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-subtle);
    border-radius: 11px;
    margin-bottom: 12px;
}

.panel-sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.panel-sidebar-nav-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    padding: 10px 10px 4px;
}

.panel-sidebar-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--trans-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.panel-sidebar-nav-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
}

.panel-sidebar-nav-link.active,
.panel-sidebar-nav-link:active {
    color: #5eead4;
    background: rgba(20, 184, 166, 0.14);
    border-color: rgba(45, 212, 191, 0.32);
}

.panel-sidebar-nav-link .nav-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.panel-studio-sidebar-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.panel-studio-main {
    flex: 1;
    min-width: 0;
    height: 100dvh;
    overflow-y: auto;
    padding: 24px 32px 80px;
    scroll-behavior: smooth;
}

.panel-studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.panel-mobile-menu-btn {
    display: none;
}

.panel-studio-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

@media (max-width: 980px) {
    .panel-studio-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-104%);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 12px 0 36px rgba(0, 0, 0, 0.7);
    }

    .panel-studio-sidebar.open {
        transform: translateX(0);
    }

    .panel-mobile-menu-btn {
        display: inline-flex;
    }

    .panel-studio-scrim.open {
        display: block;
    }

    .panel-studio-main {
        padding: 16px 16px 60px;
    }
}

/* ==========================================================================
   PANEL DASHBOARD STATS & KPI BOXES (ANA SAYFA KUTU TASARIMI)
   ========================================================================== */
.panel-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.panel-kpi-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.panel-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.panel-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-kpi-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.panel-kpi-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.panel-kpi-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   NEW FEATURES: PM DRAWER, VOICE NOTES, GIFS, GIFTS, POLLS, GAME & MENTIONS
   ========================================================================== */

.dj-now-playing-line {
    font-size: 11px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.mention-pill {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #fde047;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92);
}

.msg-item.msg-mentioned {
    background: transparent;
    border: none;
    border-radius: 0;
}

/* GAME CHANNEL TOP BANNER & BOT MESSAGES */
.game-channel-banner {
    margin: 8px 14px 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.45) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(168, 85, 247, 0.45);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.game-badge-pill {
    padding: 3px 8px;
    border-radius: 6px;
    background: #9333ea;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    flex-shrink: 0;
}

.game-timer-pill {
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.22);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
    font-size: 11.5px;
    font-weight: 800;
}

.game-commands-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.game-cmd-btn {
    padding: 3px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.game-cmd-btn:hover {
    background: rgba(168, 85, 247, 0.32);
    border-color: #c084fc;
}

.msg-game-bot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px;
    border-radius: 0;
    background: transparent;
    border: none;
    margin: 2px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
}
.msg-game-bot.is-trivia_win {
    background: transparent;
    border: none;
}
.game-bot-badge {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
    font-size: 10.5px;
    font-weight: 800;
    flex-shrink: 0;
}
.game-bot-text {
    flex: 1;
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
}

/* LIVE POLL BANNER */
.live-poll-banner {
    margin: 8px 14px 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(13, 19, 29, 0.92);
    border: 1px solid rgba(45, 212, 191, 0.35);
}
.poll-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #f8fafc;
    margin-bottom: 8px;
}
.poll-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 7px;
}
.poll-option-btn {
    position: relative;
    overflow: hidden;
    padding: 7px 10px;
    border-radius: 8px;
    background: #111827;
    border: 1px solid var(--border-subtle);
    color: #f8fafc;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}
.poll-option-btn.is-voted {
    border-color: #2dd4bf;
}
.poll-option-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(20, 184, 166, 0.22);
    pointer-events: none;
}
.poll-option-label, .poll-option-pct {
    position: relative;
    z-index: 1;
    font-weight: 700;
}
.poll-option-pct {
    color: #5eead4;
    font-size: 11px;
}

/* GIFT MESSAGE CARD & FULLSCREEN PARTICLES */
.gift-msg-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    margin-top: 2px;
    box-shadow: none;
}
.gift-msg-emoji {
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.gift-msg-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--gift-accent, #fde68a);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92), 0 0 8px rgba(0, 0, 0, 0.6);
}

/* BIG + BUTTON & FEATURES HUB MODAL */
.composer-plus-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border: 1px solid #5eead4;
    color: #042f2e;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35);
    transition: transform 0.16s ease, filter 0.16s ease;
}
.composer-plus-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.features-hub-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
    padding: 14px 18px;
    background: #090e17;
    border-bottom: 1px solid var(--border-subtle);
}
.feature-hub-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 6px;
    border-radius: 12px;
    background: #111827;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.16s ease;
}
.feature-hub-tile:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    transform: translateY(-1px);
}
.feature-hub-tile.is-active {
    background: rgba(20, 184, 166, 0.16);
    border-color: rgba(45, 212, 191, 0.5);
    color: #5eead4;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.2);
}
.fhub-emoji {
    font-size: 24px;
    line-height: 1;
}
.fhub-label {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.emoji-pick-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.14s ease, background 0.14s ease;
}
.emoji-pick-btn:hover {
    background: rgba(20, 184, 166, 0.18);
    border-color: rgba(45, 212, 191, 0.45);
    transform: scale(1.14);
}

.msg-jumbo-emoji {
    font-size: 56px !important;
    line-height: 1.2 !important;
    padding: 6px 2px;
    letter-spacing: 4px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.38));
}

.inline-big-emoji {
    font-size: 34px !important;
    line-height: 1.1 !important;
    vertical-align: middle;
    display: inline-block;
    margin: 0 2px;
}

/* PROFILE DROPDOWN MENU (SAĞ ÜST PROFİL AÇILIR MENÜSÜ) */
.profile-dropdown-wrap {
    position: relative;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 268px;
    background: #0d131f;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75);
    z-index: 120;
}

.profile-dropdown-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 11px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 6px;
}

.profile-dropdown-user img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-dropdown-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 7px 8px 3px;
    text-transform: uppercase;
}

.profile-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.14s ease;
}

.profile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.065);
    color: #fff;
}

.profile-dropdown-item.is-panel-link {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(45, 212, 191, 0.25);
    color: #5eead4;
    font-weight: 700;
    margin-bottom: 3px;
}

.profile-dropdown-item.is-panel-link:hover {
    background: rgba(20, 184, 166, 0.22);
    color: #fff;
}

.profile-dropdown-item.is-danger {
    color: #fda4af;
}

.profile-dropdown-item.is-danger:hover {
    background: rgba(244, 63, 94, 0.16);
    color: #fecdd3;
}

/* ==========================================================================
   3-ICON SIDEBAR TABS (USERS / CHANNELS / CHANNEL AUTHORITIES & DJS)
   ========================================================================== */
.sidebar-icon-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 9px;
}

.sidebar-icon-tab {
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.sidebar-icon-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.sidebar-icon-tab.is-active {
    background: rgba(20, 184, 166, 0.16);
    border-color: rgba(45, 212, 191, 0.48);
    color: #5eead4;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.18);
}

.sidebar-tab-badge {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #5eead4;
    font-size: 11px;
    font-weight: 800;
}

/* SIDEBAR CHANNELS LIST (TAB 2) */
.sidebar-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    color: #f8fafc;
    transition: all 0.15s ease;
}

.sidebar-channel-row:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateX(2px);
}

.sidebar-channel-row.is-current-channel {
    background: rgba(20, 184, 166, 0.13);
    border-color: rgba(45, 212, 191, 0.42);
}

.sidebar-channel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-channel-main {
    min-width: 0;
    flex: 1;
}

.sidebar-channel-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-channel-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-channel-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.sidebar-channel-count {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: #5eead4;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

/* SIDEBAR CHANNEL STAFF & DJS (TAB 3) */
.sidebar-staff-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    margin: 6px 0 2px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.85);
    font-size: 11.5px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.02em;
}

.sidebar-staff-group-header:first-child {
    margin-top: 0;
}

.sidebar-staff-group-count {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    font-size: 10.5px;
}

/* SLIM TABLE ROWS FOR CHANNEL STAFF & DJS (GROUP-BASED FIXED BACKGROUND COLORS) */
.staff-slim-table {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
}

.staff-slim-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-align: left;
    transition: filter 0.14s ease, transform 0.14s ease;
}

.staff-slim-row:hover {
    filter: brightness(1.12);
    transform: translateX(2px);
}

.staff-slim-avatar {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.staff-slim-nick {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 1. Taç Yetkilisi: Altın Sarısı */
.staff-slim-row.is-group-tac {
    background: linear-gradient(90deg, #b45309 0%, #d97706 100%);
    border-color: rgba(253, 224, 71, 0.55);
}
.staff-slim-row.is-group-tac .staff-slim-nick {
    color: #fef9c3;
}

/* 2. Süper Admin: Yakut Bordo / Kırmızı */
.staff-slim-row.is-group-super_admin {
    background: linear-gradient(90deg, #881337 0%, #be123c 100%);
    border-color: rgba(251, 113, 133, 0.5);
}
.staff-slim-row.is-group-super_admin .staff-slim-nick {
    color: #ffe4e6;
}

/* 3. Yönetici: Zümrüt Yeşili */
.staff-slim-row.is-group-yonetici {
    background: linear-gradient(90deg, #065f46 0%, #0d9488 100%);
    border-color: rgba(94, 234, 212, 0.48);
}
.staff-slim-row.is-group-yonetici .staff-slim-nick {
    color: #ccfbf1;
}

/* 4. Moderatör: Safir Mavi */
.staff-slim-row.is-group-moderator {
    background: linear-gradient(90deg, #1e3a8a 0%, #0284c7 100%);
    border-color: rgba(125, 211, 252, 0.48);
}
.staff-slim-row.is-group-moderator .staff-slim-nick {
    color: #e0f2fe;
}

/* 5. VIP Üyeler: Kraliyet Moru */
.staff-slim-row.is-group-vip {
    background: linear-gradient(90deg, #4c1d95 0%, #7e22ce 100%);
    border-color: rgba(216, 180, 254, 0.48);
}
.staff-slim-row.is-group-vip .staff-slim-nick {
    color: #f3e8ff;
}

/* 6. Kanal DJ'leri: Siyan / İndigo Stüdyo */
.staff-slim-row.is-group-djs {
    background: linear-gradient(90deg, #155e75 0%, #0891b2 100%);
    border-color: rgba(103, 232, 249, 0.48);
}
.staff-slim-row.is-group-djs .staff-slim-nick {
    color: #cffafe;
}

/* YOUTUBE & TIKTOK IN-CHANNEL VIDEO PLAYER */
.chat-video-embed-card {
    margin-top: 8px;
    width: min(440px, 100%);
    border-radius: 14px;
    overflow: hidden;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.chat-video-embed-card.is-tiktok {
    width: min(325px, 100%);
}
.chat-video-head {
    padding: 7px 12px;
    background: #111827;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 800;
    color: #f8fafc;
}
.chat-video-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.chat-video-embed-card.is-tiktok .chat-video-frame-wrap {
    aspect-ratio: 9 / 14;
    max-height: 460px;
}
.chat-video-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gift-fx-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 140;
    overflow: hidden;
}
.gift-fx-banner {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    border: 2px solid #fbbf24;
    color: #fde047;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    animation: giftBannerPop 0.35s ease;
}
.gift-fx-particle {
    position: absolute;
    bottom: -40px;
    animation: giftFloatUp linear forwards;
}
@keyframes giftFloatUp {
    0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 1; }
    80% { opacity: 0.95; }
    100% { transform: translateY(-95vh) scale(1.25) rotate(25deg); opacity: 0; }
}
@keyframes giftBannerPop {
    0% { transform: translate(-50%, -20px) scale(0.85); opacity: 0; }
    100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

/* VOICE NOTE CARD & RECORDER BAR */
.voice-note-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    margin-top: 2px;
    min-width: 210px;
}
.voice-play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #14b8a6;
    color: #042f2e;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.voice-waveform-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 22px;
    flex: 1;
}
.voice-waveform-bars span {
    width: 3px;
    border-radius: 2px;
    background: #5eead4;
    display: inline-block;
}
.voice-duration-tag {
    font-size: 11px;
    font-weight: 700;
    color: #99f6e4;
}

.voice-recorder-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(225, 29, 72, 0.16);
    border: 1px solid rgba(244, 63, 94, 0.45);
    margin-bottom: 8px;
}
.voice-rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f43f5e;
    animation: pulse 1s infinite;
}

/* CHAT MEDIA (IMAGE & GIF) */
.chat-media-card {
    position: relative;
    display: inline-block;
    margin-top: 4px;
    border-radius: 11px;
    overflow: hidden;
    border: none;
    max-width: 260px;
}
.chat-media-card img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    cursor: zoom-in;
}
.gif-corner-tag {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.72);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 800;
}

.gif-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    max-height: 210px;
    overflow-y: auto;
}
.gif-pick-item {
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    padding: 0;
    overflow: hidden;
    background: #0b1018;
    cursor: pointer;
}
.gif-pick-item img {
    width: 100%;
    height: 74px;
    object-fit: cover;
    display: block;
}

/* TABBED PRIVATE MESSAGE (PM) DRAWER */
.pm-unread-pill {
    padding: 1px 6px;
    border-radius: 999px;
    background: #f43f5e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.pm-drawer {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: min(370px, 94vw);
    height: 430px;
    z-index: 110;
    background: #0d131f;
    border: 1px solid var(--border-strong);
    border-radius: 15px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pm-drawer-header {
    padding: 10px 14px;
    background: #111827;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 13.5px;
    color: #f8fafc;
}
.pm-tabs-bar {
    display: flex;
    gap: 5px;
    padding: 6px 10px;
    background: #090d15;
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
}
.pm-tab-btn {
    padding: 5px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.pm-tab-btn.is-active {
    background: rgba(20, 184, 166, 0.16);
    border-color: rgba(45, 212, 191, 0.4);
    color: #5eead4;
}
.pm-tab-unread {
    padding: 1px 5px;
    border-radius: 999px;
    background: #f43f5e;
    color: #fff;
    font-size: 10px;
}
.pm-messages-box {
    flex: 1;
    padding: 10px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.pm-bubble {
    max-width: 84%;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.4;
}
.pm-bubble.is-mine {
    align-self: flex-end;
    background: rgba(20, 184, 166, 0.2);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: #f8fafc;
}
.pm-bubble.is-theirs {
    align-self: flex-start;
    background: #161f30;
    border: 1px solid var(--border-subtle);
    color: #e2e8f0;
}
.pm-bubble-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.pm-input-row {
    padding: 8px 10px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 7px;
    background: #111827;
}
