/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Core Colors */
  --bg-primary: #0a0a12;
  --bg-secondary: #12121e;
  --bg-tertiary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.6);
  --bg-card-hover: rgba(36, 36, 66, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.06);

  /* Accent Colors */
  --accent-primary: #8b5cf6;
  --accent-secondary: #a78bfa;
  --accent-gold: #d4a843;
  --accent-gold-light: #f0d78c;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-orange: #f59e0b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --gradient-gold: linear-gradient(135deg, #d4a843 0%, #f0d78c 50%, #d4a843 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a12 0%, #12121e 100%);
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(26, 26, 46, 0.4) 100%);
  --gradient-sidebar: linear-gradient(180deg, #0f0f1a 0%, #12121e 50%, #0a0a12 100%);

  /* Text Colors */
  --text-primary: #f1f1f7;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b82;
  --text-accent: #c4b5fd;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(139, 92, 246, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
  --shadow-gold-glow: 0 0 20px rgba(212, 168, 67, 0.2);

  /* Layout */
  --sidebar-width: 280px;
  --sidebar-collapsed: 72px;
  --header-height: 70px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ===== APP LAYOUT ===== */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition-medium);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-glow);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
}

.sidebar-brand h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.sidebar-brand span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 2px;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-glass-strong);
}

.nav-item.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.12);
}

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

.nav-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item .badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.badge-purple {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-secondary);
}

.badge-gold {
  background: rgba(212, 168, 67, 0.2);
  color: var(--accent-gold-light);
}

.badge-green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.user-profile:hover {
  background: var(--bg-glass-strong);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-info .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info .plan {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb i {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  position: relative;
}

.header-btn:hover {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.header-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-pink);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 16px;
  min-width: 260px;
  transition: all var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--accent-primary);
  background: var(--bg-glass-strong);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-bar i {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
  font-family: inherit;
}

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

/* ===== PAGE CONTENT ===== */
.page-content {
  flex: 1;
  padding: 32px;
}

/* ===== PAGE: DASHBOARD ===== */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

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

/* Welcome Banner */
.welcome-banner {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-xl);
  padding: 36px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.welcome-banner h2 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  max-width: 600px;
}

.welcome-banner .continue-btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  position: relative;
}

.welcome-banner .continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

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

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-secondary);
}

.stat-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.stat-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.stat-icon.gold {
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent-gold);
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

/* Section Title */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--accent-secondary);
}

/* Recent Lessons */
.recent-lessons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lesson-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.lesson-card .lesson-thumb {
  width: 80px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.lesson-card .lesson-info {
  flex: 1;
  min-width: 0;
}

.lesson-card .lesson-module {
  font-size: 0.7rem;
  color: var(--accent-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lesson-card .lesson-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-card .lesson-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lesson-card .lesson-meta i {
  font-size: 0.7rem;
}

.lesson-card .play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.lesson-card:hover .play-btn {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Progress Panel */
.progress-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.progress-ring-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.progress-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring .bg {
  stroke: var(--bg-tertiary);
}

.progress-ring .progress {
  stroke: url(#progressGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.progress-ring .percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-ring .percentage .value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.progress-ring .percentage .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Module Progress List */
.module-progress-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-progress-item .module-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.module-progress-item .module-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.module-progress-item .progress-bar-mini {
  width: 60px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.module-progress-item .progress-bar-mini .fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-primary);
  transition: width 1s ease;
}

.module-progress-item .progress-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  width: 35px;
  text-align: right;
}

/* ===== PAGE: MODULES ===== */
.modules-header {
  margin-bottom: 32px;
}

.modules-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modules-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
}

.module-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.module-card .module-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.module-card:hover .module-image {
  transform: scale(1.05);
}

.module-card .module-image-wrapper {
  overflow: hidden;
  position: relative;
}

.module-card .module-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  pointer-events: none;
}

.module-card .module-number-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold-light);
  z-index: 2;
}

.module-card .module-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.module-status-badge.completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  backdrop-filter: blur(10px);
}

.module-status-badge.in-progress {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-secondary);
  backdrop-filter: blur(10px);
}

.module-status-badge.locked {
  background: rgba(107, 107, 130, 0.2);
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.module-card .module-body {
  padding: 20px 24px 24px;
}

.module-card .module-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.module-card .module-description {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.module-card .module-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.module-card .module-progress {
  background: var(--bg-tertiary);
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}

.module-card .module-progress .fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-primary);
  transition: width 0.8s ease;
}

/* ===== PAGE: MODULE DETAIL / LESSONS ===== */
.module-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.module-detail-header .module-detail-image {
  width: 320px;
  height: 200px;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.module-detail-info {
  flex: 1;
}

.module-detail-info .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  font-family: inherit;
}

.module-detail-info .back-btn:hover {
  color: var(--accent-secondary);
}

.module-detail-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.module-detail-info .module-detail-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.module-detail-stats {
  display: flex;
  gap: 24px;
}

.module-detail-stats .detail-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.module-detail-stats .detail-stat i {
  color: var(--accent-secondary);
}

/* Lessons List */
.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lesson-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.lesson-item.current {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.08);
}

.lesson-item .lesson-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.lesson-item.completed .lesson-number {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.lesson-item.current .lesson-number {
  background: var(--gradient-primary);
  color: white;
}

.lesson-item .lesson-content {
  flex: 1;
  min-width: 0;
}

.lesson-item .lesson-content .title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.lesson-item .lesson-content .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-item .lesson-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-item .lesson-status .status-icon {
  font-size: 1rem;
}

.lesson-item .lesson-status .status-icon.completed {
  color: var(--accent-green);
}

.lesson-item .lesson-status .status-icon.current {
  color: var(--accent-primary);
}

.lesson-item .lesson-status .status-icon.locked {
  color: var(--text-muted);
}

/* ===== VIDEO PLAYER PAGE ===== */
.video-player-page {
  max-width: 1100px;
  margin: 0 auto;
}

.video-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.video-back-btn:hover {
  color: var(--accent-secondary);
}

.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: calc(100vh - 200px);
  background: #000;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.video-container:fullscreen {
  max-height: none;
  border-radius: 0;
  border: none;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
  display: block;
}

/* Big Center Play Button Overlay */
.video-big-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 18, 0.45);
  backdrop-filter: blur(2px);
  z-index: 10;
  cursor: pointer;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.video-big-play.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.big-play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
  padding-left: 6px;
  margin-bottom: 14px;
}

.video-big-play:hover .big-play-btn {
  transform: scale(1.12);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.9), 0 12px 30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.big-play-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  background: rgba(15, 15, 26, 0.7);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-medium);
}

/* Loading Spinner */
.video-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10, 10, 18, 0.65);
  backdrop-filter: blur(4px);
  z-index: 12;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.video-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-gold);
  border-radius: 50%;
  animation: spinVideo 0.8s linear infinite;
}

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

.video-loader span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Video Error Overlay */
.video-error-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(8px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.video-error-content {
  text-align: center;
  max-width: 540px;
}

.video-error-content .error-icon {
  font-size: 3.5rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
  display: inline-block;
}

.video-error-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.video-error-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.error-btn.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.error-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.6);
}

.error-btn.secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.error-btn.secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

.error-btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.error-btn.ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
}

/* Custom Video Controls Bar */
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 10, 18, 0.96) 0%, rgba(10, 10, 18, 0.75) 60%, transparent 100%);
  padding: 24px 20px 14px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-container.playing.user-idle .custom-video-controls {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.video-container.playing.user-idle {
  cursor: none;
}

/* Progress Container */
.video-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.video-progress-container:hover {
  height: 10px;
}

.video-progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.2s ease;
}

.video-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-gold) 100%);
  border-radius: 4px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.progress-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: translateX(50%) scale(0);
  transition: transform 0.15s ease;
}

.video-progress-container:hover .progress-thumb {
  transform: translateX(50%) scale(1);
}

.progress-tooltip {
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  background: rgba(15, 15, 26, 0.9);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-medium);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.video-progress-container:hover .progress-tooltip {
  opacity: 1;
}

/* Bottom Controls */
.controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  padding: 0;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold-light);
  transform: scale(1.1);
}

#ctrlPlayBtn {
  font-size: 1.25rem;
  color: #fff;
}

/* Volume Slider */
.volume-container {
  display: flex;
  align-items: center;
  position: relative;
}

.volume-slider-wrapper {
  width: 0;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.volume-container:hover .volume-slider-wrapper,
.volume-container:focus-within .volume-slider-wrapper {
  width: 75px;
  margin-left: 6px;
}

.volume-slider {
  width: 75px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Time Display */
.time-display {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.time-separator {
  color: var(--text-muted);
}

#currentTime {
  color: #fff;
  font-weight: 600;
}

/* Toggle Switch (Autoplay) */
.autoplay-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 18px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gradient-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* Speed Dropdown */
.speed-dropdown-wrapper {
  position: relative;
}

.speed-btn {
  font-size: 0.82rem;
  font-weight: 700;
  width: auto;
  padding: 4px 10px;
}

.speed-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(20, 20, 35, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  box-shadow: var(--shadow-lg);
  z-index: 25;
}

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

.speed-opt {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.speed-opt:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}

.speed-opt.active {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
}

.video-info {
  margin-bottom: 28px;
}

.video-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-info .video-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.video-info .video-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.video-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-secondary);
}

.video-action-btn:hover {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.video-action-btn.primary {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.video-action-btn.primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Video Navigation */
.video-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.video-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-nav-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.video-nav-btn.next {
  justify-content: flex-end;
  text-align: right;
}

.video-nav-btn .nav-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.video-nav-btn .nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 2px;
}

.video-nav-btn i {
  font-size: 1.2rem;
  color: var(--accent-secondary);
}

/* ===== PAGE: CERTIFICADOS ===== */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.certificate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-fast);
}

.certificate-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.certificate-card .cert-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.cert-icon.earned {
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent-gold);
}

.cert-icon.locked {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.certificate-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.certificate-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.certificate-card .cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.cert-btn.download {
  background: var(--gradient-gold);
  color: #1a1a2e;
}

.cert-btn.download:hover {
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-1px);
}

.cert-btn.locked {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ===== PAGE: COMUNIDADE ===== */
.community-header {
  text-align: center;
  margin-bottom: 40px;
}

.community-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.community-header p {
  color: var(--text-secondary);
}

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

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition-medium);
}

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

.community-card .comm-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.comm-icon.discord {
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
}

.comm-icon.forum {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-secondary);
}

.comm-icon.live {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
}

.comm-icon.portfolio {
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent-gold);
}

.community-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.community-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.community-card .comm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-medium);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.community-card .comm-btn:hover {
  background: var(--bg-glass-strong);
  border-color: var(--accent-primary);
}

/* ===== CONFIGURAÇÕES ===== */
.settings-container {
  max-width: 700px;
}

.settings-section {
  margin-bottom: 32px;
}

.settings-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-field:last-child {
  border-bottom: none;
}

.settings-field .field-info {
  flex: 1;
}

.settings-field .field-info .field-label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.settings-field .field-info .field-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle {
  width: 44px;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}

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

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.toggle.active::after {
  transform: translateX(20px);
}

/* ===== MOBILE OVERLAY ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header {
    padding: 0 16px;
  }

  .search-bar {
    display: none;
  }

  .page-content {
    padding: 20px 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .module-detail-header {
    flex-direction: column;
  }

  .module-detail-header .module-detail-image {
    width: 100%;
    height: 200px;
  }

  .welcome-banner {
    padding: 24px 20px;
  }

  .welcome-banner h2 {
    font-size: 1.4rem;
  }

  .video-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 18px;
  }

  .module-detail-stats {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== LOADING ANIMATION ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-slide-up:nth-child(1) { animation-delay: 0.05s; }
.animate-slide-up:nth-child(2) { animation-delay: 0.1s; }
.animate-slide-up:nth-child(3) { animation-delay: 0.15s; }
.animate-slide-up:nth-child(4) { animation-delay: 0.2s; }
.animate-slide-up:nth-child(5) { animation-delay: 0.25s; }
.animate-slide-up:nth-child(6) { animation-delay: 0.3s; }

/* ===== SEÇÃO: SEUS BÔNUS DIGITAIS ===== */
.bonuses-header {
  margin-bottom: 32px;
}

.bonuses-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.3);
  color: var(--accent-gold-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.bonuses-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bonuses-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 700px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.view-all-link {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  color: var(--accent-gold-light);
  transform: translateX(3px);
}

.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}

.bonuses-grid.dashboard-preview {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.bonus-card:hover {
  border-color: rgba(212, 168, 67, 0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 168, 67, 0.15);
}

.bonus-cover-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0f0e17;
}

.bonus-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.bonus-card:hover .bonus-cover-img {
  transform: scale(1.05);
}

.bonus-cover-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  pointer-events: none;
}

.bonus-badge-num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(15, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 67, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.bonus-badge-type {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.85);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.bonus-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bonus-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.bonus-tagline {
  font-size: 0.78rem;
  color: var(--accent-gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.bonus-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.bonus-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bonus-highlights li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.bonus-highlights li i {
  color: var(--accent-green);
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.bonus-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.btn-bonus-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-bonus-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  color: #ffffff;
}

.btn-bonus-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(212, 168, 67, 0.1);
  color: var(--accent-gold-light);
  border: 1px solid rgba(212, 168, 67, 0.4);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-bonus-download:hover {
  background: rgba(212, 168, 67, 0.2);
  border-color: var(--accent-gold-light);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-bonus-open:focus-visible,
.btn-bonus-download:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ===== PDF MODAL VIEWER ===== */
.pdf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdf-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

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

.pdf-modal-container {
  background: #171524;
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-xl);
  width: 95%;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.pdf-modal-header {
  padding: 14px 20px;
  background: rgba(26, 24, 38, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-modal-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.pdf-modal-btn.download {
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid rgba(212, 168, 67, 0.4);
}

.pdf-modal-btn.download:hover {
  background: rgba(212, 168, 67, 0.3);
  color: #fff;
}

.pdf-modal-btn.external {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.pdf-modal-btn.external:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

.pdf-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pdf-modal-close:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.2);
}

.pdf-modal-body {
  flex: 1;
  background: #252433;
  position: relative;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .bonuses-grid {
    grid-template-columns: 1fr;
  }
  .bonus-actions {
    grid-template-columns: 1fr;
  }
  .pdf-modal-container {
    width: 100%;
    height: 96vh;
    border-radius: var(--border-radius);
  }
}

/* ===== SIDEBAR CLOSE BUTTON (MOBILE) ===== */
.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all var(--transition-fast);
}

.sidebar-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .sidebar-close-btn {
    display: flex;
  }
}

/* ===== HEADER SUPPORT BUTTON ===== */
.header-support-btn {
  position: relative;
  color: var(--accent-secondary);
}

.header-support-btn:hover {
  color: var(--accent-gold-light);
  border-color: var(--border-accent);
}

.support-badge-pulse {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* ===== DASHBOARD QUICK MODULES STRIP ===== */
.dashboard-modules-strip-section {
  margin-bottom: 30px;
}

.quick-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.quick-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.quick-module-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.qm-thumb-wrap {
  position: relative;
  width: 100%;
  height: 90px;
  background: #000;
}

.qm-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qm-num {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent-gold-light);
}

.qm-done {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qm-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qm-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.qm-pct {
  color: var(--accent-secondary);
  font-weight: 600;
}

.qm-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.qm-progress-bar .fill {
  height: 100%;
  background: var(--gradient-primary);
}

.module-progress-item.clickable {
  cursor: pointer;
  transition: background var(--transition-fast);
  padding: 6px 10px;
  border-radius: 8px;
}

.module-progress-item.clickable:hover {
  background: var(--bg-glass-strong);
}

.module-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.module-progress-item.clickable:hover .module-arrow {
  color: var(--accent-secondary);
  transform: translateX(3px);
}

/* ===== VIDEO TOUCH SCRUBBING & HIT AREA ===== */
.video-progress-container {
  touch-action: none;
}

.video-progress-container::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 0;
  right: 0;
}

/* ===== SEEK FEEDBACK INDICATOR OVERLAY (+10s / -10s) ===== */
.seek-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(15, 15, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 18;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(139, 92, 246, 0.3);
}

.seek-feedback.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.seek-feedback i {
  color: var(--accent-gold-light);
}

/* ===== VIDEO QUICK BAR (FORWARD / REWIND / SPEED) ===== */
.video-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 12px 18px;
  margin-bottom: 20px;
}

.quick-seek-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.quick-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-gold-light);
  transform: translateY(-1px);
}

.quick-btn.quick-play-btn {
  background: var(--gradient-primary);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.4);
  font-weight: 700;
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
}

.quick-btn.quick-play-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.quick-btn.quick-play-btn.is-paused {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold-light);
  border-color: var(--accent-gold);
  box-shadow: 0 2px 10px rgba(212, 168, 67, 0.25);
}

.quick-speed-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-speed-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-speed-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.speed-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.speed-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-medium);
}

.speed-chip.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.speed-menu-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold-light);
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2px;
}

/* ===== VIDEO MODULE PLAYLIST SECTION ===== */
.video-module-playlist-section {
  margin-top: 28px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: 20px;
}

.video-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.video-sidebar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-gold-light);
}

.video-sidebar-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 3px 8px;
  border-radius: 6px;
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.playlist-item.current {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-primary);
}

.playlist-item.completed .item-num {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.playlist-item .item-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.playlist-item.current .item-num {
  background: var(--gradient-primary);
  color: #fff;
}

.playlist-item .item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item .item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item .item-duration {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.playlist-item .now-playing-badge {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  animation: pulse 1.5s infinite;
}

/* ===== SUPPORT / ATENDIMENTO MODAL ===== */
.support-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.support-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.support-modal-card {
  background: linear-gradient(145deg, #181726 0%, #12121e 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-xl);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 92, 246, 0.15);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-modal-header {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--accent-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.support-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.support-close-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
}

.support-modal-content {
  padding: 28px 24px;
  text-align: center;
}

.support-icon-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(212, 168, 67, 0.25) 100%);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-gold-light);
  margin: 0 auto 16px;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.support-modal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.support-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--accent-gold-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse 1.5s infinite;
}

.support-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.support-cards-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
}

.support-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.support-mini-card i {
  font-size: 1.1rem;
  color: var(--accent-secondary);
  margin-top: 2px;
  flex-shrink: 0;
}

.support-mini-card strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.support-mini-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.support-primary-action {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.support-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.6);
}

/* ===== MOBILE RESPONSIVE VIDEO CONTROLS ===== */
@media (max-width: 768px) {
  .custom-video-controls {
    padding: 14px 12px 8px;
    gap: 6px;
  }
  .controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .controls-left, .controls-right {
    gap: 6px;
  }
  .ctrl-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .volume-container {
    display: none; /* Physical volume rocker on phones */
  }
  .autoplay-toggle-wrapper {
    display: none; /* Avoid overflowing tiny bar */
  }
  .time-display {
    font-size: 0.75rem;
    gap: 3px;
  }
  .speed-btn {
    padding: 2px 8px;
    font-size: 0.75rem;
  }
  .video-quick-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .quick-seek-group {
    justify-content: center;
  }
  .quick-seek-group .quick-btn {
    flex: 1;
    justify-content: center;
  }
  .quick-speed-group {
    justify-content: center;
  }
  .quick-speed-chips {
    flex-wrap: wrap;
    justify-content: center;
  }
  .quick-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .quick-modules-grid {
    grid-template-columns: 1fr;
  }
  .support-modal-card {
    border-radius: var(--border-radius);
  }
}

