/* ============================================================
   DEVELOPERS CORNER — COMPONENTS CSS
   By OnPointSoft Solutions
   Navbar, Buttons, Cards, Forms, Badges, Modals, Toast, etc.
   ============================================================ */

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--navbar-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

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

.navbar__logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-extrabold);
  font-size: var(--text-base);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.navbar__brand-name {
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1;
}

.navbar__brand-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-normal);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-inline: auto;
}

.navbar__nav-link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar__nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-muted);
  text-decoration: none;
}

.navbar__nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-50);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.navbar__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  color: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-border);
  transition: border-color var(--transition-fast);
}

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

.navbar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: none;
  border: none;
  transition: background var(--transition-fast);
}

.navbar__toggle:hover { background: var(--color-bg-muted); }

.navbar__toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.navbar__mobile-menu {
  display: none;
  position: absolute;
  top: var(--navbar-height);
  left: 0; right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: var(--space-2);
  z-index: var(--z-dropdown);
}

.navbar__mobile-menu.open { display: flex; }

.navbar__mobile-link {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar__mobile-link:hover,
.navbar__mobile-link.active {
  color: var(--color-primary);
  background: var(--color-primary-50);
  text-decoration: none;
}

/* User dropdown */
.user-menu { position: relative; }

.user-menu__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
}

.user-menu__dropdown.open { display: block; }

.user-menu__header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-soft);
  margin-bottom: var(--space-2);
}

.user-menu__name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.user-menu__email { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

.user-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.user-menu__item:hover { color: var(--color-text); background: var(--color-bg-muted); text-decoration: none; }
.user-menu__item.danger:hover { color: var(--color-error); background: #FFF5F5; }
.user-menu__divider { height: 1px; background: var(--color-border-soft); margin: var(--space-2) 0; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  background: none;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn svg { flex-shrink: 0; }

.btn-xs  { padding: 0.25rem 0.625rem; font-size: var(--text-xs); }
.btn-sm  { padding: 0.5rem var(--space-4); font-size: var(--text-sm); }
.btn-lg  { padding: 0.875rem var(--space-8); font-size: var(--text-base); }
.btn-xl  { padding: 1rem var(--space-10); font-size: var(--text-lg); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-icon-sm { width: 28px; height: 28px; padding: 0; }

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(13,148,136,0.35);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(13,148,136,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-muted); border-color: var(--color-gray-400); }

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

.btn-danger {
  background: var(--color-error);
  color: white;
  border-color: var(--color-error);
}
.btn-danger:hover { background: #A61E1E; border-color: #A61E1E; transform: translateY(-1px); }

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

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

.btn-white {
  background: white;
  color: var(--color-primary);
  border-color: white;
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: var(--color-gray-50); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn-secondary.loading::after,
.btn-ghost.loading::after {
  border-color: rgba(0,0,0,0.2);
  border-top-color: var(--color-text);
}

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

/* ─────────────────────────────────────────
   CARDS
───────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-bg-muted);
}

.card__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-primary-50), var(--color-primary-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.card__body { padding: var(--space-5) var(--space-6); }
.card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-bg-soft);
}

.card__title { font-size: var(--text-lg); font-weight: var(--font-semibold); margin-bottom: var(--space-2); }
.card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Course card */
.course-card { display: flex; flex-direction: column; }
.course-card .card__body { flex: 1; display: flex; flex-direction: column; }
.course-card__meta { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.course-card__footer-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); margin-top: auto; padding-top: var(--space-4);
}
.course-card__price { font-size: var(--text-lg); font-weight: var(--font-bold); }
.course-card__price.free { color: var(--color-success); }

/* Stat cards */
.stat-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-6); }
.stat-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card__value { font-size: var(--text-2xl); font-weight: var(--font-bold); line-height: 1; }
.stat-card__label { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }

/* ─────────────────────────────────────────
   BADGES
───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: var(--font-semibold);
  line-height: 1.6; white-space: nowrap;
}
.badge-primary { background: var(--color-primary-50); color: var(--color-primary); }
.badge-success { background: #EBFBEE; color: var(--color-success); }
.badge-warning { background: #FFF9DB; color: var(--color-warning); }
.badge-error   { background: #FFF5F5; color: var(--color-error); }
.badge-gray    { background: var(--color-bg-muted); color: var(--color-text-muted); }
.badge-info    { background: #E7F5FF; color: var(--color-info); }
.badge-dot::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor; flex-shrink: 0;
}

/* ─────────────────────────────────────────
   FORMS
───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label { font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--color-text); }
.form-label .required { color: var(--color-error); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem var(--space-4);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-text-light); }
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: var(--color-gray-400); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--color-error); }
.form-input.error:focus, .form-textarea.error:focus { box-shadow: 0 0 0 3px rgba(201,42,42,0.12); }
.form-textarea { resize: vertical; min-height: 120px; }.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868E96' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}
.form-hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-error { font-size: var(--text-xs); color: var(--color-error); display: flex; align-items: center; gap: 4px; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper .input-icon {
  position: absolute; left: var(--space-4);
  color: var(--color-text-muted); pointer-events: none;
  display: flex; align-items: center;
}
.input-wrapper .form-input { padding-left: calc(var(--space-4) * 2 + 18px); }
.input-wrapper .input-icon-right {
  position: absolute; right: var(--space-4);
  color: var(--color-text-muted); cursor: pointer;
  display: flex; align-items: center;
  transition: color var(--transition-fast);
}
.input-wrapper .input-icon-right:hover { color: var(--color-text); }

.form-check { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] {
  width: 18px; height: 18px; margin-top: 1px;
  cursor: pointer; accent-color: var(--color-primary); flex-shrink: 0;
}
.form-check__label { font-size: var(--text-sm); cursor: pointer; }

/* ─────────────────────────────────────────
   ALERTS
───────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg); border: 1px solid;
  font-size: var(--text-sm);
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: #E7F5FF; border-color: #74C0FC; color: #1864AB; }
.alert-success { background: #EBFBEE; border-color: #8CE99A; color: #2B8A3E; }
.alert-warning { background: #FFF9DB; border-color: #FFD43B; color: #E67700; }
.alert-error   { background: #FFF5F5; border-color: #FFA8A8; color: #C92A2A; }
.alert__title  { font-weight: var(--font-semibold); margin-bottom: 2px; }

/* ─────────────────────────────────────────
   TOAST
───────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: var(--space-6); right: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  z-index: var(--z-toast); max-width: 380px;
  width: calc(100vw - var(--space-8));
}
.toast {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  animation: slideInRight var(--transition-base) ease;
}
.toast.removing { animation: slideOutRight var(--transition-base) ease forwards; }
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}
.toast__icon { flex-shrink: 0; }
.toast__body { flex: 1; }
.toast__title { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text); }
.toast__message { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.toast__close {
  margin-left: auto; flex-shrink: 0;
  color: var(--color-text-muted); cursor: pointer; padding: 2px;
  background: none; border: none;
}
.toast__close:hover { color: var(--color-text); }

/* ─────────────────────────────────────────
   MODALS
───────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-2xl);
  width: 100%; max-width: 520px;
  max-height: calc(100vh - var(--space-8)); overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal--lg { max-width: 720px; }
.modal--xl { max-width: 960px; }
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-border-soft);
}
.modal__title { font-size: var(--text-xl); font-weight: var(--font-bold); }
.modal__close {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); cursor: pointer;
  transition: all var(--transition-fast); background: none; border: none;
}
.modal__close:hover { background: var(--color-bg-muted); color: var(--color-text); }
.modal__body { padding: var(--space-6); }
.modal__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-soft);
  display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3);
}

/* ─────────────────────────────────────────
   PROGRESS BARS
───────────────────────────────────────── */
.progress {
  width: 100%; height: 8px;
  background: var(--color-bg-muted); border-radius: var(--radius-full); overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-slower);
}
.progress--sm { height: 4px; }
.progress--lg { height: 12px; }
.progress-group { display: flex; flex-direction: column; gap: var(--space-2); }
.progress-group__label { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ─────────────────────────────────────────
   SKELETONS
───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-muted) 25%, var(--color-bg-soft) 50%, var(--color-bg-muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text  { height: 16px; width: 100%; margin-bottom: 8px; }
.skeleton-title { height: 24px; width: 70%; margin-bottom: 12px; }
.skeleton-rect  { width: 100%; aspect-ratio: 16/9; }
.skeleton-circle { border-radius: var(--radius-full); }

/* ─────────────────────────────────────────
   EMPTY STATES
───────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: var(--space-16) var(--space-6); gap: var(--space-4);
}
.empty-state__icon {
  width: 80px; height: 80px;
  background: var(--color-bg-muted); border-radius: var(--radius-2xl);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-light);
}
.empty-state__title { font-size: var(--text-xl); font-weight: var(--font-semibold); }
.empty-state__description { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 400px; }

/* ─────────────────────────────────────────
   TABS
───────────────────────────────────────── */
.tabs {
  display: flex; border-bottom: 2px solid var(--color-border);
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm); font-weight: var(--font-medium);
  color: var(--color-text-muted); border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: var(--font-semibold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: var(--space-16) 0 var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer__brand-desc {
  font-size: var(--text-sm); line-height: var(--leading-relaxed);
  color: var(--color-gray-500); margin: var(--space-4) 0 var(--space-6);
}
.footer__col-title {
  font-size: var(--text-sm); font-weight: var(--font-semibold);
  color: var(--color-gray-200); margin-bottom: var(--space-4);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link {
  font-size: var(--text-sm); color: var(--color-gray-500); text-decoration: none;
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--color-gray-200); text-decoration: none; }
.footer__bottom {
  border-top: 1px solid var(--color-gray-800); padding-top: var(--space-8);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--text-sm); color: var(--color-gray-600);
}
.footer__social { display: flex; gap: var(--space-3); }
.footer__social-link {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--color-gray-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gray-400); transition: all var(--transition-fast); text-decoration: none;
}
.footer__social-link:hover { background: var(--color-primary); color: white; text-decoration: none; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #042F2E 0%, #0D4038 45%, #0C3350 100%);
  color: white; padding: var(--space-24) 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 40%, rgba(13,148,136,0.25) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(14,165,233,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-12); align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: var(--font-medium); margin-bottom: var(--space-6);
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: var(--font-extrabold);
  line-height: 1.1; margin-bottom: var(--space-6); color: white;
}
.hero__title .highlight {
  background: linear-gradient(135deg, #5EEAD4, #BAE6FD);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__description {
  font-size: var(--text-lg); color: rgba(255,255,255,0.8);
  line-height: var(--leading-relaxed); margin-bottom: var(--space-8);
}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-4);
  margin-top: var(--space-8); padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stat-value { font-size: var(--text-2xl); font-weight: var(--font-extrabold); color: white; }
.hero__stat-label { font-size: var(--text-xs); color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__phone-mockup {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 32px; padding: var(--space-8); max-width: 320px; width: 100%;
}

/* ─────────────────────────────────────────
   PAGE LOADER / SPINNERS
───────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0; background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.3s;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--color-bg-muted);
  border-top-color: var(--color-primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.spinner--sm { width: 20px; height: 20px; border-width: 2px; }
.spinner--xs { width: 14px; height: 14px; border-width: 2px; }

/* ─────────────────────────────────────────
   CODE BLOCKS
───────────────────────────────────────── */
.code-block {
  background: #1E1E2E; border-radius: var(--radius-lg);
  overflow: hidden; margin: var(--space-4) 0;
}
.code-block__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-block__lang { font-size: var(--text-xs); color: rgba(255,255,255,0.4); font-family: var(--font-mono); text-transform: uppercase; }
.code-block pre { padding: var(--space-5); overflow-x: auto; margin: 0; }
.code-block code { font-family: var(--font-mono); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: #CDD6F4; }
code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--color-bg-muted); padding: 2px 6px;
  border-radius: var(--radius-sm); color: var(--color-primary);
}

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--space-12); }
.section-header__eyebrow {
  font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3);
}
.section-header__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: var(--font-extrabold); margin-bottom: var(--space-4); line-height: 1.2; }
.section-header__description { font-size: var(--text-lg); color: var(--color-text-muted); line-height: var(--leading-relaxed); }

/* ─────────────────────────────────────────
   FAQ ACCORDION
───────────────────────────────────────── */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-6); cursor: pointer; user-select: none;
  font-weight: var(--font-medium); gap: var(--space-4);
}
.faq-question svg { flex-shrink: 0; transition: transform var(--transition-base); color: var(--color-text-muted); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 var(--space-6) var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.faq-item.open .faq-answer { display: block; }

/* ─────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────── */
.testimonial-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-6);
}
.testimonial-card__quote { font-size: var(--text-3xl); line-height: 1; color: var(--color-primary); margin-bottom: var(--space-4); }
.testimonial-card__text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-5); }
.testimonial-card__author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-card__avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--color-primary-100); display: flex; align-items: center;
  justify-content: center; font-weight: var(--font-bold); color: var(--color-primary); font-size: var(--text-sm);
}
.stars { display: flex; gap: 2px; color: var(--color-accent); margin-bottom: var(--space-3); }

/* ─────────────────────────────────────────
   WEEK TIMELINE
───────────────────────────────────────── */
.week-item {
  display: flex; gap: var(--space-6); position: relative; padding-bottom: var(--space-8);
}
.week-item:not(:last-child)::before {
  content: ''; position: absolute; left: 23px; top: 48px; bottom: 0;
  width: 2px; background: var(--color-border);
}
.week-item__number {
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white; font-weight: var(--font-bold); font-size: var(--text-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13,148,136,0.35); z-index: 1;
}
.week-item__content { flex: 1; }
.week-item__title { font-size: var(--text-lg); font-weight: var(--font-semibold); margin-bottom: var(--space-2); }
.week-item__topics { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* ─────────────────────────────────────────
   QUIZ COMPONENTS
───────────────────────────────────────── */
.quiz-option {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition-fast);
}
.quiz-option:hover { border-color: var(--color-primary); background: var(--color-primary-50); }
.quiz-option.selected { border-color: var(--color-primary); background: var(--color-primary-50); }
.quiz-option.correct { border-color: var(--color-success); background: #EBFBEE; }
.quiz-option.incorrect { border-color: var(--color-error); background: #FFF5F5; }
.quiz-option__radio {
  width: 20px; height: 20px; border: 2px solid var(--color-border);
  border-radius: 50%; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; margin-top: 1px; transition: all var(--transition-fast);
}
.quiz-option.selected .quiz-option__radio { border-color: var(--color-primary); background: var(--color-primary); }
.quiz-option.selected .quiz-option__radio::after { content: ''; width: 8px; height: 8px; background: white; border-radius: 50%; }

/* ─────────────────────────────────────────
   BREADCRUMBS
───────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); flex-wrap: wrap; }
.breadcrumb__item a { color: var(--color-text-muted); text-decoration: none; transition: color var(--transition-fast); }
.breadcrumb__item a:hover { color: var(--color-primary); }
.breadcrumb__separator { color: var(--color-text-light); }
.breadcrumb__item:last-child { color: var(--color-text); }

/* ─────────────────────────────────────────
   SEARCH BAR
───────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-bg); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full); padding: 0.5rem var(--space-5);
  max-width: 500px; width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-bar:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.15); }
.search-bar input { flex: 1; border: none; outline: none; background: transparent; font-size: var(--text-sm); color: var(--color-text); }
.search-bar input::placeholder { color: var(--color-text-light); }

/* ─────────────────────────────────────────
   THEME TOGGLE
───────────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); background: none;
  border: 1.5px solid var(--color-border); cursor: pointer;
  transition: all var(--transition-fast);
}
.theme-toggle:hover { background: var(--color-bg-muted); color: var(--color-text); border-color: var(--color-gray-400); }

/* ─────────────────────────────────────────
   SECTION PADDING
───────────────────────────────────────── */
.section-py { padding-block: var(--space-16); }

/* ─────────────────────────────────────────
   BRAND GRADIENT UTILITY (reusable)
───────────────────────────────────────── */
.brand-gradient {
  background: linear-gradient(135deg, #042F2E 0%, #0D4038 45%, #0C3350 100%);
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-slower);
}

/* announcement card brand accent */
.announcement-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.announcement-card__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-3);
}

.announcement-card__title {
  font-size: var(--text-base); font-weight: var(--font-semibold);
}

.announcement-card__meta {
  font-size: var(--text-xs); color: var(--color-text-muted);
  display: flex; gap: var(--space-3); flex-wrap: wrap;
}
