@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #2563eb;
    --accent: #f43f5e;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Dark Theme */
    --bg-dark: #0f172a;
    --bg-dark-soft: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;

    /* Light Theme */
    --bg-light: #ffffff;
    --bg-light-soft: #f1f5f9;
    --text-dark: #0f172a;
    --text-dark-soft: #334155;

    /* Effects */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
.btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 8rem 0;
}

.bg-soft {
    background-color: var(--bg-light-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dark-soft);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dark-soft);
    font-size: 0.95rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark-soft);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 1001;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-auth {
        display: none;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent);
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dark-soft);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-links h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-up.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Auth Pages */
.auth-page {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent),
        var(--bg-light-soft);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

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

/* Account Page Mobile Layout */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .account-sidebar {
        order: 2;
    }

    .account-main {
        order: 1;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark-soft);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-social {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.9rem;
}

.btn-social:hover {
    background: #f8fafc;
}

.divider {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider:not(:empty)::before {
    margin-right: 1rem;
}

.divider:not(:empty)::after {
    margin-left: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Lobby Page */
.lobby-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    padding: 4rem 2rem;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.video-preview-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #1a1c1e;
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror effect */
}

/* Permission Overlay */
.permission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 10;
    padding: 2rem;
}

.permission-overlay .overlay-content {
    max-width: 400px;
}

.permission-overlay h2 {
    color: white;
    margin: 1.5rem 0 1rem;
    font-size: 1.75rem;
}

.permission-overlay p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.icon-pulse {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.avatar-large {
    width: 120px;
    height: 120px;
    background: var(--primary);
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.video-controls {
    position: absolute;
    bottom: 2rem;
    display: flex;
    gap: 1.25rem;
    z-index: 5;
}

.control-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.control-btn.off {
    background: var(--danger);
    border-color: var(--danger);
}

/* Join Panel Improvements */
.user-preview-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-light-soft);
    padding: 1.25rem;
    border-radius: 1.25rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-preview-card .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info .name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.user-info .role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-join {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.btn-present {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-full);
}

.respect-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 992px) {
    .lobby-content {
        grid-template-columns: 1fr;
        padding-top: 4rem;
        gap: 2rem;
    }

    .join-panel {
        text-align: center;
    }

    .action-buttons {
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .user-preview-card {
        max-width: 400px;
        margin: 0 auto 2.5rem;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .lobby-content {
        padding: 2rem 1rem;
    }

    .video-preview-container {
        border-radius: 1rem;
    }

    .meeting-id-pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* New Lobby Features */
.lobby-info-bar {
    padding-top: 6rem;
    padding-bottom: 2rem;
    background: linear-gradient(to bottom, rgba(241, 245, 249, 1), rgba(241, 245, 249, 0));
}

.info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meeting-id-pill {
    background: white;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.meeting-id-pill i {
    color: var(--primary);
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--primary);
}

.participants-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark-soft);
    font-weight: 500;
}

.avatars-stack {
    display: flex;
    align-items: center;
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    margin-left: -10px;
}

.mini-avatar:first-child {
    margin-left: 0;
}

/* User Card Refinement */
.user-info .status {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 2rem;
}

.setting-item {
    margin-bottom: 2rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark-soft);
}

.setting-item label i {
    width: 25px;
    color: var(--primary);
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light-soft);
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
}

/* Meeting Interface */
.meeting-container {
    height: 100vh;
    display: flex;
    background: #111111;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.meeting-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1rem;
}

.video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    padding-bottom: 80px;
    /* Space for footer */
    align-content: center;
}

.video-item {
    background: #1e1e1e;
    border-radius: 1rem;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.video-item:hover {
    border-color: var(--primary);
}

.video-item.active {
    border: 2px solid var(--primary);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.participant-name {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.mic-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    /* red for muted */
    font-size: 0.8rem;
    z-index: 2;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Meeting Footer Refinement */
.meeting-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meeting-info-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-weight: 500;
}

.divider-v {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.copy-link-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.meeting-controls-center {
    display: flex;
    gap: 1rem;
}

.control-btn-lg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn-lg:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.control-btn-lg.off {
    background: #ea4335 !important;
    border-color: #ea4335;
}

.control-btn-lg.btn-danger {
    background: #ea4335;
    width: 70px;
    border-radius: 1.5rem;
    border: none;
}

.control-btn-lg.btn-danger:hover {
    background: #d93025;
}

.meeting-info-right {
    display: flex;
    gap: 0.5rem;
}

.info-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.info-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #111;
}

/* Dark Sidebar */
.meeting-sidebar {
    width: 0;
    background: #1e1e1e;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: none;
}

.meeting-sidebar.active {
    width: 380px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 380px;
    color: white;
}

.sidebar-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-sidebar {
    font-size: 1.5rem;
    background: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-sidebar:hover {
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.msg-notice {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-msg .msg-header {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

.chat-msg .msg-header strong {
    color: white;
    margin-right: 0.5rem;
}

.chat-msg .msg-content {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.chat-input-area {
    padding: 1.25rem 2rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #1e1e1e;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    outline: none;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.chat-input-area input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

#send-msg-btn {
    color: var(--primary);
    background: none;
    font-size: 1.25rem;
}

/* People Panel */
.people-list {
    padding: 1rem 1.5rem;
}

.person-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.person-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.person-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.person-name {
    flex: 1;
    font-weight: 500;
    color: white;
}

.person-status {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .meeting-sidebar.active {
        position: fixed;
        right: 0;
        top: 0;
        height: 100%;
        width: 100%;
        z-index: 2000;
    }

    .sidebar-panel {
        width: 100%;
    }

    .video-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .meeting-footer {
        padding: 0 1rem;
        height: 70px;
    }

    .meeting-details-left {
        display: none;
    }

    .meeting-controls-center {
        gap: 0.5rem;
    }

    .control-btn-lg {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .control-btn-lg.btn-danger {
        width: 60px;
    }

    .meeting-info-right {
        gap: 0.25rem;
    }

    .info-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Meeting Enhancements */
.recording-banner {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }

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

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

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

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.setting-row {
    margin-bottom: 1.5rem;
}

.setting-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark-soft);
}

.control-btn-lg.recording {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}