/* ═══════════════════════════════════════════════════════════════
   SynaMeet — Styles (LiveKit SFU Edition)
   500+ participant video conferencing
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg: #0a1628;
    --bg-surface: #0f1f3d;
    --bg-elevated: #172d54;
    --bg-hover: #1e3a6e;
    --text: #e4eaf5;
    --text-secondary: #8da4c7;
    --primary: #4da3ff;
    --primary-dark: #1a6dd4;
    --primary-glow: rgba(77, 163, 255, 0.25);
    --danger: #ef4444;
    --green: #22c55e;
    --yellow: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --panel-width: 360px;
}

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

body {
    font-family: 'Google Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
}

.hidden { display: none !important; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }

/* ── Landing Page ──────────────────────────────────────────── */

.landing {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #060e1f 0%, #0a1a3a 50%, #0f2555 100%);
}

.landing-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(77, 163, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.logo h1 { font-size: 28px; font-weight: 600; }

.tagline { color: var(--text-secondary); margin-bottom: 32px; font-size: 15px; }

.actions { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.join-row { display: flex; gap: 8px; }
.join-row input { flex: 1; }

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.feature {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.feature span { font-size: 24px; display: block; margin-bottom: 4px; }
.feature p { font-size: 12px; color: var(--text-secondary); }

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: #2b7de9; box-shadow: 0 4px 16px rgba(77, 163, 255, 0.3); }
.btn-secondary { background: var(--bg-elevated); color: var(--primary); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
}
.btn-icon:hover { background: var(--bg-elevated); }

input[type="text"], input[type="number"] {
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}
input[type="text"]:focus, input[type="number"]:focus { border-color: var(--primary); }

.icon { font-size: 20px; font-weight: 700; }
.separator { color: var(--bg-elevated); margin: 0 8px; }

/* ── Meeting Container ─────────────────────────────────────── */

.meeting-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

/* ── Top Bar ───────────────────────────────────────────────── */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid rgba(77, 163, 255, 0.1);
    height: 48px;
    flex-shrink: 0;
    z-index: 10;
}

.top-bar-left, .top-bar-center, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meeting-title { font-weight: 500; font-size: 14px; }
.meeting-time { color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.room-code { color: var(--text-secondary); font-size: 13px; font-family: monospace; }

.participant-count {
    background: var(--bg-elevated);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.view-toggle {
    display: flex;
    gap: 2px;
    background: var(--bg-elevated);
    border-radius: 6px;
    padding: 2px;
}
.view-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.view-btn.active { background: var(--bg-hover); color: var(--text); }

/* ── Main Content ──────────────────────────────────────────── */

.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.video-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 8px;
}

/* ── Speaker View ──────────────────────────────────────────── */

.speaker-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-height: 0;
}

.video-tile {
    position: relative;
    background: var(--bg) url('../assets/bg.jpeg') center/cover no-repeat;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.video-tile.featured {
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.video-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}
}

.video-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hand-icon { font-size: 14px; }

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}
.connection-dot.excellent { background: var(--green); }
.connection-dot.good { background: var(--yellow); }
.connection-dot.poor { background: var(--danger); }

.video-no-cam {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg) url('../assets/bg.jpeg') center/cover no-repeat;
    z-index: 1;
}
.video-no-cam::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.55);
    z-index: 0;
}
.video-no-cam .avatar {
    position: relative;
    z-index: 1;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}
.avatar.large { width: 96px; height: 96px; font-size: 40px; }

.speaking-indicator {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: var(--radius);
    pointer-events: none;
    transition: border-color 0.2s;
}
.speaking-indicator.active { border-color: var(--primary); }

/* ── Self PiP (camera during screen share) ─────────────────── */

.self-pip {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 10;
    cursor: grab;
    transition: transform 0.2s;
}
.self-pip:hover { transform: scale(1.05); }
.self-pip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* ── Filmstrip (speaker view thumbnails) ───────────────────── */

.filmstrip {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    flex-shrink: 0;
    max-height: 140px;
}

.filmstrip .video-tile {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
}

/* ── Gallery Grid ──────────────────────────────────────────── */

.gallery-grid {
    flex: 1;
    display: grid;
    gap: 8px;
    padding: 8px;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.gallery-grid .video-tile {
    min-height: 120px;
}

.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ── Controls Bar ──────────────────────────────────────────── */

.controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border-top: none;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    margin-bottom: 10px;
}

.ctrl-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 16px;
    padding: 6px 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 1px rgba(77, 163, 255, 0.2);
}

.ctrl-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: linear-gradient(180deg, rgba(77, 163, 255, 0.08) 0%, rgba(10, 22, 40, 0.4) 100%);
    border: 1px solid rgba(77, 163, 255, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
    min-width: 56px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ctrl-btn:hover {
    background: linear-gradient(180deg, rgba(77, 163, 255, 0.18) 0%, rgba(77, 163, 255, 0.06) 100%);
    border-color: rgba(77, 163, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ctrl-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 4px rgba(0, 0, 0, 0.15);
    border-bottom-width: 1px;
}
.ctrl-btn.muted {
    background: linear-gradient(180deg, rgba(234, 67, 53, 0.2) 0%, rgba(234, 67, 53, 0.08) 100%);
    border-color: rgba(234, 67, 53, 0.2);
    color: #ff6b6b;
    box-shadow: 0 2px 6px rgba(234, 67, 53, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ctrl-btn.muted:hover {
    background: linear-gradient(180deg, rgba(234, 67, 53, 0.35) 0%, rgba(234, 67, 53, 0.12) 100%);
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ctrl-btn.muted .ctrl-icon svg { stroke: #ff6b6b; }
.ctrl-btn.raised {
    background: linear-gradient(180deg, rgba(249, 171, 0, 0.2) 0%, rgba(249, 171, 0, 0.06) 100%);
    border-color: rgba(249, 171, 0, 0.2);
    color: var(--yellow);
    box-shadow: 0 2px 6px rgba(249, 171, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ctrl-btn.raised:hover {
    background: linear-gradient(180deg, rgba(249, 171, 0, 0.35) 0%, rgba(249, 171, 0, 0.1) 100%);
    box-shadow: 0 6px 20px rgba(249, 171, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ctrl-btn.raised .ctrl-icon svg { stroke: var(--yellow); }

.ctrl-group-leave {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}
.ctrl-btn.leave {
    background: linear-gradient(180deg, #ea4335 0%, #c5221f 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid #9a0007;
    border-radius: 12px;
    padding: 10px 24px;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.ctrl-btn.leave:hover {
    background: linear-gradient(180deg, #ff5c4d 0%, #ea4335 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 67, 53, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ctrl-btn.leave:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
    box-shadow: 0 1px 4px rgba(234, 67, 53, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.ctrl-btn.leave .ctrl-icon svg { stroke: #fff; }

.ctrl-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.ctrl-icon svg {
    stroke: var(--text);
    transition: stroke 0.2s;
}
.ctrl-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.ctrl-btn.muted .ctrl-label { color: #ff6b6b; }
.ctrl-btn.leave .ctrl-label { color: rgba(255,255,255,0.9); }
.ctrl-btn.raised .ctrl-label { color: var(--yellow); }

.ctrl-separator {
    width: 1px;
    height: 32px;
    background: var(--bg-elevated);
    margin: 0 4px;
}

.badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(234, 67, 53, 0.4);
    animation: badge-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── Ctrl Button with Dropdown ──────────────────────────────── */

.ctrl-btn-with-dropdown {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    gap: 0;
}
.ctrl-btn-with-dropdown .ctrl-btn {
    border-radius: 12px 0 0 12px;
    border-right: none;
}
.ctrl-dropdown-side {
    background: linear-gradient(180deg, rgba(77, 163, 255, 0.06) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(77, 163, 255, 0.1);
    border-left: 1px solid rgba(77, 163, 255, 0.06);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 0 10px 10px 0;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ctrl-dropdown-side:hover {
    background: linear-gradient(180deg, rgba(77, 163, 255, 0.2) 0%, rgba(77, 163, 255, 0.08) 100%);
    color: var(--primary);
}
.ctrl-dropdown-side:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    border-bottom-width: 1px;
}

/* ── Media Dropdown Panels ─────────────────────────────────── */

.media-dropdown-panel {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-70%);
    background: var(--bg-surface);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 16px;
    width: 320px;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(77, 163, 255, 0.06);
    z-index: 55;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: dropdown-panel-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-dropdown-panel#cam-dropdown-panel {
    transform: translateX(-55%);
}

@keyframes dropdown-panel-in {
    0% { opacity: 0; transform: translateX(-70%) translateY(12px) scale(0.96); }
    100% { opacity: 1; transform: translateX(-70%) translateY(0) scale(1); }
}

.media-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid rgba(77, 163, 255, 0.08);
}

.media-dropdown-section {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(77, 163, 255, 0.06);
}
.media-dropdown-section:last-of-type { border-bottom: none; }

.media-dropdown-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 10px;
}
.media-dropdown-section-title svg { stroke: var(--primary); }

.media-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(77, 163, 255, 0.08);
}

/* Device list items */
.media-device-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.media-device-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: var(--text-secondary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.media-device-item:hover { background: rgba(77, 163, 255, 0.08); }
.media-device-item.active {
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary);
}
.media-device-item .device-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--bg-elevated);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.media-device-item.active .device-check {
    border-color: var(--primary);
    background: var(--primary);
}
.media-device-item.active .device-check::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}
.device-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Volume slider */
.volume-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-elevated);
    outline: none;
    cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--bg-surface);
}
.volume-value {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ── Background Effects Grid ───────────────────────────────── */

.bg-effects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.bg-effect-card, .bg-image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    background: none;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary);
    font-size: 10px;
}
.bg-effect-card:hover, .bg-image-card:hover {
    border-color: rgba(77, 163, 255, 0.3);
    background: rgba(77, 163, 255, 0.06);
}
.bg-effect-card.selected, .bg-image-card.selected {
    border-color: var(--primary);
    background: rgba(77, 163, 255, 0.1);
    color: var(--primary);
}
.bg-effect-preview, .bg-image-preview {
    width: 52px;
    height: 36px;
    border-radius: 6px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bg-effect-blur-light { background: linear-gradient(135deg, rgba(77,163,255,0.1), rgba(77,163,255,0.2)); filter: blur(1px); }
.bg-effect-blur-strong { background: linear-gradient(135deg, rgba(77,163,255,0.15), rgba(77,163,255,0.3)); filter: blur(2px); }
.bg-effect-remove { background: linear-gradient(135deg, var(--bg), var(--bg-elevated)); }

/* ── Blur Intensity Slider ─────────────────────────────────── */

.blur-slider-row {
    padding: 12px 0 4px;
    animation: fade-in 0.2s ease;
}

.blur-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.blur-slider-label span:last-child {
    font-weight: 600;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.blur-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(77,163,255,0.15), rgba(77,163,255,0.4));
    outline: none;
    cursor: pointer;
}
.blur-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 2px 8px rgba(77, 163, 255, 0.4);
    cursor: grab;
    transition: box-shadow 0.15s;
}
.blur-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 12px rgba(77, 163, 255, 0.6);
}
.blur-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.2);
}
.blur-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 2px 8px rgba(77, 163, 255, 0.4);
    cursor: grab;
}

.blur-slider-hints {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 4px;
}

/* ── Side Panels ───────────────────────────────────────────── */

.side-panel {
    width: var(--panel-width);
    background: var(--bg-surface);
    border-left: 1px solid rgba(77, 163, 255, 0.1);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 5;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-elevated);
}
.panel-header h3 { font-size: 14px; font-weight: 500; }

.panel-actions {
    padding: 8px 16px;
    border-bottom: 1px solid var(--bg-elevated);
}

.panel-search {
    padding: 8px 16px;
}
.panel-search input { padding: 8px 12px; font-size: 13px; }

.panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.panel-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--bg-elevated);
}

/* ── Participant List ──────────────────────────────────────── */

.participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.participant-item:hover { background: var(--bg-elevated); }

.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.participant-info { flex: 1; min-width: 0; }
.participant-name { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.participant-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.media-icon { font-size: 14px; opacity: 0.7; }
.media-icon.muted { opacity: 0.3; text-decoration: line-through; }

.participant-mute-btn { font-size: 12px !important; opacity: 0; transition: opacity 0.15s; }
.participant-item:hover .participant-mute-btn { opacity: 1; }

/* ── Waiting Room ──────────────────────────────────────────── */

.waiting-section {
    border-top: 1px solid var(--bg-elevated);
    padding: 12px 16px;
}
.waiting-section h4 { font-size: 13px; color: var(--yellow); margin-bottom: 8px; }

/* ── Chat Panel ────────────────────────────────────────────── */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg { font-size: 13px; }
.chat-msg.self .chat-msg-name { color: var(--green); }
.chat-msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chat-msg-name { color: var(--primary); font-weight: 500; font-size: 12px; }
.chat-msg-text { color: var(--text); word-wrap: break-word; line-height: 1.4; }
.chat-msg-time { color: var(--text-secondary); font-size: 11px; }

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--bg-elevated);
}
.chat-input-row input { flex: 1; padding: 8px 12px; font-size: 13px; }

/* ── Polls ─────────────────────────────────────────────────── */

.poll-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 12px;
}
.poll-question { font-size: 14px; margin-bottom: 10px; font-weight: 500; }
.poll-options { display: flex; flex-direction: column; gap: 6px; }

.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border: 1px solid var(--bg-elevated);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-size: 13px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.poll-option:hover { border-color: var(--primary); }

.poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(26, 109, 212, 0.15);
    transition: width 0.3s;
    border-radius: 6px;
}

.poll-option-text { position: relative; z-index: 1; }
.poll-pct { position: relative; z-index: 1; color: var(--text-secondary); font-size: 12px; }
.poll-total { display: block; margin-top: 8px; font-size: 11px; color: var(--text-secondary); }

/* ── Floating Screen Share Controls ─────────────────────────── */

/* ── Floating bars wrapper (bottom-right, horizontal) ── */
.floating-bars-wrapper {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 200;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

.floating-bars-wrapper > * {
    pointer-events: auto;
}

.screenshare-controls, .floating-controls {
    position: relative;
    bottom: auto;
    right: auto;
    animation: float-bar-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-controls.recording-float {
    /* no offset needed — flex handles it */
}
.screenshare-controls:not(.hidden) ~ .floating-controls.recording-float {
    /* no offset needed */
}

@keyframes float-bar-in {
    0% { opacity: 0; transform: translateY(8px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.screenshare-controls-inner, .floating-controls-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 22, 40, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    white-space: nowrap;
}

.floating-btn-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-primary, #fff);
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s;
}
.floating-btn-mini:hover {
    background: rgba(255, 255, 255, 0.15);
}
.floating-btn-mini.floating-btn-stop {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.floating-btn-mini.floating-btn-stop:hover {
    background: rgba(239, 68, 68, 0.25);
}

.floating-timer {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary, #94a3b8);
}

.recording-border {
    border-color: rgba(239, 68, 68, 0.3);
}
}

.screenshare-indicator, .floating-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.screenshare-dot, .floating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

.screenshare-dot, .rec-dot {
    animation: float-dot-pulse 1.5s infinite;
}

@keyframes float-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.screenshare-timer, .floating-timer {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    padding: 0 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.screenshare-actions, .floating-actions {
    display: flex;
    gap: 6px;
}

.screenshare-btn, .floating-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg-elevated);
    color: var(--text);
    white-space: nowrap;
}
.screenshare-btn:hover, .floating-btn:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
}
.screenshare-btn.paused, .floating-btn.paused {
    background: rgba(77, 163, 255, 0.15);
    color: var(--primary);
}
.screenshare-btn.paused svg, .floating-btn.paused svg { stroke: var(--primary); }

.screenshare-btn-stop, .floating-btn-stop {
    background: var(--danger);
    color: #fff;
}
.screenshare-btn-stop:hover, .floating-btn-stop:hover {
    background: #d93025;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ── Reactions ─────────────────────────────────────────────── */

.reactions-container {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 100;
}

.reaction-float {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float-up 3s ease-out forwards;
}
.reaction-emoji { font-size: 36px; }
.reaction-name { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

@keyframes float-up {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-200px) scale(0.6); opacity: 0; }
}

.reactions-picker {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius);
    padding: 8px 12px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 50;
}
.reactions-picker .reaction-btn {
    background: none;
    border: none;
    font-size: 24px;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.reactions-picker .reaction-btn:hover { transform: scale(1.3); background: var(--bg-elevated); }

/* ── Dropdown Menu ─────────────────────────────────────────── */

.dropdown-menu {
    position: fixed;
    bottom: 80px;
    right: 50%;
    transform: translateX(50%);
    background: var(--bg-surface);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 14px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(77, 163, 255, 0.06);
    z-index: 50;
    min-width: 260px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: dropdown-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdown-in {
    0% { opacity: 0; transform: translateX(50%) translateY(8px) scale(0.96); }
    100% { opacity: 1; transform: translateX(50%) translateY(0) scale(1); }
}

.dropdown-header {
    padding: 8px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: rgba(77, 163, 255, 0.08);
    margin: 4px 12px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 0;
}
.dropdown-item:hover { background: rgba(77, 163, 255, 0.1); }

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.dropdown-icon svg { stroke: var(--primary); }

.dropdown-text { flex: 1; }

.dropdown-shortcut {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.dropdown-badge {
    font-size: 10px;
    font-weight: 600;
}
.dropdown-badge.recording {
    color: #ef4444;
    animation: pulse-red 1.5s infinite;
}

/* Record button active state */
.ctrl-btn.recording {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}
.ctrl-btn.recording .ctrl-icon svg {
    stroke: #ef4444;
}
.ctrl-btn.recording .ctrl-label {
    color: #ef4444;
}
.ctrl-btn.recording .badge {
    color: #ef4444;
    animation: pulse-red 1.5s infinite;
}

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

.dropdown-toggle-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    transition: all 0.2s;
}
.dropdown-toggle-pill.active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green);
}

/* ── Settings ──────────────────────────────────────────────── */

.settings-section {
    margin-bottom: 20px;
}
.settings-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Settings modal 2-col layout ── */
.settings-modal-card {
    background: var(--bg-card, #0f1e36);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 0;
    max-width: 680px;
    width: 90vw;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: left;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.settings-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 20px 24px;
}
.settings-col {
    padding: 0 12px;
}
.settings-col:first-child {
    padding-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 24px;
}
.settings-col:last-child {
    padding-right: 0;
    padding-left: 24px;
}

.settings-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.settings-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .settings-col:first-child {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .settings-col:last-child {
        padding-left: 0;
    }
    .settings-modal-card {
        max-width: 95vw;
    }
}
.settings-select {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238da4c7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.settings-select:focus { border-color: var(--primary); }

/* ── Screen Share Disclaimer ────────────────────────────────── */

.share-disclaimer-card {
    background: var(--bg-surface);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(77, 163, 255, 0.08);
    animation: modal-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
    0% { opacity: 0; transform: scale(0.92) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.share-disclaimer-hero {
    position: relative;
    padding: 24px 20px 20px;
    text-align: center;
    overflow: hidden;
}

.share-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d47a1 50%, #0a1628 100%);
    opacity: 0.9;
}
.share-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(77, 163, 255, 0.3), transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(26, 109, 212, 0.25), transparent 50%);
}

.share-hero-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.share-hero-icon svg { width: 24px; height: 24px; }

.share-disclaimer-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.share-disclaimer-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.share-disclaimer-body {
    padding: 16px 18px 14px;
}

.share-disclaimer-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: rgba(77, 163, 255, 0.03);
    border: 1px solid rgba(77, 163, 255, 0.06);
}

.share-disclaimer-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.share-disclaimer-item-icon.blue {
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary);
}
.share-disclaimer-item-icon.amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--yellow);
}
.share-disclaimer-item-icon.neutral {
    background: rgba(141, 164, 199, 0.1);
    color: var(--text-secondary);
}

.share-disclaimer-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.share-disclaimer-item-content strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}
.share-disclaimer-item-content span {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.share-disclaimer-divider {
    height: 1px;
    background: rgba(77, 163, 255, 0.08);
    margin: 12px 0;
}

.share-disclaimer-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(77, 163, 255, 0.06);
    border: 2px solid rgba(77, 163, 255, 0.12);
    transition: all 0.2s;
}
.share-disclaimer-checkbox:hover {
    border-color: rgba(77, 163, 255, 0.25);
    background: rgba(77, 163, 255, 0.08);
}
.share-disclaimer-checkbox:has(input:checked) {
    border-color: var(--primary);
    background: rgba(77, 163, 255, 0.1);
}
.share-disclaimer-checkbox input { display: none; }
.share-disclaimer-checkbox a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.share-checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(77, 163, 255, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.share-disclaimer-checkbox input:checked + .share-checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
}
.share-disclaimer-checkbox input:checked + .share-checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.share-disclaimer-footer {
    display: flex;
    gap: 8px;
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(77, 163, 255, 0.06);
    justify-content: flex-end;
}

.share-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: none;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.share-footer-cancel {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}
.share-footer-cancel:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.share-footer-confirm {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 109, 212, 0.3);
}
.share-footer-confirm:hover:not(:disabled) {
    background: #2b7de9;
    box-shadow: 0 6px 24px rgba(26, 109, 212, 0.4);
    transform: translateY(-1px);
}
.share-footer-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Recording Options ─────────────────────────────────────── */

.rec-modal-card {
    background: var(--bg-surface);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(239, 68, 68, 0.08);
    animation: modal-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rec-modal-hero {
    position: relative;
    padding: 28px 24px 24px;
    text-align: center;
    overflow: hidden;
}
.rec-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 30%, #0a1628 100%);
    opacity: 0.85;
}
.rec-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(239, 68, 68, 0.25), transparent 60%),
                radial-gradient(circle at 70% 40%, rgba(239, 68, 68, 0.15), transparent 50%);
}
.rec-hero-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.rec-modal-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.rec-modal-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.rec-modal-body {
    padding: 20px 24px;
}

.rec-step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}
.rec-step-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.rec-type-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rec-type-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(77, 163, 255, 0.03);
    border: 2px solid rgba(77, 163, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    text-align: left;
    width: 100%;
}
.rec-type-card:hover {
    border-color: rgba(77, 163, 255, 0.2);
    background: rgba(77, 163, 255, 0.06);
    transform: translateY(-1px);
}
.rec-type-card.selected {
    border-color: var(--primary);
    background: rgba(77, 163, 255, 0.1);
    box-shadow: 0 0 0 1px var(--primary);
}
.rec-type-card.compact { padding: 14px; }

.rec-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rec-type-card.compact .rec-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.audio-icon { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.video-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.instant-icon { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.timed-icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.rec-type-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.rec-type-info strong {
    font-size: 14px;
    font-weight: 600;
}
.rec-type-info span {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.rec-type-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    white-space: nowrap;
}

.rec-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 24px 20px;
    border-top: 1px solid rgba(77, 163, 255, 0.06);
    justify-content: flex-end;
}

.timed-options {
    animation: fade-in 0.2s ease;
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Toast Notifications ───────────────────────────────────── */

.toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 90%;
    max-width: 520px;
}

.toast {
    pointer-events: auto;
    background: var(--bg-surface);
    border: 1px solid rgba(77, 163, 255, 0.15);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(77, 163, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.toast-out {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
}
.toast.toast-recording {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(239, 68, 68, 0.06) 100%);
}

@keyframes toast-in {
    0% { opacity: 0; transform: translateY(-16px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.toast-icon.recording {
    background: rgba(239, 68, 68, 0.15);
    animation: pulse-red 1.5s infinite;
}
.toast-icon.scheduled {
    background: rgba(245, 158, 11, 0.15);
}
.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.toast-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.15s;
    line-height: 1;
}
.toast-dismiss:hover { background: var(--bg-elevated); }

.toast-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}
.toast-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.toast-body a:hover { opacity: 0.85; }

.toast-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.toast-actions .btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
}
.toast-btn-ok {
    background: var(--bg-elevated);
    color: var(--text);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.toast-btn-ok:hover { background: var(--bg-hover); }
.toast-btn-leave {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    cursor: pointer;
    transition: all 0.15s;
}
.toast-btn-leave:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Modals ────────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    text-align: center;
}
.modal-card h2 { margin-bottom: 20px; font-size: 20px; }

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.form-group {
    text-align: left;
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group input { width: 100%; }

.prejoin-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg) url('../assets/bg.jpeg') center/cover no-repeat;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.prejoin-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.prejoin-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.poll-option-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.poll-option-input:focus { border-color: var(--primary); }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .side-panel { width: 100%; position: fixed; top: 48px; bottom: 72px; right: 0; z-index: 20; }
    .filmstrip .video-tile { width: 120px; height: 90px; }
    .controls-bar { gap: 6px; padding: 8px 10px; flex-wrap: nowrap; }
    .ctrl-group { padding: 4px 6px; border-radius: 12px; gap: 2px; }
    .ctrl-btn { padding: 8px 10px; min-width: 42px; }
    .ctrl-btn.leave { padding: 8px 14px; }
    .ctrl-label { display: none; }
    .ctrl-dropdown-side { padding: 0 6px; }
    .top-bar-center { display: none; }
    .media-dropdown-panel { width: 90vw; left: 50%; transform: translateX(-50%); }
    .media-dropdown-panel#cam-dropdown-panel { transform: translateX(-50%); }
}
