/* ============================================
   AYNUR SYNC v4.0 - STYLESHEET
   Ultra Premium Dark Theme
   ============================================ */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-input: #252542;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border-glass: rgba(139, 92, 246, 0.2);
    --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-neon-strong: 0 0 40px rgba(139, 92, 246, 0.5);
}

[data-theme="orange"] {
    --accent-purple: #f97316;
    --accent-pink: #fb923c;
    --accent-blue: #fbbf24;
    --shadow-neon: 0 0 20px rgba(249, 115, 22, 0.3);
    --shadow-neon-strong: 0 0 40px rgba(249, 115, 22, 0.5);
    --border-glass: rgba(249, 115, 22, 0.2);
}

[data-theme="green"] {
    --accent-purple: #10b981;
    --accent-pink: #34d399;
    --accent-blue: #6ee7b7;
    --shadow-neon: 0 0 20px rgba(16, 185, 129, 0.3);
    --shadow-neon-strong: 0 0 40px rgba(16, 185, 129, 0.5);
    --border-glass: rgba(16, 185, 129, 0.2);
}

[data-theme="blue"] {
    --accent-purple: #3b82f6;
    --accent-pink: #60a5fa;
    --accent-blue: #93c5fd;
    --shadow-neon: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-neon-strong: 0 0 40px rgba(59, 130, 246, 0.5);
    --border-glass: rgba(59, 130, 246, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 3px; }

/* Glass Effect */
.glass {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.glass-strong {
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
}

/* Neon Glow */
.neon-glow {
    box-shadow: var(--shadow-neon);
}

.neon-glow-strong {
    box-shadow: var(--shadow-neon-strong);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-neon-strong);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-purple);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--accent-purple);
    color: white;
    transform: scale(1.1);
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon);
    border-color: var(--accent-purple);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-purple); }
    50% { box-shadow: 0 0 20px var(--accent-purple), 0 0 40px var(--accent-pink); }
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.4s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-float { animation: float 3s ease infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-glow { animation: glow 2s infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    animation: float 10s ease infinite;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-neon-strong);
    animation: float 3s ease infinite;
}

.login-logo i {
    font-size: 36px;
    color: white;
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    background: var(--bg-input);
    border-radius: 20px;
    padding: 4px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 400px;
}

.tab-btn {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    box-shadow: var(--shadow-neon);
}

/* Form */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 18px;
}

.input-wrapper .input-field {
    padding-left: 52px;
}

.input-wrapper .toggle-password {
    position: absolute;
    right: 18px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.input-wrapper .toggle-password:hover {
    color: var(--accent-purple);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-wrapper input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.checkbox-wrapper span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    width: 100%;
    max-width: 400px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bg-input);
}

.divider span {
    font-size: 14px;
    color: var(--text-muted);
}

/* Guest Button */
.btn-guest {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.btn-guest:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-text {
    font-size: 22px;
    font-weight: 800;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Dashboard */
.dashboard {
    padding: 100px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Welcome Card */
.welcome-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.welcome-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    border: 3px solid var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

.welcome-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.welcome-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.welcome-stats {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-purple);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sync Card */
.sync-card {
    padding: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.sync-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.sync-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.sync-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sync-status {
    font-size: 14px;
    color: var(--text-secondary);
}

.sync-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.sync-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.btn-sync {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

.btn-sync:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon-strong);
}

.btn-sync:active {
    transform: scale(0.98);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 24px 16px;
    text-align: center;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Activities */
.activities-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.activities-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.activities-header a {
    font-size: 14px;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.activity-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-input);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.activity-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.activity-time {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 8px 16px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    text-decoration: none;
    min-width: 60px;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--accent-purple);
}

.bottom-nav-item.active {
    background: rgba(139, 92, 246, 0.1);
}

.bottom-nav-center {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: -20px 8px 0;
    box-shadow: var(--shadow-neon-strong);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid var(--bg-primary);
}

.bottom-nav-center:hover {
    transform: scale(1.1) rotate(180deg);
}

/* Room Cards */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.room-card {
    padding: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    opacity: 0;
    transition: opacity 0.3s;
}

.room-card:hover::before {
    opacity: 1;
}

.room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.room-name {
    font-size: 18px;
    font-weight: 700;
}

.room-code {
    font-size: 12px;
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 8px;
    font-family: monospace;
    color: var(--accent-purple);
}

.room-movie {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-viewers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.viewer-avatars {
    display: flex;
    margin-left: -8px;
}

.viewer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-card);
    margin-left: -8px;
}

.room-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-switch {
    width: 48px;
    height: 26px;
    background: var(--bg-input);
    border-radius: 13px;
    position: relative;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-wrapper input:checked + .toggle-switch {
    background: var(--accent-purple);
}

.toggle-wrapper input:checked + .toggle-switch::after {
    transform: translateX(22px);
}

.toggle-wrapper input {
    display: none;
}

/* Theme Picker */
.theme-picker {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option.active {
    border-color: white;
    box-shadow: 0 0 0 3px var(--accent-purple);
}

.theme-option.purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.theme-option.orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.theme-option.green { background: linear-gradient(135deg, #10b981, #34d399); }
.theme-option.blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

/* Toast */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: var(--shadow-neon);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.toast-success .toast-icon { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.toast-error .toast-icon { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.toast-info .toast-icon { background: rgba(59, 130, 246, 0.2); color: var(--accent-blue); }

/* Profile Section */
.profile-header {
    text-align: center;
    padding: 40px 20px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-neon-strong);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 14px;
    color: var(--text-muted);
}

/* Settings List */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 16px;
}

.settings-item:hover {
    background: var(--bg-input);
}

.settings-item i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.settings-item-info {
    flex: 1;
}

.settings-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.settings-item-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.settings-item-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* Legal Section */
.legal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 12px;
}

.legal-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 12px;
    color: var(--accent-purple);
}

.legal-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.legal-content li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Watch Mode */
.watch-container {
    display: flex;
    height: 100vh;
    padding-top: 70px;
}

.watch-video-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
}

.watch-chat-area {
    width: 360px;
    border-left: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.video-wrapper {
    flex: 1;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.video-placeholder i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-wrapper:hover .video-controls-overlay {
    opacity: 1;
}

.video-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 16px;
    position: relative;
}

.video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.video-control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.video-control-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-purple);
}

.video-time {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-variant-numeric: tabular-nums;
}

.video-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-volume input {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
}

.video-volume input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    cursor: pointer;
}

/* Chat */
.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.chat-message {
    display: flex;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

.chat-message.own {
    flex-direction: row-reverse;
}

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

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.chat-bubble {
    background: var(--bg-input);
    padding: 10px 14px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 240px;
}

.chat-message.own .chat-bubble {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}

.chat-bubble .chat-user {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.8;
}

.chat-bubble .chat-text {
    font-size: 14px;
    line-height: 1.4;
}

.chat-bubble .chat-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.chat-reactions {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid var(--border-glass);
    justify-content: center;
}

.chat-reaction-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}

.chat-reaction-btn:hover {
    transform: scale(1.3);
    background: var(--bg-input);
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.chat-input-area input:focus {
    border-color: var(--accent-purple);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-purple);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-input-area button:hover {
    background: var(--accent-pink);
    transform: scale(1.1);
}

/* Floating Reaction */
.floating-reaction {
    position: fixed;
    font-size: 40px;
    pointer-events: none;
    z-index: 3000;
    animation: floatUp 2.5s ease-out forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    20% { transform: translateY(0) scale(1.2); opacity: 1; }
    100% { transform: translateY(-200px) scale(1); opacity: 0; }
}

/* Link Input Section */
.link-section {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 16px;
}

.link-section select {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.link-section input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.link-section input:focus {
    border-color: var(--accent-purple);
}

.link-section button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.link-section button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

/* Responsive */
@media (max-width: 768px) {
    .watch-container {
        flex-direction: column;
        padding-top: 60px;
    }

    .watch-chat-area {
        width: 100%;
        height: 40vh;
        border-left: none;
        border-top: 1px solid var(--border-glass);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .welcome-stats {
        display: none;
    }

    .bottom-nav {
        width: calc(100% - 40px);
        max-width: 400px;
    }

    .bottom-nav-item span {
        display: none;
    }

    .bottom-nav-item {
        min-width: auto;
        padding: 8px 12px;
    }

    .login-title {
        font-size: 24px;
    }
}

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

    .sync-card-header {
        flex-direction: column;
        text-align: center;
    }

    .navbar {
        padding: 12px 16px;
    }

    .nav-logo-text {
        font-size: 18px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .watch-container {
        flex-direction: row;
    }

    .watch-chat-area {
        width: 280px;
        height: auto;
    }

    .bottom-nav {
        display: none;
    }
}

/* Loading */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    gap: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-input);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

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

/* Section transitions */
.section {
    animation: fadeIn 0.4s ease;
}

/* Creator Cards */
.creator-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.creator-card:hover {
    background: var(--bg-input);
    border-radius: 16px;
}

.creator-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.creator-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.creator-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Version text */
.version-text {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

.made-with {
    text-align: center;
    padding: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.made-with i {
    color: #ef4444;
}
