/* ================================================================
   PREMIUM COURSE PLATFORM - COMPLETE STYLESHEET
   Advanced Styling with Dark/Light Mode Support
   ================================================================ */

/* ================================================================
   TABLE OF CONTENTS
   ================================================================
   1. CSS RESET
   2. CSS CUSTOM PROPERTIES (Variables)
   3. BASE STYLES
   4. LOADING SCREEN
   5. ANIMATED BACKGROUND
   6. HEADER & NAVIGATION
   7. MAIN LAYOUT
   8. LEFT PANEL - DETAILS
   9. CENTER PANEL - FEATURED
   10. RIGHT PANEL - SELECTOR
   11. VIDEO PLAYER
   12. TOAST NOTIFICATIONS
   13. ERROR SCREEN
   14. UTILITY CLASSES
   15. ANIMATIONS & KEYFRAMES
   16. RESPONSIVE DESIGN
   17. ACCESSIBILITY
   ================================================================ */

/* ================================================================
   1. CSS RESET
   ================================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Remove default button styles */
button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* Remove default anchor styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Remove default input styles */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ================================================================
   2. CSS CUSTOM PROPERTIES (Variables)
   ================================================================ */

/* -------------------- DARK THEME (Default) -------------------- */
:root,
[data-theme="dark"] {
    /* Background Colors */
    --color-bg-primary: #08080c;
    --color-bg-secondary: #0f0f15;
    --color-bg-tertiary: #16161f;
    --color-bg-elevated: #1d1d28;
    --color-bg-hover: #252532;
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #b4b4c0;
    --color-text-tertiary: #7a7a8c;
    --color-text-muted: #4a4a5a;
    --color-text-inverse: #08080c;
    
    /* Accent Colors */
    --color-accent-primary: #6366f1;
    --color-accent-secondary: #8b5cf6;
    --color-accent-tertiary: #a855f7;
    --color-accent-hover: #818cf8;
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: rgba(16, 185, 129, 0.15);
    --color-warning: #f59e0b;
    --color-warning-light: rgba(245, 158, 11, 0.15);
    --color-error: #ef4444;
    --color-error-light: rgba(239, 68, 68, 0.15);
    --color-info: #3b82f6;
    --color-info-light: rgba(59, 130, 246, 0.15);
    
    /* Neon Accent Colors */
    --color-neon-purple: #a855f7;
    --color-neon-pink: #ec4899;
    --color-neon-cyan: #22d3ee;
    --color-neon-blue: #3b82f6;
    --color-neon-green: #22c55e;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(180deg, #08080c 0%, #0f0f15 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-bg-active: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.8);
    
    /* Glow Shadows */
    --glow-sm: 0 0 20px rgba(99, 102, 241, 0.3);
    --glow-md: 0 0 40px rgba(99, 102, 241, 0.4);
    --glow-lg: 0 0 60px rgba(99, 102, 241, 0.5);
    --glow-xl: 0 0 80px rgba(99, 102, 241, 0.6);
    --glow-pink: 0 0 40px rgba(236, 72, 153, 0.4);
    --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.4);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-14: 56px;
    --space-16: 64px;
    --space-20: 80px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* Transitions */
    --transition-fastest: 100ms;
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 350ms;
    --transition-slower: 500ms;
    --transition-slowest: 700ms;
    
    /* Easing Functions */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Z-Index Scale */
    --z-deep: -1;
    --z-base: 0;
    --z-raised: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-header: 40;
    --z-overlay: 50;
    --z-modal: 60;
    --z-popover: 70;
    --z-toast: 80;
    --z-tooltip: 90;
    --z-loading: 100;
    
    /* Layout */
    --header-height: 72px;
    --panel-width: 380px;
    --panel-width-sm: 320px;
    --max-content-width: 1440px;
}

/* -------------------- LIGHT THEME -------------------- */
[data-theme="light"] {
    /* Background Colors */
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-elevated: #ffffff;
    --color-bg-hover: #e2e8f0;
    
    /* Text Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #ffffff;
    
    /* Glass Effect - Light Theme */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-bg-active: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    
    /* Shadows - Light Theme */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.18);
    
    /* Glow - Light Theme */
    --glow-sm: 0 0 20px rgba(99, 102, 241, 0.2);
    --glow-md: 0 0 40px rgba(99, 102, 241, 0.25);
    --glow-lg: 0 0 60px rgba(99, 102, 241, 0.3);
    
    /* Gradients - Light Theme */
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

/* ================================================================
   3. BASE STYLES
   ================================================================ */
body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    transition: 
        background-color var(--transition-normal) var(--ease-out),
        color var(--transition-normal) var(--ease-out);
}

/* Selection Styling */
::selection {
    background-color: var(--color-accent-primary);
    color: var(--color-text-inverse);
}

::-moz-selection {
    background-color: var(--color-accent-primary);
    color: var(--color-text-inverse);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-hover);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-primary);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-bg-hover) var(--color-bg-secondary);
}

/* ================================================================
   4. LOADING SCREEN
   ================================================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-primary);
    z-index: var(--z-loading);
    transition: opacity var(--transition-slower) var(--ease-out),
                visibility var(--transition-slower) var(--ease-out);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    z-index: 2;
}

.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--color-accent-primary);
    animation-duration: 1s;
}

.spinner-ring:nth-child(2) {
    width: 65px;
    height: 65px;
    top: 7.5px;
    left: 7.5px;
    border-right-color: var(--color-neon-pink);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 15px;
    left: 15px;
    border-bottom-color: var(--color-neon-cyan);
    animation-duration: 2s;
}

.loader-text {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    letter-spacing: var(--tracking-wide);
}

.loader-text .dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* ================================================================
   5. ANIMATED BACKGROUND
   ================================================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: var(--z-deep);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-accent-primary);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--color-neon-pink);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: var(--color-neon-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.3;
}

[data-theme="light"] .bg-orb {
    opacity: 0.2;
    filter: blur(100px);
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

[data-theme="light"] .bg-grid {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.bg-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
}

/* ================================================================
   6. HEADER & NAVIGATION
   ================================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-8);
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    z-index: var(--z-header);
    transition: 
        background-color var(--transition-normal),
        border-color var(--transition-normal);
}

[data-theme="light"] .header {
    background: rgba(248, 250, 252, 0.9);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Breadcrumb Navigation */
.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.nav-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-sm);
}

.nav-item.hidden {
    display: none;
}

.nav-icon {
    font-size: var(--text-base);
    line-height: 1;
}

.nav-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-arrow {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

.nav-arrow.hidden {
    display: none;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.theme-toggle:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.theme-icon {
    position: absolute;
    font-size: var(--text-xl);
    transition: 
        transform var(--transition-normal) var(--ease-spring),
        opacity var(--transition-normal) var(--ease-out);
}

.theme-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-light {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-dark {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ================================================================
   7. MAIN LAYOUT
   ================================================================ */
.app {
    opacity: 0;
    transition: opacity var(--transition-slower) var(--ease-out);
}

.app.visible {
    opacity: 1;
}

.main-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
}

.panel {
    position: relative;
    display: flex;
    flex-direction: column;
}

.panel-left {
    width: var(--panel-width);
    min-width: var(--panel-width);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    position: relative;
}

.panel-right {
    width: var(--panel-width);
    min-width: var(--panel-width);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================================
   8. LEFT PANEL - DETAILS CARD
   ================================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    transition: 
        all var(--transition-normal) var(--ease-out);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg);
}

.details-card {
    width: 100%;
    max-width: 360px;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Detail Badge */
.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
    width: fit-content;
}

.badge-icon {
    font-size: var(--text-sm);
}

.badge-text {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: white;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* Detail Title */
.detail-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    margin: 0;
}

/* Detail Description */
.detail-desc {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-2);
    background: var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.stat-box:hover {
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--glow-sm);
}

.stat-icon {
    font-size: var(--text-lg);
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
}

.stat-label {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.price-label {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.price-amount {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-accent-primary);
}

.price-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.price-badge.free {
    background: var(--color-success);
    color: white;
}

.price-badge.paid {
    background: var(--color-warning);
    color: white;
}

.price-badge.owned {
    background: var(--color-accent-primary);
    color: white;
}

/* Action Button */
.btn-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    overflow: hidden;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-lg);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    font-size: var(--text-lg);
    transition: transform var(--transition-fast) var(--ease-out);
}

.btn-action:hover .btn-icon {
    transform: translateX(4px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    z-index: 1;
    animation: shine 3s infinite;
}

/* Payment Section */
.payment-section {
    padding-top: var(--space-5);
    border-top: 1px solid var(--glass-border);
}

.payment-section.hidden {
    display: none;
}

.payment-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.payment-divider span {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.btn-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4);
    background: var(--color-success);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.btn-payment:hover {
    background: #0d9668;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.payment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    margin-top: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ================================================================
   9. CENTER PANEL - FEATURED IMAGE/VIDEO
   ================================================================ */
.featured-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.featured-card {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    animation: float 5s ease-in-out infinite;
    transition: 
        transform var(--transition-normal) var(--ease-out),
        box-shadow var(--transition-normal) var(--ease-out);
}

.featured-card:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--glow-lg);
}

.featured-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) var(--ease-out);
}

.featured-card:hover .featured-image {
    transform: scale(1.08);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
}

/* Featured Play Button */
.featured-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-6);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    cursor: pointer;
    opacity: 0;
    transition: 
        all var(--transition-normal) var(--ease-out);
    z-index: 5;
}

.featured-card:hover .featured-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.featured-play-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--glow-lg);
}

.featured-play-btn.hidden {
    display: none;
}

.play-icon {
    font-size: var(--text-4xl);
    color: white;
}

.play-text {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
}

/* Featured Glow */
.featured-glow {
    position: absolute;
    inset: -30%;
    background: var(--gradient-glow);
    z-index: -1;
    animation: glow-pulse 4s ease-in-out infinite;
}

/* Floating Badges */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    white-space: nowrap;
    z-index: 5;
    animation: badge-float 4s ease-in-out infinite;
}

.float-badge-1 {
    top: 5%;
    left: -20%;
    animation-delay: 0s;
}

.float-badge-2 {
    top: 15%;
    right: -25%;
    animation-delay: -2s;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
}

.scroll-hint p {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent-primary);
    border-radius: var(--radius-full);
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* ================================================================
   10. RIGHT PANEL - COURSE SELECTOR
   ================================================================ */
.selector-container {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.selector-header {
    text-align: center;
}

.selector-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin: 0 0 var(--space-1) 0;
}

.selector-count {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.selector-list-wrapper {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-2);
    margin: 0 calc(-1 * var(--space-2));
}

.selector-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Selector Item */
.selector-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.selector-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateX(4px);
}

.selector-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-accent-primary);
    box-shadow: var(--glow-sm);
}

.selector-item-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.selector-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal) var(--ease-out);
}

.selector-item:hover .selector-item-thumb img {
    transform: scale(1.1);
}

.selector-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.selector-item-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.selector-item-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

.selector-item-badge {
    padding: 2px 6px;
    background: var(--color-success);
    border-radius: var(--radius-xs);
    font-size: 10px;
    font-weight: var(--font-bold);
    color: white;
    text-transform: uppercase;
}

.selector-item-badge.paid {
    background: var(--color-warning);
}

/* Selector Navigation */
.selector-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
}

.selector-nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.selector-nav-btn:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--glow-sm);
}

.selector-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.selector-nav-btn:disabled:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--color-text-secondary);
    box-shadow: none;
}

.selector-pagination {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
}

.selector-pagination span:first-child {
    color: var(--color-accent-primary);
    font-weight: var(--font-bold);
}

/* ================================================================
   11. VIDEO PLAYER
   ================================================================ */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.video-player-container.hidden {
    display: none;
}

.video-player-wrapper {
    position: relative;
    background: #000;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.video-close-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.video-close-btn:hover {
    background: var(--color-error);
    border-color: var(--color-error);
    transform: scale(1.1) rotate(90deg);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.video-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin: 0;
}

.btn-fullscreen {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.btn-fullscreen:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: white;
}

/* ================================================================
   12. TOAST NOTIFICATIONS
   ================================================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: var(--z-toast);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-secondary);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toast-in 0.4s var(--ease-spring) forwards;
    max-width: 380px;
}

.toast.removing {
    animation: toast-out 0.3s var(--ease-in) forwards;
}

.toast.success {
    border-left: 4px solid var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-error);
}

.toast.warning {
    border-left: 4px solid var(--color-warning);
}

.toast.info {
    border-left: 4px solid var(--color-info);
}

.toast-icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.toast-message {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

.toast-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 50%;
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    cursor: pointer;
    flex-shrink: 0;
    transition: 
        all var(--transition-fast) var(--ease-out);
}

.toast-close:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

/* ================================================================
   13. ERROR SCREEN
   ================================================================ */
.error-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-primary);
    z-index: var(--z-loading);
}

.error-screen.hidden {
    display: none;
}

.error-content {
    text-align: center;
    padding: var(--space-10);
    max-width: 400px;
}

.error-icon {
    font-size: 80px;
    margin-bottom: var(--space-6);
    animation: shake 0.5s ease-in-out;
}

.error-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.error-message {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.error-content .btn-action {
    width: auto;
    display: inline-flex;
    padding: var(--space-4) var(--space-8);
}

/* ================================================================
   14. UTILITY CLASSES
   ================================================================ */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   15. ANIMATIONS & KEYFRAMES
   ================================================================ */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.4;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

@keyframes toast-in {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-out {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================================
   16. RESPONSIVE DESIGN
   ================================================================ */

/* Large Desktop: 1400px and above */
@media screen and (min-width: 1400px) {
    :root {
        --panel-width: 420px;
    }
    
    .featured-card {
        width: 360px;
        height: 450px;
    }
}

/* Desktop: 1200px to 1399px */
@media screen and (max-width: 1399px) {
    :root {
        --panel-width: 360px;
    }
}

/* Small Desktop / Large Tablet: 1024px to 1199px */
@media screen and (max-width: 1199px) {
    :root {
        --panel-width: 320px;
        --header-height: 64px;
    }
    
    .header {
        padding: 0 var(--space-6);
    }
    
    .panel-left,
    .panel-center,
    .panel-right {
        padding: var(--space-6);
    }
    
    .details-card {
        padding: var(--space-6);
    }
    
    .detail-title {
        font-size: var(--text-xl);
    }
    
    .featured-card {
        width: 280px;
        height: 350px;
    }
    
    .float-badge {
        display: none;
    }
}

/* Tablet: 768px to 1023px */
@media screen and (max-width: 1023px) {
    :root {
        --header-height: 60px;
    }
    
    .main-layout {
        flex-direction: column;
        padding-bottom: var(--space-10);
    }
    
    .panel-left,
    .panel-right {
        width: 100%;
        min-width: 100%;
        padding: var(--space-5);
    }
    
    .panel-center {
        order: -1;
        min-height: 450px;
        padding: var(--space-5);
    }
    
    .details-card {
        max-width: 100%;
    }
    
    .selector-container {
        max-width: 100%;
    }
    
    .selector-list-wrapper {
        max-height: 300px;
    }
    
    .selector-list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: var(--space-4);
        padding-bottom: var(--space-3);
    }
    
    .selector-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 140px;
        flex-shrink: 0;
        padding: var(--space-4);
    }
    
    .selector-item-thumb {
        width: 80px;
        height: 80px;
    }
    
    .selector-item-info {
        align-items: center;
    }
    
    .selector-item-title {
        -webkit-line-clamp: 2;
        text-align: center;
    }
    
    .scroll-hint {
        display: none;
    }
    
    .featured-card {
        width: 260px;
        height: 325px;
    }
}

/* Mobile: 640px to 767px */
@media screen and (max-width: 767px) {
    :root {
        --header-height: 56px;
    }
    
    .header {
        padding: 0 var(--space-4);
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-item {
        padding: var(--space-2) var(--space-3);
    }
    
    .nav-icon {
        font-size: var(--text-lg);
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .panel-left,
    .panel-center,
    .panel-right {
        padding: var(--space-4);
    }
    
    .detail-title {
        font-size: var(--text-lg);
    }
    
    .detail-desc {
        font-size: var(--text-xs);
    }
    
    .stats-grid {
        gap: var(--space-2);
    }
    
    .stat-box {
        padding: var(--space-3) var(--space-2);
    }
    
    .stat-value {
        font-size: var(--text-lg);
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .price-amount {
        font-size: var(--text-xl);
    }
    
    .btn-action {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
    }
    
    .featured-card {
        width: 220px;
        height: 280px;
    }
    
    .selector-item {
        min-width: 120px;
        padding: var(--space-3);
    }
    
    .selector-item-thumb {
        width: 60px;
        height: 60px;
    }
    
    .selector-item-title {
        font-size: var(--text-xs);
    }
    
    .video-info {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }
    
    .btn-fullscreen {
        width: 100%;
        justify-content: center;
    }
    
    .toast-container {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
    }
    
    .toast {
        max-width: 100%;
    }
}

/* Small Mobile: up to 479px */
@media screen and (max-width: 479px) {
    .header {
        padding: 0 var(--space-3);
    }
    
    .nav-breadcrumb {
        gap: var(--space-1);
    }
    
    .nav-item {
        padding: var(--space-2);
    }
    
    .panel-left,
    .panel-center,
    .panel-right {
        padding: var(--space-3);
    }
    
    .details-card {
        padding: var(--space-5);
        gap: var(--space-4);
    }
    
    .detail-badge {
        padding: var(--space-1) var(--space-2);
    }
    
    .badge-text {
        font-size: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-card {
        width: 180px;
        height: 230px;
    }
    
    .selector-item {
        min-width: 100px;
    }
    
    .selector-item-thumb {
        width: 50px;
        height: 50px;
    }
    
    .error-content {
        padding: var(--space-6);
    }
    
    .error-icon {
        font-size: 60px;
    }
    
    .error-title {
        font-size: var(--text-xl);
    }
    
    .error-message {
        font-size: var(--text-sm);
    }
}

/* ================================================================
   17. ACCESSIBILITY
   ================================================================ */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .featured-card {
        animation: none;
    }
    
    .bg-orb {
        animation: none;
    }
    
    .float-badge {
        animation: none;
    }
    
    .scroll-dot {
        animation: none;
    }
    
    .btn-shine {
        animation: none;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --color-text-secondary: #d0d0e0;
        --color-text-tertiary: #b0b0c0;
    }
    
    [data-theme="light"] {
        --glass-border: rgba(0, 0, 0, 0.3);
        --color-text-secondary: #3a3a4a;
        --color-text-tertiary: #4a4a5a;
    }
}

/* Print Styles */
@media print {
    .animated-bg,
    .loader,
    .header,
    .toast-container,
    .scroll-hint,
    .float-badge,
    .featured-glow {
        display: none !important;
    }
    
    .main-layout {
        display: block;
        padding-top: 0;
    }
    
    .panel {
        width: 100% !important;
        padding: 1rem !important;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ================================================================
   END OF STYLESHEET
   ================================================================ */