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

:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #111114;
    --bg-tertiary: #18181c;
    --bg-card: #141418;
    --bg-hover: #1f1f26;
    /* CS2 Orange/Amber Theme */
    --accent-primary: #ff9800;
    --accent-secondary: #ffb74d;
    --accent-tertiary: #ffe0b2;
    --accent-gradient: linear-gradient(135deg, #ff9800 0%, #ff6f00 50%, #e65100 100%);
    --accent-glow: rgba(255, 152, 0, 0.4);
    --success: #4caf50;
    --success-glow: rgba(76, 175, 80, 0.3);
    --danger: #f44336;
    --warning: #ffc107;
    --text-primary: #f5f5f5;
    --text-secondary: #9e9e9e;
    --text-muted: #616161;
    --border-color: rgba(158, 158, 158, 0.1);
    --border-light: rgba(158, 158, 158, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    min-height: 100vh;
    position: relative;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* ==================== LOBBY SCREEN ==================== */
#lobby-screen {
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background - CS2 Theme */
#lobby-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 152, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(1%, 1%) rotate(0.5deg);
    }

    50% {
        transform: translate(0, 2%) rotate(0deg);
    }

    75% {
        transform: translate(-1%, 1%) rotate(-0.5deg);
    }
}

/* Crosshair Pattern - CS2 Theme */
.crosshair-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.crosshair {
    position: absolute;
    color: rgba(255, 152, 0, 0.35);
}

@keyframes crosshairFade {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.lobby-content {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Glass Card */
.lobby-card {
    background: rgba(19, 19, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Language Selector */
.lang-selector {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 100;
}

.update-check-btn {
    height: 40px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    background: rgba(19, 19, 26, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.update-check-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.lang-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    background: rgba(19, 19, 26, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lang-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.08);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.lang-btn.active {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Brand */
.brand {
    margin-bottom: 2rem;
    text-align: center;
}

/* Logo Container */
.logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 24px var(--accent-glow));
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-svg {
    transform: scale(1.05);
}

/* Logo Circle Animation */
.logo-circle {
    animation: circleRotate 20s linear infinite;
    transform-origin: center;
}

@keyframes circleRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Sound Wave Animations */
.sound-wave {
    animation: wavePulse 2s ease-in-out infinite;
}

.sound-wave-1 {
    animation-delay: 0s;
}

.sound-wave-2 {
    animation-delay: 0.3s;
}

@keyframes wavePulse {

    0%,
    100% {
        opacity: 0.3;
        stroke-width: 3;
    }

    50% {
        opacity: 0.8;
        stroke-width: 5;
    }
}

/* Mic Body Pulse */
.mic-body {
    animation: micGlow 3s ease-in-out infinite;
}

@keyframes micGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px var(--accent-glow));
    }

    50% {
        filter: drop-shadow(0 0 16px var(--accent-glow));
    }
}

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.brand-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Form Elements */
.user-setup {
    margin-bottom: 1.5rem;
}

.input-group {
    text-align: left;
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:hover {
    border-color: var(--border-light);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 4px var(--accent-glow),
        0 0 20px rgba(99, 102, 241, 0.15);
}

.input-group input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow:
        0 4px 16px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
    width: 100%;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Join Section */
.join-section {
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ROOM SCREEN ==================== */
#room-screen {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 152, 0, 0.14), transparent 34%),
        radial-gradient(circle at 88% 90%, rgba(255, 111, 0, 0.12), transparent 36%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

#room-screen.active {
    display: flex;
}

.room-main-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 0.9rem;
    padding: 0.85rem 1rem 0.65rem;
}

.room-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: rgba(17, 17, 20, 0.68);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: rgba(19, 19, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.room-info {
    flex: 1;
}

.room-title-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.room-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--accent-glow);
    overflow: hidden;
}

.room-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.room-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.room-details h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.room-code-display {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

#display-room-code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.icon-btn-sm {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-sm:hover {
    background: var(--bg-hover);
    color: var(--accent-secondary);
}

.icon-btn-sm svg {
    width: 14px;
    height: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 6px var(--success-glow);
}

.status-dot.connecting {
    background: var(--warning);
    animation: statusBlink 1s ease-in-out infinite;
}

.status-dot.disconnected {
    background: var(--danger);
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.icon-btn-danger {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: scale(1.05);
}

.icon-btn-danger svg {
    width: 18px;
    height: 18px;
}

.icon-btn-action {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn-action:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
    transform: scale(1.05);
}

.icon-btn-action.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.icon-btn-action svg {
    width: 18px;
    height: 18px;
}

.mic-select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mic-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.mic-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.mic-select option {
    background: #1a1a2e;
    color: var(--text-color);
    padding: 10px;
}

/* Modal Body */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Participants */
.participants-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 22%);
}

.participants-container h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participants-container h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
}

.participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.participant-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.participant-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.3s;
}

.participant-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.participant-card:hover::before {
    background: var(--accent-gradient);
}

.participant-card.speaking {
    border-color: var(--success);
    box-shadow:
        0 0 0 2px var(--success),
        0 0 30px var(--success-glow);
}

.participant-card.speaking::before {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
}

.participant-card.sharing {
    border-color: rgba(249, 115, 22, 0.65);
    box-shadow:
        0 0 0 2px rgba(249, 115, 22, 0.45),
        0 0 28px rgba(249, 115, 22, 0.35);
    animation: sharingPulse 1.6s ease-in-out infinite;
}

.participant-card.sharing::before {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(251, 146, 60, 0.75) 100%);
}

.participant-card.muted .avatar {
    opacity: 0.6;
}

.avatar {
    width: 72px;
    height: 72px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    position: relative;
    box-shadow:
        0 4px 16px var(--accent-glow),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.participant-card:hover .avatar {
    transform: scale(1.05);
}

.avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 26px;
    height: 26px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar-badge svg {
    width: 14px;
    height: 14px;
}

.avatar-badge.host {
    color: var(--warning);
    background: rgba(251, 191, 36, 0.15);
}

.avatar-badge.muted {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

.participant-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.participant-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.participant-live-badge {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.16);
}

.participant-live-badge .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb923c;
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.7);
    animation: liveDotPulse 1.2s ease-out infinite;
}

.participant-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.participant-card:hover .participant-actions {
    opacity: 1;
    transform: translateY(0);
}

@keyframes sharingPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 2px rgba(249, 115, 22, 0.45),
            0 0 20px rgba(249, 115, 22, 0.25);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(249, 115, 22, 0.75),
            0 0 36px rgba(249, 115, 22, 0.45);
    }
}

@keyframes liveDotPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 9px rgba(251, 146, 60, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0);
    }
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: scale(1.1);
}

.action-btn.kick {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.action-btn.kick:hover {
    background: var(--danger);
    color: white;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== CHAT PANEL (Right Sidebar) ==================== */
.chat-panel {
    width: 320px;
    min-width: 320px;
    background: rgba(20, 20, 24, 0.82);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.chat-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chat-badge {
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message.own {
    align-self: flex-end;
}

.chat-message.other {
    align-self: flex-start;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

.message-time {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.message-content {
    background: var(--bg-tertiary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    word-wrap: break-word;
}

.chat-message.own .message-content {
    background: var(--accent-primary);
    color: white;
}

.message-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-hover);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-file:hover {
    background: var(--bg-tertiary);
}

.message-file svg {
    width: 20px;
    height: 20px;
    color: var(--accent-secondary);
}

.message-file-info {
    flex: 1;
}

.message-file-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.message-file-size {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.file-download-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.file-download-btn {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

/* Chat Panel Drag Over */
.chat-panel.drag-over {
    border: 2px dashed var(--accent-primary);
    background: rgba(255, 152, 0, 0.05);
}

.chat-panel.drag-over .chat-messages::after {
    content: '📎 Dosyayı buraya bırak';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--accent-secondary);
    font-weight: 600;
    background: var(--bg-card);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-primary);
}

.chat-messages {
    position: relative;
}

.file-progress {
    width: 100%;
    height: 3px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.chat-input-area input[type="text"] {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input-area input[type="text"]:focus {
    border-color: var(--accent-primary);
}

.icon-btn-primary {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.icon-btn-primary svg {
    width: 18px;
    height: 18px;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    background: rgba(19, 19, 26, 0.86);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.18);
}

.control-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.control-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: -1;
}

.control-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.08);
}

.control-btn:hover::before {
    opacity: 0.3;
}

.control-btn.muted {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.control-btn.muted::before {
    display: none;
}

.control-btn svg {
    width: 28px;
    height: 28px;
}

.control-btn.active {
    background: var(--accent-gradient);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.control-btn.active::before {
    display: none;
}

/* ==================== SCREEN SHARE ==================== */
.screen-share-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 0 2rem 1rem;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.screen-share-actions {
    display: flex;
    gap: 0.5rem;
}

.screen-share-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.screen-share-info svg {
    width: 18px;
    height: 18px;
    color: var(--accent-secondary);
}

#screen-share-video {
    width: 100%;
    max-height: 60vh;
    background: #000;
    display: block;
    cursor: pointer;
}

/* Fullscreen styles */
.screen-share-container:fullscreen,
.screen-share-container:-webkit-full-screen {
    background: #000;
    border: none;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.screen-share-container:fullscreen .screen-share-header,
.screen-share-container:-webkit-full-screen .screen-share-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen-share-container:fullscreen:hover .screen-share-header,
.screen-share-container:-webkit-full-screen:hover .screen-share-header {
    opacity: 1;
}

.screen-share-container:fullscreen #screen-share-video,
.screen-share-container:-webkit-full-screen #screen-share-video {
    max-height: 100vh;
    height: 100vh;
    object-fit: contain;
}



/* Double-click to fullscreen hint */
#screen-share-video:hover::after {
    content: 'Tam ekran için çift tıkla';
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--border-color);
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.volume-control svg {
    width: 24px;
    height: 24px;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 12px var(--accent-glow);
    transition: transform 0.2s;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#volume-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-secondary);
    min-width: 48px;
    text-align: right;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(24px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* ==================== SETTINGS MODAL ==================== */
.modal-content-lg {
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content-lg .modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 0.5rem;
}

.modal-content-lg .modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-content-lg .modal-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.modal-content-lg .modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modal-content-lg .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.settings-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1rem;
}

.setting-info {
    flex: 1;
}

.setting-info label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.setting-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
    background-color: white;
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Range Control */
.range-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
}

.range-control input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 3px;
    cursor: pointer;
}

.range-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: transform 0.2s;
}

.range-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-control span {
    min-width: 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Sub Settings */
.sub-settings {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Mic Level Indicator */
.mic-level-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.mic-level-container.mic-level-always {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mic-level-container label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.mic-level-bar {
    position: relative;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mic-level-indicator {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--success) 0%, var(--success) 60%, var(--warning) 80%, var(--danger) 100%);
    transition: width 0.05s ease-out;
    border-radius: var(--radius-sm);
}

.noise-threshold-line {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
    z-index: 10;
}

.mic-level-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Monitor Warning */
.monitor-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    margin-top: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #ffc107;
    line-height: 1.3;
}

.monitor-warning svg {
    flex-shrink: 0;
    color: #ffc107;
}

/* Keybind Controls */
.keybind-control {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.keybind-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 0.4rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.keybind-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.keybind-btn.recording {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
    color: var(--accent-primary);
    animation: keybindPulse 1.2s ease-in-out infinite;
}

@keyframes keybindPulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 0 4px var(--accent-glow);
    }
}

.keybind-label {
    white-space: nowrap;
}

.keybind-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.keybind-clear:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255, 82, 82, 0.1);
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .lobby-content {
        padding: 1.5rem;
    }

    .lobby-card {
        padding: 2rem 1.5rem;
    }

    .logo-icon {
        width: 72px;
        height: 72px;
        border-radius: 22px;
    }

    .logo-icon svg {
        width: 36px;
        height: 36px;
    }

    .logo h1 {
        font-size: 2.25rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .update-check-btn {
        padding: 0 0.6rem;
        font-size: 0.72rem;
    }

    .room-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .participants-container {
        padding: 1.25rem;
    }

    .participants-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .participant-card {
        padding: 1.25rem 1rem;
    }

    .avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .control-btn {
        width: 56px;
        height: 56px;
    }

    .control-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Screen Share Mobile */
    .screen-share-container {
        margin: 0 1rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .screen-share-header {
        padding: 0.5rem 0.75rem;
    }

    .screen-share-info {
        font-size: 0.75rem;
    }

    .screen-share-info svg {
        width: 16px;
        height: 16px;
    }

    #screen-share-video {
        max-height: 40vh;
    }

    .room-title-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    /* Chat Sidebar Mobile */
    .room-main-layout {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.65rem 0.65rem 0.5rem;
    }

    .chat-panel {
        width: 100%;
        min-width: 100%;
        height: 250px;
        border-left: 1px solid var(--border-light);
        border-top: 1px solid var(--border-color);
    }
}

/* Orb elements - added via JS for lobby */


/* ==================== ROOM LAYOUT V2 ==================== */
.ping-text {
    margin-left: 0.45rem;
    padding-left: 0.45rem;
    border-left: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.participants-sidebar {
    min-width: 0;
}

.stage-panel {
    min-width: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: rgba(17, 17, 20, 0.72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stage-empty {
    flex: 1;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    padding: 1.25rem;
}

.stage-empty h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

#room-screen.has-active-share .room-main-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 320px;
    gap: 0.9rem;
    padding: 0.85rem 1rem 0.65rem;
}

#room-screen.no-active-share .room-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 0.9rem;
    padding: 0.85rem 1rem 0.65rem;
    align-items: start;
}

#room-screen.no-active-share .stage-panel {
    display: none;
}

#room-screen.no-active-share .participants-container {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    padding: 0.5rem 0.25rem 0.25rem;
}

#room-screen.has-active-share .participants-list {
    grid-template-columns: 1fr;
}

#room-screen.no-active-share .participants-list {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: stretch;
    min-height: 0;
    gap: 1.1rem;
}

#room-screen.no-active-share .participants-sidebar {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 0;
}

#room-screen.no-active-share .participant-card {
    width: clamp(250px, 22vw, 330px);
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

#room-screen.has-active-share #screen-share-video {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: none;
    object-fit: contain;
    background: #050506;
}

#room-screen.has-active-share .screen-share-container {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
}

#room-screen.has-active-share .participants-container {
    height: 100%;
}

.participant-card.sharing {
    cursor: pointer;
}

.participant-card.sharing .participant-name::after {
    content: ' • Buyut';
    font-size: 0.72rem;
    color: var(--accent-secondary);
    margin-left: 0.2rem;
}

@media (max-width: 1100px) {
    #room-screen.has-active-share .room-main-layout,
    #room-screen.no-active-share .room-main-layout {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 0.65rem;
    }

    #room-screen.has-active-share .participants-sidebar,
    #room-screen.no-active-share .participants-sidebar,
    #room-screen.has-active-share .stage-panel,
    #room-screen.no-active-share .chat-panel,
    #room-screen.has-active-share .chat-panel {
        width: 100%;
        min-width: 100%;
    }

    #room-screen.no-active-share .stage-panel {
        display: none;
    }
}
