
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');
*, *::before, *::after {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.page-preloader.hidden .preloader-logo {
    transform: scale(1.1);
    opacity: 0;
}
.page-preloader.hidden .preloader-spinner {
    opacity: 0;
    transform: scale(0.8);
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.preloader-logo {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 30px rgba(134, 200, 196, 0.8))
            drop-shadow(0 0 60px rgba(134, 200, 196, 0.5))
            drop-shadow(0 0 100px rgba(134, 200, 196, 0.3));
    animation: preloader-glow 2.5s ease-in-out infinite;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
@keyframes preloader-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(134, 200, 196, 0.6));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(134, 200, 196, 0.9));
    }
}
.preloader-text {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 20px rgba(134, 200, 196, 0.5);
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.page-preloader.hidden .preloader-text {
    opacity: 0;
    transform: translateY(-10px);
}
.preloader-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(134, 200, 196, 0.6);
    border-radius: 50%;
    animation: preloader-spin 0.8s linear infinite;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
@keyframes preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.meeting-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.meeting-preloader.active {
    opacity: 1;
    visibility: visible;
}
.meeting-preloader-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.meeting-preloader-glow {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(134, 200, 196, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(100, 180, 180, 0.2) 0%, transparent 60%);
    animation: ambientPulse 4s ease-in-out infinite;
}
@keyframes ambientPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.meeting-preloader-horizon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
}
.meeting-preloader-horizon-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 300px;
    background: 
        radial-gradient(ellipse 50% 90% at 50% 100%, rgba(134, 200, 196, 0.4) 0%, rgba(100, 180, 180, 0.2) 20%, transparent 60%);
    filter: blur(40px);
}
.meeting-preloader-beam {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 4px;
    height: 0;
    transform: translateX(-50%);
    background: linear-gradient(to top, rgba(134, 200, 196, 0.8) 0%, rgba(134, 200, 196, 0) 100%);
    opacity: 0;
    filter: blur(2px);
    box-shadow: 
        0 0 20px rgba(134, 200, 196, 0.6),
        0 0 40px rgba(134, 200, 196, 0.4),
        0 0 60px rgba(134, 200, 196, 0.2);
}
.meeting-preloader-beam.active {
    animation: beamRise 1.5s ease-out forwards;
}
@keyframes beamRise {
    0% {
        height: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        height: calc(50% + 60px);
        opacity: 0.8;
    }
}
.meeting-preloader-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(134, 200, 196, 0.6) 30%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}
.meeting-preloader-flash.active {
    animation: flashBurst 0.8s ease-out forwards;
}
@keyframes flashBurst {
    0% {
        opacity: 1;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}
.meeting-preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.meeting-pulsar {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meeting-pulsar-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 20px rgba(134, 200, 196, 0.8))
        drop-shadow(0 0 40px rgba(134, 200, 196, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
    z-index: 5;
}
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.meeting-pulsar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(134, 200, 196, 0.5);
    opacity: 0;
}
.meeting-pulsar-ring-1 {
    width: 80px;
    height: 80px;
    animation: pulseRing 2.5s ease-out infinite;
    animation-delay: 0s;
}
.meeting-pulsar-ring-2 {
    width: 100px;
    height: 100px;
    animation: pulseRing 2.5s ease-out infinite;
    animation-delay: 0.5s;
}
.meeting-pulsar-ring-3 {
    width: 120px;
    height: 120px;
    animation: pulseRing 2.5s ease-out infinite;
    animation-delay: 1s;
}
.meeting-pulsar-ring-4 {
    width: 140px;
    height: 140px;
    animation: pulseRing 2.5s ease-out infinite;
    animation-delay: 1.5s;
}
@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
        border-width: 2px;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        border-width: 1px;
    }
}
.meeting-pulsar-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(134, 200, 196, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.2);
        opacity: 1;
    }
}
.meeting-preloader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.meeting-preloader-status {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}
.meeting-preloader.complete .meeting-pulsar-icon {
    animation: iconBurst 0.6s ease-out forwards;
}
@keyframes iconBurst {
    0% {
        transform: scale(1);
        filter: 
            drop-shadow(0 0 20px rgba(134, 200, 196, 0.8))
            drop-shadow(0 0 40px rgba(134, 200, 196, 0.5));
    }
    50% {
        transform: scale(1.3);
        filter: 
            drop-shadow(0 0 40px rgba(134, 200, 196, 1))
            drop-shadow(0 0 80px rgba(134, 200, 196, 0.8))
            drop-shadow(0 0 120px rgba(255, 255, 255, 0.5));
    }
    100% {
        transform: scale(1.1);
        filter: 
            drop-shadow(0 0 30px rgba(134, 200, 196, 0.9))
            drop-shadow(0 0 60px rgba(134, 200, 196, 0.6));
    }
}
.meeting-preloader-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.meeting-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(134, 200, 196, 0.8);
    border-radius: 50%;
    opacity: 0;
}
:root {
    --black: #000000;
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --white: #fafafa;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --accent: rgba(120, 200, 200, 0.9);
    --accent-soft: rgba(100, 180, 180, 0.6);
    --accent-glow: rgba(100, 180, 180, 0.15);
    --speaking: rgba(100, 200, 180, 0.7);
    --speaking-soft: rgba(100, 200, 180, 0.4);
    --speaking-glow: rgba(100, 200, 180, 0.12);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/inter-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/inter-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--black);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        linear-gradient(rgba(134, 200, 196, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(134, 200, 196, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: radial-gradient(ellipse 45% 50% at 50% 50%, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 45% 50% at 50% 50%, black 0%, transparent 70%);
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 9999;
}
.container {
    text-align: center;
    z-index: 1;
    padding: 40px;
    max-width: 500px;
    transform: scale(1.1) translateY(-30px);
}
.bg-video-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.bg-video {
    position: absolute;
    top: 38%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.bg-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1000px 520px at 50% -15%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 74%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.10) 62%, rgba(0, 0, 0, 0.16) 100%);
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.logo {
    filter: drop-shadow(0 0 20px rgba(134, 200, 196, 0.5))
            drop-shadow(0 0 40px rgba(134, 200, 196, 0.3));
}
.logo-icon {
    width: 72px;
    height: 72px;
    transition: all 0.2s ease;
}
.logo-text {
    display: block;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.85);
}
.logo-icon:hover {
    transform: none;
}
.logo h1 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: var(--white);
}
.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 36px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    line-height: 1.5;
}
.input-wrapper {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 3px;
    max-width: 380px;
    margin: 0 auto;
    transition: all 0.2s ease;
    backdrop-filter: blur(16px);
}
.input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}
.join-section {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
}
input.join-input {
    width: 160px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s ease-out, 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    text-align: center;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.join-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 0 12px rgba(255, 255, 255, 0.15),
        0 0 24px rgba(255, 255, 255, 0.08);
}
.join-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}
.join-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.btn-join {
    padding: 10px 16px;
    border-radius: 100px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-join:hover {
    color: rgba(255, 255, 255, 0.8);
    animation: btn-nudge 0.3s ease;
}
@keyframes btn-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
}
.btn-join:active {
    transform: scale(0.98);
}
.btn-join.ready {
    color: #fff;
}
.btn-join.ready:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-join svg {
    width: 16px;
    height: 16px;
}
.user-profile-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
    padding: 28px 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    max-width: 380px;
    width: 100%;
    transition: transform 0.15s ease-out, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}
@-moz-document url-prefix() {
    .user-profile-section {
        transform-style: flat;
    }
}
.user-profile-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.avatar-preview-container {
    position: relative;
    width: 88px;
    height: 88px;
    transition: all 0.2s ease;
}
.user-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease, box-shadow 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}
.user-avatar #avatarInitials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.user-avatar.changing #avatarInitials {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}
.camera-preview-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-100px);
    width: 380px;
    height: 214px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease, visibility 0s linear 0.6s, width 0.5s ease, height 0.5s ease;
}
.camera-preview-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) translateY(0px);
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease, visibility 0s linear 0s, width 0.5s ease, height 0.5s ease;
}
.camera-preview-wrapper.closing {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-100px);
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease, visibility 0s linear 0.6s, width 0.5s ease, height 0.5s ease;
}
.camera-preview-wrapper.expanded {
    width: 720px;
    height: 405px;
    transform: translate(-50%, -50%) translateY(-80px);
}
.user-profile-section {
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1), margin-bottom 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: 1;
}
.user-profile-section.preview-active {
    transform: translateY(45px) !important;
    margin-bottom: 60px;
    pointer-events: none;
}
.user-profile-section.preview-active.preview-expanded {
    transform: translateY(-210px) !important;
}
.camera-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}
.camera-preview-wrapper .preview-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 20;
}
.preview-expand-btn {
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}
.preview-expand-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}
.preview-expand-btn svg {
    width: 14px;
    height: 14px;
}
.preview-expand-btn .icon-shrink {
    display: none;
}
.preview-expand-btn.active .icon-expand {
    display: none;
}
.preview-expand-btn.active .icon-shrink {
    display: block;
}
.preview-start-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-family: inherit;
    transition: all 0.2s ease;
    z-index: 5;
}
.preview-start-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}
.preview-start-btn svg {
    width: 12px;
    height: 12px;
}
.preview-start-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.preview-stop-btn {
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(16px);
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-family: inherit;
    transition: all 0.2s ease;
}
.preview-stop-btn:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.4);
}
.preview-stop-btn svg {
    width: 12px;
    height: 12px;
}
.user-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    -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;
    pointer-events: none;
}
.user-avatar span {
    font-size: 34px;
    font-weight: 500;
    color: white;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}
.generate-name-btn {
    position: absolute;
    bottom: 0px;
    right: 0cqb;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgb(0 0 0 / 61%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.generate-name-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    transform: rotate(180deg);
}
.generate-name-btn:active {
    transform: rotate(180deg) scale(0.95);
}
.generate-name-btn svg {
    width: 13px;
    height: 13px;
}
.user-profile-section .name-input-wrapper {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    position: relative;
}
.user-profile-section .name-input-wrapper::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.2s ease;
}
.user-profile-section .name-input-wrapper:focus-within::after {
    width: 70%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.user-profile-section .name-input-wrapper:focus-within {
    background: transparent;
    border: none;
    box-shadow: none;
}
.user-profile-section .name-input-wrapper .glass-input {
    padding: 8px 0;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.user-profile-section .name-input-wrapper .glass-input.changing {
    opacity: 0;
    transform: translateY(-5px);
}
.user-profile-section .name-input-wrapper .glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}
.name-input-wrapper {
    margin-bottom: 16px;
}
.glass-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    font-family: inherit;
    color: var(--white);
    outline: none;
    min-width: 0;
}
.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.btn-icon-only {
    width: 32px;
    height: 32px;
    background: rgba(134, 200, 196, 0.08);
    border: none;
    border-radius: 50%;
    color: rgba(134, 200, 196, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-icon-only:hover {
    background: rgba(134, 200, 196, 0.2);
    color: var(--accent);
}
.btn-icon-only svg {
    width: 16px;
    height: 16px;
}
.btn-glass {
    position: relative;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 0 0 20px rgba(134, 200, 196, 0.5);
    transition: all 0.2s ease;
}
.btn-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(134, 200, 196, 0.4) 25%,
        rgba(134, 200, 196, 0.6) 50%,
        rgba(134, 200, 196, 0.4) 75%,
        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;
    background-size: 200% 100%;
    animation: btnBorderSweep 3s linear infinite;
}
@keyframes btnBorderSweep {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.btn-glass:hover {
    text-shadow: 0 0 30px rgba(134, 200, 196, 0.8);
    box-shadow: 0 10px 40px rgba(134, 200, 196, 0.2);
}
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 380px;
    margin: 0px auto 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    font-size: 13.5px;
    font-weight: 400;
    border-radius: 14px;
    border: none;
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary::before {
    display: none;
}
.btn-primary::after {
    display: none;
}
.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.01);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.1);
}
.start-meeting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}
.start-meeting-row .btn-primary {
    flex: 1;
    margin: 0;
}
.start-meeting-error {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
    color: #ff6b6b;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.2s, opacity 0.2s, margin 0.2s;
}
.start-meeting-error.visible {
    height: auto;
    margin: 12px auto 0;
    opacity: 1;
}
.btn-mic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-mic svg {
    width: 18px;
    height: 18px;
}
.btn-mic:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.btn-mic.muted {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.3);
    color: #f87171;
}
.btn-mic.muted:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.4);
}
.media-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.media-control {
    position: relative;
    display: flex;
    align-items: center;
}
.btn-media-main {
    width: 38px;
    height: 38px;
    border-radius: 10px 0 0 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-media-main svg {
    width: 16px;
    height: 16px;
}
.btn-media-main.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.btn-media-main.active:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.4);
}
.btn-media-main:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.btn-media-main.muted {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.3);
    color: #f87171;
}
.btn-media-main.muted:hover {
    background: rgba(220, 38, 38, 0.3);
}
.btn-media-main.no-access {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.25);
    color: #f87171;
}
.btn-media-main.no-access:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.35);
}
.btn-media-main.loading {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    position: relative;
}
.btn-media-main.loading svg {
    opacity: 0;
}
.btn-media-main.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: spin-loading 0.8s linear infinite;
}
@keyframes spin-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-media-arrow {
    width: 22px;
    height: 38px;
    border-radius: 0 10px 10px 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-media-arrow svg {
    width: 10px;
    height: 10px;
}
.btn-media-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.btn-media-arrow.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.btn-media-arrow.active:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.4);
}
.btn-media-arrow.muted {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.3);
    color: #f87171;
}
.btn-media-arrow.muted:hover {
    background: rgba(220, 38, 38, 0.3);
}
.btn-media-arrow.no-access {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.25);
    color: #f87171;
}
.btn-media-arrow.no-access:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.35);
}
.media-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 100;
}
.media-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.media-dropdown::-webkit-scrollbar {
    width: 4px;
}
.media-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.media-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}
.media-dropdown-header {
    padding: 6px 10px 4px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.media-dropdown-item {
    padding: 7px 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.media-dropdown-item.selected {
    color: #86c8c4;
}
.media-dropdown-item.selected::before {
    content: '✓';
    font-size: 10px;
}
.divider {
    display: flex;
    align-items: center;
    margin: 14px 0;
    color: rgba(255, 255, 255, 0.7);
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}
.divider span {
    padding: 0 16px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color:rgb(255, 255, 255)
}
.room-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--black);
}
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    min-height: 56px;
}
.room-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.room-id {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
}
.room-icon {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}
.participants-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}
.participant-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: white;
    border: 2px solid var(--bg-secondary);
    margin-left: -6px;
    cursor: default;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.participant-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    -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;
    pointer-events: none;
}
.participant-avatar:first-child {
    margin-left: 0;
}
.participant-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
}
.participant-avatar.me {
    border-color: var(--accent-soft);
}
.participant-avatar.speaking-avatar {
    border-color: rgba(80, 200, 160, 0.5);
    box-shadow: 0 0 6px rgba(80, 200, 160, 0.2);
}
.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    border-radius: 4px;
}
.copy-btn:hover {
    color: var(--accent);
}
.copy-btn svg {
    width: 14px;
    height: 14px;
}
.leave-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.leave-btn svg {
    width: 12px;
    height: 12px;
}
.leave-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-soft);
}
.video-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 80px 40px 120px;
    overflow: hidden;
    background: transparent;
    justify-content: center;
    align-items: center;
    align-content: center;
    height: 100%;
}
.video-grid .video-wrapper {
    flex: 0 0 auto;
}
.video-grid.grid-1 .video-wrapper {
    width: min(800px, calc(100% - 80px));
    height: auto;
    aspect-ratio: 16/9;
}
.video-grid.grid-2 .video-wrapper {
    width: min(580px, calc(50% - 16px));
    height: auto;
    aspect-ratio: 16/9;
}
.video-grid.grid-3 .video-wrapper {
    width: calc(50% - 8px);
    max-width: 560px;
    height: auto;
    aspect-ratio: 16/9;
}
@media (min-width: 1600px) {
    .video-grid.grid-3 {
        padding-left: 100px;
        padding-right: 100px;
    }
}
@media (min-width: 1900px) {
    .video-grid.grid-3 {
        padding-left: 180px;
        padding-right: 180px;
    }
}
.video-grid.grid-4 .video-wrapper {
    width: calc(50% - 8px);
    max-width: 560px;
    height: auto;
    aspect-ratio: 16/9;
}
@media (min-width: 1600px) {
    .video-grid.grid-4 {
        padding-left: 100px;
        padding-right: 100px;
    }
}
@media (min-width: 1900px) {
    .video-grid.grid-4 {
        padding-left: 180px;
        padding-right: 180px;
    }
}
.video-grid.grid-many {
    max-width: 1400px;
    margin: 0 auto;
}
.video-grid.grid-many .video-wrapper {
    width: min(420px, calc(33.333% - 16px));
    height: auto;
    aspect-ratio: 16/9;
}
.video-wrapper {
    position: relative;
    background: transparent;
    border-radius: 14px;
    overflow: visible;
    aspect-ratio: 16/9;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}
@-moz-document url-prefix() {
    .video-wrapper {
        transform-style: flat;
    }
}
.video-wrapper video,
.video-wrapper .video-avatar-placeholder {
    border-radius: 14px;
    overflow: hidden;
}
.video-wrapper:not(.local) .video-avatar-placeholder {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgb(255 255 255 / 6%);
}
.video-wrapper.local .video-avatar-placeholder {
    background: rgba(20, 20, 25, 0.95);
}
.video-wrapper.speaking::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 15px;
    border: 2px solid rgba(80, 200, 160, 0.6);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 12px rgba(80, 200, 160, 0.3);
}
.video-wrapper.speaking .video-avatar-placeholder {
    border-color: rgba(80, 200, 160, 0.35);
}
.video-wrapper.local .video-container video {
    transform: scaleX(-1);
}
.video-wrapper.has-video .video-container {
    z-index: 5;
}
.video-wrapper.has-video .video-container video {
    background: #000;
}
.video-wrapper.has-video {
    isolation: isolate;
}
.expanded-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, background 0.35s ease;
}
.expanded-overlay.active {
    opacity: 1;
    visibility: visible;
    background: transparent;
}
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    overflow: hidden;
    z-index: 2;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0); 
    will-change: transform;
}
.video-wrapper {
    transition: transform 0.25s ease-out, box-shadow 0.25s ease;
    will-change: transform;
}
.video-wrapper.expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 85vw !important;
    height: 85vh !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 10000 !important;
    border-radius: 16px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    background: #000;
    animation: expandVideo 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.video-wrapper.collapsing {
    animation: collapseVideo 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes expandVideo {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
@keyframes collapseVideo {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}
.video-wrapper .video-container {
    transition: border-radius 0.35s ease;
}
.video-wrapper.expanded .video-container {
    border-radius: 16px;
}
.video-wrapper.expanded .video-container video {
    object-fit: contain !important;
}
.video-wrapper.expanded .video-avatar-placeholder {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
.expand-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 10;
}
.video-wrapper:not(.has-video) .expand-btn,
.video-wrapper.local .expand-btn {
    display: none;
}
.video-wrapper.has-video:hover .expand-btn {
    opacity: 1;
}
.expand-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
.expand-btn svg {
    width: 16px;
    height: 16px;
}
.video-wrapper.expanded .expand-btn {
    opacity: 1;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
}
.video-wrapper.expanded .expand-btn svg {
    width: 20px;
    height: 20px;
}
.stream-ended-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 20, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
    border-radius: 14px;
}
.stream-ended-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin: 0;
}
.stream-ended-overlay .close-stream-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.stream-ended-overlay .close-stream-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
.video-wrapper.expanded .stream-ended-overlay {
    border-radius: 16px;
}
.video-wrapper.expanded .stream-ended-overlay p {
    font-size: 18px;
}
.video-wrapper.expanded .stream-ended-overlay .close-stream-btn {
    padding: 12px 32px;
    font-size: 14px;
}
.video-wrapper.has-video .video-avatar-placeholder {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    transition: color 0.5s ease, text-shadow 0.5s ease;
    transform: translateZ(0);
}
.video-wrapper.speaking .video-label {
    color: rgba(90, 200, 165, 0.95);
    text-shadow: none;
}
.video-label-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.video-label-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    -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;
    pointer-events: none;
}
.video-avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 25, 0.95); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    z-index: 1;
    transform: translateZ(0);
    will-change: opacity;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.video-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 500;
    color: white;
    margin-bottom: 20px;
    transition: box-shadow 0.5s ease-out, width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
    box-shadow: 0 0 0 0 transparent;
    position: relative;
    overflow: hidden;
}
.video-grid.grid-2 .video-avatar {
    width: 130px;
    height: 130px;
    font-size: 46px;
}
.video-grid.grid-3 .video-avatar,
.video-grid.grid-4 .video-avatar {
    width: 110px;
    height: 110px;
    font-size: 40px;
}
.video-grid.grid-many .video-avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
}
.video-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    -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;
    pointer-events: none;
}
.video-wrapper.speaking .video-avatar {
    box-shadow: 0 0 15px rgba(80, 200, 160, 0.25);
}
.video-avatar-name {
    font-size: 20px;
    font-weight: 400;
    color: rgb(255, 255, 255);
    transition: font-size 0.3s ease;
}
.video-grid.grid-2 .video-avatar-name {
    font-size: 18px;
}
.video-grid.grid-3 .video-avatar-name,
.video-grid.grid-4 .video-avatar-name {
    font-size: 16px;
}
.video-grid.grid-many .video-avatar-name {
    font-size: 14px;
}
.video-muted-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(220, 38, 38, 0.8);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.video-muted-indicator svg {
    width: 12px;
    height: 12px;
    color: white;
}
.video-status-indicators {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.status-indicator {
    display: none;
}
.status-indicator.muted {
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-indicator svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.35);
}
.status-indicator.mic-status {
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-indicator.mic-status .mic-icon-on {
    display: block;
}
.status-indicator.mic-status .mic-icon-off {
    display: none;
}
.status-indicator.mic-status.muted .mic-icon-on {
    display: none;
}
.status-indicator.mic-status.muted .mic-icon-off {
    display: block;
}
.video-wrapper.speaking .mic-status svg {
    color: rgba(80, 200, 160, 0.9);
    animation: micSpeakingPulse 1.5s ease-in-out infinite;
}
.deafen-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    z-index: 10;
}
.deafen-indicator svg {
    width: 16px;
    height: 16px;
    color: rgba(239, 68, 68, 0.9);
}
@keyframes micSpeakingPulse {
    0%, 100% { 
        color: rgba(80, 200, 160, 0.7);
        filter: drop-shadow(0 0 2px rgba(80, 200, 160, 0.3));
    }
    50% { 
        color: rgba(80, 200, 160, 1);
        filter: drop-shadow(0 0 5px rgba(80, 200, 160, 0.6));
    }
}
.controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgb(44 44 44 / 20%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 91%), 0 0 80px rgb(134 200 196 / 5%), 0 0 30px rgb(134 200 196 / 12%), inset 0 1px 0 rgba(255, 255, 255, 0.15);    z-index: 1000;
}
.control-btn {
    width: 42px;
    height: 40px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}
.control-btn svg {
    width: 20px;
    height: 20px;
}
.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.05);
}
.control-btn.active {
    color: rgba(239, 68, 68, 1);
    background: transparent;
}
.control-btn.active:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(0.95);
}
.control-btn.screen-share.active {
    color: rgba(134, 200, 196, 1);
    background: transparent;
}
.control-btn.screen-share.active:hover {
    background: rgba(134, 200, 196, 0.15);
}
#speakerBtn {
    display: none;
}
#speakerBtn.active {
    color: rgba(134, 200, 196, 1);
    background: rgba(134, 200, 196, 0.1);
}
#deafenBtn.active {
    color: rgba(239, 68, 68, 0.9);
}
#deafenBtn.active:hover {
    background: rgba(239, 68, 68, 0.15);
}
.control-btn.leave-btn {
    width: auto;
    padding: 0 20px;
    gap: 6px;
    color: rgba(239, 68, 68, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.8);
    font-size: 13px;
    font-weight: 500;
}
.control-btn.leave-btn svg {
    width: 18px;
    height: 18px;
}
.control-btn.leave-btn:hover {
    color: rgba(239, 68, 68, 1);
    background: rgba(239, 68, 68, 0.15);
}
.control-btn[data-tooltip] {
    position: relative;
}
.control-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.control-btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.connection-status {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}
.connection-status.connected {
    border-color: var(--speaking-soft);
    color: var(--speaking);
    background: rgba(100, 200, 180, 0.05);
}
.connection-status.error {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-soft);
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.connection-status:not(.error):not(.connected) .status-dot {
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
    animation: toastSlideDown 3s ease-out forwards;
}
.toast.success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(74, 222, 128, 0.08),
        0 0 0 1px rgba(74, 222, 128, 0.1) inset,
        0 1px 0 rgba(74, 222, 128, 0.2) inset;
}
.toast.success .toast-icon {
    color: rgba(74, 222, 128, 0.95);
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.4));
}
.toast.error {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
    border-color: rgba(248, 113, 113, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(248, 113, 113, 0.08),
        0 0 0 1px rgba(248, 113, 113, 0.1) inset,
        0 1px 0 rgba(248, 113, 113, 0.2) inset;
}
.toast.error .toast-icon {
    color: rgba(248, 113, 113, 0.95);
    filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.4));
}
.toast-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(134, 200, 196, 0.9);
    filter: drop-shadow(0 0 6px rgba(134, 200, 196, 0.3));
}
.toast-icon svg {
    width: 100%;
    height: 100%;
}
@keyframes toastSlideDown {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-100%);
    }
    10% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
    90% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-100%);
    }
}
.settings-panel {
    position: fixed;
    right: -340px;
    top: 0;
    bottom: 0;
    width: 320px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 200;
    transition: right 0.25s ease;
    display: flex;
    flex-direction: column;
}
.settings-panel.open {
    right: 0;
}
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.settings-header h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.settings-close {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.settings-close:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}
.settings-content {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
}
.settings-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.settings-section:last-of-type {
    border-bottom: none;
}
.settings-section h4 {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.setting-group {
    margin-bottom: 16px;
}
.setting-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.setting-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}
.setting-value {
    font-size: 11px;
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 3px;
}
.setting-hint {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
}
.setting-group input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-elevated);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.15s;
}
.setting-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.toggle-row span {
    font-size: 12px;
    color: var(--text-primary);
}
.toggle {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elevated);
    border-radius: 20px;
    transition: all 0.2s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
}
.toggle input:checked + .toggle-slider {
    background: var(--accent-soft);
}
.toggle input:checked + .toggle-slider:before {
    background: white;
    transform: translateX(16px);
}
.device-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
    font-family: inherit;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23525252' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    margin-top: 4px;
}
.device-select:hover {
    border-color: var(--border-hover);
}
.device-select:focus {
    border-color: var(--accent-soft);
}
.device-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.reset-btn {
    width: 100%;
    padding: 7px;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 8px;
}
.reset-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}
.settings-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: white;
}
.settings-content::-webkit-scrollbar {
    width: 4px;
}
.settings-content::-webkit-scrollbar-track {
    background: transparent;
}
.settings-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}
#toastContainer {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-notification {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.toast-notification.error {
    border-color: rgba(220, 80, 80, 0.3);
}
.toast-notification.success {
    border-color: rgba(134, 200, 196, 0.3);
}
.toast-notification .toast-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-notification .toast-icon svg {
    width: 100%;
    height: 100%;
}
.toast-notification.error .toast-icon {
    background: rgba(220, 80, 80, 0.2);
    color: #f87171;
}
.toast-notification.success .toast-icon {
    background: rgba(134, 200, 196, 0.2);
    color: #86c8c4;
}
.toast-message {
    font-size: 13px;
    font-weight: 500;
    color: #e5e5e5;
    white-space: nowrap;
}
.remote-fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    z-index: 10;
    border-radius: 14px;
}
.video-wrapper.remote-screen-sharing:hover .remote-fullscreen-overlay {
    opacity: 1;
}
.video-wrapper.mobile-screen-blocked .video-container video {
    display: none !important;
}
.video-wrapper.mobile-screen-blocked .remote-fullscreen-overlay {
    display: none !important;
}
.mobile-screen-share-block {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    background: rgba(12, 12, 18, 0.7);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.45;
    border-radius: 14px;
    z-index: 12;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.fullscreen-center-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.fullscreen-center-icon svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.9);
}
.fullscreen-center-icon span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}
.video-wrapper.fullscreen-active {
    background: #000 !important;
    border-radius: 0 !important;
}
.video-wrapper.fullscreen-active .video-container {
    border-radius: 0 !important;
}
.video-wrapper.fullscreen-active video {
    object-fit: contain !important;
    height: calc(100% - 70px) !important; 
}
.video-wrapper.fullscreen-active .video-avatar-placeholder {
    display: none !important;
}
.video-wrapper.fullscreen-active .remote-fullscreen-overlay {
    display: none !important;
}
.video-wrapper.fullscreen-active .video-label {
    display: none !important;
}
.video-wrapper.fullscreen-active .fullscreen-controls {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
@media (max-width: 1024px) {
    .video-grid {
        padding: 70px 20px 100px;
        gap: 12px;
    }
    .video-grid.grid-2 .video-wrapper,
    .video-grid.grid-3 .video-wrapper,
    .video-grid.grid-4 .video-wrapper,
    .video-grid.grid-many .video-wrapper {
        width: calc(50% - 8px);
    }
}
@media (max-width: 768px) {
    .room-header {
        padding: 12px 16px;
    }
    .room-info {
        gap: 8px;
    }
    .room-id-display {
        font-size: 13px;
        padding: 6px 10px;
    }
    .copy-btn {
        padding: 4px;
    }
    .participant-avatar {
        width: 22px;
        height: 22px;
        font-size: 8px;
    }
    .video-grid {
        padding: 56px 10px 88px;
        gap: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        align-content: flex-start;
        justify-content: center;
    }
    .video-grid .video-wrapper {
        width: auto !important;
        flex: 1 1 240px !important; 
        max-width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 16/9;
        flex-shrink: 0;
    }
    .video-grid.grid-3 .video-wrapper,
    .video-grid.grid-4 .video-wrapper {
        flex: 1 1 calc(50% - 5px) !important;
    }
    .video-grid.grid-1 .video-wrapper {
        flex-basis: 100% !important;
        max-width: 520px !important;
    }
    .video-wrapper {
        border-radius: 12px;
    }
    .video-container {
        border-radius: 12px;
    }
    .video-label {
        bottom: 10px;
        left: 10px;
        gap: 6px;
    }
    .video-label-avatar {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }
    .video-label span {
        font-size: 12px;
    }
    .controls {
        bottom: 12px;
        padding: 8px 12px;
        gap: 4px;
        border-radius: 12px;
    }
    .control-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    .leave-btn {
        padding: 0 14px;
    }
    .leave-btn span {
        display: none;
    }
    #camBtn {
        display: none !important;
    }
    #speakerBtn {
        display: flex !important;
    }
    .settings-panel {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .settings-header {
        padding: 16px 20px;
    }
    .settings-content {
        padding: 16px 20px;
    }
    .dropdown-menu {
        max-height: 200px;
    }
    .video-avatar {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    .expand-btn {
        width: 36px;
        height: 36px;
    }
    .fullscreen-center-icon {
        padding: 10px 16px;
        gap: 8px;
    }
    .fullscreen-center-icon svg {
        width: 18px;
        height: 18px;
    }
    .fullscreen-center-icon span {
        font-size: 12px;
    }
    .toast-notification {
        bottom: 100px;
        max-width: calc(100% - 32px);
    }
}
@media (min-width: 740px) and (max-width: 1024px) {
    .video-grid {
        padding: 68px 16px 110px;
        gap: 14px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        align-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .video-grid .video-wrapper {
        width: calc(50% - 12px) !important;
        max-width: 480px !important;
        min-width: 320px !important;
        aspect-ratio: 16/9;
    }
    .video-grid.grid-1 .video-wrapper {
        width: 100% !important;
        max-width: 860px !important;
    }
}
@media (max-width: 520px) {
    .room-header {
        padding: 10px 12px;
    }
    .room-id-display {
        font-size: 12px;
        padding: 5px 8px;
    }
    .participants-bar {
        display: none;
    }
    .video-grid {
        padding: 55px 8px 85px !important;
        gap: 8px !important;
    }
    .controls {
        bottom: 10px;
        padding: 6px 10px;
        gap: 3px;
        width: calc(100% - 24px);
        justify-content: space-around;
    }
    .control-btn {
        width: 40px;
        height: 40px;
    }
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    .leave-btn {
        width: 40px;
        padding: 0;
    }
    .video-label {
        bottom: 8px;
        left: 8px;
    }
    .video-label-avatar {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }
    .video-label span {
        font-size: 11px;
    }
    .video-avatar {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}
@media (max-width: 896px) and (orientation: landscape) {
    .video-grid {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 50px 12px 70px;
    }
    .video-grid .video-wrapper,
    .video-grid.grid-1 .video-wrapper {
        width: calc(50% - 6px) !important;
        max-width: none;
    }
    .video-grid.grid-3 .video-wrapper,
    .video-grid.grid-4 .video-wrapper,
    .video-grid.grid-many .video-wrapper {
        width: calc(50% - 6px) !important;
    }
    .controls {
        bottom: 8px;
        padding: 6px 12px;
    }
    .control-btn {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    .logo-icon {
        width: 56px;
        height: 56px;
    }
    .logo-text {
        font-size: 18px;
    }
    .subtitle {
        font-size: 13px;
        padding: 0 12px;
        margin-bottom: 28px;
    }
    .user-profile-section {
        max-width: calc(100% - 16px);
        width: 100%;
        padding: 16px 20px 14px;
        margin: 0 8px 16px;
        gap: 12px;
    }
    .avatar-preview-container {
        margin: 8px auto 4px;
        width: 96px;
        height: 96px;
    }
    .user-avatar {
        width: 96px;
        height: 96px;
    }
    .user-avatar span {
        font-size: 34px;
    }
    .generate-name-btn {
        width: 22px;
        height: 22px;
        right: -2px;
        bottom: -2px;
    }
    .generate-name-btn svg {
        width: 10px;
        height: 10px;
    }
    .input-wrapper {
        max-width: 100%;
        width: 100%;
    }
    .name-input-wrapper {
        margin-top: 0;
    }
    .glass-input {
        font-size: 14px;
        padding: 10px 14px;
        width: 100%;
    }
    .start-meeting-row {
        flex-direction: column;
        gap: 12px;
        padding: 0 8px;
        max-width: 100%;
        width: 100%;
    }
    .btn-glass.btn-primary {
        width: 100%;
        max-width: none;
        padding: 14px 24px;
    }
    .media-controls {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .media-control {
        flex: 1;
        max-width: 90px;
    }
    .btn-media-main {
        width: 100%;
        flex: 1;
        height: 42px;
        border-radius: 10px 0 0 10px;
    }
    .btn-media-main svg {
        width: 16px;
        height: 16px;
    }
    .btn-media-arrow {
        width: 24px;
        height: 42px;
    }
    .btn-media-arrow svg {
        width: 12px;
        height: 12px;
    }
    .media-dropdown {
        position: fixed;
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
        top: auto;
        bottom: auto;
        right: auto;
        min-width: 280px;
        max-width: calc(100vw - 32px);
    }
    .media-dropdown.open {
        transform: translateX(-50%) translateY(0);
    }
    .join-section {
        padding: 0 8px;
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
    }
    .join-section .join-input {
        width: 100%;
        max-width: 100%;
    }
    .join-section .btn-join {
        width: auto;
        justify-content: center;
        padding: 10px 16px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.5);
    }
    .join-section .btn-join.ready {
        background: transparent;
        border: none;
        color: #fff;
    }
    .camera-preview-wrapper {
        max-width: calc(100% - 16px);
    }
    .preview-controls {
        gap: 6px;
    }
    .preview-stop-btn,
    .preview-expand-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    .divider {
        margin: 16px 8px;
        padding: 0 8px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }
    .logo-icon {
        width: 48px;
        height: 48px;
    }
    .logo-text {
        font-size: 16px;
    }
    .subtitle {
        font-size: 12px;
        margin-bottom: 24px;
    }
    .user-profile-section {
        padding: 16px;
        margin-bottom: 12px;
    }
    .glass-input {
        font-size: 13px;
        padding: 9px 12px;
    }
    .btn-glass.btn-primary {
        font-size: 14px;
        padding: 12px 20px;
    }
    .start-meeting-row {
        gap: 10px;
    }
    .media-controls {
        gap: 4px;
    }
    .media-control {
        gap: 0;
        max-width: 80px;
    }
    .btn-media-main {
        height: 38px;
    }
    .btn-media-main svg {
        width: 15px;
        height: 15px;
    }
    .btn-media-arrow {
        width: 20px;
        height: 38px;
    }
    .btn-media-arrow svg {
        width: 10px;
        height: 10px;
    }
    .user-avatar {
        width: 56px;
        height: 56px;
    }
    .user-avatar span {
        font-size: 20px;
    }
    .avatar-preview-container {
        width: 56px;
        height: 56px;
        margin: 16px auto 12px;
    }
    .divider {
        margin: 10px 0;
    }
    .divider span {
        font-size: 10px;
        padding: 0 12px;
    }
    .join-section {
        gap: 10px;
    }
    .join-section .btn-join {
        padding: 12px 20px;
    }
}
@media (max-width: 520px) {
    .video-grid {
        padding: 60px 10px 92px !important;
        gap: 10px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        align-content: stretch !important;
    }
    .video-grid .video-wrapper {
        box-sizing: border-box;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 16/9;
    }
}
@media (min-width: 521px) and (max-width: 1024px) {
    .video-grid {
        padding: 64px 12px 96px !important;
        gap: 10px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        align-content: flex-start !important;
    }
    .video-grid .video-wrapper {
        box-sizing: border-box;
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        max-width: none !important;
        min-width: 0 !important;
        aspect-ratio: 16/9;
    }
    .video-grid.grid-1 .video-wrapper {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: min(720px, 100%) !important;
    }
    .video-grid.grid-3 .video-wrapper {
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
    }
}
html.no-blur *,
html.no-blur *::before,
html.no-blur *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}