/* ==========================================================================
   LOGO - Modern LMS & EdTech Platform
   Reusable Components (components.css)
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

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

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 87, 51, 0.25);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 51, 0.35);
}

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

.btn-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.btn-outline-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: #ffffff;
}

.btn-dark {
  background: var(--secondary);
  color: #ffffff;
}

.btn-dark:hover {
  background: #1e293b;
  color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(232, 152, 27, 0.3);
}

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

.badge-amber {
  background: var(--amber-light);
  color: #b45309;
}

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

.badge-dark {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
}

/* --- Course Card --- */
.course-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(79, 70, 229, 0.25);
}

.course-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}

.course-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.course-badges-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.course-wishlist-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.course-wishlist-btn:hover {
  background: #ffffff;
  color: var(--danger);
  transform: scale(1.1);
}

.course-wishlist-btn.active {
  color: var(--danger);
  background: #ffffff;
}

.course-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-category-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--secondary);
  transition: color var(--transition-fast);
}

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

.course-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.course-instructor-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.course-instructor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.course-instructor-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--amber);
  font-size: 0.85rem;
}

.star-rating .rating-score {
  font-weight: 700;
  color: var(--secondary);
  margin-left: 0.25rem;
}

.star-rating .rating-count {
  color: var(--text-muted);
  font-weight: 400;
}

.course-card-footer {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.course-badge-track {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.course-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.course-price-current {
  font-family: var(--font-price);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.course-price-old {
  font-family: var(--font-price);
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.course-add-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.course-add-cart-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

/* --- Category Card --- */
.category-card {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(79, 70, 229, 0.3);
}

.category-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition-normal);
}

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

.category-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--secondary);
}

.category-card span.count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Instructor Card --- */
.instructor-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition-normal);
  padding: 2.25rem 1.5rem 1.75rem;
}

.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(79, 70, 229, 0.25);
}

.instructor-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.instructor-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
}

.instructor-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.instructor-card p.title {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  min-height: 40px;
}

.instructor-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.instructor-stats-row strong {
  color: var(--secondary);
  font-weight: 700;
}

.instructor-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.instructor-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.instructor-social-link:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(79, 70, 229, 0.2);
}

.testimonial-quote-icon {
  font-size: 2.2rem;
  color: var(--primary-light);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

.testimonial-author-info h5 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.testimonial-author-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Blog Card --- */
.blog-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(79, 70, 229, 0.25);
}

.blog-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-thumb-wrap img {
  transform: scale(1.06);
}

.blog-category-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
}

.blog-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.blog-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Pricing Cards & Toggle --- */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.pricing-toggle-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
}

.switch-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider-thumb {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.switch-toggle.active {
  background: var(--primary);
}

.switch-toggle.active .slider-thumb {
  transform: translateX(26px);
}

.pricing-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 2.75rem 2.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.18);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.pricing-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.pricing-header h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 45px;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.pricing-cost .amount {
  font-family: var(--font-price);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pricing-cost .currency {
  font-family: var(--font-price);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary);
}

.currency-symbol,
.currency {
  font-family: var(--font-price) !important;
  font-style: normal;
}

.pricing-cost .period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: 2.25rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.pricing-features li.disabled {
  color: var(--text-light);
  text-decoration: line-through;
}

.pricing-features li i.fa-check {
  color: var(--success);
  margin-top: 0.25rem;
}

.pricing-features li i.fa-times {
  color: var(--danger);
  margin-top: 0.25rem;
}

/* --- Accordions (FAQ & Curriculum) --- */
.accordion-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
  user-select: none;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--bg-body);
}

.accordion-header h5 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background: #ffffff;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Tab Switcher --- */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

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

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* --- Forms & Controls --- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.15rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

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

.input-password-wrap {
  position: relative;
}

.input-password-wrap .toggle-password-btn {
  position: absolute;
  top: 50%;
  right: 1.15rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

/* --- Toast Notification System --- */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all var(--transition-normal);
}

.toast-msg.success { border-left-color: var(--success); }
.toast-msg.error { border-left-color: var(--danger); }
.toast-msg.info { border-left-color: var(--info); }

.toast-msg .toast-icon {
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

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

.toast-content h6 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

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

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

/* --- Modal Dialog --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

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

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

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

.modal-header h4 {
  margin: 0;
  font-size: 1.3rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.modal-body {
  padding: 2rem;
}

/* --- Empty States --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border-color);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
}

.empty-state h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

/* --- Student Layout & Sidebar --- */
.student-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.student-sidebar {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 2rem 1.25rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.student-profile-widget {
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.student-widget-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  margin: 0 auto 0.75rem;
}

.student-profile-widget h5 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.student-profile-widget p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.student-nav-menu li {
  margin-bottom: 0.4rem;
}

.student-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

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

.student-nav-link i {
  font-size: 1.1rem;
  width: 22px;
}

/* Progress Bar */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #06b6d4 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* --- Classroom Player Interface --- */
.classroom-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: calc(100vh - 80px);
  background: #ffffff;
}

.classroom-curriculum {
  border-right: 1px solid var(--border-color);
  background: #f8fafc;
  overflow-y: auto;
  height: calc(100vh - 80px);
  position: sticky;
  top: 80px;
}

.classroom-curriculum-header {
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.lesson-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lesson-list-item:hover {
  background: #ffffff;
}

.lesson-list-item.active {
  background: #ffffff;
  border-left: 4px solid var(--primary);
  font-weight: 700;
  color: var(--primary);
}

.lesson-list-item.completed .check-circle {
  color: var(--success);
}

.classroom-main {
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.video-player-container {
  aspect-ratio: 16 / 9;
  background: #090d16;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
}

.video-mockup-placeholder {
  text-align: center;
  color: #ffffff;
}

.video-play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 12px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.video-play-icon:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   Lead Generation Modal & Floating Trigger
   ========================================================================== */
.lead-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

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

.lead-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-2xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-modal-overlay.active .lead-modal-card {
  transform: scale(1) translateY(0);
}

.lead-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.lead-modal-close:hover {
  background: var(--danger);
  color: #ffffff;
  transform: rotate(90deg);
}

.lead-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

/* Left Promo Column */
.lead-modal-promo {
  background: linear-gradient(145deg, #152636 0%, #0d1722 100%);
  color: #ffffff;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.lead-modal-promo::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(232, 152, 27, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  width: fit-content;
}

.lead-modal-promo h3 {
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.lead-promo-sub {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.lead-promo-sub strong {
  color: #ffffff;
}

.lead-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.lead-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.lead-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 1rem;
  flex-shrink: 0;
}

.lead-benefits-list li:nth-child(2) .lead-benefit-icon {
  color: #fbbf24;
}

.lead-benefits-list li:nth-child(3) .lead-benefit-icon {
  color: #34d399;
}

.lead-benefits-list li strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.lead-benefits-list li span {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.35;
}

.lead-trust-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lead-avatar-stack {
  display: flex;
}

.lead-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  margin-left: -8px;
}

.lead-avatar:first-child {
  margin-left: 0;
}

.lead-stars {
  color: #fbbf24;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.15rem;
}

.lead-stars strong {
  color: #ffffff;
  margin-left: 0.25rem;
}

.lead-trust-indicator span {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Right Form Column */
.lead-modal-form-wrap {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-form-header {
  margin-bottom: 1.5rem;
}

.lead-form-header h4 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.lead-form-header p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

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

.input-icon-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-lighter);
  font-size: 0.95rem;
}

.input-icon-group .form-control {
  padding-left: 2.75rem;
}

.input-group-phone {
  display: flex;
}

.country-prefix {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.country-prefix i {
  color: var(--primary);
  font-size: 0.82rem;
}

.input-group-phone .form-control {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.lead-submit-btn {
  padding: 0.85rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all var(--transition-normal);
}

.lead-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.lead-security-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-lighter);
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.lead-security-note i {
  color: var(--success);
  margin-right: 0.25rem;
}

/* Success State */
.lead-success-content {
  text-align: center;
  padding: 1rem 0;
}

.lead-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: pulseSuccess 1.5s infinite;
}

@keyframes pulseSuccess {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.lead-success-content h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.lead-success-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.lead-voucher-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 2px dashed rgba(79, 70, 229, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.lead-voucher-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.lead-voucher-code-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.lead-voucher-code-wrap code {
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1e1b4b;
  background: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.lead-voucher-tip {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Floating Bottom Trigger Pill */
.floating-lead-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #152636 0%, #1e354a 55%, #d97706 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.65rem 1.25rem 0.65rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -5px rgba(232, 152, 27, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-body);
}

.floating-lead-trigger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px -5px rgba(232, 152, 27, 0.55);
}

.lead-trigger-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8981b;
  color: #152636;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: pulseGift 2s infinite;
}

@keyframes pulseGift {
  0% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1); }
}

.lead-trigger-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --- Course Catalog Layout & Responsive Offcanvas Sidebar --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.catalog-sidebar {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.catalog-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
}

.filter-mobile-apply-bar {
  display: none;
}

.catalog-toolbar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-filter-toggle {
  display: none;
}

.catalog-results-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.catalog-results-count strong {
  color: var(--secondary);
}

.catalog-toolbar-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.catalog-toolbar-sort label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.catalog-toolbar-sort select {
  width: auto;
  padding: 0.4rem 2rem 0.4rem 0.85rem;
  font-size: 0.88rem;
}

.catalog-backdrop,
.student-sidebar-backdrop,
.classroom-curriculum-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2299;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.catalog-backdrop.active,
.student-sidebar-backdrop.active,
.classroom-curriculum-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* --- Student Mobile Navigation Header & Pills --- */
.student-mobile-header-wrap {
  display: none;
  margin-bottom: 1.5rem;
}

.student-mobile-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.student-mobile-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

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

.student-mobile-name {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
  color: var(--secondary);
}

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

.student-mobile-quick-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.student-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.student-pill:hover,
.student-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.student-sidebar-close-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.student-sidebar-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
}

.btn-curriculum-mobile-toggle,
.curriculum-drawer-close {
  display: none;
}


