/* Aura Vision Studio CSS */
/* Modern, mystical design with gradient effects */

:root {
    --primary-color: #6d28d9;
    --secondary-color: #8b5cf6;
    --accent-color: #a78bfa;
    --dark-bg: #0f172a;
    --light-bg: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #6d28d9, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #a78bfa);
    --glow-color: rgba(139, 92, 246, 0.5);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

body.editor-mode {
    overflow: hidden;
}

/* Header Styles */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-color);
}

nav a.active {
    background: var(--gradient-primary);
    color: white;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(109, 40, 217, 0.1), transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #6d28d9, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--glow-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow-color);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    background: rgba(15, 23, 42, 0.5);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.service-list {
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    background: var(--light-bg);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
    background: rgba(109, 40, 217, 0.1);
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--light-bg);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Scroll Animation (for test.html feature/service cards) */
.feature-card,
.service-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate-in,
.service-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--glow-color);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* =============================================
   VIDEO EDITOR UI STYLES
   ============================================= */

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.video-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.film-reel {
    display: flex;
    gap: 0.5rem;
}

.film-reel i {
    font-size: 2.5rem;
    color: var(--accent-color);
    animation: spin 3s linear infinite;
}

.film-reel i:nth-child(2) {
    animation-direction: reverse;
}

.ai-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.progress-bar .progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: loadProgress 2.5s ease forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    30% { width: 35%; }
    60% { width: 65%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.loading-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.loading-stats .stat {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.loading-stats .stat i {
    color: var(--accent-color);
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* App Navigation */
.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1rem;
    height: 56px;
    flex-shrink: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.nav-brand h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-subtitle {
    font-weight: 400;
    opacity: 0.7;
}

.nav-controls {
    display: flex;
    gap: 0.25rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.nav-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-light);
    border-color: var(--accent-color);
}

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

.transport-controls {
    display: flex;
    gap: 0.25rem;
}

.transport-btn {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.transport-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-light);
}

.transport-btn#play:hover {
    background: var(--primary-color);
    color: white;
}

.transport-btn#record {
    color: #ef4444;
}

.transport-btn#record:hover {
    background: rgba(239, 68, 68, 0.2);
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-display,
.resolution-display,
.fps-display {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.time-display i,
.resolution-display i,
.fps-display i {
    color: var(--accent-color);
    font-size: 0.7rem;
}

.timeline-controls select {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    outline: none;
}

.timeline-controls select option {
    background: var(--dark-bg);
    color: var(--text-light);
}

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

.ai-quick-controls {
    display: flex;
    gap: 0.4rem;
}

.ai-quick-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-color);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.ai-quick-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: white;
}

.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: var(--light-bg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    min-width: 180px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.user-info {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 0.5rem;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-role {
    display: block;
    color: var(--accent-color);
    font-size: 0.7rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-light);
}

/* Main Workspace Layout */
.app-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebars */
.sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    overflow-y: auto;
    flex-shrink: 0;
}

.right-sidebar {
    border-right: none;
    border-left: 1px solid rgba(139, 92, 246, 0.1);
}

.sidebar-section {
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.sidebar-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section h3 i {
    color: var(--accent-color);
    font-size: 0.75rem;
}

/* Import Options */
.import-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.import-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.import-option i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.import-option:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-color);
    color: var(--text-light);
}

/* Media Library */
.media-library {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.media-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.media-item i {
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
}

.media-item.video i { color: #60a5fa; }
.media-item.audio i { color: #34d399; }
.media-item.image i { color: #f59e0b; }
.media-item.text i { color: #f472b6; }

.media-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-light);
}

/* AI Controls */
.ai-controls {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ai-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.ai-btn i {
    color: var(--accent-color);
    width: 18px;
    text-align: center;
}

.ai-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    border-color: var(--accent-color);
}

/* AI Chat */
.ai-chat {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.ai-chat-header {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-chat-messages {
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.ai-message {
    display: flex;
    gap: 0.5rem;
}

.ai-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    flex-shrink: 0;
}

.message-content {
    background: rgba(139, 92, 246, 0.08);
    padding: 0.5rem 0.75rem;
    border-radius: 0 8px 8px 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.user-message-bubble {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px 0 8px 8px;
    font-size: 0.75rem;
    margin-left: auto;
    max-width: 80%;
}

.ai-chat-input {
    display: flex;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.ai-chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.ai-chat-input input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.ai-chat-input button {
    background: transparent;
    border: none;
    color: var(--accent-color);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ai-chat-input button:hover {
    color: var(--secondary-color);
}

/* Center Workspace */
.workspace-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(10, 18, 32, 0.8);
}

/* Preview Monitor */
.preview-monitor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.preview-header h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-header h3 i {
    color: var(--accent-color);
}

.preview-controls {
    display: flex;
    gap: 0.25rem;
}

.preview-btn {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.preview-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-light);
}

.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

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

.video-placeholder i {
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.3);
    margin-bottom: 1rem;
    display: block;
}

.video-placeholder p {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

#video-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-timeline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.scrubber-bar {
    flex: 1;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.scrubber {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 0 8px var(--glow-color);
}

.preview-time {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 10px var(--glow-color);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--glow-color);
}

/* Timeline Area */
.timeline-area {
    height: 240px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 2px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
}

.timeline-header {
    display: flex;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.track-headers {
    width: 140px;
    flex-shrink: 0;
}

.track-header {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
}

.track-header i {
    color: var(--accent-color);
    font-size: 0.65rem;
}

.timeline-ruler {
    flex: 1;
    height: 24px;
    background: rgba(139, 92, 246, 0.05);
    position: relative;
}

.ruler-markers {
    display: flex;
    height: 100%;
}

.timeline-tracks {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.track {
    display: flex;
    height: 40px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
}

.track-controls {
    width: 140px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.track-mute,
.track-lock,
.track-solo {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.65rem;
    padding: 0.2rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.track-mute:hover,
.track-lock:hover,
.track-solo:hover {
    color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
}

.track-opacity,
.track-volume {
    width: 50px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.track-opacity::-webkit-slider-thumb,
.track-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.track-clips {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Clips */
.video-clip,
.audio-clip,
.title-clip,
.effect-clip {
    position: absolute;
    top: 4px;
    height: 32px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.video-clip {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(96, 165, 250, 0.15));
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.audio-clip {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.3), rgba(52, 211, 153, 0.15));
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.title-clip {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(244, 114, 182, 0.15));
    border: 1px solid rgba(244, 114, 182, 0.4);
}

.effect-clip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.clip-content {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    font-size: 0.65rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
}

.clip-content i {
    font-size: 0.6rem;
    opacity: 0.7;
}

.video-clip:hover,
.audio-clip:hover,
.title-clip:hover,
.effect-clip:hover {
    filter: brightness(1.3);
}

/* Playhead */
.playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 10;
    pointer-events: none;
}

.playhead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ef4444;
}

/* Right Sidebar - Effect Controls */
.effect-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.effect-param {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.effect-param label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.effect-param input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.effect-param input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 6px var(--glow-color);
}

/* Effects Library */
.effects-library {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.effect-category h4 {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.effect-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.effect-item i {
    font-size: 1rem;
    color: var(--accent-color);
}

.effect-item:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-color);
    color: var(--text-light);
}

/* AI Analysis */
.ai-analysis {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-meter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analysis-meter label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.meter-bar {
    height: 6px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.analysis-meter span {
    font-size: 0.65rem;
    color: var(--accent-color);
    text-align: right;
}

.analysis-suggestions h4 {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.analysis-suggestions ul {
    list-style: none;
    padding: 0;
}

.analysis-suggestions li {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.analysis-suggestions li::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    font-size: 0.6rem;
}

/* App Footer */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    margin-top: 0;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recording-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.record-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.record-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #ef4444;
}

.recording-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: blink 1s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.input-sources {
    display: flex;
    gap: 0.5rem;
}

.input-sources select {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
}

.input-sources select option {
    background: var(--dark-bg);
}

.footer-center {
    flex: 1;
    max-width: 500px;
    margin: 0 1rem;
}

.ai-generation h4 {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-gen-controls {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.ai-gen-controls input[type="text"] {
    flex: 1;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.ai-gen-controls input[type="text"]::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.ai-gen-controls input[type="text"]:focus {
    border-color: var(--accent-color);
}

.ai-gen-controls select {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
}

.ai-gen-controls select option {
    background: var(--dark-bg);
}

.ai-gen-controls .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.footer-right {
    display: flex;
    align-items: center;
}

.project-stats {
    display: flex;
    gap: 1rem;
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.project-stats .stat i {
    color: var(--accent-color);
    font-size: 0.65rem;
}

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

.modal-content {
    background: var(--light-bg);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.modal-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.modal-header h3 i {
    color: var(--accent-color);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

/* AI Modal Options */
.ai-gen-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-option {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-option:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.ai-option i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.ai-option h4 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.ai-option p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.ai-option .btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
}

/* AI Advanced Settings */
.ai-advanced {
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding-top: 1.25rem;
}

.ai-advanced h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.ai-settings .setting {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ai-settings .setting label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ai-settings .setting select,
.ai-settings .setting input[type="text"] {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.ai-settings .setting select option {
    background: var(--dark-bg);
}

.ai-settings .setting input[type="text"]:focus,
.ai-settings .setting select:focus {
    border-color: var(--accent-color);
}

/* YouTube Import Modal */
.youtube-import {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.youtube-import input[type="text"] {
    width: 100%;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

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

.youtube-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-info {
    display: flex;
    gap: 1rem;
}

.video-info img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.video-details h4 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.video-details p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.youtube-import .import-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.youtube-import .import-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.youtube-import .import-options input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.quality-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quality-selector select {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    outline: none;
}

.quality-selector select option {
    background: var(--dark-bg);
}

/* Notifications Container */
.notifications-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 6000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Responsive for video editor */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .left-sidebar {
        display: none;
    }

    .nav-center {
        display: none;
    }

    .footer-center {
        display: none;
    }

    .ai-gen-options {
        grid-template-columns: 1fr;
    }

    .ai-settings {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ADDITIONAL STYLES FOR FUNCTIONAL EDITOR
   ============================================= */

/* Clip selection */
.video-clip.selected,
.audio-clip.selected,
.title-clip.selected,
.effect-clip.selected {
    outline: 2px solid #fff;
    outline-offset: -1px;
    filter: brightness(1.4);
    z-index: 5;
}

/* Clip resize handles */
.clip-handle {
    position: absolute;
    top: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    z-index: 5;
    transition: background 0.15s ease;
}

.clip-handle.left {
    left: 0;
    border-radius: 5px 0 0 5px;
}

.clip-handle.right {
    right: 0;
    border-radius: 0 5px 5px 0;
}

.clip-handle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Drag over track highlight */
.track-clips.drag-over {
    background: rgba(139, 92, 246, 0.1);
    outline: 1px dashed var(--accent-color);
    outline-offset: -1px;
}

/* Media item drag state */
.media-item[draggable="true"] {
    cursor: grab;
}

.media-item.dragging {
    opacity: 0.4;
}

/* Media item duration label */
.media-duration {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--accent-color);
    font-family: 'Roboto Mono', monospace;
}

/* Generation overlay on preview */
.generation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(4px);
}

/* API status indicator */
.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.status-dot.connected {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

.status-dot.error {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

/* Export progress bar */
.export-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.export-progress .progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Settings modal code tag */
.settings-info code {
    background: rgba(139, 92, 246, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
}

/* Empty media library message */
.media-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Timeline ruler absolute positioning */
.timeline-ruler {
    position: relative;
    overflow: hidden;
}

/* =============================================
   PRODUCTION WIZARD STYLES
   ============================================= */

/* Create Movie button highlight */
.production-trigger {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    font-weight: 600;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.6); }
}

/* Production Modal */
.production-modal .production-content {
    max-width: 1200px;
    width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prod-body {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.prod-left {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

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

.prod-section {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    padding: 0.75rem;
}

.prod-section h4 {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Prompt textarea */
.prod-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.6rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.prod-textarea:focus {
    border-color: var(--accent-color);
}

/* Options grid */
.prod-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.prod-option label {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.prod-option select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
    outline: none;
}

.prod-option select option {
    background: var(--dark-bg);
}

/* Upload row */
.prod-upload-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.prod-upload-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.prod-upload-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-light);
}

.prod-ref-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Create button */
.prod-create-btn {
    width: 100%;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    padding: 0.6rem;
    justify-content: center;
}

/* Step indicators */
.prod-step-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.prod-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.prod-step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b5563;
    transition: all 0.3s ease;
}

.prod-step-indicator.running {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-color);
}

.prod-step-indicator.running .prod-step-dot {
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
    animation: agent-pulse 1s ease-in-out infinite;
}

@keyframes agent-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

.prod-step-indicator.done {
    color: #34d399;
}

.prod-step-indicator.done .prod-step-dot {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

.prod-step-indicator.error .prod-step-dot {
    background: #ef4444;
}

/* Progress bar */
.prod-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.prod-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.prod-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Agent log */
.prod-log-section {
    max-height: 200px;
}

.prod-agent-log {
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.prod-log-entry {
    padding: 0.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.4;
}

.log-time {
    color: #4b5563;
    margin-right: 0.3rem;
}

.log-source {
    font-weight: 600;
    margin-right: 0.3rem;
}

.log-msg {
    color: var(--text-muted);
}

/* Script preview */
.prod-script-section {
    flex: 1;
    min-height: 200px;
}

.prod-script-preview {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
}

.prod-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.script-content {
    line-height: 1.6;
}

.script-title {
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.script-logline {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.script-scene {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.script-heading {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.script-action {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.script-dialogue {
    margin-left: 2rem;
    margin-bottom: 0.3rem;
}

.script-character {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-align: center;
}

.script-emotion {
    font-weight: 400;
    text-transform: lowercase;
    font-size: 0.65rem;
    color: var(--accent-color);
}

.script-line {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

.script-narration {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.script-duration {
    font-size: 0.6rem;
    color: #4b5563;
    text-align: right;
    font-family: 'Roboto Mono', monospace;
}

/* Storyboard */
.prod-storyboard-section {
    min-height: 180px;
}

.prod-storyboard {
    max-height: 250px;
    overflow-y: auto;
}

.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.storyboard-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: border-color 0.2s;
}

.storyboard-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.storyboard-num {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-color);
    padding: 0.3rem 0.5rem;
    background: rgba(139, 92, 246, 0.1);
}

.storyboard-thumb {
    width: 100%;
    height: 90px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.storyboard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storyboard-placeholder {
    color: #4b5563;
    font-size: 1.5rem;
}

.storyboard-info {
    padding: 0.4rem 0.5rem;
}

.storyboard-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.storyboard-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.storyboard-meta span {
    font-size: 0.55rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Production actions */
.prod-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 10px;
}

.prod-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.5rem;
}

/* Dialogue/Music/SFX track colors */
.dialogue-track .track-clips {
    border-left: 3px solid #ec4899;
}

.music-track .track-clips {
    border-left: 3px solid #14b8a6;
}

.sfx-track .track-clips {
    border-left: 3px solid #f59e0b;
}

/* User message bubble for AI chat */
.user-message-bubble {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 12px 12px 0 12px;
    font-size: 0.8rem;
    max-width: 80%;
}

/* Production modal responsive */
@media (max-width: 900px) {
    .prod-body {
        flex-direction: column;
    }
    .prod-left {
        flex: none;
    }
    .prod-options {
        grid-template-columns: 1fr;
    }
}

/* Audio Controls Panel */
#audio-controls-section {
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

#audio-controls-section h3 {
    color: #00d4ff;
}

.audio-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.audio-controls-panel .effect-param label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-controls-panel .effect-param label span {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.7rem;
}

.audio-controls-panel input[type="range"] {
    background: rgba(0, 212, 255, 0.15);
}

.audio-controls-panel input[type="range"]::-webkit-slider-thumb {
    background: #00d4ff;
}

.audio-clip-info {
    padding: 4px 6px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

/* Clip volume bar */
.clip-volume-bar {
    z-index: 2;
    border-radius: 0 0 2px 2px;
}

/* Clip fade overlay */
.clip-fade-overlay {
    z-index: 1;
    border-radius: 4px;
}

/* ==========================================
   Auth, Billing & Token System
   ========================================== */

/* Sign In Button */
.btn-signin {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}
.btn-signin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Token Counter in Nav */
.token-counter {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: #f59e0b;
    font-weight: 600;
}
.token-counter i {
    font-size: 0.7rem;
}
.token-counter:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
}
.token-counter.low {
    animation: tokenPulse 1.5s ease infinite;
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
@keyframes tokenPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.3); }
}

/* Plan Badge */
.plan-badge {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.plan-free { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.plan-creator { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.plan-pro { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.plan-studio { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* Auth Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.auth-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.auth-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.auth-input:focus {
    border-color: var(--accent-primary, #8b5cf6);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.12);
}
.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
}
.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 0.6rem;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}
.auth-switch {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}
.auth-switch a {
    color: var(--accent-primary, #8b5cf6);
    text-decoration: none;
    font-weight: 500;
}
.auth-switch a:hover {
    text-decoration: underline;
}

/* Token Pack Cards */
.token-pack-card {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.token-pack-card:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}
.token-pack-card.popular {
    border-color: rgba(245, 158, 11, 0.4);
}
.token-pack-card .tp-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #000;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    text-transform: uppercase;
}
.token-pack-card .tp-tokens {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f59e0b;
}
.token-pack-card .tp-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0.1rem 0;
}
.token-pack-card .tp-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}
.token-pack-card .tp-per {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* Pricing Cards */
.pricing-card {
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 10px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}
.pricing-card.popular {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
}
.pricing-card.current {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.06);
}
.pricing-card .pc-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    text-transform: uppercase;
    white-space: nowrap;
}
.pricing-card .pc-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}
.pricing-card .pc-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary, #8b5cf6);
    line-height: 1;
}
.pricing-card .pc-period {
    font-size: 0.6rem;
    color: var(--text-muted);
}
.pricing-card .pc-tokens {
    font-size: 0.7rem;
    color: #f59e0b;
    font-weight: 600;
    margin: 0.3rem 0;
}
.pricing-card .pc-features {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0;
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-align: left;
}
.pricing-card .pc-features li {
    padding: 0.1rem 0;
}
.pricing-card .pc-features li::before {
    content: '\2713 ';
    color: #22c55e;
    font-weight: 700;
}
.pricing-card .pc-btn {
    width: 100%;
    padding: 0.35rem 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    margin-top: 0.4rem;
}
.pricing-card .pc-btn.upgrade-btn {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border: none;
}
.pricing-card .pc-btn.upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}
.pricing-card .pc-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Token Ring SVG */
.token-ring {
    display: block;
}

/* User Avatar Initial */
#user-avatar-initial {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

/* ==========================================
   Referral System
   ========================================== */
.referral-card {
    margin-top: 1.2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
}
.referral-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.4rem;
}
.referral-header i {
    margin-right: 0.3rem;
}
.referral-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.referral-desc strong {
    color: #22c55e;
}
.referral-code-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px dashed rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.8rem;
}
.referral-code-box span {
    flex: 1;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 3px;
    text-align: center;
}
.referral-copy-btn {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.referral-copy-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    transform: scale(1.05);
}
.referral-progress-wrap {
    margin-bottom: 0.6rem;
}
.referral-progress-bar {
    height: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}
.referral-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.referral-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.referral-reward-badge {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.7rem;
}
.referral-reward-badge i {
    margin-right: 0.2rem;
}
.referral-share {
    text-align: center;
}
.referral-share-btn {
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.referral-share-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
}

/* ==========================================
   Website to Video Modal
   ========================================== */

#website-modal .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#website-url-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

#website-result-scenes::-webkit-scrollbar {
    width: 4px;
}

#website-result-scenes::-webkit-scrollbar-track {
    background: rgba(6, 182, 212, 0.05);
    border-radius: 2px;
}

#website-result-scenes::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 2px;
}

#import-website:hover {
    background: linear-gradient(135deg, #06b6d433, #0891b233) !important;
    border-color: #06b6d4 !important;
    transform: translateY(-1px);
}

/* ==========================================
   Dolby Surround Sound Controls
   ========================================== */

#surround-controls-section {
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

#surround-controls-section h3 {
    color: #00d4ff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.surround-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.surround-controls-panel .effect-param label {
    font-size: 0.7rem;
    color: #a0aec0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.surround-controls-panel .effect-param label span {
    color: #00d4ff;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
}

.surround-controls-panel input[type="range"] {
    width: 100%;
    accent-color: #00d4ff;
}

.surround-controls-panel input[type="range"]::-webkit-slider-thumb {
    background: #00d4ff;
}

/* Surround toggle switch */
.surround-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 0;
}

.surround-toggle-label {
    font-size: 0.75rem;
    color: #a0aec0;
    flex: 1;
}

.surround-badge {
    background: linear-gradient(135deg, #8b5cf6, #00d4ff);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    font-family: 'Roboto Mono', monospace;
}

/* Toggle switch */
.surround-switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

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

.surround-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #2d3748;
    border-radius: 18px;
    transition: 0.2s;
}

.surround-switch-slider::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: #718096;
    border-radius: 50%;
    transition: 0.2s;
}

.surround-switch input:checked + .surround-switch-slider {
    background: linear-gradient(135deg, #8b5cf6, #00d4ff);
}

.surround-switch input:checked + .surround-switch-slider::before {
    transform: translateX(14px);
    background: #fff;
}

/* Surround field visualizer */
.surround-field {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 4px auto;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
}

.surround-field canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.surround-labels {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sf-label {
    position: absolute;
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(139, 92, 246, 0.5);
    font-family: 'Roboto Mono', monospace;
}

.sf-front { top: 4px; left: 50%; transform: translateX(-50%); }
.sf-rear { bottom: 4px; left: 50%; transform: translateX(-50%); }
.sf-left { left: 6px; top: 50%; transform: translateY(-50%); }
.sf-right { right: 6px; top: 50%; transform: translateY(-50%); }
.sf-center { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.45rem; color: rgba(255,255,255,0.3); }

/* Draggable surround dot */
.surround-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: grab;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
    transition: box-shadow 0.2s;
    top: 50%;
    left: 50%;
}

.surround-dot:hover,
.surround-dot.dragging {
    cursor: grabbing;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.8), 0 0 4px #fff;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Surround select dropdown */
.surround-select {
    width: 100%;
    background: #1a1a2e;
    color: #e2e8f0;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.7rem;
    outline: none;
    cursor: pointer;
}

.surround-select:focus {
    border-color: #00d4ff;
}

.surround-select optgroup {
    color: #8b5cf6;
    font-weight: 600;
}

.surround-select option {
    background: #1a1a2e;
    color: #e2e8f0;
}

/* Channel level meters */
.surround-meters {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.meter-label {
    font-size: 0.65rem;
    color: #718096;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meter-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.meter-ch {
    font-size: 0.6rem;
    font-family: 'Roboto Mono', monospace;
    color: #a0aec0;
    width: 22px;
    text-align: right;
    flex-shrink: 0;
}

.meter-bar {
    flex: 1;
    height: 4px;
    background: #1a1a2e;
    border-radius: 2px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: #4a5568;
    border-radius: 2px;
    transition: width 0.15s ease, background 0.15s ease;
}