/* ====== VIDR CUTE PASTEL THEME ====== */
:root {
    /* Pastel Palette */
    --pastel-pink: #FFB6C1;
    --pastel-pink-light: #FFD1DC;
    --pastel-pink-dark: #FF91A4;
    --pastel-purple: #D8B4FE;
    --pastel-purple-light: #E9D5FF;
    --pastel-purple-dark: #C084FC;
    --pastel-blue: #93C5FD;
    --pastel-blue-light: #BFDBFE;
    --pastel-mint: #A7F3D0;
    --pastel-mint-dark: #6EE7B7;
    --pastel-yellow: #FDE68A;
    --pastel-yellow-light: #FEF3C7;
    --pastel-orange: #FDBA74;
    --pastel-coral: #FCA5A5;
    --pastel-lavender: #C7D2FE;
    
    /* Core Colors */
    --primary: #FF6B9D;
    --primary-dark: #E8458B;
    --primary-light: #FFB3CC;
    --secondary: #A855F7;
    --secondary-light: #C084FC;
    --accent: #06D6A0;
    --accent-light: #34D399;
    
    /* Backgrounds */
    --bg-primary: #FFF5F7;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-dark: #1A1A2E;
    --bg-dark-card: rgba(26, 26, 46, 0.9);
    --bg-gradient: linear-gradient(135deg, #FFB6C1 0%, #D8B4FE 50%, #93C5FD 100%);
    --bg-gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
    
    /* Text */
    --text-primary: #2D2D3F;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;
    --text-link: #FF6B9D;
    
    /* Borders */
    --border-light: rgba(255, 182, 193, 0.3);
    --border-medium: rgba(255, 182, 193, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 107, 157, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 107, 157, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 107, 157, 0.3);
    --shadow-purple-glow: 0 0 20px rgba(168, 85, 247, 0.3);
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-indices */
    --z-base: 1;
    --z-nav: 100;
    --z-header: 200;
    --z-modal: 500;
    --z-overlay: 600;
    --z-toast: 700;
    --z-splash: 1000;
    
    /* Coin colors */
    --coin-gold: #FFD700;
    --coin-glow: 0 0 15px rgba(255, 215, 0, 0.5);
    
    /* VIP colors */
    --vip-gold: linear-gradient(135deg, #FFD700, #FFA500);
    --vip-diamond: linear-gradient(135deg, #B9F2FF, #00CED1, #B9F2FF);
    --vip-ruby: linear-gradient(135deg, #FF0000, #DC143C);
}

/* Dark mode variables */
[data-theme="dark"] {
    --bg-primary: #0F0F1A;
    --bg-secondary: #1A1A2E;
    --bg-card: rgba(26, 26, 46, 0.85);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --border-light: rgba(168, 85, 247, 0.2);
    --border-medium: rgba(168, 85, 247, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ====== BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--pastel-pink);
    border-radius: var(--radius-full);
}

/* Selection */
::selection {
    background: var(--pastel-pink);
    color: white;
}

/* ====== SPLASH SCREEN ====== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: var(--z-splash);
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.splash-content {
    text-align: center;
}

.mascot-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
}

.mascot-bounce {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    animation: mascotBounce 1s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.mascot-bounce::after {
    content: '🎬';
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.splash-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 8px;
    margin-bottom: 8px;
}

.splash-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 32px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    margin: 0 auto;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: var(--radius-full);
    animation: loadingFill 2s ease-in-out forwards;
}

@keyframes loadingFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ====== AUTH SCREEN ====== */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-mascot {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
}

.mascot-wave {
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    animation: wave 2s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.mascot-wave::after {
    content: '👋';
    animation: waveHand 1s ease-in-out infinite;
}

@keyframes waveHand {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.google-btn:active {
    transform: translateY(0) scale(0.98);
}

.google-btn img {
    width: 24px;
    height: 24px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.feature-item i {
    color: var(--primary);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.auth-terms {
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-light);
}

.auth-terms a {
    color: var(--text-link);
    text-decoration: none;
}

/* ====== USERNAME SCREEN ====== */
.username-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.username-container h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
}

.username-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    background: white;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 4px;
    transition: var(--transition-normal);
}

.username-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.username-prefix {
    padding: 12px 4px 12px 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

#username-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    padding: 12px 16px 12px 4px;
    background: transparent;
    color: var(--text-primary);
}

.username-status {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    min-height: 20px;
}

.username-status.available {
    color: var(--accent);
}

.username-status.taken {
    color: #EF4444;
}

/* ====== BUTTONS ====== */
.btn-primary {
    width: 100%;
    padding: 14px 32px;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-bounce {
    animation: none;
}

.btn-bounce:not(:disabled):hover {
    animation: buttonBounce 0.5s ease;
}

@keyframes buttonBounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    position: relative;
    backdrop-filter: blur(10px);
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* ====== TOP BAR ====== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: var(--z-header);
    background: rgba(255, 245, 247, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .top-bar {
    background: rgba(15, 15, 26, 0.8);
}

.top-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-small {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.top-center {
    display: flex;
    gap: 4px;
}

.tab-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: var(--pastel-pink-light);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#coins-display {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #FFF7E6, #FFE4B5);
    border: 2px solid #FFD700;
    font-size: 13px;
    font-weight: 800;
    color: #B8860B;
    width: auto;
    height: auto;
}

.coin-icon {
    color: #FFD700;
    animation: coinSpin 3s linear infinite;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.notif-badge, .msg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
}

/* ====== BOTTOM NAV ====== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: var(--z-nav);
    background: rgba(255, 245, 247, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

[data-theme="dark"] .bottom-nav {
    background: rgba(15, 15, 26, 0.9);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.nav-btn i {
    font-size: 22px;
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn.active i {
    animation: navPop 0.3s ease;
}

@keyframes navPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.create-btn .create-icon {
    width: 44px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.create-btn:hover .create-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
}

.nav-btn.active .nav-avatar {
    border-color: var(--primary);
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== VIDEO FEED ====== */
.video-feed {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.video-card {
    height: 100vh;
    width: 100%;
    position: relative;
    scroll-snap-align: start;
    background: #000;
    overflow: hidden;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    position: absolute;
    bottom: 80px;
    left: 12px;
    right: 80px;
    z-index: 10;
    color: white;
}

.video-username {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-username .level-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--bg-gradient);
    border-radius: var(--radius-full);
    font-weight: 700;
}

.video-username .vip-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--vip-gold);
    border-radius: var(--radius-full);
    font-weight: 700;
}

.video-caption {
    font-size: 13px;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-music {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.video-music i {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Right Side Actions */
.video-actions {
    position: absolute;
    right: 8px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: white;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn i {
    font-size: 28px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: var(--transition-bounce);
}

.action-btn span {
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.action-btn:active i {
    transform: scale(1.4);
}

.action-btn.liked i {
    color: var(--primary);
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.action-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    overflow: hidden;
    position: relative;
}

.action-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.action-avatar .follow-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    border: 2px solid white;
}

.music-disc {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    overflow: hidden;
    animation: spin 3s linear infinite;
}

.music-disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== AD SLOTS ====== */
.ad-slot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.ad-slot .ad-label {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 9px;
    color: var(--text-light);
    background: rgba(255,255,255,0.8);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.banner-ad-slot {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.banner-ad-slot > * {
    pointer-events: auto;
}

/* ====== TOAST NOTIFICATIONS ====== */
.toast-container {
    position: fixed;
    top: 68px;
    right: 12px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    max-width: 320px;
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%) scale(0.8); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100%) scale(0.8); }
}

.toast-icon {
    font-size: 20px;
}

.toast-success { border-left: 4px solid var(--accent); }
.toast-error { border-left: 4px solid #EF4444; }
.toast-info { border-left: 4px solid var(--pastel-blue); }
.toast-coin { border-left: 4px solid var(--coin-gold); }

/* ====== FLOATING EFFECTS ====== */
.floating-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 400;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 24px;
    animation: floatUp 2s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(0.3) rotate(45deg);
    }
}

.floating-emoji {
    position: absolute;
    font-size: 32px;
    animation: floatEmoji 3s ease-out forwards;
    pointer-events: none;
}

@keyframes floatEmoji {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-150px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-400px) scale(0.8);
    }
}

/* ====== SCREEN FLASH ====== */
.screen-flash {
    position: fixed;
    inset: 0;
    z-index: 450;
    pointer-events: none;
    animation: screenFlash 0.5s ease;
}

.screen-flash.flash-gold {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent);
}

.screen-flash.flash-pink {
    background: radial-gradient(circle, rgba(255, 107, 157, 0.4), transparent);
}

.screen-flash.flash-purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent);
}

@keyframes screenFlash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

/* ====== UTILITY CLASSES ====== */
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; z-index: 50; background: var(--bg-primary); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-gradient {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .top-bar { padding: 0 8px; }
    .tab-btn { font-size: 12px; padding: 4px 10px; }
}

@media (min-width: 768px) {
    .video-feed {
        max-width: 480px;
        margin: 0 auto;
    }
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}