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

:root {
  --bg: #0a0f1a;
  --bg-elevated: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-glass: rgba(10, 15, 26, 0.9);
  --modal-overlay-bg: rgba(0, 0, 0, 0.8);
  --border: #1f2937;
  --border-hover: #374151;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --accent-2: #d946ef;
  --accent-3: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(145deg, rgba(17,24,39,0.9) 0%, rgba(10,15,26,0.95) 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.15) 0%, transparent 70%), radial-gradient(ellipse at 80% 100%, rgba(217,70,239,0.1) 0%, transparent 60%), radial-gradient(ellipse at 0% 50%, rgba(6,182,212,0.08) 0%, transparent 50%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(139,92,246,0.3);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 1000;
  --z-toast: 2000;
  --header-height: 72px;
  --max-width: 1400px;
}

.light {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(248, 250, 252, 0.95);
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.08);
  --modal-overlay-bg: rgba(0, 0, 0, 0.5);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(241,245,249,0.95) 100%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; overflow-x: hidden; transition: background var(--transition), color var(--transition); }
#root { min-height: 100vh; display: flex; flex-direction: column; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
::selection { background: var(--accent-glow); color: var(--text); }

.app-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 1.5rem; padding: 2rem; text-align: center; position: fixed; inset: 0; background: var(--bg); z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; }
.app-loading.fade-out { opacity: 0; visibility: hidden; }
.loading-logo { width: 80px; height: 80px; border-radius: 20px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3); animation: pulse 2s ease-in-out infinite; }
.loading-text { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.loading-progress { width: 200px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loading-bar { height: 100%; background: var(--gradient-primary); border-radius: 2px; animation: progress 1.5s ease-in-out infinite; transform-origin: left; }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3); } 50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5); } }
@keyframes progress { 0% { width: 0; left: 0; } 50% { width: 70%; left: 0; } 100% { width: 0; left: 100%; } }

.particle-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.6; }

.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: var(--bg-glass); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: var(--z-sticky); transition: all var(--transition); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); }
.logo-icon { width: 40px; height: 40px; }
.logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-accent { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.5rem 1rem; border-radius: var(--radius); color: var(--text-secondary); font-weight: 500; font-size: 0.875rem; transition: all var(--transition-fast); position: relative; }
.nav-link:hover { color: var(--text); background: var(--bg-elevated); }
.nav-link::after { content: ''; position: absolute; bottom: 0.25rem; left: 50%; width: 0; height: 2px; background: var(--gradient-primary); border-radius: 1px; transition: all var(--transition); transform: translateX(-50%); }
.nav-link:hover::after { width: 80%; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle { width: 44px; height: 44px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); transition: all var(--transition-fast); }
.theme-toggle:hover { border-color: var(--accent); background: var(--bg-card); transform: scale(1.05); }
.theme-toggle svg { width: 20px; height: 20px; }
.icon-sun { display: none; } .icon-moon { display: block; } .light .icon-sun { display: block; } .light .icon-moon { display: none; }

/* ── Hero section ── */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--header-height) + 4rem) 1.5rem 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-gradient { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 60px 60px; }
.hero-orbs { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(139,92,246,0.6) 0%, transparent 70%); top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(217,70,239,0.5) 0%, transparent 70%); top: 20%; right: -80px; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(6,182,212,0.4) 0%, transparent 70%); bottom: -50px; left: 40%; }
.hero-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 2rem; }
.badge-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s ease-in-out infinite; flex-shrink: 0; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; color: var(--text); margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.7; color: var(--text-secondary); max-width: 650px; margin: 0 auto 2.5rem; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 3rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { margin-top: 1.5rem; }
.trust-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; text-align: center; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
/* ⚠️  FIX: brand icons in .logo-row must have a fixed small size */
.logo-row svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--text-muted); opacity: 0.6; }
.logo-row span { display: inline-flex; align-items: center; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.75rem; animation: bounce 2s ease-in-out infinite; z-index: 2; }
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ── Categories ── */
.categories { padding: 3rem 0 1rem; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--text); margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; line-height: 1.6; }
.categories-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; -ms-overflow-style: none; justify-content: center; flex-wrap: wrap; }
.categories-scroll::-webkit-scrollbar { display: none; }
.category-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; }
.category-btn:hover { border-color: var(--accent); color: var(--text); background: var(--bg-card); }
.category-btn.active { background: var(--gradient-primary); border-color: transparent; color: white; }
.cat-icon { font-size: 1rem; }
.cat-count { padding: 0.1rem 0.5rem; background: rgba(255,255,255,0.15); border-radius: 100px; font-size: 0.7rem; font-weight: 700; }
.category-btn:not(.active) .cat-count { background: var(--border); color: var(--text-muted); }

/* ── Courses grid ── */
.courses { padding: 2rem 0 4rem; }
.courses-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.toolbar-right { display: flex; align-items: center; gap: 0.75rem; }
.search-wrapper { display: flex; align-items: center; position: relative; flex: 1; max-width: 400px; }
.search-icon { position: absolute; left: 1rem; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
#courseSearch { width: 100%; padding: 0.75rem 2.75rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.875rem; outline: none; transition: all var(--transition-fast); }
#courseSearch:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-clear { position: absolute; right: 0.75rem; background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; }
.search-clear svg { width: 16px; height: 16px; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.view-btn { padding: 0.625rem; background: var(--bg-elevated); border: none; cursor: pointer; color: var(--text-muted); transition: all var(--transition-fast); }
.view-btn:hover { background: var(--bg-card); color: var(--text); }
.view-btn.active { background: var(--gradient-primary); color: white; }
.view-btn svg { width: 18px; height: 18px; }
.sort-select { padding: 0.625rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.875rem; cursor: pointer; outline: none; }
.results-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.courses-grid.list-view { grid-template-columns: 1fr; }
.courses-grid.list-view .course-card { flex-direction: row; }
.courses-grid.list-view .card-media { width: 280px; flex-shrink: 0; aspect-ratio: auto; height: auto; min-height: 180px; }
.courses-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; text-align: center; gap: 1rem; color: var(--text-secondary); }
.courses-empty svg { width: 48px; height: 48px; color: var(--text-muted); }
.courses-empty h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; text-decoration: none; transition: all var(--transition-fast); border: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); background: var(--bg-elevated); border-color: var(--border-hover); }
.btn-glass { background: var(--bg-glass); backdrop-filter: blur(20px); color: var(--text); border: 1px solid var(--border); }
.btn-glass:hover { border-color: var(--accent); background: var(--bg-card); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.125rem; }
.btn-light { background: white; color: var(--bg); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.btn-outline-light { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--border); align-items: center; justify-content: center; cursor: pointer; }
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 1px; transition: all var(--transition-fast); }
.mobile-menu { position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--bg-glass); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 1.5rem; z-index: var(--z-dropdown); display: none; }
.mobile-menu:not([hidden]) { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-link { padding: 1rem 1.25rem; border-radius: var(--radius); color: var(--text-secondary); font-weight: 500; text-decoration: none; transition: all var(--transition-fast); }
.mobile-nav-link:hover { color: var(--text); background: var(--bg-elevated); }
.mobile-divider { height: 1px; background: var(--border); margin: 1rem 0; }
.mobile-nav-link.btn-style { text-align: center; margin-top: 0.5rem; }

.course-card { position: relative; background: var(--gradient-card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); cursor: pointer; }
.course-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient-primary); opacity: 0; transition: opacity var(--transition); z-index: 0; pointer-events: none; }
.course-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--accent); box-shadow: var(--shadow-xl), var(--shadow-glow); z-index: 10; }
.course-card:hover::before { opacity: 0.03; }
.card-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.course-card:hover .card-image { transform: scale(1.1); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,15,26,0.9) 100%); display: flex; align-items: flex-end; justify-content: space-between; padding: 1.5rem; opacity: 0; transition: all var(--transition); }
.course-card:hover .card-overlay { opacity: 1; }
.btn-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; transition: all var(--transition-fast); }
.btn-icon:hover { background: var(--gradient-primary); border-color: transparent; transform: scale(1.1); box-shadow: var(--shadow-glow); }
.btn-icon svg { width: 20px; height: 20px; }
.card-badge { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 100px; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); z-index: 2; }
.card-level { position: absolute; top: 1rem; right: 1rem; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; z-index: 2; }
.level-principiante { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.level-intermedio { background: rgba(245, 158, 11, 0.2); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.level-avanzado { background: rgba(239, 68, 68, 0.2); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.level-todos { background: rgba(139, 92, 246, 0.2); color: var(--accent); border: 1px solid rgba(139, 92, 246, 0.3); }
.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-header { margin-bottom: 0.75rem; }
.card-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--text); margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-description { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 1rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.meta-item { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--text-muted); }
.meta-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); opacity: 0.7; }
.card-progress { margin-bottom: 1rem; }
.progress-bar-wrapper { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 0.375rem; }
.progress-bar { height: 100%; background: var(--gradient-primary); border-radius: 3px; transition: width 1s ease-out; }
.progress-text { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.card-footer { display: flex; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.card-enroll-btn { flex: 1; }
.features { padding: 5rem 0; background: linear-gradient(180deg, transparent 0%, rgba(139,92,246,0.03) 50%, transparent 100%); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { padding: 2rem; background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all var(--transition); }
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* ⚠️ FIX: icon container is fixed 56×56, svg inside is 28×28 — never grow */
.feature-icon { width: 56px; height: 56px; min-width: 56px; border-radius: var(--radius); background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; flex-shrink: 0; }
.feature-icon svg { width: 28px !important; height: 28px !important; min-width: 28px; min-height: 28px; max-width: 28px; max-height: 28px; color: white; flex-shrink: 0; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-secondary); line-height: 1.7; }
.testimonials { padding: 5rem 0; }
.testimonials-carousel { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; }
.testimonials-track { display: flex; transition: transform var(--transition-slow); }
.testimonial-card { padding: 2.5rem; background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 100%; box-sizing: border-box; }
.testimonial-slide { flex: 0 0 100%; width: 100%; }
.testimonial-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.testimonial-author h4 { font-weight: 700; color: var(--text); margin-bottom: 0.25rem; font-size: 1rem; }
.testimonial-author p { font-size: 0.875rem; color: var(--text-secondary); }
.testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; color: var(--warning); }
.testimonial-text { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-course { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--gradient-primary); border-radius: 100px; font-size: 0.875rem; font-weight: 600; color: white; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; transition: all var(--transition-fast); z-index: 10; }
.carousel-btn:hover { background: var(--gradient-primary); border-color: transparent; transform: translateY(-50%) scale(1.1); box-shadow: var(--shadow-glow); }
.carousel-btn svg { width: 24px; height: 24px; }
.carousel-prev { left: -24px; } .carousel-next { right: -24px; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: all var(--transition-fast); }
.carousel-dot.active { background: var(--gradient-primary); transform: scale(1.25); }
.cta-section { position: relative; padding: 6rem 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-gradient { position: absolute; inset: 0; background: var(--gradient-hero); }
.cta-pattern { position: absolute; inset: 0; background-image: 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='%238b5cf6' fill-opacity='0.02'%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"); opacity: 0.5; }
.cta-content { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.cta-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; color: var(--text); margin-bottom: 1rem; }
.cta-subtitle { font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); max-width: 500px; margin-bottom: 2rem; }
.cta-stats { display: flex; gap: 2.5rem; }
.cta-stat { text-align: left; }
.cta-stat-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.cta-stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); background: var(--bg-elevated); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 300px; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); margin-bottom: 1rem; }
.footer-tagline { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; max-width: 280px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all var(--transition-fast); }
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-column h4 { font-weight: 700; color: var(--text); margin-bottom: 1.25rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-column ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-column a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-column a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.copyright { color: var(--text-muted); font-size: 0.875rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge-item { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: 0.75rem; color: var(--text-secondary); }

.modal-overlay { position: fixed; inset: 0; background: var(--modal-overlay-bg, rgba(0,0,0,0.8)); backdrop-filter: blur(8px); z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: all var(--transition); }
.modal-overlay:not([hidden]) { opacity: 1; visibility: visible; }
/* ⚠️ FIX: modal now compact 500px, single column, image 1:1 on top */
.modal-container { position: relative; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-xl); max-width: 500px; width: 100%; max-height: 92vh; overflow-y: auto; overflow-x: hidden; transform: scale(0.9) translateY(20px); transition: all var(--transition-bounce); }
.modal-overlay:not([hidden]) .modal-container { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; z-index: 10; transition: all var(--transition-fast); }
.modal-close:hover { background: var(--gradient-primary); border-color: transparent; transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
/* Single column: image on top, details below */
.modal-content { display: flex; flex-direction: column; }
.modal-image-wrapper { position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 320px; overflow: hidden; }
.modal-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); display: block; }
.modal-overlay:not([hidden]) .modal-image-wrapper img { transform: none; }
.image-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,15,26,0.92) 100%); display: flex; align-items: flex-end; padding: 1.25rem; pointer-events: none; }
.image-info { width: 100%; }
.modal-course-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: white; margin-bottom: 0.25rem; line-height: 1.3; }
.modal-course-desc { color: rgba(255,255,255,0.75); line-height: 1.5; font-size: 0.825rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.modal-details { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.modal-meta { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-meta-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); font-size: 0.825rem; }
.modal-meta-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.modal-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Certificate form styles */
.certificate-form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Modal mini progress bar */
.modal-mini-progress {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.progress-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-mini-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.progress-mini-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-mini-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

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

/* Modal status badges */
.modal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-status-badge.enrolled {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.modal-status-badge.completed {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.2));
  color: var(--accent);
  border: 1px solid var(--accent);
}

.modal-status-badge.certified {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(245, 158, 11, 0.2));
  color: var(--warning);
  border: 1px solid var(--warning);
}

.modal-status-badge svg {
  width: 14px;
  height: 14px;
}

/* Modal action buttons */
.modal-actions .btn {
  flex: 1;
}

/* Toast form validation error shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.form-group input.error,
.form-group select.error {
  border-color: var(--danger);
  animation: shake 0.4s ease;
}

.form-group input.error:focus,
.form-group select.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* Certificate preview in toast */
.toast .certificate-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-card);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-top: 0.25rem;
  display: inline-block;
}

/* Modal completion/certificate badges */
.completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  color: var(--success);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.completion-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.certificate-badge {
  display: inline-flex;
  flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: center;
}

.certificate-badge svg {
  width: 28px;
  height: 28px;
  color: var(--warning);
  margin-bottom: 0.5rem;
}

.certificate-badge span {
  font-weight: 600;
  color: var(--text);
}

.cert-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-card);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--warning);
  margin-top: 0.25rem;
}

/* Progress mini bar in modal */
.progress-mini {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.progress-mini-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

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

.progress-mini-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Toast form validation error shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.form-group input.error,
.form-group select.error {
  border-color: var(--danger);
  animation: shake 0.4s ease;
}

.form-group input.error:focus,
.form-group select.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* Exam Modal Styles */
.exam-modal-container {
  max-width: 800px;
  max-height: 95vh;
}

.exam-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 90vh;
}

.exam-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.exam-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

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

.exam-progress-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.exam-timer {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-glass);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: color 0.3s ease;
}

.exam-timer.warning {
  color: var(--warning);
  animation: pulse 1s infinite;
}

.exam-timer.danger {
  color: var(--danger);
  animation: pulse 0.5s infinite;
}

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

.exam-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.exam-question {
  animation: fadeIn 0.3s ease;
}

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

.exam-question-header {
  margin-bottom: 1rem;
}

.exam-question-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exam-question-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.exam-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exam-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exam-option:hover {
  border-color: var(--accent);
  background: var(--bg-glass);
}

.exam-option.selected {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.exam-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.exam-option-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.exam-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-wrap: wrap;
}

.exam-footer .btn {
  flex: 1;
  max-width: 200px;
}

/* Results Overlay */
.exam-results-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
}

.exam-results-overlay.show {
  opacity: 1;
  visibility: visible;
}

.exam-results-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.4s ease;
}

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

.exam-results-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.exam-results-icon.passed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
  border: 2px solid var(--success);
  color: var(--success);
}

.exam-results-icon.failed {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
  border: 2px solid var(--danger);
  color: var(--danger);
}

.exam-results-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.exam-results-score {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.exam-results-details {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.exam-results-details p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.success-text {
  color: var(--success) !important;
  font-weight: 600;
}

.retry-text {
  color: var(--warning) !important;
  font-weight: 600;
}

.exam-results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.exam-results-actions .btn {
  flex: 1;
  min-width: 160px;
}

/* Exam Unlock Notice */
.exam-unlock-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.exam-unlock-notice svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.exam-unlock-notice strong {
  color: var(--text);
}

/* Exam Failed Notice */
.exam-failed-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.exam-failed-notice svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Exam Passed Badge */
.exam-passed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--success);
  border-radius: var(--radius);
  color: var(--success);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.exam-passed-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Completion Badge */
.completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--success);
  border-radius: var(--radius);
  color: var(--success);
  font-weight: 600;
  margin-bottom: 1rem;
}

.completion-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Exam Review */
.exam-review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.exam-review-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.exam-review-item.correct {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.exam-review-item.incorrect {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

.exam-review-question {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.exam-review-answer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exam-review-answer .correct {
  color: var(--success);
  font-weight: 600;
}

.exam-review-answer .incorrect {
  color: var(--danger);
  font-weight: 600;
}

.correct-answer {
  color: var(--success) !important;
  font-weight: 600;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.exam-review-explanation {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
}
.stagger-in { opacity: 0; transform: translateY(20px); transition: all var(--transition); }
.loaded .stagger-in { opacity: 1; transform: translateY(0); }
.loaded .stagger-in:nth-child(1) { transition-delay: 0ms; }
.loaded .stagger-in:nth-child(2) { transition-delay: 50ms; }
.loaded .stagger-in:nth-child(3) { transition-delay: 100ms; }
.loaded .stagger-in:nth-child(4) { transition-delay: 150ms; }
.loaded .stagger-in:nth-child(5) { transition-delay: 200ms; }
.loaded .stagger-in:nth-child(6) { transition-delay: 250ms; }
.loaded .stagger-in:nth-child(7) { transition-delay: 300ms; }
.loaded .stagger-in:nth-child(8) { transition-delay: 350ms; }
.loaded .stagger-in:nth-child(9) { transition-delay: 400ms; }
.loaded .stagger-in:nth-child(10) { transition-delay: 450ms; }
.loaded .stagger-in:nth-child(11) { transition-delay: 500ms; }
.loaded .stagger-in:nth-child(12) { transition-delay: 550ms; }
.magnetic { transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 4; }
  .cta-content { grid-template-columns: 1fr; text-align: center; }
  .cta-stats { justify-content: center; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-image-wrapper { min-height: 300px; }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .courses-grid.list-view .card-media { width: 100%; height: 200px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .courses-grid.list-view .course-card { flex-direction: column; }
  .courses-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left, .toolbar-right { justify-content: space-between; }
  .search-wrapper { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .carousel-prev { left: 0; } .carousel-next { right: 0; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; }
  .cta-stats { flex-direction: column; gap: 1rem; }
  .modal-container { max-height: 95vh; border-radius: var(--radius-lg); }
  .modal-details { padding: 1.5rem; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .categories-scroll { padding-bottom: 1rem; }
  .stat-value { font-size: 2rem; }
}

@media print {
  .header, .hero-scroll, .cta-section, .footer, .modal-overlay, .toast-container { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; }
  .course-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   AUTH PAGES — login.php / register.php
   ============================================================ */

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(217,70,239,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(139,92,246,0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Google button ── */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.google-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Dividers ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

/* ── Form rows ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 2-column row for Name + Country in register */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

/* When Google renders its iframe inside .google-btn, center it */
.google-btn > div,
.google-btn iframe {
  margin: 0 auto !important;
}

/* Fallback manual Google button (shown before GSI loads) */
.google-btn .google-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

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

.input-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.toggle-password {
  position: absolute;
  right: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.toggle-password:hover {
  color: var(--text);
}

.eye-icon {
  width: 18px;
  height: 18px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.375rem;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.checkbox-input:checked ~ .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-custom svg {
  width: 12px;
  height: 12px;
  color: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.checkbox-input:checked ~ .checkbox-custom svg {
  opacity: 1;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.forgot-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Submit button */
.auth-submit {
  margin-top: 0.25rem;
}

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

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

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Password strength bar (register) */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

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

/* Flex helpers used by auth */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: calc(100vw - 3rem);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info .toast-icon { color: var(--accent); }

.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: 0.875rem; color: var(--text); margin-bottom: 0.2rem; }
.toast-message { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color var(--transition-fast);
}

.toast-close:hover { color: var(--text); }
.toast-close svg { width: 16px; height: 16px; }

/* ============================================================
   THEME TOGGLE — override icon visibility on login/register
   ============================================================ */

/* In dark mode (default), show moon; in light mode show sun */
html:not(.light) .icon-sun { display: none; }
html:not(.light) .icon-moon { display: block; }
html.light .icon-sun { display: block; }
html.light .icon-moon { display: none; }

/* Light theme: keep gradients readable */
html.light .logo-accent {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   RESPONSIVE — Auth
   ============================================================ */

@media (max-width: 480px) {
  .auth-container {
    padding: 1.75rem 1.25rem;
  }

  .auth-title {
    font-size: 1.4rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Stack form-row on mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Stack form-actions on mobile to prevent button clipping */
  .form-actions {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .form-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ============================================================
   LIGHT THEME COURSE MODAL FIX
   ============================================================ */
html.light .modal-container {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: var(--shadow-xl) !important;
}

html.light .modal-details {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light .certificate-form {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html.light .modal-meta-item {
  color: #475569 !important;
}

html.light .form-group label {
  color: #0f172a !important;
}

html.light .form-group input,
html.light .form-group select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .modal-close {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* ============================================================
   LIGHT THEME — EXAM MODAL FIX
   ============================================================ */
html.light .exam-modal-container {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: var(--shadow-xl) !important;
}

html.light .exam-modal-content {
  background: transparent !important;
}

html.light .exam-header {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light .exam-body {
  background: #ffffff !important;
}

html.light .exam-footer {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light .exam-progress-bar {
  background: #e2e8f0 !important;
}

html.light .exam-timer {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #8b5cf6 !important;
}

html.light .exam-results-overlay {
  background: rgba(15, 23, 42, 0.7) !important;
}

html.light .exam-results-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light .exam-results-title {
  color: #0f172a !important;
}

html.light .exam-results-score {
  color: #0f172a !important;
}

html.light .exam-results-details {
  color: #475569 !important;
}

/* ============================================================
   LIGHT THEME — AUTH MODAL / LOGIN / REGISTER FIX
   ============================================================ */
html.light .auth-page {
  background: #f8fafc !important;
}

html.light .auth-container {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(139, 92, 246, 0.1) !important;
}

html.light .auth-title {
  color: #0f172a !important;
}

html.light .auth-subtitle {
  color: #475569 !important;
}

html.light .google-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .google-btn:hover {
  background: #f8fafc !important;
  border-color: #8b5cf6 !important;
}

html.light .auth-divider::before,
html.light .auth-divider::after {
  background: #e2e8f0 !important;
}

html.light .auth-divider span {
  color: #94a3b8 !important;
}

html.light .auth-form input,
html.light .auth-form select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .auth-form input:focus,
html.light .auth-form select:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

html.light .auth-form label {
  color: #0f172a !important;
}

html.light .auth-form input::placeholder {
  color: #94a3b8 !important;
}

html.light .auth-submit {
  background: var(--gradient-primary) !important;
  color: white !important;
}

html.light .auth-footer {
  color: #475569 !important;
}

html.light .auth-link {
  color: #8b5cf6 !important;
}

html.light .auth-link:hover {
  color: #7c3aed !important;
}

html.light .form-hint {
  color: #94a3b8 !important;
}

/* Password strength bar */
html.light .strength-bar {
  background: #e2e8f0 !important;
}

html.light .strength-fill {
  background: var(--gradient-primary) !important;
}

/* ============================================================
   REACT AUTH FORM BEAUTIFIER & POSITIONING
   ============================================================ */
/* Centrado vertical y espacio adecuado debajo del header fixed */
#root > div:has(form),
#root > div:has(.auth-form) {
  padding-top: calc(var(--header-height) + 3rem) !important;
  padding-bottom: 3rem !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: var(--bg) !important;
}

/* Estilo de tarjeta/contenedor de auth */
#root form,
#root .auth-form,
#root .auth-container,
#root div:has(> form) {
  background: var(--bg-card) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-xl) !important;
  padding: 2.5rem !important;
  width: 100% !important;
  max-width: 440px !important;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(139,92,246,0.1) !important;
}

/* Campos de entrada inputs y selects */
#root input,
#root select {
  width: 100% !important;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  padding: 0.875rem 1rem !important;
  font-size: 0.9rem !important;
  font-family: var(--font-sans) !important;
  transition: all var(--transition-fast) !important;
  outline: none !important;
}

#root input:focus,
#root select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

#root label {
  display: block !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 0.5rem !important;
}

/* Enlaces y Footer del Formulario */
#root a,
#root .forgot-link,
#root .auth-link {
  color: var(--accent) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color var(--transition-fast) !important;
}

#root a:hover,
#root .forgot-link:hover,
#root .auth-link:hover {
  color: var(--accent-2) !important;
  text-decoration: underline !important;
}

/* Botón principal "Ingresar" / "Crear Cuenta" */
#root button[type="submit"],
#root .auth-submit,
#root button:has(span:contains("Ingresar")),
#root button:has(span:contains("Crear")) {
  width: 100% !important;
  padding: 0.875rem 1.5rem !important;
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  box-shadow: var(--shadow) !important;
}

#root button[type="submit"]:hover,
#root .auth-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-glow) !important;
}

/* Botones selectores de pestañas (Iniciar Sesión | Crear Cuenta) */
#root .flex:has(button) {
  gap: 0.5rem !important;
  margin-bottom: 1.5rem !important;
}

#root .flex:has(button) button {
  flex: 1 !important;
  padding: 0.625rem 1rem !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

/* ============================================================
   META ROW / DETAILS - ADAPTIVE THEME STYLING
   ============================================================ */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.meta-row:last-child {
  border-bottom: none;
}
.meta-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
}
.meta-value {
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Modal container and details use CSS vars — adapts to both themes */
.modal-container {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.modal-details {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Light theme explicit overrides */
html.light .modal-container {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html.light .modal-details {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html.light .meta-row {
  border-color: #e2e8f0 !important;
}
html.light .meta-label {
  color: #64748b !important;
}
html.light .meta-value {
  color: #0f172a !important;
}
html.light .modal-close {
  background: rgba(241,245,249,0.9) !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

