/* SkillForge USA - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --secondary: #00b894;
  --accent: #fdcb6e;
  --danger: #e17055;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --dark-3: #0f3460;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --border: #dee2e6;
  --border-light: #e9ecef;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --font: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== TOP INFO BAR ===================== */
.top-bar {
  background: #0f3460;
  padding: 10px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 2px solid rgba(253,203,110,0.25);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.top-bar-item:hover { color: #fdcb6e; }

.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fdcb6e, #f39c12);
  color: #1a1a2e !important;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.25s;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 14px rgba(253,203,110,0.5);
  white-space: nowrap;
}

.top-bar-phone:hover {
  background: linear-gradient(135deg, #f39c12, #fdcb6e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253,203,110,0.65);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.top-bar-hours .open-badge {
  background: rgba(0,184,148,0.2);
  color: #00b894;
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
}

.top-bar-hours .closed-badge {
  background: rgba(225,112,85,0.2);
  color: #e17055;
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .top-bar-left { gap: 12px; }
  .top-bar-item.hide-mobile { display: none; }
  .top-bar-right { display: none; }
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.nav-logo:hover img.logo-img {
  transform: scale(1.05);
}

/* Fallback icon (hidden when image loads) */
.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: white;
}

.nav-logo .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-logo .logo-text span { color: var(--primary-light); }

/* Footer logo */
.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  margin-bottom: 12px;
}

/* Auth logo */
.auth-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.nav-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 10px 20px 10px 48px;
  border-radius: 50px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search input:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary-light);
}

.nav-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
}

.nav-search .search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.nav-cart {
  position: relative;
  color: rgba(255,255,255,0.8);
  font-size: 1.3rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-cart:hover { color: white; background: rgba(255,255,255,0.1); }

.cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.btn-nav-login {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-nav-login:hover { border-color: var(--white); color: var(--white); }

.btn-nav-signup {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.btn-nav-signup:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

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

.nav-user-name {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 500;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  overflow: hidden;
  display: none;
  z-index: 100;
  border: 1px solid var(--border-light);
}

.nav-user:hover .user-dropdown { display: block; }

.dropdown-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.dropdown-header .name { font-weight: 700; font-size: 0.95rem; }
.dropdown-header .email { font-size: 0.8rem; opacity: 0.8; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-item:hover { background: var(--off-white); color: var(--primary); }
.dropdown-item .icon { font-size: 1.1rem; width: 20px; }
.dropdown-divider { height: 1px; background: var(--border-light); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #00a381);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-secondary:hover { transform: translateY(-2px); }

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

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

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover { background: var(--dark-2); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark-3) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 92, 231, 0.2);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.stat-item .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-item .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

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

.hero-cards {
  position: relative;
  height: 420px;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.5s ease;
}

.hero-card:nth-child(1) {
  width: 280px;
  top: 0;
  right: 40px;
  animation: float 6s ease-in-out infinite;
}

.hero-card:nth-child(2) {
  width: 240px;
  bottom: 20px;
  right: 0;
  animation: float 6s ease-in-out infinite 1s;
}

.hero-card:nth-child(3) {
  width: 220px;
  bottom: 60px;
  left: 0;
  animation: float 6s ease-in-out infinite 2s;
}

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

.hero-card img { width: 100%; height: 130px; object-fit: cover; }
.hero-card .card-info { padding: 12px; }
.hero-card .card-title { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.hero-card .card-rating { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; }
.hero-card .card-rating .rating-num { color: var(--accent); font-weight: 700; }
.hero-card .stars { color: var(--accent); font-size: 0.7rem; }
.hero-card .card-price { font-weight: 800; color: var(--primary); font-size: 0.85rem; margin-top: 4px; }

/* ===================== SECTIONS ===================== */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--dark); color: white; }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

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

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================== COURSE CARD ===================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.course-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.course-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.course-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.course-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-bestseller {
  background: var(--accent);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-new {
  background: var(--secondary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

.course-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: none;
  color: var(--text-light);
}

.course-wishlist:hover, .course-wishlist.active { color: #e17055; transform: scale(1.1); }

.course-preview-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  opacity: 0;
  transition: var(--transition);
  white-space: nowrap;
}

.course-card:hover .course-preview-btn { opacity: 1; }

.course-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-instructor {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.rating-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: #b7791f;
}

.stars { color: #f6ad55; font-size: 0.85rem; letter-spacing: 1px; }
.star.full { opacity: 1; }
.star.half { opacity: 0.6; }
.star.empty { opacity: 0.2; }

.rating-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.course-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

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

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

.course-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(0, 184, 148, 0.1);
  padding: 2px 8px;
  border-radius: 50px;
}

.btn-add-cart {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4); }
.btn-add-cart.in-cart { background: linear-gradient(135deg, var(--secondary), #00a381); }

/* ===================== CATEGORIES ===================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.category-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===================== WHY SKILLFORGE ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 6rem;
  line-height: 1;
  color: var(--primary-light);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name { font-weight: 700; font-size: 0.92rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }
.testimonial-stars { color: #f6ad55; font-size: 0.85rem; margin-top: 2px; }

/* ===================== BANNER / CTA ===================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--dark-3));
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -0.5px; }
.cta-subtitle { font-size: 1.05rem; opacity: 0.8; margin-bottom: 35px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ===================== FOOTER ===================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo { margin-bottom: 15px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  font-size: 0.85rem;
}

.social-link:hover { background: var(--primary); color: white; }

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p { font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ===================== COURSE DETAIL PAGE ===================== */
.course-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1038 100%);
  padding: 50px 0;
  color: white;
}

.course-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
}

.course-hero .course-hero-left {
  max-width: calc(100% - 420px);
}

.course-hero-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-hero-breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.course-hero-breadcrumb a:hover { color: var(--primary-light); }

.course-hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.course-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}

.course-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.course-hero-info {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  flex-wrap: wrap;
}

/* Purchase Card */
.purchase-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: 90px;
}

.purchase-preview {
  position: relative;
  padding-top: 56.25%;
  cursor: pointer;
}

.purchase-preview img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.purchase-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.play-btn {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.purchase-body { padding: 24px; }

.purchase-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.purchase-price .current { font-size: 2rem; font-weight: 900; color: var(--text); }
.purchase-price .original { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.purchase-price .discount { font-size: 0.85rem; font-weight: 700; color: var(--danger); }

.purchase-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 112, 85, 0.1);
  border: 1px solid rgba(225, 112, 85, 0.2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 16px;
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.purchase-guarantee {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.purchase-includes h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.includes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.includes-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.includes-item .check { color: var(--secondary); font-size: 1rem; }

/* ===================== TABS ===================== */
.tabs {
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 30px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.tab-btn {
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.tab-content { display: none; }
.tab-content.active { display: block; }

/* What You'll Learn */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.learn-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.learn-item .check { color: var(--secondary); font-size: 1.1rem; flex-shrink: 0; }

/* Curriculum */
.curriculum-section {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
}

.curriculum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--off-white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.curriculum-header:hover { background: var(--border-light); }
.curriculum-header .meta { font-size: 0.8rem; font-weight: 400; color: var(--text-light); }
.curriculum-header .arrow { transition: transform 0.3s ease; }
.curriculum-section.open .arrow { transform: rotate(180deg); }

.curriculum-lessons {
  display: none;
  padding: 8px 18px;
}

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

.lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-light);
}

.lesson-item:last-child { border-bottom: none; }
.lesson-item .lesson-icon { color: var(--primary); margin-right: 10px; }
.lesson-item .duration { font-size: 0.8rem; color: var(--text-muted); }

/* ===================== CART PAGE ===================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  padding: 50px 0;
}

.cart-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.cart-count { font-size: 0.9rem; color: var(--text-light); margin-bottom: 25px; }

.cart-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.cart-thumb {
  width: 130px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.cart-item-instructor { font-size: 0.82rem; color: var(--text-light); margin-bottom: 8px; }
.cart-item-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-muted); }

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-item-price { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.btn-remove { background: none; border: none; color: var(--danger); font-size: 0.82rem; cursor: pointer; text-decoration: underline; }

.cart-summary {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.cart-summary h3 { font-size: 1rem; font-weight: 700; color: var(--text-light); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.92rem; }
.summary-row.total { font-weight: 800; font-size: 1.2rem; border-top: 2px solid var(--border-light); padding-top: 15px; margin-top: 5px; }
.summary-divider { height: 1px; background: var(--border-light); margin: 15px 0; }
.summary-savings { background: rgba(0, 184, 148, 0.1); border: 1px solid rgba(0, 184, 148, 0.2); border-radius: var(--radius-sm); padding: 12px; text-align: center; font-size: 0.85rem; color: var(--secondary); font-weight: 600; margin-bottom: 20px; }

/* Coupon */
.coupon-section { margin-top: 20px; }
.coupon-section h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; }
.coupon-input { display: flex; gap: 8px; }
.coupon-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}
.coupon-input input:focus { border-color: var(--primary); }
.coupon-input button {
  background: var(--dark);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.coupon-input button:hover { background: var(--primary); }

/* ===================== AUTH PAGES ===================== */
.auth-page {
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 50px 45px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--off-white);
}

.form-input:focus { border-color: var(--primary); background: white; }

.form-input-icon {
  position: relative;
}

.form-input-icon input { padding-left: 44px; }
.form-input-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.form-input-icon .toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  background: none;
  border: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

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

.auth-divider span { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  background: white;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

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

.auth-link {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 20px;
}

.auth-link a { color: var(--primary); font-weight: 600; }

/* ===================== DASHBOARD ===================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}

.sidebar {
  background: var(--dark);
  padding: 30px 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-user {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.sidebar-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  margin-bottom: 10px;
}

.sidebar-name { color: white; font-weight: 700; font-size: 1rem; }
.sidebar-email { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.sidebar-nav-item.active { color: white; background: rgba(108, 92, 231, 0.15); border-left-color: var(--primary); }
.sidebar-nav-item .icon { font-size: 1.1rem; }

.dashboard-content { padding: 40px; background: var(--off-white); }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-title { font-size: 1.7rem; font-weight: 800; color: var(--text); }
.dashboard-subtitle { font-size: 0.9rem; color: var(--text-light); }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.dash-stat {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.dash-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dash-stat .stat-icon { font-size: 2rem; margin-bottom: 10px; }
.dash-stat .stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.dash-stat .stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

.enrolled-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.enrolled-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.enrolled-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.enrolled-card img { width: 100%; height: 140px; object-fit: cover; }
.enrolled-card-body { padding: 16px; }
.enrolled-card-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; color: var(--text); }
.enrolled-card-instructor { font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }

.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50px;
  transition: width 1s ease;
}

.progress-text { font-size: 0.78rem; color: var(--text-light); display: flex; justify-content: space-between; }
.btn-continue { margin-top: 12px; width: 100%; }

/* ===================== COURSE PLAYER ===================== */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: calc(100vh - 70px);
}

.player-main { background: #0a0a0a; display: flex; flex-direction: column; }

.video-container {
  background: #000;
  position: relative;
  padding-top: 56.25%;
  flex-shrink: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  gap: 20px;
}

.video-placeholder .big-play {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.video-placeholder .big-play:hover { background: var(--primary); border-color: var(--primary); }

.video-controls {
  background: rgba(0,0,0,0.9);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn { background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; padding: 5px; transition: var(--transition); }
.control-btn:hover { color: var(--primary-light); }

.progress-range {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
}

.progress-current {
  height: 100%;
  background: var(--primary);
  border-radius: 50px;
  width: 35%;
}

.time-display { color: rgba(255,255,255,0.7); font-size: 0.82rem; white-space: nowrap; }

.player-sidebar {
  background: white;
  border-left: 1px solid var(--border-light);
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}

.player-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.player-sidebar-title { font-weight: 700; font-size: 0.95rem; }
.player-sidebar-progress { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }

.player-section { border-bottom: 1px solid var(--border-light); }
.player-section-header {
  padding: 14px 20px;
  background: var(--off-white);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.player-lesson:hover { background: var(--off-white); }
.player-lesson.active { background: rgba(108, 92, 231, 0.05); border-right: 3px solid var(--primary); color: var(--primary); }
.player-lesson .lesson-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: white; }
.player-lesson.completed .lesson-check { background: var(--secondary); border-color: var(--secondary); }
.player-lesson.completed .lesson-check::after { content: '✓'; }
.player-lesson .lesson-title { flex: 1; line-height: 1.4; }
.player-lesson .lesson-dur { font-size: 0.75rem; color: var(--text-muted); }

/* ===================== SEARCH RESULTS ===================== */
.search-header { background: var(--off-white); padding: 30px 0; border-bottom: 1px solid var(--border-light); }
.search-query { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.search-count { font-size: 0.9rem; color: var(--text-light); }

.courses-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0;
  align-items: start;
}

.filter-sidebar {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.filter-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.filter-group { margin-bottom: 24px; }
.filter-group-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; cursor: pointer; }
.filter-option input[type="checkbox"] { cursor: pointer; accent-color: var(--primary); width: 16px; height: 16px; }
.filter-option label { font-size: 0.88rem; cursor: pointer; }
.filter-option .filter-count { margin-left: auto; font-size: 0.78rem; color: var(--text-muted); }

.courses-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.sort-select {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  background: white;
  color: var(--text);
}

/* ===================== TOAST NOTIFICATIONS ===================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  pointer-events: all;
}

.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--secondary); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
.toast .toast-icon { font-size: 1.2rem; }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

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

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

.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; line-height: 1; transition: var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 28px; }

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-light);
}

.empty-icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.5; }
.empty-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.empty-desc { font-size: 0.9rem; max-width: 400px; margin: 0 auto 25px; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 16px 0;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .sep { color: var(--text-muted); }

/* ===================== UTILS ===================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }

/* ===================== LOADING ===================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

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

.loader {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loader span {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 0.7s infinite alternate;
}

.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  from { transform: translateY(0); opacity: 0.6; }
  to { transform: translateY(-12px); opacity: 1; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .course-hero-grid { grid-template-columns: 1fr; }
  .purchase-card { position: static; }
  .courses-page-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-links .nav-link { display: none; }
  .hero-title { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .cart-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { display: none; }
  .cart-item { grid-template-columns: 90px 1fr; }
  .cart-thumb { width: 90px; height: 55px; }
  .auth-card { padding: 35px 25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .cta-title { font-size: 1.8rem; }
  .learn-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .section-title { font-size: 1.7rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
}

/* ===================== SCROLL TO TOP ===================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 500;
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===================== RATING STARS INPUT ===================== */
.star-rating {
  display: flex;
  gap: 4px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-rating input { display: none; }
.star-rating label {
  font-size: 1.8rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f6ad55;
}

/* Instructor section */
.instructor-section {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.instructor-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.instructor-title { font-size: 0.88rem; color: var(--text-light); margin-bottom: 10px; }
.instructor-stats { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-light); flex-wrap: wrap; }
.instructor-bio { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-top: 12px; }

/* ========================= SEARCH DROPDOWN ========================= */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  overflow: hidden;
  display: none;
  border: 1px solid var(--border-light);
}

.search-results-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover { background: var(--off-white); }
.search-result-img { width: 50px; height: 36px; object-fit: cover; border-radius: 4px; }
.search-result-title { font-size: 0.88rem; font-weight: 600; }
.search-result-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ===================== REVIEW SECTION ===================== */
.reviews-summary {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 30px;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.rating-big {
  text-align: center;
}

.rating-big .number { font-size: 5rem; font-weight: 900; color: var(--text); line-height: 1; }
.rating-big .stars { font-size: 1.5rem; color: #f6ad55; display: block; margin: 8px 0; }
.rating-big .label { font-size: 0.85rem; color: var(--text-muted); }

.rating-bars { flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rating-bar-label { font-size: 0.82rem; color: var(--primary); min-width: 30px; text-align: right; }
.rating-bar-track { flex: 1; height: 10px; background: var(--border-light); border-radius: 50px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f6ad55; border-radius: 50px; }
.rating-bar-pct { font-size: 0.78rem; color: var(--text-muted); min-width: 35px; }

.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-name { font-weight: 700; font-size: 0.92rem; }
.review-date { font-size: 0.78rem; color: var(--text-muted); }
.review-stars { color: #f6ad55; font-size: 0.85rem; }
.review-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ===================== ANNOUNCEMENT BANNER ===================== */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}

.announcement-bar a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ===================== CHECKOUT PAGE ===================== */
.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  background: white;
  border-radius: var(--radius);
  padding: 20px 30px;
  border: 1px solid var(--border-light);
  align-items: center;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 15px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.step.active .step-num { background: var(--primary); color: white; }
.step.done .step-num { background: var(--secondary); color: white; }
.step-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.step.active .step-label { color: var(--primary); }

/* No enrolled courses helper */
.no-courses-msg { text-align: center; padding: 60px 20px; color: var(--text-light); }
