/* ================================================================
   Mrenal Kanti Ray LMS - Main Stylesheet
   Brand: courses.mrenalkanti.com | Self Skill | Learn & Earn
   Author: MKR Dev Team
   Version: 1.0.0
   ================================================================ */

/* ================================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ================================================================ */
:root {
  /* Colors */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --primary-xlight: #EFF6FF;
  --secondary: #0F172A;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FEF3C7;
  --success: #10B981;
  --success-light: #D1FAE5;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  /* Backgrounds */
  --bg: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-card: #FFFFFF;
  --bg-muted: #F1F5F9;

  /* Text */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-gray: #64748B;
  --text-light: #94A3B8;
  --text-xlight: #CBD5E1;
  --text-white: #FFFFFF;
  --text-accent: #F59E0B;
  --text-primary: #2563EB;

  /* Borders */
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --border-light: #F1F5F9;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);
  --shadow-primary: 0 4px 14px rgba(37,99,235,0.3);
  --shadow-accent: 0 4px 14px rgba(245,158,11,0.35);

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-primary: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Baloo Da 2', 'Hind Siliguri', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Font Weights */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* Line Heights */
  --lh-tight: 1.25;
  --lh-snug: 1.375;
  --lh-normal: 1.5;
  --lh-relaxed: 1.625;
  --lh-loose: 2;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-tooltip: 600;

  /* Layout */
  --navbar-height: 72px;
  --sidebar-width: 260px;
  --container-max: 1280px;
}

/* ================================================================
   2. BASE & RESET
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--fw-normal);
  line-height: 1.8; /* Bengali script needs more line height */
  color: var(--text-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  letter-spacing: 0;
}

/* Bengali heading font optimization */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 700;
}

/* Baloo Da 2 looks great at larger sizes */
h1, .h1 { font-weight: 800; letter-spacing: -0.02em; }
h2, .h2 { font-weight: 700; }
h3, .h3 { font-weight: 700; }

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

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

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

::selection {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-muted);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-gray);
}

/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--text-dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.display-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: var(--fw-black); }
.display-2 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: var(--fw-extrabold); }
.display-3 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: var(--fw-bold); }

p {
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

.lead {
  font-size: var(--text-xl);
  font-weight: var(--fw-normal);
  line-height: var(--lh-relaxed);
  color: var(--text-gray);
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-gray) !important; }
.text-light-color { color: var(--text-light) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-white { color: #fff !important; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

strong, b { font-weight: var(--fw-semibold); }
em { font-style: italic; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-muted);
  color: var(--danger);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-xs);
}

pre {
  font-family: var(--font-mono);
  background: var(--secondary);
  color: #E2E8F0;
  padding: var(--space-4);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: var(--lh-relaxed);
}

blockquote {
  border-left: 4px solid var(--primary);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--primary-xlight);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-body);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

mark {
  background: var(--accent-light);
  color: var(--text-dark);
  padding: 0 0.25em;
  border-radius: var(--radius-xs);
}

/* ================================================================
   4. NAVBAR
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  height: var(--navbar-height);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar .container,
.navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand .brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--fw-black);
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand .brand-name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  color: var(--text-dark);
}

.navbar-brand .brand-tagline {
  font-size: var(--text-xs);
  color: var(--text-gray);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  color: var(--text-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-xlight);
}

.navbar-nav .nav-link i {
  font-size: 0.9em;
  transition: transform 0.2s ease;
}

.navbar-nav .nav-item.dropdown:hover .nav-link i.dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: var(--z-dropdown);
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--primary-xlight);
  color: var(--primary);
}

.dropdown-item i {
  width: 18px;
  color: var(--text-gray);
  font-size: var(--text-sm);
}

.dropdown-item:hover i {
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) 0;
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.navbar-actions .btn-nav-login {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: var(--transition-fast);
}

.navbar-actions .btn-nav-login:hover {
  background: var(--primary);
  color: #fff;
}

.navbar-actions .btn-nav-register {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
}

.navbar-actions .btn-nav-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

/* Navbar User Avatar */
.navbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar-user:hover {
  background: var(--bg-muted);
}

.navbar-user .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.navbar-user .user-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
}

.navbar-user .user-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Navbar Toggle */
.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.navbar-toggler:hover {
  background: var(--bg-muted);
}

.navbar-toggler .toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler.active .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler.active .toggler-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler.active .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.navbar-collapse {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: var(--space-4);
  max-height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-fixed);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.navbar-collapse.show {
  transform: translateX(0);
}

/* Cart Icon */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  transition: var(--transition-fast);
}

.cart-icon:hover {
  background: var(--bg-muted);
  color: var(--primary);
}

.cart-icon .cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ================================================================
   5. HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #1D4ED8 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(6,182,212,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease;
}

.hero-badge i {
  font-size: var(--text-xs);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: var(--fw-black);
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
  max-width: 580px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-typing {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  border-right: 2px solid var(--accent);
  padding-right: 3px;
  animation: blink 0.7s infinite;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-black);
  color: #FFFFFF;
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.hero-stat .stat-number span {
  color: var(--accent);
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

.hero-image-wrap {
  position: relative;
  animation: fadeInRight 0.9s ease 0.3s both;
}

.hero-image-wrap img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

.hero-card-float {
  position: absolute;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: float 3s ease-in-out infinite;
}

.hero-card-float.card-1 {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}

.hero-card-float.card-2 {
  bottom: 40px;
  left: -20px;
  animation-delay: 1.5s;
}

.hero-card-float .float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.hero-card-float .float-text .float-label {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

.hero-card-float .float-text .float-value {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
}

/* ================================================================
   6. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.5rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.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.4s ease;
}

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

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Sizes */
.btn-sm {
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius);
}

.btn-xl {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
  border-radius: var(--radius);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.45);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  color: #fff;
}

/* Accent / CTA Button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,158,11,0.45);
  color: #fff;
}

/* Outline Buttons */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn-outline-secondary {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border);
}

.btn-outline-secondary:hover {
  background: var(--bg-muted);
  color: var(--text-dark);
}

/* Ghost Buttons */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--primary-xlight);
  color: var(--primary);
}

/* Icon Button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon.btn-lg {
  width: 48px;
  height: 48px;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* Success/Danger */
.btn-success {
  background: var(--success);
  color: #fff;
  border-color: transparent;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}

.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
  color: #fff;
}

/* Loading State */
.btn.loading {
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ================================================================
   7. SECTION HEADERS
   ================================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--primary-xlight);
  color: var(--primary);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: var(--fw-extrabold);
  color: var(--text-dark);
  margin-bottom: var(--space-4);
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
  margin: var(--space-4) auto;
}

/* ================================================================
   8. COURSE CARDS
   ================================================================ */
.course-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.course-card-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-muted);
}

.course-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card-thumbnail img {
  transform: scale(1.05);
}

.course-card-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  z-index: 2;
}

.course-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  z-index: 2;
}

.course-card:hover .course-card-play {
  background: rgba(0,0,0,0.3);
}

.course-card-play .play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--primary);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.course-card:hover .course-card-play .play-btn {
  opacity: 1;
  transform: scale(1);
}

.course-card-wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 3;
  border: none;
}

.course-card-wishlist:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.course-card-wishlist.active i {
  color: var(--danger);
}

.course-card-body {
  padding: var(--space-4) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-category {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.course-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-title a {
  color: inherit;
  text-decoration: none;
}

.course-card-title a:hover {
  color: var(--primary);
}

.course-card-instructor {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.course-card-instructor .instructor-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
}

.course-card-instructor .instructor-name {
  font-size: var(--text-sm);
  color: var(--text-gray);
  font-weight: var(--fw-medium);
}

.course-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-gray);
  margin-bottom: var(--space-3);
}

.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card-meta i {
  font-size: 10px;
  color: var(--text-light);
}

.course-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.course-card-rating .rating-value {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--accent);
}

.course-card-rating .rating-count {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

.course-card-footer {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.course-card-price {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
}

.price-current.free {
  color: var(--success);
}

.price-original {
  font-size: var(--text-sm);
  color: var(--text-light);
  text-decoration: line-through;
}

.price-discount {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--primary);
}

.price-savings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--success-light);
  color: var(--success);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.price-free {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--success);
}

/* ================================================================
   9. BADGES / LABELS
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  line-height: 1;
  white-space: nowrap;
}

.badge-featured {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #fff;
}

.badge-popular {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.badge-new {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
}

.badge-sale {
  background: linear-gradient(135deg, var(--danger), #DC2626);
  color: #fff;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-secondary {
  background: var(--bg-muted);
  color: var(--text-gray);
}

.badge-success {
  background: var(--success-light);
  color: #065F46;
}

.badge-warning {
  background: var(--accent-light);
  color: #92400E;
}

.badge-danger {
  background: var(--danger-light);
  color: #991B1B;
}

.badge-info {
  background: var(--info-light);
  color: #1E40AF;
}

.badge-free {
  background: var(--success-light);
  color: var(--success);
  font-weight: var(--fw-bold);
}

/* ================================================================
   10. CATEGORY CARDS
   ================================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
}

.category-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.category-card:hover {
  border-color: var(--primary);
  background: var(--primary-xlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card .cat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition);
}

.category-card:hover .cat-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-card .cat-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  transition: color 0.2s;
}

.category-card:hover .cat-name {
  color: var(--primary);
}

.category-card .cat-count {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

/* Category Color Variants */
.cat-blue .cat-icon { background: var(--primary-xlight); color: var(--primary); }
.cat-orange .cat-icon { background: var(--accent-light); color: var(--accent-dark); }
.cat-green .cat-icon { background: var(--success-light); color: var(--success); }
.cat-purple .cat-icon { background: #F5F3FF; color: #7C3AED; }
.cat-red .cat-icon { background: var(--danger-light); color: var(--danger); }
.cat-cyan .cat-icon { background: #ECFEFF; color: #0891B2; }
.cat-pink .cat-icon { background: #FDF2F8; color: #BE185D; }
.cat-teal .cat-icon { background: #F0FDFA; color: #0D9488; }

/* ================================================================
   11. FEATURES / WHY US SECTION
   ================================================================ */
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: var(--space-8) var(--space-6);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-xlight), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-4);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  transform: rotate(-5deg) scale(1.05);
}

.feature-card h4 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-gray);
  line-height: var(--lh-relaxed);
}

/* Numbered feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.feature-item .feature-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item .feature-content h5 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feature-item .feature-content p {
  font-size: var(--text-sm);
  color: var(--text-gray);
}

/* ================================================================
   12. INSTRUCTOR SECTION
   ================================================================ */
.instructor-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.instructor-card-cover {
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.instructor-card-body {
  padding: 0 var(--space-5) var(--space-5);
}

.instructor-avatar-wrap {
  display: inline-block;
  margin-top: -36px;
  margin-bottom: var(--space-3);
}

.instructor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow);
}

.instructor-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: 2px;
}

.instructor-title {
  font-size: var(--text-sm);
  color: var(--text-gray);
  margin-bottom: var(--space-3);
}

.instructor-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-4);
}

.instructor-stats .stat {
  text-align: center;
}

.instructor-stats .stat-num {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
}

.instructor-stats .stat-lbl {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

.instructor-social {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.instructor-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.instructor-social a:hover {
  background: var(--primary);
  color: #fff;
}

/* Featured Instructor (Large) */
.instructor-featured {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.instructor-featured-image {
  position: relative;
}

.instructor-featured-image img {
  border-radius: var(--radius-xl);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.instructor-featured-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.credential-item {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}

.credential-item .cred-value {
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--primary);
  font-family: var(--font-heading);
}

.credential-item .cred-label {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

/* ================================================================
   13. TESTIMONIALS
   ================================================================ */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.4s ease;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--primary-light);
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-author .author-name {
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  font-size: var(--text-sm);
}

.testimonial-author .author-course {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.carousel-dots {
  display: flex;
  gap: var(--space-2);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
}

/* ================================================================
   14. FAQ ACCORDION
   ================================================================ */
.faq-section {
  background: var(--bg-white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-item.open .faq-question {
  color: var(--primary);
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-gray);
  font-size: var(--text-sm);
  transition: all 0.3s ease;
}

.faq-item.open .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-gray);
  line-height: var(--lh-relaxed);
}

/* ================================================================
   15. NEWSLETTER SECTION
   ================================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 50%, #1E3A5F 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(245,158,11,0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter-section .section-content {
  position: relative;
  z-index: 2;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: var(--space-6) auto 0;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: var(--text-sm);
  backdrop-filter: blur(10px);
  outline: none;
  transition: background 0.2s ease;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-input:focus {
  background: rgba(255,255,255,0.25);
  outline: 2px solid rgba(255,255,255,0.5);
}

/* ================================================================
   16. FOOTER
   ================================================================ */
.site-footer {
  background: var(--bg-dark);
  color: #E2E8F0;
  padding: var(--space-16) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-brand .logo-box {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
  color: #fff;
  font-size: var(--text-base);
  font-family: var(--font-heading);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: #fff;
}

.footer-brand .footer-desc {
  font-size: var(--text-sm);
  color: #94A3B8;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h6 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: var(--space-5);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
  font-size: var(--text-xs);
  color: var(--primary);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-contact-item i {
  color: var(--primary);
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: var(--text-sm);
}

.footer-contact-item span {
  font-size: var(--text-sm);
  color: #94A3B8;
  line-height: var(--lh-normal);
}

.footer-bottom {
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: #64748B;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #94A3B8;
}

/* ================================================================
   17. WHATSAPP FLOAT BUTTON
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.whatsapp-float .wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  position: relative;
}

.whatsapp-float .wa-btn::before,
.whatsapp-float .wa-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.5);
  animation: waPulse 2.5s ease-out infinite;
}

.whatsapp-float .wa-btn::after {
  animation-delay: 1.25s;
}

.whatsapp-float:hover .wa-btn {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.whatsapp-float .wa-tooltip {
  background: var(--secondary);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-fast);
  pointer-events: none;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================================
   18. COURSE DETAIL PAGE
   ================================================================ */
.course-detail-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: var(--space-12) 0;
  color: #fff;
}

.course-detail-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-4);
}

.course-detail-hero .course-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.course-detail-hero .course-meta-row span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
}

.course-detail-hero .course-meta-row span i {
  color: var(--accent);
}

.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  align-items: flex-start;
  margin-top: -80px;
  padding-bottom: var(--space-16);
}

.course-detail-main {
  min-width: 0;
}

/* Sticky Sidebar */
.course-detail-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-4));
}

.course-sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.course-sidebar-preview {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}

.course-sidebar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-sidebar-preview .preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.course-sidebar-preview:hover .preview-overlay {
  background: rgba(0,0,0,0.5);
}

.preview-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: var(--shadow-xl);
  transition: transform 0.2s;
}

.course-sidebar-preview:hover .preview-play-btn {
  transform: scale(1.08);
}

.course-sidebar-body {
  padding: var(--space-6);
}

.course-sidebar-price {
  margin-bottom: var(--space-5);
}

.course-sidebar-price .price-display {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.course-sidebar-includes {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.course-sidebar-includes li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.course-sidebar-includes li i {
  width: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.course-sidebar-guarantee {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--text-gray);
}

.course-sidebar-guarantee i {
  color: var(--success);
  margin-right: 4px;
}

/* Tab Navigation */
.course-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  scrollbar-width: none;
}

.course-tabs::-webkit-scrollbar { display: none; }

.course-tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.course-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.course-tab:hover:not(.active) {
  color: var(--text-dark);
}

/* Curriculum Accordion */
.curriculum-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.curriculum-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-muted);
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  color: var(--text-dark);
  transition: background 0.2s;
}

.curriculum-section-header:hover {
  background: var(--primary-xlight);
}

.curriculum-section-header.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.curriculum-section-header .section-meta {
  font-size: var(--text-xs);
  color: var(--text-gray);
  font-weight: var(--fw-normal);
}

.curriculum-section-header .chevron {
  transition: transform 0.3s ease;
  color: var(--text-gray);
  font-size: var(--text-sm);
}

.curriculum-section-header.active .chevron {
  transform: rotate(180deg);
}

.curriculum-lessons {
  display: none;
}

.curriculum-lessons.open {
  display: block;
}

.curriculum-lesson {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-body);
  transition: background 0.15s;
}

.curriculum-lesson:hover {
  background: var(--bg-muted);
}

.curriculum-lesson .lesson-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--text-gray);
  flex-shrink: 0;
}

.curriculum-lesson.completed .lesson-icon {
  background: var(--success-light);
  color: var(--success);
}

.curriculum-lesson .lesson-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curriculum-lesson .lesson-duration {
  font-size: var(--text-xs);
  color: var(--text-light);
  white-space: nowrap;
}

.curriculum-lesson .lesson-preview {
  font-size: var(--text-xs);
  color: var(--primary);
  cursor: pointer;
}

/* ================================================================
   19. DASHBOARD
   ================================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - var(--navbar-height));
  gap: 0;
}

.dashboard-sidebar {
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  padding: var(--space-6) var(--space-4);
  height: calc(100vh - var(--navbar-height));
  position: sticky;
  top: var(--navbar-height);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-muted);
  border-radius: var(--radius);
  margin-bottom: var(--space-6);
}

.sidebar-user img,
.sidebar-user .user-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-user .user-initials {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
}

.sidebar-user .user-info .user-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  line-height: 1.2;
}

.sidebar-user .user-info .user-role {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

.sidebar-nav-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: var(--space-3) var(--space-3) var(--space-2);
  margin-top: var(--space-4);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.sidebar-nav-item i {
  width: 20px;
  font-size: var(--text-base);
  text-align: center;
  color: var(--text-gray);
  transition: color 0.2s;
}

.sidebar-nav-item .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
  background: var(--primary-xlight);
  color: var(--primary);
}

.sidebar-nav-item:hover i,
.sidebar-nav-item.active i {
  color: var(--primary);
}

.sidebar-nav-item.active {
  font-weight: var(--fw-semibold);
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: -var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.dashboard-main {
  padding: var(--space-8);
  min-width: 0;
}

/* Stat Cards */
.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.stat-icon-blue { background: var(--primary-xlight); color: var(--primary); }
.stat-icon-green { background: var(--success-light); color: var(--success); }
.stat-icon-orange { background: var(--accent-light); color: var(--accent-dark); }
.stat-icon-purple { background: #F5F3FF; color: #7C3AED; }
.stat-icon-red { background: var(--danger-light); color: var(--danger); }
.stat-icon-cyan { background: #ECFEFF; color: #0891B2; }

.stat-card .stat-info .stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--text-dark);
  line-height: 1;
}

.stat-card .stat-info .stat-label {
  font-size: var(--text-sm);
  color: var(--text-gray);
  margin-top: 4px;
}

.stat-card .stat-info .stat-change {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* Dashboard Course Card */
.dash-course-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  transition: var(--transition);
}

.dash-course-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.dash-course-thumb {
  width: 80px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-muted);
}

.dash-course-info {
  flex: 1;
  min-width: 0;
}

.dash-course-info .course-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.dash-course-info .course-progress-text {
  font-size: var(--text-xs);
  color: var(--text-gray);
  margin-bottom: 6px;
}

/* ================================================================
   20. PROGRESS BARS
   ================================================================ */
.progress {
  height: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-lg { height: 12px; }
.progress-sm { height: 4px; }

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary) 0%, #3B82F6 100%);
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

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

.progress-bar-success { background: linear-gradient(90deg, var(--success), #34D399); }
.progress-bar-warning { background: linear-gradient(90deg, var(--accent), #FCD34D); }
.progress-bar-danger { background: linear-gradient(90deg, var(--danger), #F87171); }

/* ================================================================
   21. LEARNING PAGE
   ================================================================ */
.learning-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: calc(100vh - var(--navbar-height));
  gap: 0;
}

.learning-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.video-container {
  position: relative;
  background: #000;
  width: 100%;
}

.video-container iframe,
.video-container video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

.learning-content-area {
  padding: var(--space-6) var(--space-8);
  flex: 1;
}

.learning-lesson-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: var(--space-4);
}

.learning-nav-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.lesson-sidebar {
  background: var(--bg-white);
  border-left: 1px solid var(--border);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
  position: sticky;
  top: var(--navbar-height);
}

.lesson-sidebar-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}

.lesson-sidebar-header h5 {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin: 0;
}

.lesson-section {
  border-bottom: 1px solid var(--border-light);
}

.lesson-section-title {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-gray);
  background: var(--bg-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.lesson-section-title:hover {
  background: var(--border);
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.lesson-item:hover {
  background: var(--primary-xlight);
}

.lesson-item.active {
  background: var(--primary-xlight);
  border-right: 3px solid var(--primary);
}

.lesson-item .lesson-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: var(--transition-fast);
}

.lesson-item.completed .lesson-check {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.lesson-item.active .lesson-check {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.lesson-item .lesson-item-title {
  flex: 1;
  font-size: var(--text-xs);
  color: var(--text-body);
  line-height: var(--lh-snug);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lesson-item.active .lesson-item-title {
  color: var(--primary);
  font-weight: var(--fw-semibold);
}

.lesson-item .lesson-item-duration {
  font-size: 10px;
  color: var(--text-light);
  white-space: nowrap;
}

.mark-complete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3);
  background: var(--success);
  color: #fff;
  border: none;
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mark-complete-btn:hover {
  background: #059669;
}

.mark-complete-btn.completed {
  background: var(--success-light);
  color: var(--success);
}

/* ================================================================
   22. AUTH PAGES (Login / Register)
   ================================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37,99,235,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245,158,11,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.5s ease;
}

.auth-card-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-card-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.auth-card-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--fw-black);
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.auth-card-logo .logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
}

.auth-card-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.auth-card-header p {
  font-size: var(--text-sm);
  color: var(--text-gray);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.625rem var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--text-dark);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

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

.form-control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-control.is-valid {
  border-color: var(--success);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:disabled {
  background: var(--bg-muted);
  cursor: not-allowed;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: var(--lh-relaxed);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  font-size: var(--text-sm);
  pointer-events: none;
}

.input-group .form-control {
  padding-left: 40px;
}

.input-group .input-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.input-group .input-action:hover {
  color: var(--primary);
}

.form-help {
  font-size: var(--text-xs);
  color: var(--text-gray);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.form-check-input {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border-dark);
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
  margin-top: 1px;
}

.form-check-input:checked {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: var(--lh-normal);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  color: var(--text-light);
  font-size: var(--text-sm);
}

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

.social-login {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0.625rem var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-social:hover {
  background: var(--bg-muted);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.btn-social img {
  width: 20px;
  height: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-gray);
}

.auth-footer a {
  font-weight: var(--fw-semibold);
  color: var(--primary);
}

/* ================================================================
   23. CHECKOUT PAGE
   ================================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-8);
  align-items: flex-start;
  padding: var(--space-10) 0;
}

.checkout-main {
  min-width: 0;
}

.checkout-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.checkout-section h4 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

/* Payment Methods */
.payment-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: var(--space-3);
}

.payment-method:hover {
  border-color: var(--primary);
  background: var(--primary-xlight);
}

.payment-method.selected {
  border-color: var(--primary);
  background: var(--primary-xlight);
}

.payment-method input[type="radio"] {
  accent-color: var(--primary);
}

.payment-method .payment-logo {
  height: 28px;
  width: auto;
}

.payment-method .payment-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
}

.payment-method .payment-desc {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

.payment-details-panel {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  margin-top: var(--space-4);
  display: none;
}

.payment-details-panel.visible {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* Order Summary */
.order-summary {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-4));
}

.order-summary-header {
  padding: var(--space-5) var(--space-6);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.order-summary-header h4 {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin: 0;
}

.order-summary-body {
  padding: var(--space-5) var(--space-6);
}

.order-course-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.order-course-item img {
  width: 60px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.order-course-item .course-name {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  line-height: var(--lh-snug);
  flex: 1;
}

.order-course-item .course-price {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--primary);
  white-space: nowrap;
}

.order-totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.order-row .label {
  color: var(--text-gray);
}

.order-row .value {
  font-weight: var(--fw-medium);
  color: var(--text-dark);
}

.order-row.discount .value {
  color: var(--success);
}

.order-row.total {
  padding-top: var(--space-3);
  border-top: 2px solid var(--border);
  font-size: var(--text-base);
}

.order-row.total .label,
.order-row.total .value {
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  font-size: var(--text-lg);
}

/* Coupon Input */
.coupon-form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.coupon-form .form-control {
  flex: 1;
  font-size: var(--text-sm);
}

/* ================================================================
   24. CERTIFICATE PAGE
   ================================================================ */
.certificate-page {
  background: var(--bg-muted);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--space-4);
}

.certificate-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.certificate-wrap {
  width: 100%;
  max-width: 960px;
}

.certificate {
  background: #fff;
  position: relative;
  padding: 60px;
  aspect-ratio: 1.414 / 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.certificate-border {
  position: absolute;
  inset: 16px;
  border: 2px solid var(--primary-light);
  border-radius: 12px;
  pointer-events: none;
}

.certificate-border::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--primary-xlight);
  border-radius: 8px;
}

.certificate-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--primary);
  border-style: solid;
}

.certificate-corner-tl { top: 20px; left: 20px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.certificate-corner-tr { top: 20px; right: 20px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.certificate-corner-bl { bottom: 20px; left: 20px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.certificate-corner-br { bottom: 20px; right: 20px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

.certificate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 10%, rgba(37,99,235,0.04), transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(245,158,11,0.04), transparent 40%);
  pointer-events: none;
}

.certificate-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.certificate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: 24px;
}

.certificate-logo .logo-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--fw-black);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.certificate-brand {
  text-align: left;
}

.certificate-brand .name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--primary);
}

.certificate-brand .domain {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.certificate-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: var(--fw-black);
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.certificate-subtitle {
  font-size: 0.9rem;
  color: var(--text-gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.certificate-presented {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.certificate-recipient {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.1;
}

.certificate-course-label {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.certificate-course-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: 28px;
}

.certificate-line {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 16px auto;
}

.certificate-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: 32px;
}

.cert-signature {
  text-align: center;
}

.cert-signature .signature-line {
  width: 140px;
  height: 1.5px;
  background: var(--border-dark);
  margin: 8px auto 4px;
}

.cert-signature .sig-name {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
}

.cert-signature .sig-title {
  font-size: 0.65rem;
  color: var(--text-gray);
}

.cert-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: var(--shadow-primary);
}

.cert-id {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ================================================================
   25. ADMIN PANEL
   ================================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--secondary);
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.admin-sidebar-header .admin-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-base);
}

.admin-sidebar-header .admin-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: #fff;
}

.admin-sidebar-header .admin-brand-sub {
  font-size: var(--text-xs);
  color: #64748B;
}

.admin-nav-group {
  padding: var(--space-4) var(--space-3);
}

.admin-nav-group-label {
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  padding: var(--space-2) var(--space-3) var(--space-1);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: #94A3B8;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: var(--transition-fast);
  margin-bottom: 2px;
}

.admin-nav-link i {
  width: 18px;
  font-size: var(--text-sm);
  text-align: center;
  flex-shrink: 0;
}

.admin-nav-link .link-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.admin-nav-link.active {
  background: var(--primary);
  color: #fff;
}

.admin-nav-link.active i {
  color: #fff;
}

.admin-content {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-6);
  height: 60px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.admin-topbar .page-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  flex: 1;
}

.admin-main {
  padding: var(--space-6) var(--space-8);
  flex: 1;
}

/* Admin Tables */
.admin-table-wrap {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.admin-table-header h5 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: var(--bg-muted);
}

.admin-table .col-avatar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.admin-table .col-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-table .col-thumb {
  width: 52px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.admin-table .col-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Status Toggle */
.status-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.status-toggle input {
  display: none;
}

.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--border-dark);
  border-radius: 11px;
  position: relative;
  transition: background 0.25s ease;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: left 0.25s ease;
}

.status-toggle input:checked + .toggle-track {
  background: var(--success);
}

.status-toggle input:checked + .toggle-track::after {
  left: 21px;
}

/* Admin Forms */
.admin-form-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}

.admin-form-card h5 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

/* Image Upload */
.image-upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-muted);
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-xlight);
}

.image-upload-zone .upload-icon {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.image-upload-zone:hover .upload-icon {
  color: var(--primary);
}

.image-upload-zone .upload-text {
  font-size: var(--text-sm);
  color: var(--text-gray);
}

.image-upload-zone .upload-hint {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--space-1);
}

.image-preview-wrap {
  display: none;
  position: relative;
  margin-top: var(--space-4);
}

.image-preview-wrap img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.image-preview-wrap .remove-image {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
}

/* Curriculum Builder */
.curriculum-builder {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.curriculum-builder-header {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-item {
  border-bottom: 1px solid var(--border);
}

.module-header {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: grab;
}

.module-header .drag-handle {
  color: var(--text-light);
  cursor: grab;
}

.module-header .module-title-input {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  border: none;
  outline: none;
  color: var(--text-dark);
  background: transparent;
}

.lesson-list {
  padding: 0 var(--space-5) var(--space-3);
  background: var(--bg-muted);
}

.lesson-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
}

.lesson-list-item .lesson-title-input {
  flex: 1;
  font-size: var(--text-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: var(--space-2) var(--space-3);
  outline: none;
  color: var(--text-dark);
  background: var(--bg-white);
}

/* ================================================================
   26. RATING STARS
   ================================================================ */
.stars {
  display: inline-flex;
  gap: 1px;
}

.stars .star {
  font-size: var(--text-sm);
  color: var(--border-dark);
}

.stars .star.filled,
.stars .star.active {
  color: var(--accent);
}

.stars .star.half::after {
  content: '★';
  position: absolute;
  color: var(--accent);
  overflow: hidden;
  width: 50%;
}

/* Interactive Stars */
.rating-input {
  display: inline-flex;
  gap: 4px;
  direction: rtl;
}

.rating-input input {
  display: none;
}

.rating-input label {
  font-size: 1.5rem;
  color: var(--border-dark);
  cursor: pointer;
  transition: color 0.1s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: var(--accent);
}

/* ================================================================
   27. ALERT / FLASH MESSAGES
   ================================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px solid;
  position: relative;
  font-size: var(--text-sm);
}

.alert .alert-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  margin-top: 1px;
}

.alert .alert-content {
  flex: 1;
}

.alert .alert-title {
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}

.alert .alert-close {
  background: none;
  border: none;
  cursor: pointer;
  color: currentColor;
  opacity: 0.6;
  padding: 2px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.alert .alert-close:hover {
  opacity: 1;
}

.alert-success {
  background: var(--success-light);
  border-color: rgba(16,185,129,0.25);
  color: #065F46;
}

.alert-error,
.alert-danger {
  background: var(--danger-light);
  border-color: rgba(239,68,68,0.25);
  color: #991B1B;
}

.alert-warning {
  background: var(--accent-light);
  border-color: rgba(245,158,11,0.25);
  color: #92400E;
}

.alert-info {
  background: var(--info-light);
  border-color: rgba(59,130,246,0.25);
  color: #1E40AF;
}

/* Flash Container */
.flash-container {
  position: fixed;
  top: calc(var(--navbar-height) + 16px);
  right: 16px;
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 380px;
  width: calc(100% - 32px);
}

.flash-message {
  animation: slideInRight 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.flash-message.hiding {
  animation: slideOutRight 0.3s ease forwards;
}

/* ================================================================
   28. PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.page-item {
  display: flex;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: var(--transition-fast);
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-xlight);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.page-ellipsis {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: var(--text-sm);
}

/* ================================================================
   29. BREADCRUMB
   ================================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.breadcrumb-item a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: var(--fw-medium);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--text-light);
  font-size: var(--text-xs);
}

/* ================================================================
   30. COUNTDOWN TIMER
   ================================================================ */
.countdown-timer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.countdown-unit {
  text-align: center;
  min-width: 52px;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.countdown-unit .count-num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1;
}

.countdown-unit .count-label {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: 4px;
}

.countdown-separator {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-gray);
  margin-bottom: 12px;
}

/* ================================================================
   31. COURSES FILTER PAGE
   ================================================================ */
.courses-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: flex-start;
}

.filter-sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-4));
  box-shadow: var(--shadow-sm);
}

.filter-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-header h5 {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin: 0;
}

.filter-clear {
  font-size: var(--text-xs);
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

.filter-group {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
}

.filter-group-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.filter-option label {
  font-size: var(--text-sm);
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.filter-option .filter-count {
  font-size: var(--text-xs);
  color: var(--text-light);
}

.courses-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.courses-toolbar .result-count {
  font-size: var(--text-sm);
  color: var(--text-gray);
}

.courses-toolbar .result-count strong {
  color: var(--text-dark);
}

.courses-grid {
  display: grid;
  gap: var(--space-5);
}

.courses-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.courses-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.courses-grid.grid-list { grid-template-columns: 1fr; }

/* List View Course Card */
.course-card.list-view {
  flex-direction: row;
  height: auto;
}

.course-card.list-view .course-card-thumbnail {
  width: 200px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

/* ================================================================
   32. ANIMATIONS & KEYFRAMES
   ================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes blink {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

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

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

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

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ================================================================
   33. UTILITY CLASSES
   ================================================================ */

/* Spacing */
.section-py { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.section-py-lg { padding-top: var(--space-24); padding-bottom: var(--space-24); }
.section-py-sm { padding-top: var(--space-12); padding-bottom: var(--space-12); }

/* Display */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-block { display: block !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flex utilities */
.flex-1 { flex: 1; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.font-bold { font-weight: var(--fw-bold) !important; }
.font-semibold { font-weight: var(--fw-semibold) !important; }
.font-medium { font-weight: var(--fw-medium) !important; }
.font-heading { font-family: var(--font-heading) !important; }
.text-xs { font-size: var(--text-xs) !important; }
.text-sm { font-size: var(--text-sm) !important; }
.text-base { font-size: var(--text-base) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }
.text-3xl { font-size: var(--text-3xl) !important; }
.text-nowrap { white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Background */
.bg-primary { background-color: var(--primary) !important; }
.bg-white { background-color: var(--bg-white) !important; }
.bg-muted { background-color: var(--bg-muted) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }
.bg-accent { background-color: var(--accent) !important; }

/* Width/Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }

/* Rounded */
.rounded { border-radius: var(--radius) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Shadow */
.shadow { box-shadow: var(--shadow) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Border */
.border { border: 1px solid var(--border) !important; }
.border-top { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Grid Helpers */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Z-index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* ================================================================
   34. LOADING SKELETON
   ================================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--border-light) 50%, var(--bg-muted) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.skeleton-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-muted);
}

/* ================================================================
   35. MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.25s ease;
  position: relative;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-muted);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ================================================================
   36. TOOLTIP
   ================================================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ================================================================
   37. SEARCH BAR
   ================================================================ */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  gap: var(--space-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--text-dark);
  flex: 1;
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--text-light);
}

.search-bar .search-btn {
  padding: var(--space-2) var(--space-5);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-bar .search-btn:hover {
  background: var(--primary-dark);
}

/* Hero Search Variant */
.hero-search {
  max-width: 620px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  padding: 6px 6px 6px 20px;
}

.hero-search input {
  color: #fff;
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* ================================================================
   38. TABS
   ================================================================ */
.tabs-container {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-btn:hover:not(.active) {
  color: var(--text-dark);
}

.tab-panel {
  display: none;
  padding: var(--space-6);
}

.tab-panel.active {
  display: block;
}

/* ================================================================
   39. CARDS (GENERIC)
   ================================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h5 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin: 0;
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

/* ================================================================
   40. PRICING SECTION
   ================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pricing-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: scale(1.03);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.pricing-card .plan-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: var(--fw-black);
  color: var(--primary);
  line-height: 1;
  margin: var(--space-4) 0;
}

.pricing-card .plan-price sup {
  font-size: 1.25rem;
  vertical-align: top;
  margin-top: 0.5rem;
}

.pricing-card .plan-price span {
  font-size: var(--text-base);
  font-weight: var(--fw-normal);
  color: var(--text-gray);
}

.pricing-card .plan-desc {
  font-size: var(--text-sm);
  color: var(--text-gray);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.pricing-features li i {
  color: var(--success);
  width: 18px;
  flex-shrink: 0;
}

.pricing-features li.unavailable {
  color: var(--text-light);
}

.pricing-features li.unavailable i {
  color: var(--border-dark);
}

/* ================================================================
   41. VIDEO PLAYER CUSTOM STYLES
   ================================================================ */
.custom-video-player {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.custom-video-player video {
  width: 100%;
  display: block;
}

.video-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: var(--space-4) var(--space-5) var(--space-3);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.custom-video-player:hover .video-controls-overlay {
  transform: translateY(0);
}

.video-progress {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: var(--space-3);
  position: relative;
}

.video-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  pointer-events: none;
}

.video-btns {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.video-btn {
  color: #fff;
  font-size: var(--text-lg);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s;
  padding: 0;
  border: none;
  background: none;
}

.video-btn:hover {
  opacity: 1;
}

.video-time {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.8);
  margin-left: var(--space-2);
}

/* ================================================================
   42. EMPTY STATE
   ================================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.empty-state .empty-icon {
  font-size: 4rem;
  color: var(--text-xlight);
  margin-bottom: var(--space-4);
}

.empty-state h4 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: var(--text-sm);
  color: var(--text-gray);
  max-width: 360px;
  margin: 0 auto var(--space-6);
}

/* ================================================================
   43. RESPONSIVE BREAKPOINTS
   ================================================================ */

/* Extra Large (< 1280px) */
@media (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .course-detail-layout {
    grid-template-columns: 1fr 320px;
  }

  .pricing-grid {
    gap: var(--space-4);
  }
}

/* Large (< 1024px) */
@media (max-width: 1024px) {
  :root { --navbar-height: 64px; }

  .hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }

  .course-detail-layout {
    grid-template-columns: 1fr;
  }

  .course-detail-sidebar {
    position: static;
    max-width: 500px;
  }

  .learning-layout {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    position: static;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border);
    order: -1;
    max-height: 380px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: var(--z-fixed);
    width: var(--sidebar-width);
  }

  .dashboard-sidebar.open {
    display: flex;
    flex-direction: column;
  }

  .courses-page-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    display: none;
  }

  .filter-sidebar.mobile-open {
    display: block;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: var(--z-fixed);
    width: 240px;
  }

  .admin-sidebar.open {
    display: flex;
    flex-direction: column;
  }

  .instructor-featured {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* Medium (< 768px) */
@media (max-width: 768px) {
  .navbar-nav,
  .navbar-actions { display: none; }

  .navbar-toggler { display: flex; }

  .hero {
    min-height: 80vh;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-card-float { display: none; }

  .section-header h2 {
    font-size: var(--text-3xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .courses-grid.grid-3,
  .courses-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .instructor-featured-credentials {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificate {
    padding: 40px;
  }

  .certificate-recipient {
    font-size: 2.25rem;
  }

  .certificate-title {
    font-size: 1.75rem;
  }

  .auth-card {
    padding: var(--space-8) var(--space-6);
  }

  .countdown-unit {
    min-width: 44px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .admin-main {
    padding: var(--space-4);
  }

  .hero-stats {
    gap: var(--space-4);
  }
}

/* Small (< 640px) */
@media (max-width: 640px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .hero-title { font-size: 2rem; }

  .courses-grid.grid-3,
  .courses-grid.grid-2 {
    grid-template-columns: 1fr;
  }

  .course-card.list-view {
    flex-direction: column;
  }

  .course-card.list-view .course-card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-divider { display: none; }

  .certificate {
    padding: 24px;
    aspect-ratio: auto;
  }

  .certificate-footer {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .certificate-recipient {
    font-size: 1.75rem;
  }

  .learning-content-area {
    padding: var(--space-4);
  }

  .learning-nav-btns {
    flex-direction: column;
    gap: var(--space-3);
  }

  .learning-nav-btns .btn {
    width: 100%;
  }

  .flash-container {
    left: 16px;
    right: 16px;
    max-width: none;
    width: auto;
  }

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

  .whatsapp-float .wa-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .testimonials-track {
    flex-direction: column;
  }

  .auth-card {
    padding: var(--space-6) var(--space-4);
  }

  .btn-xl {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
  }

  .section-py {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .dashboard-main {
    padding: var(--space-4);
  }
}

/* Extra Small (< 480px) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .instructor-featured-credentials {
    grid-template-columns: 1fr;
  }

  .auth-card {
    border-radius: var(--radius);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .site-footer,
  .whatsapp-float,
  .flash-container,
  .certificate-actions {
    display: none !important;
  }

  .certificate {
    box-shadow: none;
    border: 2px solid var(--border);
  }

  body {
    background: #fff;
  }
}
