:root {
    
    --primary:        #4F46E5;
    --primary-dark:   #4338CA;
    --primary-darker: #3730A3;
    --primary-light:  #818CF8;
    --primary-lighter: #C7D2FE;
    --primary-50:     #EEF2FF;
    --primary-rgb:    79, 70, 229;

    --secondary:      #7C3AED;
    --secondary-dark: #6D28D9;
    --secondary-light:#A78BFA;
    --secondary-50:   #F5F3FF;
    --secondary-rgb:  124, 58, 237;

    --accent:         #F59E0B;
    --accent-dark:    #D97706;
    --accent-light:   #FBBF24;
    --accent-50:      #FFFBEB;
    --accent-rgb:     245, 158, 11;

    
    --success:       #10B981;
    --success-dark:  #059669;
    --success-light: #34D399;
    --success-50:    #ECFDF5;
    --warning:       #F59E0B;
    --warning-dark:  #D97706;
    --warning-light: #FBBF24;
    --warning-50:    #FFFBEB;
    --danger:        #EF4444;
    --danger-dark:   #DC2626;
    --danger-light:  #F87171;
    --danger-50:     #FEF2F2;
    --info:          #3B82F6;
    --info-dark:     #2563EB;
    --info-light:    #60A5FA;
    --info-50:       #EFF6FF;

    
    --gray-50:  #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --gray-950: #030712;

    
    --text-heading:  #0f172a;
    --text-body:     #334155;
    --text-muted:    #64748b;
    --text-subtle:   #94a3b8;
    --text-inverse:  #ffffff;
    --bg-body:       #f8fafc;
    --bg-surface:    #ffffff;
    --bg-muted:      var(--gray-50);
    --bg-elevated:   #ffffff;

    
    --primary-color:   var(--primary);
    --secondary-color: var(--secondary);
    --text-dark:       var(--text-heading);
    --text-light:      var(--text-inverse);
    --bg-light:        var(--bg-body);
    --bg-white:        var(--bg-surface);

    
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    --gradient-brand:   linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-hero:    linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #4338CA 50%, #6d28d9 75%, #7c3aed 100%);
    --gradient-warm:    linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-cool:    linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-danger:  linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    --gradient-mesh:    linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-aurora:  linear-gradient(135deg, #a78bfa 0%, #818cf8 25%, #6366f1 50%, #7c3aed 75%, #c084fc 100%);
    --gradient-sunset:  linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-ocean:   linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    
    --glass-bg:       rgba(255, 255, 255, 0.92);
    --glass-bg-dark:  rgba(15, 23, 42, 0.85);
    --glass-border:   rgba(255, 255, 255, 0.18);
    --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-blur:     20px;

    
    --font-display:  'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-primary:  'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading:  'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent:   'Space Grotesk', 'Poppins', sans-serif;
    --font-arabic:   'Tajawal', sans-serif;
    --font-mono:     'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;

    --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;
    --text-6xl:  3.75rem;
    --text-7xl:  4.5rem;

    --leading-none:    1;
    --leading-tight:   1.25;
    --leading-snug:    1.375;
    --leading-normal:  1.6;
    --leading-relaxed: 1.75;
    --leading-loose:   2;

    --tracking-tighter: -0.05em;
    --tracking-tight:   -0.025em;
    --tracking-normal:  0em;
    --tracking-wide:    0.025em;
    --tracking-wider:   0.05em;
    --tracking-widest:  0.1em;

    
    --spacing-xs:  0.25rem;
    --spacing-sm:  0.5rem;
    --spacing-md:  1rem;
    --spacing-lg:  1.5rem;
    --spacing-xl:  2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;

    
    --radius-xs:   0.25rem;
    --radius-sm:   0.375rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.25rem;
    --radius-3xl:  1.5rem;
    --radius-4xl:  2rem;
    --radius-full: 9999px;

    
    --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.04);
    --shadow-primary:    0 4px 14px rgba(79, 70, 229, 0.25), 0 0 0 1px rgba(79, 70, 229, 0.05);
    --shadow-primary-lg: 0 10px 30px rgba(79, 70, 229, 0.35), 0 0 0 1px rgba(79, 70, 229, 0.08);
    --shadow-colored:    0 4px 14px rgba(var(--primary-rgb), 0.18);
    --shadow-glow:       0 0 20px rgba(var(--primary-rgb), 0.15);

    
    --ease-out-expo:  cubic-bezier(0.19, 1, 0.22, 1);
    --ease-bounce:    cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast:   150ms var(--ease-smooth);
    --transition-normal: 250ms var(--ease-smooth);
    --transition-smooth: 350ms var(--ease-out-expo);
    --transition-slow:   500ms var(--ease-smooth);
    --transition-spring: 500ms var(--ease-spring);

    
    --z-dropdown:       1000;
    --z-sticky:         1020;
    --z-fixed:          1030;
    --z-modal-backdrop: 1040;
    --z-modal:          1050;
    --z-popover:        1060;
    --z-tooltip:        1070;
    --z-top:            9999;

    
    --content-width:     70ch;
    --content-width-wide: 85ch;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-body);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    overflow-x: hidden;
}

html[dir="rtl"] body {
    font-family: var(--font-arabic);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-heading);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--spacing-md);
    text-wrap: balance;
}

h1 { font-size: var(--text-4xl); letter-spacing: var(--tracking-tighter); }
h2 { font-size: var(--text-3xl); letter-spacing: var(--tracking-tighter); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 700; }
h6 { font-size: var(--text-base); font-weight: 700; }

p {
    margin-bottom: var(--spacing-md);
    text-wrap: pretty;
}

p, li, span, div { color: inherit; }

::selection {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--primary-dark);
}

.text-muted { color: var(--text-muted) !important; }

.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0;
    transition: all 0.35s var(--ease-out-expo);
    z-index: var(--z-sticky);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
    border-bottom-color: transparent;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-heading) !important;
    gap: 0.625rem;
    letter-spacing: var(--tracking-tight);
}

.navbar-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.brand-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-600) !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out-expo);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 24px;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.06);
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.nav-link i { font-size: var(--text-sm); opacity: 0.8; }

.dropdown-menu {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-2xl);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.625rem;
    min-width: 240px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    animation: dropdownFade 0.3s var(--ease-out-expo);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu-animate {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s var(--ease-out-expo);
}

.dropdown:hover .dropdown-menu-animate {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--gray-600);
    transition: all 0.2s var(--ease-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--primary);
    transform: translateX(3px);
}

.dropdown-item i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.dropdown-item:hover i {
    opacity: 1;
}

.hero-section {
    background: var(--gradient-hero);
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(79, 70, 229, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 70% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
    animation: aurora 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

@keyframes aurora {
    0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
    33%      { opacity: 1;   transform: scale(1.03) rotate(0.5deg); }
    66%      { opacity: 0.85; transform: scale(1.06) rotate(-0.5deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.5vw, var(--text-6xl));
    font-weight: 800;
    color: var(--text-inverse) !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
    letter-spacing: var(--tracking-tighter);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--text-inverse);
    margin-bottom: var(--spacing-lg);
    letter-spacing: var(--tracking-tighter);
}

.hero-section p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88) !important;
    line-height: var(--leading-relaxed);
    font-weight: 400;
    max-width: 540px;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.hero-section .badge {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    padding: 0.5rem 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-section .btn {
    font-family: var(--font-primary);
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-spring);
    letter-spacing: 0.01em;
}

.hero-section .btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #F59E0B 100%);
    background-size: 200% 100%;
    border: none;
    color: #1a1a2e !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    animation: shimmerGold 3s ease-in-out infinite;
}

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

.hero-section .btn-warning:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5);
}

.hero-section .btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: var(--text-inverse) !important;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.07);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.97);
    color: var(--primary-dark) !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.floating-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: all 0.5s var(--ease-out-expo);
    z-index: 2;
}

.floating-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.15) inset;
}

.floating-card .card-body {
    background: transparent;
    border-radius: var(--radius-xl);
}

.floating-card .icon-circle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.floating-card-1 { top: 0;   right: 10%; animation: float 4s ease-in-out infinite; }
.floating-card-2 { top: 40%; left: 0;    animation: float 4s ease-in-out infinite 0.7s; }
.floating-card-3 { bottom: 10%; right: 5%; animation: float 4s ease-in-out infinite 1.4s; }

.hero-illustration img { max-height: 500px; }
.hero-pattern { opacity: 0.04; pointer-events: none; }
.wave-divider { height: 100px; }
.wave-divider svg { width: 100%; height: 100%; }

.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    transition: all 0.35s var(--ease-spring);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    font-size: 0.9rem;
    cursor: pointer;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s var(--ease-smooth);
    z-index: 1;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: var(--gradient-brand);
    border: none;
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: var(--gradient-brand);
    color: var(--text-inverse);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #8B5CF6 100%);
    border: none;
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
    color: var(--text-inverse);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.btn-success {
    background: var(--gradient-success);
    border: none;
    color: var(--text-inverse);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    color: var(--text-inverse);
}

.btn-lg {
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.card {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-2xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    transition: box-shadow 0.4s var(--ease-out-expo);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.feature-card,
.activity-card,
.hover-lift {
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.feature-card:hover,
.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

.feature-card:hover::before,
.activity-card:hover::before {
    opacity: 1;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: var(--spacing-lg);
}

.card-body { padding: 1.75rem; }

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--gray-100);
    padding: var(--spacing-lg);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.625rem;
    letter-spacing: var(--tracking-tight);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: var(--leading-relaxed);
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-2xl);
}

.feature-card:hover {
    background: var(--bg-surface);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(var(--primary-rgb), 0.06);
}

.feature-card .icon-box {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    position: relative;
    transition: all var(--transition-smooth);
}

.feature-card .icon-box::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-2xl) + 3px);
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.feature-card:hover .icon-box::before { opacity: 1; }
.feature-card:hover .icon-box { transform: scale(1.08) rotate(3deg); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    letter-spacing: var(--tracking-tight);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: var(--leading-relaxed);
    margin-bottom: 0;
}

.activity-card { position: relative; overflow: hidden; }

.activity-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.activity-card:hover .card-img-top { transform: scale(1.05); }

.activity-card .badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
}

section {
    padding: var(--spacing-4xl) 0;
    position: relative;
}

.section { padding: var(--spacing-3xl) 0; }

.section-light { background-color: var(--bg-surface); }
.section-gray  { background-color: var(--gray-50); }

.section-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .subtitle {
    color: var(--primary);
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: var(--text-xs);
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    letter-spacing: var(--tracking-tighter);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 1.5rem auto 0;
    line-height: var(--leading-relaxed);
}

.stats-bar {
    background: var(--gradient-primary);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
}

.stat-item .stat-number {
    font-family: var(--font-accent);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--text-inverse);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: var(--tracking-tight);
}

.stat-item .stat-label {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Stats bar on white/light backgrounds */
.stats-bar.bg-white,
.stats-bar.bg-light {
    background: #ffffff !important;
}

.stats-bar.bg-white .stat-item .stat-number,
.stats-bar.bg-light .stat-item .stat-number {
    color: var(--text-heading);
    text-shadow: none;
}

.stats-bar.bg-white .stat-item .stat-label,
.stats-bar.bg-light .stat-item .stat-label {
    color: var(--text-muted);
}

.stats-bar.bg-white .stat-item .h3,
.stats-bar.bg-white .stat-item .h4,
.stats-bar.bg-light .stat-item .h3,
.stats-bar.bg-light .stat-item .h4 {
    text-shadow: none;
}

.stats-bar.bg-white .small.text-muted,
.stats-bar.bg-light .small.text-muted {
    color: var(--text-muted) !important;
}

.page-header {
    position: relative;
    padding: 5rem 0 3.5rem;
    overflow: hidden;
    background: var(--gradient-brand);
    color: var(--text-inverse);
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 30% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 70% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-inverse) !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: var(--tracking-tighter);
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0.75rem;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-header .breadcrumb-item a:hover { color: var(--text-inverse); }
.page-header .breadcrumb-item.active  { color: var(--text-inverse); }

.breadcrumb-section {
    background-color: var(--gray-100);
    padding: var(--spacing-lg) 0;
}

.content-section {
    background: var(--bg-surface);
    border-radius: var(--radius-3xl);
    padding: 2.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    letter-spacing: var(--tracking-tight);
}

.content-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 1.75rem 0 0.875rem;
}

.content-section p {
    font-size: 0.975rem;
    line-height: var(--leading-relaxed);
    color: var(--text-body);
}

.content-section ul,
.content-section ol { padding-left: 1.5rem; }

.content-section li {
    font-size: 1.025rem;
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.content-block {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-xs);
}

.content-block h2 { font-size: var(--text-2xl); margin-bottom: var(--spacing-md); }
.content-block h3 { font-size: var(--text-xl); margin-bottom: var(--spacing-md); }

.highlight-box {
    background: var(--primary-50);
    border-left: 3px solid var(--primary);
    padding: 1.25rem var(--spacing-lg);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: var(--spacing-lg) 0;
}

.highlight-box p {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box.warning {
    background: var(--warning-50);
    border-left-color: var(--warning);
}

.highlight-box.danger {
    background: var(--danger-50);
    border-left-color: var(--danger);
}

.highlight-box.success {
    background: var(--success-50);
    border-left-color: var(--success);
}

.sidebar { position: sticky; top: 100px; }

.sidebar-card {
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.sidebar-card .card-body { padding: 1.25rem; }

.sidebar-card h5,
.sidebar-card h6 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary);
    letter-spacing: var(--tracking-tight);
}

.sidebar-card li {
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li { margin-bottom: var(--spacing-xs); }

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--gray-600);
    border-radius: var(--radius-lg);
    transition: all 0.25s var(--ease-smooth);
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: rgba(var(--primary-rgb), 0.06);
    color: var(--primary);
    transform: translateX(2px);
}

.sidebar-nav a i {
    margin-right: var(--spacing-sm);
    width: 20px;
    text-align: center;
}

.sticky-sidebar { position: sticky; top: 100px; }

.quiz-container {
    background: var(--bg-surface);
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.quiz-progress {
    height: 5px;
    background-color: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.quiz-progress-bar {
    height: 100%;
    background: var(--gradient-brand);
    transition: width 0.5s var(--ease-out-expo);
    border-radius: var(--radius-full);
}

.quiz-question {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.75rem;
    line-height: 1.5;
    letter-spacing: var(--tracking-tight);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.quiz-option {
    background: var(--gray-50);
    border: 1.5px solid transparent;
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    margin-bottom: 0.625rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    align-items: center;
}

.quiz-option:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.04);
    transform: translateX(4px);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.06);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.quiz-option.incorrect {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.06);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.quiz-option-letter {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-right: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s var(--ease-smooth);
}

.quiz-option:hover .quiz-option-letter {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.quiz-option.selected .quiz-option-letter {
    background: var(--gradient-brand);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.quiz-section-hidden { display: none; }

.form-control,
.form-select {
    padding: 0.625rem var(--spacing-md);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.25s var(--ease-smooth);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    color: var(--text-body);
    background: var(--bg-surface);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.form-label {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.rating-group {
    display: flex;
    gap: var(--spacing-sm);
}

.rating-option { flex: 1; }
.rating-option input { position: absolute; opacity: 0; }

.rating-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rating-option input:checked + label {
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.08);
}

.rating-option label span {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-600);
}

.rating-option input:checked + label span { color: var(--primary); }

.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.accordion-button {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    background-color: var(--bg-surface);
    color: var(--text-heading);
    border-radius: var(--radius-xl) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.04);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    transition: transform 0.3s var(--ease-smooth);
}

.accordion-body {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.925rem;
    line-height: var(--leading-relaxed);
    color: var(--text-body);
}

.footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

.footer h5,
.footer h6 {
    font-family: var(--font-heading);
    color: var(--text-inverse);
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    letter-spacing: var(--tracking-tight);
}

.footer p {
    color: rgba(255, 255, 255, 0.55);
    line-height: var(--leading-relaxed);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.625rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: all 0.25s var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--text-inverse);
    transform: translateX(3px);
}

.footer-links a i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.75rem;
    margin-top: 3rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.825rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s var(--ease-smooth);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--gradient-brand);
    color: var(--text-inverse);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xl);
    background: var(--gradient-brand);
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-spring);
    z-index: var(--z-top);
    cursor: pointer;
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.loading-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

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

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary  { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.bg-gradient-secondary{ background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%); }

.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

.shadow-hover { transition: box-shadow var(--transition-normal); }
.shadow-hover:hover { box-shadow: var(--shadow-xl); }

.skip-link,
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--text-inverse);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: var(--z-top);
}

.skip-link:focus,
.skip-to-content:focus { top: 0; }

.text-max-width,
.text-max-width-600 { max-width: 600px; }
.text-small-font    { font-size: 0.75rem; }
.cursor-pointer     { cursor: pointer; }

.alert {
    border: none;
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    line-height: var(--leading-relaxed);
}

.alert-success {
    background: var(--success-50);
    color: #065f46;
    border-left: 3px solid var(--success);
}

.alert-warning {
    background: var(--warning-50);
    color: #92400e;
    border-left: 3px solid var(--warning);
}

.alert-danger {
    background: var(--danger-50);
    color: #991b1b;
    border-left: 3px solid var(--danger);
}

.alert-info {
    background: var(--info-50);
    color: #1e40af;
    border-left: 3px solid var(--info);
}

.badge {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.badge.bg-primary { background: var(--gradient-brand) !important; }
.badge.bg-success { background: var(--gradient-success) !important; }
.badge.bg-warning { background: linear-gradient(135deg, #F59E0B, #D97706) !important; color: #1a1a2e !important; }
.badge.bg-info    { background: var(--gradient-cool) !important; }

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.04); opacity: 0.85; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

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

.animate-float { animation: float 5s ease-in-out infinite; }
.animate-pulse { animation: pulse 2.5s ease-in-out infinite; }

[data-aos] { transition-timing-function: var(--ease-out-expo) !important; }

.hover-lift {
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important;
}

.real-card {
    border-radius: var(--radius-2xl) !important;
    overflow: hidden;
    background: var(--bg-surface);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    border: 1px solid rgba(0,0,0,0.04);
}

.real-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
}

.bg-primary, .bg-dark, [class*="bg-gradient"] {
    color: var(--text-inverse);
}

.bg-primary h1, .bg-primary h2, .bg-primary h3,
.bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary p, .bg-primary span:not(.badge):not([class*="text-"]), .bg-primary li,
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark p, .bg-dark span:not(.badge):not([class*="text-"]), .bg-dark li {
    color: var(--text-inverse);
}

/* Ensure badges with explicit text-color utilities keep their color */
.badge[class*="text-"] {
    color: inherit;
}
.badge.text-primary { color: var(--primary) !important; }
.badge.text-danger  { color: #b91c1c !important; }
.badge.text-info    { color: #1d4ed8 !important; }
.badge.text-success { color: #059669 !important; }
.badge.text-warning { color: #b45309 !important; }
.badge.text-dark    { color: #1f2937 !important; }
.badge.text-secondary { color: var(--secondary-dark) !important; }

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(var(--primary-rgb), 0.5);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --text-heading: #000000;
        --text-body:    #111111;
        --text-muted:   #333333;
        --primary:      #0000EE;
    }
    .card, .content-section { border: 2px solid #000000; }
    .btn { border-width: 2px; }
}

.badge-float { bottom: 20px; right: -20px; }

.badge.bg-primary.bg-opacity-10 {
    background: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.badge.bg-success.bg-opacity-10 {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.badge.bg-warning.bg-opacity-10 {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #b45309 !important;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.badge.bg-danger.bg-opacity-10 {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #b91c1c !important;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.badge.bg-info.bg-opacity-10 {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #1d4ed8 !important;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.badge.bg-secondary.bg-opacity-10 {
    background: rgba(var(--secondary-rgb), 0.08) !important;
    color: var(--secondary-dark) !important;
    font-weight: 600;
    border: 1px solid rgba(var(--secondary-rgb), 0.12);
}

.badge.bg-dark.bg-opacity-10 {
    background: rgba(17, 24, 39, 0.08) !important;
    color: #1f2937 !important;
    font-weight: 600;
    border: 1px solid rgba(17, 24, 39, 0.12);
}

.features-section { background: var(--gray-50); }

.features-section .feature-card {
    border-radius: var(--radius-2xl) !important;
    overflow: hidden;
    background: var(--bg-surface);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    border: 1px solid rgba(0,0,0,0.04);
}

.features-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08) !important;
}

.features-section .feature-card .card-body { padding: 1.75rem 1.5rem !important; }

.features-section .feature-card .list-unstyled li {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    line-height: var(--leading-relaxed);
}

.features-section .feature-card .btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 0.45rem 1.375rem;
    font-size: var(--text-sm);
}

.demo-section .demo-preview {
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    border: none !important;
}

.demo-section .demo-preview .card-header { padding: 0.875rem 1.25rem; }
.demo-section .demo-preview .card-body   { padding: 1.5rem !important; }

.demo-section .demo-preview .scenario .bg-light {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: var(--radius-lg) !important;
}

.demo-section .demo-preview .scenario p {
    color: var(--text-heading) !important;
    font-size: 0.95rem !important;
}

.demo-section .demo-preview .btn-outline-danger {
    color: #dc2626;
    border-color: #dc2626;
    font-weight: 600;
    padding: 0.45rem 1.125rem;
}

.demo-section .demo-preview .btn-outline-secondary {
    color: var(--gray-600);
    border-color: var(--gray-400);
    font-weight: 600;
    padding: 0.45rem 1.125rem;
}

.demo-section .demo-preview .btn-outline-danger:hover    { background: #dc2626; color: var(--text-inverse); }
.demo-section .demo-preview .btn-outline-secondary:hover { background: var(--gray-600); color: var(--text-inverse); }

.research-section .research-stats .rounded-circle {
    min-width: 70px;
    min-height: 70px;
    flex-shrink: 0;
}

.research-section .research-stats h6 { font-size: 1rem; }
.research-section .research-stats small { font-size: 0.825rem; color: var(--text-muted); }

.quote-card {
    background: var(--bg-surface) !important;
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--gray-200) !important;
}

.quote-card blockquote p { color: #334155 !important; }

.quickstart-section .step-card {
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.quickstart-section .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.resources-cta { position: relative; overflow: hidden; }

.resources-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.feedback-cta .card { border-radius: var(--radius-xl) !important; }

.stat-circle { width: 70px; height: 70px; }
.text-secondary { color: var(--text-muted) !important; }

.page-header-learn,
.learn .page-header              { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.page-header-what-is-ai          { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.page-header-how-ai-works        { background: linear-gradient(135deg, #059669, #10b981); }
.page-header-ai-daily-life       { background: linear-gradient(135deg, #f59e0b, #eab308); }
.page-header-ai-mistakes         { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.page-header-critical-thinking   { background: linear-gradient(135deg, #ec4899, #f43f5e); }

.page-header-safety,
.safety .page-header             { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.page-header-scams               { background: linear-gradient(135deg, #ef4444, #f97316); }
.page-header-safe-communication  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.page-header-digital-wellbeing   { background: linear-gradient(135deg, #f59e0b, #f97316); }
.page-header-privacy             { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

.page-header-activities,
.page-header-spot-the-fake,
.activity-header-spot            { background: linear-gradient(135deg, #ef4444, #f97316); }

.page-header-be-the-ai,
.activity-header-be-ai           { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

.page-header-quiz,
.activity-header-quiz            { background: linear-gradient(135deg, #22c55e, #16a34a); }

.page-header-parent              { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.page-header-conversation        { background: linear-gradient(135deg, #22c55e, #16a34a); }
.page-header-teaching            { background: linear-gradient(135deg, #f59e0b, #f97316); }
.page-header-understanding       { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.page-header-monitoring          { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }

.page-header-resources           { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.page-header-feedback            { background: linear-gradient(135deg, #ec4899, #f97316); }

[class*="icon-circle"],
[class*="step-letter-"],
[class*="privacy-icon-"],
[class*="related-icon-"],
[class*="progress-circle-"],
[class*="tips-circle"],
.understanding-circle-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

[class*="step-letter-"],
[class*="privacy-icon-"],
.progress-circle-easy,
.progress-circle-medium,
.progress-circle-hard,
.understanding-circle-1 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.icon-circle-spot,
.icon-circle-quiz,
.icon-circle-be-ai,
.icon-circle-feedback,
.related-icon-be-ai,
.related-icon-spot,
.tips-circle,
.tips-circle-primary,
.tips-circle-warning,
.tips-circle-info,
.tips-circle-success,
.next-steps-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.icon-circle-what-is,
.icon-circle-how-works,
.icon-circle-mistakes,
.icon-circle-daily-life,
.icon-circle-thinking,
.icon-circle-framework {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xl);
}

.icon-circle-understanding,
.icon-circle-conversation,
.icon-circle-monitoring,
.icon-circle-teaching,
.icon-circle-classification,
.icon-circle-recommendation,
.icon-circle-prediction {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.icon-circle-misinformation,
.icon-circle-privacy,
.icon-circle-safe-use,
.icon-circle-red-flags,
.icon-circle-basics,
.icon-circle-safety,
.icon-circle-mixed,
.icon-circle-advanced {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.icon-circle-what-is,
.icon-circle-misinformation,
.icon-circle-classification,
.icon-circle-be-ai,
.icon-circle-understanding,
.icon-circle-basics,
.related-icon-be-ai {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.icon-circle-how-works {
    background: linear-gradient(135deg, #059669, #10b981);
}

.icon-circle-safe-use,
.icon-circle-framework,
.icon-circle-quiz,
.icon-circle-conversation,
.icon-circle-mixed {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.icon-circle-mistakes,
.icon-circle-monitoring {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.icon-circle-daily-life,
.icon-circle-prediction {
    background: linear-gradient(135deg, #f59e0b, #eab308);
}

.icon-circle-recommendation {
    background: linear-gradient(135deg, #f59e0b, #eab308);
}

.icon-circle-red-flags,
.icon-circle-teaching,
.icon-circle-advanced {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.icon-circle-thinking {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.icon-circle-privacy,
.icon-circle-spot,
.related-icon-spot,
.icon-circle-safety {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.step-letter-r { background: #ef4444; }
.step-letter-e { background: #f59e0b; }
.step-letter-a { background: #0ea5e9; }
.step-letter-l { background: #22c55e; }
[class*="step-letter-"] { font-size: 1.25rem; }

.privacy-icon-blue   { background: #dbeafe; }
.privacy-icon-green  { background: #dcfce7; }
.privacy-icon-yellow { background: #fef3c7; }
.privacy-icon-pink   { background: #fce7f3; }

.progress-circle-easy   { background: #dcfce7; }
.progress-circle-medium { background: #dbeafe; }
.progress-circle-hard   { background: #fef3c7; }

.tips-circle       { width: 60px; height: 60px; }
.badge-circle-step { width: 35px; height: 35px; line-height: 20px; }
.stat-circle       { width: 70px; height: 70px; }
.flag-large-icon   { font-size: 4rem; }

.card-gradient-purple    { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.card-gradient-info      { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.card-gradient-yellow    { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.card-gradient-green     { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.card-gradient-resources { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.card-bg-purple-gradient { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.card-header-gradient    { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.topic-card-gradient     { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.certificate-card        { background: linear-gradient(135deg, #fef3c7, #fde68a); }

.quiz-choice-card {
    transition: all var(--transition-normal);
}

.quiz-choice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl) !important;
}

.quiz-choice-card:hover .icon-circle { transform: scale(1.08); }
.quiz-choice-card .icon-circle { transition: transform var(--transition-normal); }

.topic-badge { font-size: 0.875rem; font-weight: 500; }

.certificate-preview {
    transform: rotate(-2deg);
    transition: transform var(--transition-normal);
}

.certificate-preview:hover { transform: rotate(0deg); }

:root {
    --game-primary:    #6366f1;
    --game-secondary:  #8b5cf6;
    --game-success:    #10b981;
    --game-danger:     #ef4444;
    --game-warning:    #f59e0b;
    --game-info:       #06b6d4;
    --game-gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
    --game-gradient-2: linear-gradient(135deg, #10b981, #059669);
    --game-gradient-3: linear-gradient(135deg, #f59e0b, #d97706);
    --game-gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --game-shadow:     0 20px 40px -12px rgba(0,0,0,0.20);
    --game-shadow-lg:  0 28px 52px -15px rgba(0,0,0,0.24);
    --game-radius:     var(--radius-2xl);
    --game-transition: all 0.4s var(--ease-out-expo);
}

.game-container-enterprise {
    background: linear-gradient(180deg, var(--bg-muted) 0%, var(--gray-200) 100%);
    border-radius: var(--game-radius);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.game-container-enterprise::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
}

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

.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-top);
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 3s ease-out forwards;
}

.confetti.circle   { border-radius: 50%; }
.confetti.square   { border-radius: 2px; }
.confetti.triangle {
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid currentColor;
    background: transparent !important;
}

@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) scale(0); opacity: 0; }
}

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--game-primary);
    opacity: 0.5;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 40%; animation-delay: 1s; }
.particle:nth-child(4) { left: 55%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 70%; animation-delay: 2s; }
.particle:nth-child(6) { left: 85%; animation-delay: 2.5s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(100%) scale(0); opacity: 0; }
    50%      { transform: translateY(-50vh) scale(1); opacity: 0.5; }
}

.game-header-enterprise {
    background: var(--game-gradient-1);
    border-radius: var(--game-radius);
    padding: 1.375rem 1.75rem;
    margin-bottom: 1.75rem;
    color: var(--text-inverse);
    box-shadow: var(--game-shadow);
    position: relative;
    overflow: hidden;
}

.game-header-enterprise::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(25%, -25%);
}

.game-title-enterprise {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.08);
    letter-spacing: var(--tracking-tight);
}

.game-subtitle-enterprise {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0.375rem 0 0;
    font-weight: 400;
}

.progress-enterprise {
    height: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-enterprise {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
    border-radius: var(--radius-full);
    transition: width 0.6s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.progress-bar-enterprise::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-inverse);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.score-display-enterprise {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(255,255,255,0.1);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.score-value {
    font-family: var(--font-accent);
    font-size: 1.375rem;
    font-weight: 700;
    transition: transform var(--transition-normal), color var(--transition-normal);
    font-variant-numeric: tabular-nums;
}

.score-value.score-bump {
    animation: scoreBump 0.4s ease;
    color: #fbbf24;
}

@keyframes scoreBump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.score-label {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    font-weight: 600;
}

.streak-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: 0.45rem 0.875rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    animation: streakPulse 1s ease-in-out infinite;
}

.streak-counter.mega-streak {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
    animation: megaStreakGlow 0.5s ease-in-out infinite alternate;
}

@keyframes streakPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

@keyframes megaStreakGlow {
    0%   { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45); }
    100% { box-shadow: 0 4px 24px rgba(139, 92, 246, 0.7), 0 0 32px rgba(139, 92, 246, 0.3); }
}

.streak-icon {
    font-size: 1.1rem;
    animation: flameFlicker 0.3s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
    0%   { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

.game-option-enterprise {
    background: var(--bg-surface);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.125rem;
    cursor: pointer;
    transition: var(--game-transition);
    position: relative;
    overflow: hidden;
}

.game-option-enterprise::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--game-gradient-1);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.game-option-enterprise:hover {
    transform: translateY(-3px);
    border-color: var(--game-primary);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.15);
}

.game-option-enterprise:hover::before { opacity: 0.04; }

.game-option-enterprise.selected {
    border-color: var(--game-primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
}

.game-option-enterprise.correct {
    border-color: var(--game-success);
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(5,150,105,0.1));
    animation: correctPulse 0.5s ease;
}

.game-option-enterprise.incorrect {
    border-color: var(--game-danger);
    background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(220,38,38,0.1));
    animation: shake 0.5s ease;
}

@keyframes correctPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.015); }
    100% { transform: scale(1); }
}

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

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--game-gradient-1);
    color: var(--text-inverse);
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-right: 0.875rem;
    flex-shrink: 0;
    transition: var(--game-transition);
}

.game-option-enterprise:hover .option-letter {
    transform: scale(1.08) rotate(-3deg);
}

.comparison-card-enterprise {
    background: var(--bg-surface);
    border-radius: var(--game-radius);
    overflow: hidden;
    box-shadow: var(--game-shadow);
    transition: var(--game-transition);
    cursor: pointer;
    position: relative;
}

.comparison-card-enterprise::after {
    content: 'SELECT';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.875rem;
    background: var(--game-gradient-1);
    color: var(--text-inverse);
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.comparison-card-enterprise:hover {
    transform: scale(1.02);
    box-shadow: var(--game-shadow-lg);
}

.comparison-card-enterprise:hover::after { transform: translateY(0); }

.comparison-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.comparison-card-enterprise:hover .comparison-image { transform: scale(1.08); }

.comparison-label {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    background: rgba(0,0,0,0.65);
    color: var(--text-inverse);
    padding: 0.45rem 0.875rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.feedback-card-enterprise {
    background: var(--bg-surface);
    border-radius: var(--game-radius);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--game-shadow);
    animation: feedbackSlide 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

@keyframes feedbackSlide {
    0%   { transform: translateY(24px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

.feedback-card-enterprise.correct   { border-top: 4px solid var(--game-success); }
.feedback-card-enterprise.incorrect { border-top: 4px solid var(--game-danger); }

.feedback-card-enterprise.correct::before,
.feedback-card-enterprise.incorrect::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.feedback-card-enterprise.correct::before {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
}

.feedback-card-enterprise.incorrect::before {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
}

.feedback-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.875rem;
    animation: iconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconPop {
    0%   { transform: scale(0); }
    100% { transform: scale(1); }
}

.feedback-icon.correct {
    background: var(--game-gradient-2);
    color: var(--text-inverse);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.feedback-icon.incorrect {
    background: var(--game-gradient-danger);
    color: var(--text-inverse);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

.feedback-title {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
}

.feedback-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.results-enterprise {
    text-align: center;
    padding: 2.5rem 1.75rem;
    position: relative;
}

.results-badge {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    animation: badgeReveal 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    letter-spacing: 0.02em;
}

@keyframes badgeReveal {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0);       opacity: 1; }
}

.badge-expert       { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35); }
.badge-advanced     { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: var(--text-inverse); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35); }
.badge-intermediate { background: linear-gradient(135deg, #06b6d4, #0891b2); color: var(--text-inverse); box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35); }
.badge-beginner     { background: linear-gradient(135deg, #64748b, #475569); color: var(--text-inverse); box-shadow: 0 8px 24px rgba(100, 116, 139, 0.35); }

.results-trophy {
    font-size: 4.5rem;
    margin-bottom: 0.875rem;
    animation: trophyBounce 1s ease infinite;
}

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

.stat-card-enterprise {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 1.375rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--game-transition);
    position: relative;
    overflow: hidden;
}

.stat-card-enterprise::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--stat-color, var(--game-primary));
}

.stat-card-enterprise.success::before { background: var(--game-success); }
.stat-card-enterprise.danger::before  { background: var(--game-danger); }
.stat-card-enterprise.primary::before { background: var(--game-primary); }
.stat-card-enterprise.warning::before { background: var(--game-warning); }
.stat-card-enterprise.info::before    { background: var(--game-info); }

.stat-card-enterprise:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-enterprise .stat-icon {
    width: 46px;
    height: 46px;
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem;
    font-size: 1.2rem;
    color: var(--game-primary);
}

.stat-card-enterprise.success .stat-icon { color: var(--game-success); background: rgba(16, 185, 129, 0.08); }
.stat-card-enterprise.danger  .stat-icon { color: var(--game-danger);  background: rgba(239, 68, 68, 0.08); }
.stat-card-enterprise.warning .stat-icon { color: var(--game-warning); background: rgba(245, 158, 11, 0.08); }
.stat-card-enterprise.info    .stat-icon { color: var(--game-info);    background: rgba(6, 182, 212, 0.08); }

.stat-card-enterprise .stat-value {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-card-enterprise .stat-label {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-number-enterprise {
    font-family: var(--font-accent);
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--game-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label-enterprise {
    font-family: var(--font-primary);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.375rem;
    font-weight: 600;
}

.btn-game-primary {
    background: var(--game-gradient-1);
    border: none;
    color: var(--text-inverse);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--game-transition);
    position: relative;
    overflow: hidden;
}

.btn-game-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-game-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.btn-game-primary:hover::before { width: 280px; height: 280px; }

.btn-game-secondary {
    background: var(--bg-surface);
    border: 2px solid var(--game-primary);
    color: var(--game-primary);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--game-transition);
}

.btn-game-secondary:hover {
    background: var(--game-primary);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.25);
}

.btn-game-success {
    background: var(--game-gradient-2);
    border: none;
    color: var(--text-inverse);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--game-transition);
}

.btn-game-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.timer-enterprise {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(0,0,0,0.08);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: var(--font-mono);
}

.timer-enterprise.warning {
    background: rgba(239, 68, 68, 0.15);
    color: var(--game-danger);
    animation: timerWarning 0.5s ease-in-out infinite;
}

@keyframes timerWarning {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

.timer-icon  { font-size: 1.1rem; }
.timer-value { font-size: 1.2rem; min-width: 56px; }

.achievement-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-2xl);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    max-width: 340px;
    animation: achievementSlide 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes achievementSlide {
    0%   { transform: translateX(100%) scale(0.5); opacity: 0; }
    100% { transform: translateX(0) scale(1);      opacity: 1; }
}

.achievement-toast.hiding {
    animation: achievementHide 0.3s ease forwards;
}

@keyframes achievementHide {
    0%   { transform: translateX(0) scale(1); opacity: 1; }
    100% { transform: translateX(100%) scale(0.5); opacity: 0; }
}

.achievement-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    background: var(--game-gradient-3);
    color: var(--text-inverse);
    animation: achievementPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes achievementPop {
    0%   { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0); }
}

.achievement-content h5 {
    margin: 0 0 0.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

.achievement-content p {
    margin: 0;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.question-card-enterprise {
    background: var(--bg-surface);
    border-radius: var(--game-radius);
    padding: 2.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    position: relative;
    animation: questionFadeIn 0.5s var(--ease-out-expo);
    border: 1px solid rgba(0,0,0,0.04);
}

@keyframes questionFadeIn {
    0%   { transform: translateY(16px) scale(0.98); opacity: 0; }
    100% { transform: translateY(0) scale(1);       opacity: 1; }
}

.question-number {
    position: absolute;
    top: -14px;
    left: 1.75rem;
    background: var(--game-gradient-1);
    color: var(--text-inverse);
    padding: 0.4rem 1.125rem;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    letter-spacing: 0.02em;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    padding-top: 0.875rem;
}

.mode-card-enterprise {
    background: var(--bg-surface);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--game-radius);
    padding: 1.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.mode-card-enterprise::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--game-gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out-expo);
}

.mode-card-enterprise:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.mode-card-enterprise:hover::before { transform: scaleX(1); }

.mode-icon-enterprise {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.875rem;
    transition: all 0.4s var(--ease-out-expo);
}

.mode-card-enterprise:hover .mode-icon-enterprise {
    transform: scale(1.08) rotate(-3deg);
}

.mode-card-enterprise h5 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.375rem; letter-spacing: var(--tracking-tight); }
.mode-card-enterprise p  { color: var(--text-muted); font-size: 0.85rem; margin: 0; line-height: var(--leading-relaxed); }

.difficulty-selector {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    margin: 1.75rem 0;
}

.difficulty-btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-200);
    background: var(--bg-surface);
    cursor: pointer;
    transition: var(--game-transition);
    font-weight: 600;
}

.difficulty-btn:hover { border-color: var(--game-primary); }

.difficulty-btn.active {
    background: var(--game-gradient-1);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.difficulty-btn.easy.active {
    background: var(--game-gradient-2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.difficulty-btn.hard.active {
    background: var(--game-gradient-danger);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--game-transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--game-primary);
}

.sound-toggle:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
}

.sound-toggle.muted { color: var(--gray-400); }

.round-indicator {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.round-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: var(--game-transition);
}

.round-dot.completed {
    background: var(--game-success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.round-dot.current {
    background: var(--game-primary);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
    animation: currentRoundPulse 1s ease-in-out infinite;
}

@keyframes currentRoundPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.45); }
    50%      { box-shadow: 0 0 20px rgba(99, 102, 241, 0.7); }
}

.round-dot.incorrect {
    background: var(--game-danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

.loading-enterprise { text-align: center; padding: 3.5rem 1.75rem; }

.loading-spinner-enterprise {
    width: 52px;
    height: 52px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--game-primary);
    border-radius: 50%;
    animation: spinEnterprise 1s linear infinite;
    margin: 0 auto 1.25rem;
}

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

.loading-dots {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
}

.loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--game-primary);
    animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }

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

.certificate-enterprise {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
    border: 6px solid #f59e0b;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-2xl);
}

.certificate-enterprise::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 2px dashed #d97706;
    border-radius: var(--radius-md);
    pointer-events: none;
}

.certificate-seal {
    position: absolute;
    bottom: -28px;
    right: 28px;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

.tip-box-enterprise {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    border-left: 4px solid var(--game-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.125rem;
    margin: 1.25rem 0;
}

.tip-box-enterprise i      { color: var(--game-primary); font-size: 1.1rem; }
.tip-box-enterprise strong  { color: var(--game-primary); }

.quiz-review { max-width: 900px; margin: 0 auto; }

.review-header {
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--gray-200);
}

.review-card {
    background: var(--bg-surface);
    border-radius: var(--game-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--game-transition);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.review-card.correct   { border-left: 4px solid var(--game-success); }
.review-card.incorrect { border-left: 4px solid var(--game-danger); }

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--gray-100);
}

.review-question-number { font-weight: 600; color: var(--gray-600); }

.review-badge {
    padding: 0.3rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.review-badge.success { background: rgba(16, 185, 129, 0.08); color: var(--game-success); }
.review-badge.danger  { background: rgba(239, 68, 68, 0.08);  color: var(--game-danger); }

.review-card-body { padding: 1.25rem; }

.review-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.review-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.875rem;
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: var(--game-transition);
}

.review-option .option-letter {
    width: 30px;
    height: 30px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.875rem;
    flex-shrink: 0;
}

.review-option .option-text { flex: 1; color: var(--gray-600); }

.review-option.correct-answer {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--game-success);
}

.review-option.correct-answer .option-letter { background: var(--game-success); color: var(--text-inverse); }
.review-option.correct-answer .option-text   { color: #065f46; font-weight: 500; }

.review-option.user-wrong {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--game-danger);
}

.review-option.user-wrong .option-letter { background: var(--game-danger); color: var(--text-inverse); }
.review-option.user-wrong .option-text   { color: #991b1b; text-decoration: line-through; }

.review-option.user-correct {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--game-success);
}

.review-option .correct-icon { color: var(--game-success); font-size: 1.1rem; margin-left: auto; }
.review-option .wrong-icon   { color: var(--game-danger);  font-size: 1.1rem; margin-left: auto; }

.review-explanation {
    margin-top: 1rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.06));
    border-radius: var(--radius-lg);
    color: #4338ca;
    font-size: 0.9rem;
    line-height: 1.6;
}

.review-explanation i { color: var(--accent); }

.question-hint {
    background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(99,102,241,0.08));
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    color: #0369a1;
    font-size: 0.875rem;
    border-left: 3px solid var(--game-info);
}

.question-hint i { color: var(--game-info); }

.results-time {
    background: var(--bg-muted);
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.results-time i { color: var(--game-primary); }

@keyframes rainbowGlow {
    0%   { box-shadow: 0 0 16px #ff0000; }
    14%  { box-shadow: 0 0 16px #ff7f00; }
    28%  { box-shadow: 0 0 16px #ffff00; }
    42%  { box-shadow: 0 0 16px #00ff00; }
    56%  { box-shadow: 0 0 16px #0000ff; }
    70%  { box-shadow: 0 0 16px #4b0082; }
    84%  { box-shadow: 0 0 16px #9400d3; }
    100% { box-shadow: 0 0 16px #ff0000; }
}

.perfect-score { animation: rainbowGlow 2s linear infinite; }

@keyframes starBurst {
    0%   { transform: scale(0) rotate(0deg);   opacity: 1; }
    100% { transform: scale(2) rotate(180deg); opacity: 0; }
}

.star-burst { animation: starBurst 0.6s ease-out forwards; }

.text-gradient-primary {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cool {
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-aurora {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.glass-card-dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    color: var(--text-inverse);
}

.prose {
    font-size: 1rem;
    line-height: var(--leading-relaxed);
    color: var(--text-body);
    max-width: var(--content-width);
}

.prose h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: var(--tracking-tight);
}

.prose h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.prose li {
    margin-bottom: 0.375rem;
    line-height: var(--leading-relaxed);
}

.prose blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    background: var(--primary-50);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--gray-100);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
}

.prose pre {
    font-family: var(--font-mono);
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.bg-dots {
    background-image: radial-gradient(circle, var(--gray-300) 1px, transparent 1px);
    background-size: 20px 20px;
}

.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);
    background-size: 24px 24px;
}

.number-display {
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    font-feature-settings: 'tnum';
}

.underline-gradient {
    background-image: linear-gradient(120deg, var(--primary-lighter) 0%, var(--secondary-light) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
    padding: 0 0.15em;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    letter-spacing: 0.02em;
}

.tag-success {
    background: var(--success-50);
    color: var(--success-dark);
    border-color: rgba(16, 185, 129, 0.1);
}

.tag-warning {
    background: var(--warning-50);
    color: var(--warning-dark);
    border-color: rgba(245, 158, 11, 0.1);
}

.tag-danger {
    background: var(--danger-50);
    color: var(--danger-dark);
    border-color: rgba(239, 68, 68, 0.1);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    margin: 1.5rem auto;
}

.divider-left {
    margin-left: 0;
    margin-right: auto;
}

.focus-ring:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.img-smooth {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }
.font-accent { font-family: var(--font-accent); }

.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

@media print {
    @page {
        size: A4;
        margin: 2cm;
    }

    @page :first { margin-top: 1cm; }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html { font-size: 12pt; }

    body {
        font-family: 'Georgia', 'Times New Roman', serif;
        line-height: 1.5;
        color: #000 !important;
        background: #fff !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    h1 { font-size: 24pt; }
    h2 { font-size: 18pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 12pt; }

    p { orphans: 3; widows: 3; }

    .navbar, .footer, .btn-back-to-top, .sidebar, .breadcrumb-section,
    .social-links, .btn, button, .no-print, .dropdown-menu, .alert,
    video, audio, iframe, .quiz-container, .interactive-demo,
    form, input, select, textarea, .floating-card, .hero-pattern,
    .btn-game-primary, .btn-game-secondary, .sound-toggle {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .row { display: block !important; }

    .col-lg-8, .col-lg-9, .col-md-8 {
        width: 100% !important;
        max-width: none !important;
    }

    .hero-section, .page-header {
        background: none !important;
        color: #000 !important;
        padding: 1cm 0 !important;
        text-align: center;
        border-bottom: 2pt solid #000;
        margin-bottom: 1cm;
    }

    .hero-title, .hero-section h1, .page-header h1 {
        color: #000 !important;
        margin-bottom: 0.5cm;
        text-shadow: none !important;
    }

    .hero-subtitle, .page-header p { color: #333 !important; }

    .content-block, .card, .content-section {
        background: #fff !important;
        box-shadow: none !important;
        border: 1pt solid #ccc !important;
        border-radius: 0 !important;
        padding: 0.5cm !important;
        margin-bottom: 0.5cm !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .card-body { padding: 0.5cm !important; }

    .highlight-box {
        background: #f5f5f5 !important;
        border-left: 4pt solid #333 !important;
        padding: 0.5cm !important;
        margin: 0.5cm 0 !important;
        page-break-inside: avoid;
    }

    .highlight-box.warning { border-left-color: #f59e0b !important; }
    .highlight-box.danger  { border-left-color: #ef4444 !important; }
    .highlight-box.success { border-left-color: #10b981 !important; }

    ul, ol { padding-left: 1cm; }
    li { margin-bottom: 0.25cm; }

    .checklist { list-style: none; padding-left: 0; }

    .checklist li {
        position: relative;
        padding-left: 1.5cm;
        margin-bottom: 0.5cm;
    }

    .checklist li::before {
        content: "☐";
        position: absolute;
        left: 0;
        font-size: 14pt;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .hero-image { display: none; }

    figure {
        page-break-inside: avoid;
        text-align: center;
        margin: 0.5cm 0;
    }

    figcaption { font-size: 10pt; font-style: italic; color: #666; }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: avoid;
        margin: 0.5cm 0;
    }

    th, td {
        border: 1pt solid #ccc !important;
        padding: 0.25cm !important;
        text-align: left;
    }

    th { background: #f5f5f5 !important; font-weight: bold; }
    thead { display: table-header-group; }

    a { color: #000 !important; text-decoration: none !important; }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
        word-break: break-all;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after { content: ""; }

    .accordion-collapse { display: block !important; height: auto !important; }

    .accordion-button {
        background: #f5f5f5 !important;
        font-weight: bold !important;
        padding: 0.3cm !important;
    }

    .accordion-button::after { display: none !important; }
    .accordion-body { padding: 0.5cm !important; }

    
    .worksheet-header {
        text-align: center;
        border-bottom: 2pt solid #000;
        padding-bottom: 0.5cm;
        margin-bottom: 1cm;
    }

    .worksheet-header .logo { max-height: 2cm; margin-bottom: 0.5cm; }
    .worksheet-title   { font-size: 20pt; font-weight: bold; margin-bottom: 0.25cm; }
    .worksheet-subtitle { font-size: 12pt; color: #666; }

    .student-info {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5cm;
        margin-bottom: 1cm;
        padding: 0.5cm;
        border: 1pt solid #ccc;
    }

    .student-info .field { flex: 1 1 45%; }
    .student-info label  { font-weight: bold; margin-right: 0.25cm; }
    .student-info .line  { border-bottom: 1pt solid #000; display: inline-block; min-width: 5cm; }

    .activity-section { margin-bottom: 1cm; page-break-inside: avoid; }

    .activity-title {
        font-size: 14pt;
        font-weight: bold;
        border-bottom: 1pt solid #ccc;
        padding-bottom: 0.25cm;
        margin-bottom: 0.5cm;
    }

    .activity-instructions {
        background: #f9f9f9;
        padding: 0.5cm;
        margin-bottom: 0.5cm;
        border-left: 3pt solid #666;
    }

    .writing-space {
        border: 1pt solid #ccc;
        min-height: 4cm;
        margin: 0.5cm 0;
        padding: 0.25cm;
    }

    .writing-space.large { min-height: 8cm; }

    .writing-space-lines {
        background: repeating-linear-gradient(transparent, transparent 1.5em, #ccc 1.5em, #ccc calc(1.5em + 1pt));
        min-height: 4cm;
        margin: 0.5cm 0;
    }

    .mc-options { list-style: none; padding: 0; margin: 0.5cm 0; }

    .mc-options li {
        padding-left: 1cm;
        margin-bottom: 0.5cm;
        position: relative;
    }

    .mc-options li::before {
        content: "○";
        position: absolute;
        left: 0;
        font-size: 12pt;
    }

    .tf-question {
        display: flex;
        align-items: center;
        margin-bottom: 0.5cm;
        padding: 0.25cm;
        border-bottom: 1pt dotted #ccc;
    }

    .tf-question .options { margin-left: auto; white-space: nowrap; }

    .tf-question .options span {
        display: inline-block;
        width: 1cm; height: 1cm;
        border: 1pt solid #000;
        text-align: center;
        line-height: 1cm;
        margin-left: 0.25cm;
    }

    .rating-scale { display: flex; justify-content: space-between; margin: 0.5cm 0; }
    .rating-scale .option { text-align: center; flex: 1; }

    .rating-scale .circle {
        width: 0.8cm; height: 0.8cm;
        border: 1pt solid #000;
        border-radius: 50%;
        margin: 0 auto 0.25cm;
    }

    .rating-scale .label { font-size: 9pt; }

    .poster-layout { text-align: center; }
    .poster-title  { font-size: 28pt; font-weight: bold; margin-bottom: 1cm; }

    .poster-section {
        border: 2pt solid #333;
        padding: 0.5cm;
        margin-bottom: 0.5cm;
    }

    .poster-section h3 {
        background: #333;
        color: #fff !important;
        padding: 0.25cm;
        margin: -0.5cm -0.5cm 0.5cm;
    }

    .rule-item {
        display: flex;
        align-items: center;
        margin-bottom: 0.5cm;
        font-size: 14pt;
    }

    .rule-number {
        width: 1.5cm; height: 1.5cm;
        border-radius: 50%;
        background: #333;
        color: #fff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin-right: 0.5cm;
        flex-shrink: 0;
    }

    .print-page-number {
        position: fixed;
        bottom: 0.5cm;
        right: 0.5cm;
        font-size: 10pt;
        color: #999;
    }

    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0; right: 0;
        text-align: center;
        font-size: 9pt;
        color: #999;
        border-top: 1pt solid #ccc;
        padding-top: 0.25cm;
    }

    .certificate-enterprise {
        box-shadow: none;
        border-width: 4px;
    }

    .btn, .badge {
        background: #000 !important;
        color: #fff !important;
    }
}

.print-preview {
    max-width: 21cm;
    margin: 2cm auto;
    padding: 2cm;
    background: var(--bg-surface);
    box-shadow: var(--shadow-xl);
}

.print-preview .navbar,
.print-preview .footer,
.print-preview .btn-back-to-top {
    display: none;
}

@media (max-width: 575.98px) {
    html { font-size: 14px; }
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    h4, .h4 { font-size: 1.125rem; }

    .hero-section { padding: var(--spacing-xl) 0; text-align: center; }
    .hero-title   { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-image { margin-top: var(--spacing-xl); max-width: 80%; }
    .navbar-brand img { height: 35px; }
    .brand-text { font-size: 1rem; }
    .section { padding: var(--spacing-xl) 0; }
    .section-header h2 { font-size: 1.5rem; }
    .card-body { padding: var(--spacing-md); }
    .feature-card { padding: var(--spacing-lg); }
    .feature-card .icon-box { width: 60px; height: 60px; font-size: 1.5rem; }
    .stat-number { font-size: 2rem; }
    .content-block { padding: var(--spacing-md); }
    .rating-group { flex-wrap: wrap; }
    .rating-option { flex: 0 0 calc(20% - 8px); }
    .rating-option label { padding: var(--spacing-sm); }
    .quiz-question { font-size: 1.125rem; }
    .quiz-option { padding: var(--spacing-sm) var(--spacing-md); }
    .footer { text-align: center; }
    .footer .col-lg-4, .footer .col-lg-2 { margin-bottom: var(--spacing-lg); }
    .social-links { justify-content: center; display: flex; gap: var(--spacing-sm); }
    .btn-back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
    .page-header { padding: var(--spacing-xl) 0; }
    .page-header h1 { font-size: 1.5rem; }
    .sidebar { position: relative; top: 0; margin-bottom: var(--spacing-lg); }
    .activity-card .card-img-top { height: 150px; }
    .btn-lg { padding: var(--spacing-sm) var(--spacing-lg); font-size: 1rem; }
    .table-responsive { font-size: 0.875rem; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    html { font-size: 15px; }
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    .hero-section { padding: var(--spacing-2xl) 0; }
    .hero-title { font-size: 2rem; }
    .section { padding: var(--spacing-2xl) 0; }
    .feature-card { padding: var(--spacing-lg); }
    .stat-item { margin-bottom: var(--spacing-lg); }
    .footer .row > div { margin-bottom: var(--spacing-lg); }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section { padding: var(--spacing-2xl) 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-section h1 { font-size: 2.5rem !important; }
    .section-header h2 { font-size: 2rem; }
    .content-section { padding: 2rem; }

    .navbar-collapse {
        background: var(--bg-surface);
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: var(--spacing-sm);
    }

    .dropdown-menu-animate {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: var(--gray-50);
        border: none;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-menu-animate { display: none; }
    .dropdown.show .dropdown-menu-animate {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .sidebar { position: relative; top: 0; margin-bottom: var(--spacing-xl); }
    .content-block { padding: var(--spacing-lg); }
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        min-height: auto;
        padding: 3.5rem 0 !important;
    }
    .hero-section .row { min-height: auto !important; }
    .hero-section h1 { font-size: 2rem !important; margin-bottom: 1.25rem; }
    .hero-section p.lead { font-size: 1.05rem !important; margin-bottom: 1.75rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { margin-top: 1.75rem !important; }
    .floating-card { display: none !important; }
    .hero-illustration { margin-top: 1.75rem; }
    .hero-illustration img { max-height: 300px !important; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title { font-size: 2.75rem; }
    .nav-link { padding: var(--spacing-sm) var(--spacing-sm) !important; }
    .feature-card .icon-box { width: 70px; height: 70px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
    .hero-title { font-size: 3rem; }
    .btn-primary:hover { transform: translateY(-2px); }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.325rem; }
}

@media (max-width: 767.98px) {
    .card { margin-bottom: 1.25rem; }
    .card-body { padding: 1.25rem; }
    .feature-card { padding: 1.75rem 1.25rem; }
    .feature-card .icon-box { width: 64px; height: 64px; font-size: 1.6rem; }
    .btn { padding: 0.625rem 1.25rem; font-size: 0.92rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
    .page-header { padding: 2.5rem 0 !important; }
    .page-header h1 { font-size: 1.65rem !important; }
    .page-header p { font-size: 0.95rem !important; }
    section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.45rem; }
    .section-header p { font-size: 0.95rem; }
    .content-section { padding: 1.25rem; border-radius: var(--radius-xl); margin-bottom: 1.25rem; }
    .content-section h2 { font-size: 1.35rem; }
    .content-section h3 { font-size: 1.15rem; }
    .quiz-container { padding: 1.25rem; }
    .quiz-question { font-size: 1.05rem; }
    .quiz-option { padding: 0.875rem; }
    .quiz-option-letter { width: 36px; height: 36px; font-size: 0.95rem; }
    .stats-bar { padding: 1.75rem 0; }
    .stat-item .stat-number { font-size: 1.875rem; }
    .stat-item .stat-label { font-size: 0.825rem; }
    .footer { padding: 2.5rem 0 1.25rem; text-align: center; }
    .footer h5, .footer h6 { margin-bottom: 0.875rem; }
    .footer-links { margin-bottom: 1.75rem; }
    .social-links { justify-content: center; }
    .sidebar-card { margin-bottom: 0.875rem; }

    
    .game-header-enterprise { padding: 1rem; border-radius: var(--radius-xl); }
    .game-title-enterprise { font-size: 1.15rem; }
    .question-card-enterprise { padding: 1.25rem; border-radius: var(--radius-xl); }
    .question-text { font-size: 1.05rem; }
    .game-option-enterprise { padding: 0.875rem; }
    .stat-number-enterprise { font-size: 1.65rem; }
    .btn-game-primary,
    .btn-game-secondary,
    .btn-game-success { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
    .achievement-toast { right: 10px; left: 10px; max-width: none; }
    .comparison-image { height: 180px; }
}

@media (max-width: 576px) {
    .difficulty-selector { flex-direction: column; align-items: center; }
    .round-indicator { flex-wrap: wrap; }
    .score-display-enterprise { padding: 0.45rem 0.875rem; }
    .score-value { font-size: 1.1rem; }
}

@media (max-width: 374.98px) {
    .hero-section h1 { font-size: 1.5rem !important; }
    .hero-section .btn { width: 100%; margin-bottom: 0.625rem; }
    .badge { font-size: 0.7rem; padding: 0.35rem 0.625rem; }
    .content-section { padding: 1rem; }
}

@media (hover: hover) and (pointer: fine) {
    .nav-link:hover { background-color: rgba(var(--primary-rgb), 0.06); }
    .btn:hover { transform: translateY(-2px); }
    .quiz-option:hover { border-color: var(--primary); background-color: rgba(var(--primary-rgb), 0.04); }
}

@media (hover: none) {
    .card:hover, .btn:hover { transform: none; }
    .nav-link { padding: var(--spacing-md) !important; }
    .dropdown-item { padding: var(--spacing-md) var(--spacing-lg); }
    .btn:active { transform: scale(0.98); }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section { min-height: auto; padding: 1.75rem 0 !important; }
    .hero-section h1 { font-size: 1.65rem !important; }
    .navbar { padding: var(--spacing-xs) 0; }
    .page-header { padding: var(--spacing-md) 0; }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05); }
}

@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;
    }
    .card:hover, .btn:hover { transform: none; }
    .floating-card { animation: none !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media (prefers-color-scheme: dark) {
    
}
