* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #1e1e2e;
    --bg-hover: #2a2a3e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b85;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --green-500: #2ecc71;
    --red-500: #e74c3c;
    --blue-500: #3498db;
    --yellow-500: #f1c40f;
    --border-color: #2a2a3e;
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--pink-500);
    border-radius: 10px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}
.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}
.btn-outline-light:hover {
    border-color: var(--pink-500);
    color: var(--pink-500);
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}
.btn-secondary-dark:hover {
    border-color: var(--pink-500);
    color: var(--pink-500);
    background: rgba(236, 72, 153, 0.05);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    border-color: var(--pink-500);
    color: var(--pink-500);
    background: rgba(236, 72, 153, 0.05);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(231, 76, 60, 0.1);
    color: var(--red-500);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-danger:hover {
    background: rgba(231, 76, 60, 0.2);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius);
    border-left: 4px solid var(--pink-500);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
}
.notification-icon { font-size: 1.5rem; }
.notification-content { flex: 1; }
.notification-message { font-size: 0.85rem; color: var(--text-secondary); }
.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.notification-close:hover { color: var(--text-primary); }
.notification.success { border-left-color: var(--green-500); }
.notification.error { border-left-color: var(--red-500); }
.notification.info { border-left-color: var(--blue-500); }

.landing {
    background: var(--bg-primary);
    min-height: 100vh;
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo { font-size: 1.8rem; }
.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-actions { display: flex; gap: 12px; }

.landing-hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at top, rgba(236, 72, 153, 0.05), transparent 50%);
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--pink-500);
    width: fit-content;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--pink-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.hero-left h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 20px 0;
}
.gradient-text {
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-left p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); }
.stat-divider { width: 2px; height: 40px; background: var(--border-color); }

.preview-window {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}
.preview-header {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}
.window-controls { display: flex; gap: 6px; }
.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}
.window-controls span:first-child { background: #ff6b6b; }
.window-controls span:nth-child(2) { background: #feca57; }
.window-controls span:last-child { background: #48dbfb; }
.preview-header span { color: var(--text-secondary); font-size: 0.85rem; }
.preview-content {
    padding: 40px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}
.preview-screen { text-align: center; }
.screen-icon { font-size: 4rem; margin-bottom: 12px; }
.preview-screen p { color: var(--text-secondary); margin-bottom: 12px; }
.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--radius-full);
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 600;
}
.live-dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 1s infinite;
}
.preview-users { margin-top: 24px; display: flex; justify-content: center; }
.user-avatars { display: flex; gap: 8px; }
.user-avatars .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}
.avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pink-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--bg-primary);
}

.landing-features { padding: 80px 0; background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-500);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.section-header h2 { font-size: 2.8rem; font-weight: 800; color: var(--text-primary); }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; margin-top: 8px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--pink-500);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.feature-icon { font-size: 3rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); line-height: 1.7; }

.landing-cta { padding: 80px 0; background: var(--bg-primary); }
.cta-box {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
}
.cta-content h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-content p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 32px; }

.landing-footer {
    padding: 40px 0 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links { display: flex; gap: 30px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--pink-500); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
}
.auth-container { width: 100%; max-width: 440px; }
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    text-align: center;
}
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.auth-brand .brand-name {
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.auth-divider span { color: var(--text-muted); font-size: 0.85rem; }
.auth-demo {
    text-align: center;
    padding: 12px;
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: 12px;
}
.auth-demo p { color: var(--text-secondary); font-size: 0.9rem; }
.auth-demo strong { color: var(--pink-500); }
.auth-footer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.auth-footer a { color: var(--pink-500); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-form.hidden { display: none !important; }
.auth-loading {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.auth-loading p { color: var(--text-secondary); margin-top: 12px; }

.app { display: flex; height: 100vh; background: var(--bg-primary); }

.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
}
.sidebar-brand .brand-name {
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sidebar-actions { display: flex; gap: 8px; }
.sidebar-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 4px;
}
.sidebar-actions button:hover { color: var(--text-primary); }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0 8px;
    margin-bottom: 8px;
}
.nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-family: inherit;
}
.nav-button:hover { background: var(--bg-hover); color: var(--text-primary); }
.create-room-btn {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-500);
    font-weight: 600;
}
.create-room-btn:hover { background: rgba(236, 72, 153, 0.2); }

.rooms-list { display: flex; flex-direction: column; gap: 4px; }
.room-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}
.room-list-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.room-list-icon { font-size: 1.2rem; }
.room-list-name { flex: 1; font-size: 0.9rem; }
.room-list-users { font-size: 0.8rem; color: var(--text-muted); }

.sidebar-user {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: var(--transition);
    flex: 1;
}
.user-info:hover { background: var(--bg-hover); }
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    position: relative;
    flex-shrink: 0;
}
.user-avatar .status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}
.user-avatar .status-dot.online { background: var(--green-500); }
.user-details { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-status-text { font-size: 0.75rem; color: var(--text-muted); }
.user-status-text.online { color: var(--green-500); }
.user-actions { display: flex; gap: 4px; }
.user-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 1rem;
}
.user-actions button:hover { background: var(--bg-hover); color: var(--text-primary); }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.content-header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.header-title { display: flex; align-items: center; gap: 16px; }
.header-title h1 { font-size: 1.5rem; font-weight: 700; }
.room-count { font-size: 0.9rem; color: var(--text-secondary); font-weight: 400; }
.content-body { flex: 1; padding: 24px 32px; overflow-y: auto; }

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.room-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: var(--transition);
}
.room-card:hover {
    border-color: var(--pink-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.room-card-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.room-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-tag {
    font-size: 0.75rem;
    padding: 2px 10px;
    background: var(--bg-secondary);
    border-radius: 20px;
    color: var(--text-secondary);
}
.meta-tag.owner { background: rgba(236, 72, 153, 0.1); color: var(--pink-500); }
.meta-tag.admin { background: rgba(241, 196, 15, 0.1); color: var(--yellow-500); }

.btn-join {
    padding: 8px 24px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}
.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.room-status { font-size: 0.85rem; color: var(--text-secondary); }
.room-status.active { color: var(--green-500); }
.room-status.idle { color: var(--text-muted); }
.room-users-preview { display: flex; gap: 4px; font-size: 1.1rem; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}
.empty-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 { font-size: 1.3rem; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); transform: rotate(90deg); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--pink-500);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}
.form-select option { background: var(--bg-card); }

.profile-container { max-width: 800px; margin: 0 auto; }
.profile-banner {
    position: relative;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
    margin-bottom: 60px;
}
.profile-banner .edit-banner {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
}
.profile-banner .edit-banner:hover { background: rgba(0,0,0,0.9); }
.profile-avatar-section {
    position: relative;
    margin-top: -80px;
    padding: 0 24px;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}
.profile-avatar .edit-avatar {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--pink-500);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.profile-avatar .edit-avatar:hover { transform: scale(1.1); }
.profile-info { padding: 0 24px; }
.profile-info h2 { font-size: 1.8rem; font-weight: 700; }
.profile-info .username { color: var(--text-secondary); }
.profile-info .bio { margin-top: 8px; color: var(--text-secondary); }
.profile-stats {
    display: flex;
    gap: 32px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}
.profile-stats .stat { display: flex; flex-direction: column; }
.profile-stats .stat-value { font-weight: 700; font-size: 1.2rem; }
.profile-stats .stat-label { font-size: 0.8rem; color: var(--text-muted); }

.room-app { height: 100vh; display: flex; flex-direction: column; background: var(--bg-primary); }
.room-header {
    background: var(--bg-secondary);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}
.room-header-left { display: flex; align-items: center; gap: 12px; }
.back-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: var(--radius);
}
.back-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.room-divider { color: var(--text-muted); }
.room-title { font-size: 1.2rem; font-weight: 600; }
.room-badge.live {
    padding: 2px 12px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--radius-full);
    color: #e74c3c;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}
.room-header-right { display: flex; align-items: center; gap: 16px; }
.room-users { color: var(--text-secondary); font-weight: 500; }
.room-main { flex: 1; display: flex; gap: 16px; padding: 16px; overflow: hidden; }

.video-section { flex: 3; display: flex; flex-direction: column; gap: 12px; }
.video-wrapper {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 400px;
    border: 1px solid var(--border-color);
}
#screen-share { width: 100%; height: 100%; object-fit: contain; display: none; }
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}
.placeholder-content { text-align: center; color: var(--text-secondary); }
.placeholder-icon { font-size: 4rem; margin-bottom: 16px; }
.placeholder-content h3 { color: var(--text-primary); margin-bottom: 8px; }
.placeholder-content p { opacity: 0.7; }
.placeholder-shortcuts { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }
.shortcut {
    padding: 4px 12px;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-family: inherit;
}
.control-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.control-btn .btn-icon { font-size: 1.2rem; }

.stream-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}
.status-dot.live { background: var(--red-500); animation: pulse 1s infinite; }
.status-text { font-size: 0.9rem; color: var(--text-secondary); }

.chat-section {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    min-width: 280px;
    max-width: 380px;
}
.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-title { font-weight: 600; }
.chat-users-count { font-size: 0.8rem; color: var(--text-secondary); }
.chat-messages {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.message {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.message:hover { background: var(--bg-secondary); }
.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.message-username { font-weight: 600; font-size: 0.9rem; }
.message-username.admin { color: var(--yellow-500); }
.message-time { font-size: 0.7rem; color: var(--text-muted); }
.message-text { font-size: 0.95rem; color: var(--text-secondary); word-break: break-word; }
.message-text.system { color: var(--text-muted); font-style: italic; }

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}
.chat-input-field {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}
.chat-input-field:focus {
    outline: none;
    border-color: var(--pink-500);
}
.chat-input-field::placeholder { color: var(--text-muted); }
.btn-send {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}
.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}
kbd {
    padding: 2px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-left h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { width: 100%; }
    .content-header { padding: 16px 20px; }
    .content-body { padding: 16px 20px; }
    .rooms-grid { grid-template-columns: 1fr; }
    .room-main { flex-direction: column; }
    .chat-section { max-width: 100%; max-height: 300px; min-width: unset; }
    .video-wrapper { min-height: 250px; }
    .hero-left h1 { font-size: 2.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
    .cta-content h2 { font-size: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .auth-card { padding: 24px; }
    .room-header { padding: 12px 16px; }
    .room-header-left { flex-wrap: wrap; }
    .profile-banner { height: 120px; }
    .profile-avatar { width: 80px; height: 80px; font-size: 2rem; }
    .profile-avatar-section { margin-top: -50px; }
    .profile-info h2 { font-size: 1.3rem; }
    .profile-stats { gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .hero-left h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions a { text-align: center; width: 100%; justify-content: center; }
    .nav-actions .btn-outline-light { display: none; }
    .room-card-header { flex-direction: column; gap: 12px; }
    .btn-join { width: 100%; text-align: center; }
    .room-card-meta { flex-wrap: wrap; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 30px 20px; }
    .modal-content { margin: 16px; }
}