@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
}

/* AUTH PAGES */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--primary-dark) 100%);
  padding: 20px;
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo h1 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo p {
  color: var(--gray);
  margin-top: 8px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-3);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  width: 100%;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--dark-3); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray);
}

.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

/* LAYOUT */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--dark);
  color: white;
  padding: 24px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s;
}

.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--dark-3);
  margin-bottom: 16px;
}

.sidebar-logo h2 {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo small { color: var(--gray); font-size: 12px; }

.sidebar-nav { list-style: none; padding: 0 12px; }

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--dark-2);
  color: white;
}

.sidebar-nav li a .nav-icon { font-size: 18px; width: 24px; text-align: center; }

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 32px;
  min-height: 100vh;
}

/* HEADER */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
}

.page-header p { color: var(--gray); margin-top: 4px; }

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-info h3 { font-size: 28px; font-weight: 800; }
.stat-info p { font-size: 13px; color: var(--gray); font-weight: 500; }

/* COURSES GRID — estilo Netflix */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px 12px;
  max-width: 1200px;
}

.netflix-card {
  background: transparent;
  border-radius: 6px;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.netflix-card:hover {
  transform: scale(1.06);
  z-index: 2;
}

.course-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.course-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-poster-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.course-poster-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}

.course-poster-progress-fill {
  height: 100%;
  background: #e50914;
}

.course-poster-meta {
  padding: 8px 2px 0;
}

.course-poster-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-poster-sub {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
}

.course-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.progress-bar {
  background: var(--light);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.progress-text {
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
}

/* COURSE PAGE */
.course-hero {
  border-radius: var(--radius);
  padding: 40px;
  color: white;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.course-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.course-hero.has-cover {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.course-hero-compact.has-cover {
  min-height: 140px;
  max-height: 160px;
  padding: 20px 24px;
}

.course-hero-compact .course-hero-title {
  font-size: 22px;
}

.course-hero-compact .course-hero-description {
  font-size: 13px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-hero-compact .course-hero-stats {
  margin-top: 12px;
  gap: 20px;
}

.course-hero-compact .stat-value {
  font-size: 20px;
}

.course-hero.has-cover::before {
  display: none;
}

.course-hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.course-hero.has-cover .course-hero-content {
  z-index: 1;
}

.course-hero h1 { font-size: 32px; font-weight: 800; position: relative; margin-bottom: 8px; }
.course-hero p { opacity: 0.9; position: relative; font-size: 15px; line-height: 1.6; max-width: 600px; }

.course-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  position: relative;
}

.course-stat-item { text-align: center; }
.course-stat-item .number { font-size: 28px; font-weight: 800; }
.course-stat-item .label { font-size: 12px; opacity: 0.8; }

.course-progress-bar {
  margin-top: 24px;
  position: relative;
}

.course-progress-bar .progress-bar {
  height: 12px;
  background: rgba(255,255,255,0.2);
}

.course-progress-bar .progress-bar-fill {
  background: white;
}

.course-progress-bar .progress-text {
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

/* MODULES */
.module-section {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.module-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid transparent;
}

.module-header:hover { background: var(--light); }

.module-header.active { border-bottom-color: var(--border); }

.module-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.module-title h3 { font-size: 16px; font-weight: 700; }
.module-title small { font-size: 12px; color: var(--gray); display: block; margin-top: 2px; }

.module-badge {
  background: var(--light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}

.module-toggle {
  font-size: 18px;
  transition: transform 0.3s;
  color: var(--gray);
}

.module-header.active .module-toggle { transform: rotate(180deg); }

.module-lessons {
  display: none;
  padding: 0;
}

.module-lessons.show { display: block; }

.lesson-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}

.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: #f8fafc; }

.lesson-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 14px;
  color: transparent;
}

.lesson-check.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.lesson-info { flex: 1; }
.lesson-info h4 { font-size: 14px; font-weight: 600; color: var(--dark); }
.lesson-info span { font-size: 12px; color: var(--gray); }

.lesson-type {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.lesson-type.video { background: #eff6ff; color: #3b82f6; }
.lesson-type.material { background: #fef3c7; color: #d97706; }

/* ADMIN */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: white;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--gray);
  transition: all 0.2s;
}

.admin-tab.active {
  background: var(--primary);
  color: white;
}

.admin-section { display: none; }
.admin-section.active { display: block; }

.data-table {
  width: 100%;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--light);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.data-table tr:hover td { background: #f8fafc; }

.status-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-active { background: #dcfce7; color: #16a34a; }
.status-cancelled { background: #fef2f2; color: #dc2626; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* WEBHOOK INFO */
.webhook-info {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.webhook-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.webhook-url {
  background: var(--dark);
  color: #a5f3fc;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  word-break: break-all;
  margin-bottom: 16px;
}

.webhook-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webhook-event-tag {
  background: var(--light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-3);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--gray); font-size: 15px; }

/* MOBILE MENU */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 80px 16px 24px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .course-hero {
    padding: 24px;
  }

  .course-hero h1 { font-size: 22px; }
  .course-stats { gap: 16px; flex-wrap: wrap; }

  .page-header h1 { font-size: 22px; }

  .data-table { overflow-x: auto; }

  .auth-card { padding: 32px 24px; }
}

/* LOADING ANIMATION */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* CHECKBOX CUSTOM */
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.checkbox-item:hover { background: var(--light); }
.checkbox-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* EXTRA CLASSES FOR PHP VERSION */
.sidebar-nav { list-style: none; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  color: #94a3b8; text-decoration: none; border-radius: 10px;
  font-size: 14px; font-weight: 500; transition: all 0.2s; margin: 0 12px;
}
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active { background: var(--dark-2); color: white; }
.sidebar-toggle { display: none; position: fixed; top: 16px; left: 16px; z-index: 200;
  background: var(--primary); color: white; border: none; border-radius: 10px;
  width: 44px; height: 44px; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-lg); }
.sidebar.open { transform: translateX(0) !important; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; }
.sidebar-overlay.active { display: block; }
.user-name { font-weight: 600; font-size: 14px; }
.progress-fill { height: 100%; border-radius: 8px; transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.progress-percent { font-weight: 700; }
.course-description { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-name { font-size: 20px; font-weight: 700; position: relative; }
.course-count { font-size: 13px; opacity: 0.85; margin-top: 4px; position: relative; }
.course-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-icon { font-size: 64px; margin-bottom: 16px; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: transparent; border: 2px solid var(--border); color: var(--dark-3);
  border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none;
  margin-bottom: 16px; transition: all 0.2s; }
.btn-back:hover { border-color: var(--primary); color: var(--primary); }
.course-hero-content { position: relative; }
.course-hero-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.course-hero-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.course-hero-description { opacity: 0.9; font-size: 15px; line-height: 1.6; max-width: 600px; }
.course-hero-stats { display: flex; gap: 32px; margin-top: 24px; }
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 28px; font-weight: 800; }
.stat-label { font-size: 12px; opacity: 0.8; }
.course-hero-progress { margin-top: 24px; }
.progress-bar-light { background: rgba(255,255,255,0.2); }
.progress-bar-light .progress-fill { background: white; }
.progress-text-light { color: rgba(255,255,255,0.8); margin-top: 8px; font-size: 12px; font-weight: 600; display: block; }
.modules-container { margin-top: 8px; }
.module-header-left { display: flex; align-items: center; gap: 12px; }
.module-toggle-icon { font-size: 14px; color: var(--gray); width: 20px; text-align: center; }
.module-info h3 { font-size: 16px; font-weight: 700; }
.module-info p, .module-subtitle { font-size: 12px; color: var(--gray); margin-top: 2px; }
.module-badge-complete { font-size: 12px; color: var(--success); font-weight: 600; }
.lesson-title { font-size: 14px; font-weight: 600; color: var(--dark); }
.check-icon { font-size: 14px; }
.badge-video { background: #eff6ff; color: #3b82f6; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge-material { background: #fef3c7; color: #d97706; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; background: var(--light); padding: 20px; }
.error-page h1 { font-size: 72px; font-weight: 800; color: var(--primary); }
.error-page p { color: var(--gray); margin: 8px 0; font-size: 16px; }
.error-page .btn { margin-top: 20px; }

/* PWA INSTALL */
.pwa-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e293b, #312e81);
  border: 1px solid #4338ca;
  color: #fff;
}
.install-step {
  margin: 20px 0;
  padding: 16px;
  background: #0f172a;
  border-radius: var(--radius);
  border: 1px solid #334155;
}
.install-step h3 { font-size: 1rem; margin-bottom: 10px; color: #e2e8f0; }
.install-step ol, .install-step ul {
  margin-left: 18px;
  color: #94a3b8;
  font-size: .9rem;
  line-height: 1.8;
}
.btn-outline {
  background: transparent;
  color: #c7d2fe;
  border: 1px solid #6366f1;
}

@media (max-width: 768px) {
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; padding: 80px 16px 24px; }
  .course-hero-title { font-size: 22px; }
  .course-hero-stats { gap: 16px; flex-wrap: wrap; }
}

/* WhatsApp */
.whatsapp-inline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.whatsapp-inline-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}
.whatsapp-inline-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
.whatsapp-float {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483000;
  width: 56px;
  height: 56px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  box-sizing: border-box;
  overflow: hidden;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.55);
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
  display: block;
  pointer-events: none;
}
@media (max-width: 640px) {
  .whatsapp-float {
    right: 14px !important;
    bottom: 14px !important;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}
