/* ==========================================================================
   CourseVault - Premium Glassmorphic Design System (Vanilla CSS)
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Light Theme (Default: Crisp, Modern, High-Contrast) */
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  
  --border-subtle: #e2e8f0;
  --border-highlight: rgba(79, 70, 229, 0.35);
  --border-glow: rgba(2, 132, 199, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Accents & Gradients */
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  
  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  --grad-cyan: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-glow: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);

  /* Shadows & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px #e2e8f0;
  --shadow-hover: 0 16px 32px -6px rgba(79, 70, 229, 0.14), 0 0 0 1px #6366f1;
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.2);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-deep: #0B0D0F;
  --bg-surface: #0e131f;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(26, 36, 56, 0.95);
  --bg-glass: rgba(11, 13, 15, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.35);
  --border-glow: rgba(14, 165, 233, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-hover: 0 20px 40px -15px rgba(99, 102, 241, 0.25), 0 0 0 1px var(--border-highlight);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.4);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a, a:visited, a:hover, a:active, a:focus {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Ambient Backdrops */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .ambient-glow {
  display: none !important;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: rgba(99, 102, 241, 0.25);
}
.glow-2 {
  width: 600px;
  height: 600px;
  top: 20%;
  right: -150px;
  background: rgba(6, 182, 212, 0.18);
}
.glow-3 {
  width: 500px;
  height: 500px;
  bottom: 0;
  left: 30%;
  background: rgba(168, 85, 247, 0.15);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02), 0 4px 16px -2px rgba(15, 23, 42, 0.03);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

[data-theme="dark"] .navbar {
  background: rgba(11, 13, 15, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 100%;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.92;
  transform: translateY(-0.5px);
}

.brand-logo-video,
.brand-logo-img {
  height: 27px;
  width: auto;
  max-width: 135px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform var(--transition-fast);
}

/* Light Logo (default theme: light logo visible, dark logo hidden) */
.brand-logo-video.logo-light,
.brand-logo-img.logo-light {
  display: block !important;
  mix-blend-mode: multiply;
}

.brand-logo-video.logo-dark,
.brand-logo-img.logo-dark {
  display: none !important;
}

/* Dark Theme Logo (dark logo visible only in dark theme, light logo hidden) */
[data-theme="dark"] .brand-logo-video.logo-light,
[data-theme="dark"] .brand-logo-img.logo-light {
  display: none !important;
}

[data-theme="dark"] .brand-logo-video.logo-dark,
[data-theme="dark"] .brand-logo-img.logo-dark {
  display: block !important;
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.25));
}

.nav-brand-divider {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.35), transparent);
  margin: 0 0.15rem;
}

[data-theme="dark"] .nav-brand-divider {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.nav-anchor-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-anchor-link {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-anchor-link:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .nav-anchor-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-anchor-link.active {
  color: var(--accent-primary) !important;
  background: rgba(79, 70, 229, 0.08) !important;
  font-weight: 600;
}

[data-theme="dark"] .nav-anchor-link.active {
  color: #a5b4fc !important;
  background: rgba(99, 102, 241, 0.15) !important;
}

/* Micro Count & Live Badges in Nav */
.nav-link-pill-tag,
.nav-counter-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(79, 70, 229, 0.15);
  letter-spacing: -0.01em;
  margin-left: 0.35rem;
  transition: all 0.15s ease;
}

[data-theme="dark"] .nav-link-pill-tag,
[data-theme="dark"] .nav-counter-chip {
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.25);
}

.nav-tag-methods,
.chip-live {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

[data-theme="dark"] .nav-tag-methods,
[data-theme="dark"] .chip-live {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.25) !important;
}

.nav-status-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.live-stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

[data-theme="dark"] .live-stream-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.25);
}

.nav-stat-divider {
  color: rgba(16, 185, 129, 0.45);
  margin: 0 0.1rem;
}

.nav-stat-sublabel {
  font-weight: 500;
  color: #047857;
  font-size: 0.7rem;
}

[data-theme="dark"] .nav-stat-sublabel {
  color: #a7f3d0;
}

.live-stream-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: livePulse 2.2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-stream-badge.disconnected .live-stream-dot {
  background: #f43f5e;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
  animation: none;
}

.live-stream-badge.disconnected {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.2);
  color: #e11d48;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Primary Standout CTA: VIP Pass */
.nav-vip-pill-btn {
  height: 35px;
  padding: 0 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.nav-vip-pill-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.42);
}

.nav-vip-pill-btn:active {
  transform: translateY(0);
}

[data-theme="dark"] .nav-vip-pill-btn {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .nav-vip-pill-btn:hover {
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.55);
}

/* Sign In Button */
.nav-signin-btn {
  height: 35px;
  padding: 0 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-signin-btn:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .nav-signin-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

/* Saved Bookmarks Button */
#btnSavedBookmarks.nav-btn {
  height: 35px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

#btnSavedBookmarks.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] #btnSavedBookmarks.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

#savedCounter.badge-counter {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
  margin-left: 0.1rem;
  line-height: 1.2;
  transition: background-color 0.15s ease;
}

[data-theme="dark"] #savedCounter.badge-counter {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

.nav-action-divider {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.35), transparent);
  margin: 0 0.15rem;
}

[data-theme="dark"] .nav-action-divider {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.nav-icon-btn {
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-icon-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-primary);
}

[data-theme="dark"] .nav-icon-btn:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

.nav-icon-btn.theme-toggle-btn:hover {
  transform: rotate(15deg);
}

[data-theme="dark"] .nav-icon-btn.theme-toggle-btn:hover {
  transform: rotate(-15deg);
}

.sync-svg-icon.rotating {
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-icon-only:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.theme-toggle-btn {
  transition: all var(--transition-fast);
  user-select: none;
}
.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(12deg);
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-link:hover {
  text-decoration: underline;
}

.badge-counter {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-left: 0.2rem;
}

.sync-icon.rotating {
  animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

/* Hero Showcase Section (Full-Width Edge-to-Edge Band) */
.hero-section {
  width: 100%;
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--bg-deep);
  transition: background-color 0.25s ease;
}

[data-theme="dark"] .hero-section {
  background-color: #0B0D0F !important;
}

.hero-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 2-Column Hero Grid */
.hero-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  max-width: 1240px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.hero-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-col-left .hero-pill {
  margin-bottom: 1.1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pill-sparkle {
  color: #4f46e5;
  display: flex;
  align-items: center;
}

.pill-text {
  color: #0f172a;
  font-weight: 700;
}

.pill-tag {
  background: #4f46e5;
  color: #ffffff;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .hero-pill {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #e0e7ff;
}

[data-theme="dark"] .pill-text {
  color: #e0e7ff;
}

[data-theme="dark"] .pill-sparkle {
  color: #818cf8;
}

[data-theme="dark"] .pill-tag {
  background: #6366f1;
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  text-align: left;
}

.gradient-title {
  display: block;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.3rem;
  font-size: 0.82em;
  font-weight: 700;
}

[data-theme="dark"] .gradient-title {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 1.4rem;
  line-height: 1.55;
  text-align: left;
}

/* Dual Primary CTA Action Buttons */
.hero-dual-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.btn-hero-courses,
.btn-hero-methods {
  height: 48px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.btn-hero-courses *,
.btn-hero-methods * {
  text-decoration: none !important;
}

.btn-hero-courses {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px -1px rgba(79, 70, 229, 0.42), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-hero-courses:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(79, 70, 229, 0.52);
}

.btn-hero-count {
  opacity: 0.88;
  font-weight: 500;
  font-size: 0.88em;
}

.btn-hero-methods {
  background: #f8fafc;
  color: #4f46e5 !important;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn-hero-methods:hover {
  background: #ffffff;
  border-color: #6366f1;
  color: #4338ca !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(99, 102, 241, 0.16);
}

[data-theme="dark"] .btn-hero-methods {
  background: rgba(99, 102, 241, 0.08);
  color: #c7d2fe !important;
  border: 1.5px solid rgba(99, 102, 241, 0.32);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .btn-hero-methods:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: #818cf8;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px -2px rgba(99, 102, 241, 0.35);
}

.btn-hero-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-hero-icon-zap {
  color: #f59e0b;
}

.btn-hero-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-hero-courses:hover .btn-hero-arrow,
.btn-hero-methods:hover .btn-hero-arrow {
  transform: translateX(3px);
}

/* Hero Quick Search Box */
.hero-col-left .hero-search-box {
  max-width: 580px;
  width: 100%;
  margin: 0 0 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  height: 50px;
  padding: 0 0.45rem 0 1.1rem;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
  position: relative;
}

[data-theme="dark"] .hero-search-input-wrap {
  background: #111418;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

.hero-search-input-wrap:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 6px 24px -4px rgba(79, 70, 229, 0.22), 0 0 0 3px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .hero-search-input-wrap:focus-within {
  border-color: #818cf8;
  box-shadow: 0 6px 24px -2px rgba(99, 102, 241, 0.3), 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.hero-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

#heroSearchInput {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  padding: 0;
}

#heroSearchInput::placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-search-btn {
  height: 38px;
  padding: 0 1.15rem;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none !important;
  flex-shrink: 0;
}

.hero-search-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
}

/* Hero Trending Tags Row (No Awkward Wrapping, No Underlines) */
.hero-col-left .hero-trending-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  justify-content: flex-start;
}

.trending-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.25rem;
  flex-shrink: 0;
  user-select: none;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.65rem;
  font-size: 0.77rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.35;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  user-select: none;
  cursor: pointer;
}

.hero-tag-pill *,
.hero-tag-pill:visited,
.hero-tag-pill:hover,
.hero-tag-pill:active,
.hero-tag-pill:focus {
  text-decoration: none !important;
}

.hero-tag-pill:hover {
  text-decoration: none !important;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.06);
  transform: translateY(-1px);
}

[data-theme="dark"] .hero-tag-pill {
  background: #111418;
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

[data-theme="dark"] .hero-tag-pill:hover {
  color: #e0e7ff;
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
}

.hero-tag-method {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #7c3aed !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
  font-weight: 700;
}

.hero-tag-method:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: #7c3aed !important;
  color: #6d28d9 !important;
}

[data-theme="dark"] .hero-tag-method {
  color: #c4b5fd !important;
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
}

[data-theme="dark"] .hero-tag-method:hover {
  color: #ffffff !important;
  background: rgba(139, 92, 246, 0.32) !important;
  border-color: #a78bfa !important;
}

/* Trust Bullets */
.hero-trust-bullets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.15rem;
}

.trust-bullet-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1;
  user-select: none;
}

.trust-check-icon {
  color: #10b981;
  flex-shrink: 0;
}

/* Right Column: Ultra HD Video Showcase (Pure, Real, No extra background styling or shadows) */
.hero-col-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: transparent !important;
}

.hero-video-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  overflow: visible;
}

/* Ambient glow reflection behind hero video */
.hero-video-stage::before {
  content: '';
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.08) 55%, transparent 70%);
  filter: blur(42px);
  z-index: 0;
  pointer-events: none;
  animation: heroGlowPulse 5s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-video-stage::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.12) 55%, transparent 70%);
  filter: blur(52px);
}

@keyframes heroGlowPulse {
  0% { transform: scale(0.94); opacity: 0.7; }
  100% { transform: scale(1.06); opacity: 1; }
}

.hero-theme-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  z-index: 1;
  will-change: opacity;
}

/* Light Theme (Default): Video Light active & visible, Video Dark hidden */
.hero-theme-video.video-light {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-theme-video.video-dark {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

/* Dark Theme: Video Light hidden, Video Dark active & visible */
[data-theme="dark"] .hero-theme-video.video-light {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

[data-theme="dark"] .hero-theme-video.video-dark {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Floating Badges */
.hero-floating-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.chip-top {
  top: -14px;
  right: -10px;
  border-color: rgba(99, 102, 241, 0.3);
}

.chip-bottom {
  bottom: -14px;
  left: -10px;
  border-color: rgba(16, 185, 129, 0.3);
}

.chip-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.chip-check-icon {
  color: #10b981;
  font-weight: 800;
}

@media (max-width: 960px) {
  .hero-grid-2col {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }
  .hero-col-left {
    align-items: center;
  }
  .hero-col-left .hero-title,
  .hero-col-left .hero-subtitle {
    text-align: center;
  }
  .hero-col-left .hero-dual-cta {
    justify-content: center;
  }
  .hero-col-left .hero-search-box {
    margin: 0 auto 1.25rem;
  }
  .hero-col-left .hero-trending-tags {
    justify-content: center;
  }
  .hero-trust-bullets {
    justify-content: center;
  }
  .hero-video-stage,
  .hero-spotlight-deck {
    max-width: 380px;
    margin: 0 auto;
  }
  .chip-top {
    right: 5px;
  }
  .chip-bottom {
    left: 5px;
  }
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #38bdf8;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================================================
   Executive Platform Telemetry Dock (Bespoke Human-Engineered Proof Strip)
   ========================================================================== */
.metrics-ribbon {
  width: 100%;
  max-width: 1240px;
  margin: 1.5rem auto 1rem;
  padding: 0 1rem;
}

.metrics-telemetry-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .metrics-telemetry-dock {
  background: #111418;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.45);
}

.telemetry-item {
  padding: 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  text-align: left;
  transition: background-color 0.2s ease;
  user-select: none;
}

.telemetry-item:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

[data-theme="dark"] .telemetry-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-item:hover {
  background: rgba(79, 70, 229, 0.025);
}

[data-theme="dark"] .telemetry-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.telemetry-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.telemetry-icon-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.telemetry-item:hover .telemetry-icon-accent {
  transform: scale(1.1);
}

.telemetry-icon-accent.icon-indigo {
  color: #6366f1;
}

.telemetry-icon-accent.icon-amber {
  color: #f59e0b;
}

.telemetry-icon-accent.icon-emerald {
  color: #10b981;
}

.telemetry-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.telemetry-val {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.telemetry-val.val-emerald {
  color: #059669;
}

[data-theme="dark"] .telemetry-val.val-emerald {
  color: #34d399;
}

.telemetry-sub {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 0.15rem;
}

.telemetry-footnote {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Pulsing radar dot for live status */
.telemetry-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: telemetryRadarPulse 2s infinite ease-out;
  flex-shrink: 0;
}

@keyframes telemetryRadarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Responsive Telemetry Dock */
@media (max-width: 960px) {
  .metrics-telemetry-dock {
    grid-template-columns: repeat(2, 1fr);
  }
  .telemetry-item:nth-child(2) {
    border-right: none;
  }
  .telemetry-item:nth-child(1),
  .telemetry-item:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  [data-theme="dark"] .telemetry-item:nth-child(1),
  [data-theme="dark"] .telemetry-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 580px) {
  .metrics-telemetry-dock {
    grid-template-columns: 1fr;
  }
  .telemetry-item:not(:last-child) {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
  }
  [data-theme="dark"] .telemetry-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .telemetry-item {
    padding: 1.1rem 1.25rem;
  }
  .telemetry-val {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   Search & Controls
   ========================================================================== */

.controls-section {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1.25rem;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar-wrapper input {
  width: 100%;
  padding: 1rem 3rem 1rem 3.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-bar-wrapper input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background: var(--bg-surface);
}

.btn-clear {
  position: absolute;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem;
}
.btn-clear:hover {
  color: var(--text-primary);
}

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.pill:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

[data-theme="dark"] .pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.pill.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
}

.custom-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.custom-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.filter-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.highlight-text {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   Courses Grid & Cards
   ========================================================================== */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  user-select: none;
}

[data-theme="dark"] .course-card {
  background: #111418;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .course-card:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(99, 102, 241, 0.35);
}

/* Card Media Header - FIXED ASPECT RATIO */
.card-media-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #0b0d11;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .card-media-wrap {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, transparent 45%, rgba(15, 23, 42, 0.72) 100%);
  pointer-events: none;
}

.banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.8;
}

.banner-method-fallback {
  background: linear-gradient(135deg, #2e1065 0%, #0f172a 100%) !important;
}

/* Floating Card Header Badges (High-Tech Glass Pill Design) */
.card-badges-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 54px;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  z-index: 2;
  pointer-events: none;
  flex-wrap: nowrap;
  overflow: hidden;
}

.category-badge {
  background: rgba(11, 15, 25, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f1f5f9;
  font-size: 0.66rem;
  font-weight: 650;
  padding: 0.24rem 0.58rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.category-method-badge {
  background: rgba(124, 58, 237, 0.8) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.method-tag-badge {
  background: rgba(109, 40, 217, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 750;
  padding: 0.24rem 0.58rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Cloud Provider Badge with Status Dot Indicator */
.badge-provider {
  font-size: 0.66rem;
  font-weight: 650;
  padding: 0.24rem 0.55rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.provider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.badge-mega {
  border-color: rgba(239, 68, 68, 0.32);
  color: #fecdd3;
}
.badge-mega .provider-dot {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444, 0 0 10px rgba(239, 68, 68, 0.45);
}

.badge-gdrive {
  border-color: rgba(16, 185, 129, 0.32);
  color: #a7f3d0;
}
.badge-gdrive .provider-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981, 0 0 10px rgba(16, 185, 129, 0.45);
}

.badge-mediafire {
  border-color: rgba(14, 165, 233, 0.32);
  color: #bae6fd;
}
.badge-mediafire .provider-dot {
  background: #0ea5e9;
  box-shadow: 0 0 6px #0ea5e9, 0 0 10px rgba(14, 165, 233, 0.45);
}

/* Floating Circular Bookmark Button (Frosted Glass & Gold Glow) */
.card-media-wrap .btn-bookmark,
.btn-bookmark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 15, 25, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-media-wrap .btn-bookmark:hover,
.btn-bookmark:hover {
  background: rgba(15, 23, 42, 0.92);
  color: #fbbf24;
  transform: scale(1.1);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.card-media-wrap .btn-bookmark.active,
.btn-bookmark.active,
.btn-bookmark.bookmarked {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.card-media-wrap .btn-bookmark.active svg,
.btn-bookmark.active svg,
.btn-bookmark.bookmarked svg {
  fill: #fbbf24;
}

/* Card Content Area */
.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
}

.card-tier-pill {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

[data-theme="dark"] .card-tier-pill {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.28);
}

.card-price-free {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.52rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .card-price-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.card-price-value {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.7em;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 3em;
}

.card-perks-row {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: nowrap !important;
  margin-bottom: 0.95rem;
  width: 100%;
  overflow: hidden;
}

.perk-tag {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.22rem 0.44rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .perk-tag {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.perk-tag svg {
  flex-shrink: 0;
}

.perk-key {
  color: #d97706 !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  font-weight: 650;
}

[data-theme="dark"] .perk-key {
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  background: rgba(245, 158, 11, 0.12) !important;
}

.card-footer-action {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

[data-theme="dark"] .card-footer-action {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.btn-card-access {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid #e2e8f0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  background: #f8fafc;
  color: #4f46e5;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .btn-card-access {
  background: rgba(99, 102, 241, 0.08);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.24);
}

.course-card:hover .btn-card-access:not(.btn-card-locked),
.btn-card-access:not(.btn-card-locked):hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.45);
  transform: translateY(-2px);
}

[data-theme="dark"] .course-card:hover .btn-card-access:not(.btn-card-locked),
[data-theme="dark"] .btn-card-access:not(.btn-card-locked):hover {
  box-shadow: 0 6px 22px -2px rgba(99, 102, 241, 0.55);
}

.btn-access-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.course-card:hover .btn-access-arrow,
.btn-card-access:hover .btn-access-arrow {
  transform: translateX(3px);
}


/* Download Link Chips inside Card */
.card-links-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.75rem;
  background: var(--bg-deep);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .card-links-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card-links-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.card-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.link-chip:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.link-chip.mega {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.link-chip.drive {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
.link-chip.terabox {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #7c3aed;
}
.link-chip.udemy {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #ea580c;
}
.link-chip.mediafire {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}

[data-theme="dark"] .link-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
[data-theme="dark"] .link-chip:hover {
  filter: brightness(1.2);
}
[data-theme="dark"] .link-chip.mega {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
[data-theme="dark"] .link-chip.drive {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #86efac;
}
[data-theme="dark"] .link-chip.terabox {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: #d8b4fe;
}
[data-theme="dark"] .link-chip.udemy {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fdba74;
}
[data-theme="dark"] .link-chip.mediafire {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.35);
  color: #7dd3fc;
}

/* Provider Filter Bar & Multi-Source Badges */
.provider-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.provider-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.provider-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.provider-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.provider-pill:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

[data-theme="dark"] .provider-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.provider-pill.active {
  background: rgba(79, 70, 229, 0.12);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
  font-weight: 700;
}

.alt-sources-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 600;
  width: fit-content;
}

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

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */

.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .modal-backdrop,
[data-theme="dark"] .drawer-backdrop {
  background: rgba(3, 7, 18, 0.78);
}

.hidden {
  display: none !important;
}

.modal-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 72px -16px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  animation: modalEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

[data-theme="dark"] .modal-card {
  background: #0d111c;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(99, 102, 241, 0.22);
}

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

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.7);
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.modal-close:hover {
  background: #ffffff;
  color: var(--accent-primary);
  border-color: rgba(99, 102, 241, 0.4);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .modal-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

[data-theme="dark"] .modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Modal Header */
.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .modal-header {
  background: linear-gradient(180deg, rgba(30, 41, 69, 0.35) 0%, rgba(13, 17, 28, 0) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.modal-meta-dot {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Micro Badges */
.modal-badge-verified,
.badge-skiller-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
}

[data-theme="dark"] .modal-badge-verified,
[data-theme="dark"] .badge-skiller-verified {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
  color: #34d399;
}

.modal-chip-category,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: #4f46e5;
}

[data-theme="dark"] .modal-chip-category,
[data-theme="dark"] .category-chip {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.32);
  color: #a5b4fc;
}

.modal-chip-price,
.price-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #d97706;
}

[data-theme="dark"] .modal-chip-price,
[data-theme="dark"] .price-chip {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fbbf24;
}

.modal-chip-metric,
.views-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: auto;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0.4rem 0 0.35rem;
  word-break: break-word;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  font-weight: 450;
}

/* Modal Body */
.modal-body {
  padding: 1.35rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.modal-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  min-height: 200px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
}

.modal-image-wrap.hidden {
  display: none !important;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.35) 100%);
}

/* Decryption Key Card — Cryptographic Vault Pass */
.decryption-key-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.decryption-key-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .decryption-key-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .decryption-key-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.2);
}

.key-card-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.key-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

[data-theme="dark"] .key-icon-wrapper {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.decryption-key-card:hover .key-icon-wrapper {
  transform: scale(1.05);
  border-color: var(--accent-primary);
}

.key-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.key-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.key-code-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
  word-break: break-all;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .key-code {
  background: #090d16;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

.btn-copy-action,
.btn-copy-key-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.95rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .btn-copy-action,
[data-theme="dark"] .btn-copy-key-action {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.btn-copy-action:hover,
.btn-copy-key-action:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Sections */
.modal-section-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-section-header,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.55rem;
}

.section-heading-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.section-icon {
  color: var(--accent-primary);
}

.btn-text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.26rem 0.55rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-text-action:hover {
  color: var(--accent-primary);
  border-color: var(--border-subtle);
  background: var(--bg-surface);
}

/* Download Mirror Cards — Executive Cloud Mirror Station */
.modal-links-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-mirror-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  gap: 1rem;
}

.download-mirror-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.16);
}

[data-theme="dark"] .download-mirror-card {
  background: rgba(17, 24, 39, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .download-mirror-card:hover {
  background: rgba(26, 36, 56, 0.85);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.55);
}

.download-mirror-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.mirror-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-mirror-card:hover .mirror-icon-box {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.mirror-official-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
  transition: transform 0.2s ease;
}

.mirror-icon-box.mirror-icon-mega {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
}

.download-mirror-card:hover .mirror-icon-box.mirror-icon-mega {
  background: rgba(239, 68, 68, 0.16);
  border-color: #ef4444;
  transform: scale(1.05);
}

.host-pill-brand-logo {
  width: 13px;
  height: 13px;
  object-fit: contain;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge-brand-logo {
  width: 12px;
  height: 12px;
  object-fit: contain;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}

.mirror-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mirror-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.mirror-title {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mirror-host-pill {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.14rem 0.52rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}

.host-pill-mega {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.host-pill-mega .provider-dot {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.host-pill-gdrive {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.host-pill-gdrive .provider-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.host-pill-mediafire {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.25);
}
.host-pill-mediafire .provider-dot {
  background: #0ea5e9;
  box-shadow: 0 0 6px #0ea5e9;
}

.host-pill-cloud, .host-pill-direct {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.25);
}
.host-pill-cloud .provider-dot, .host-pill-direct .provider-dot {
  background: #6366f1;
  box-shadow: 0 0 6px #6366f1;
}

.mirror-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.mirror-right-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.mirror-action-link,
.btn-mirror-access {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.52rem 1.15rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
  white-space: nowrap;
}

.mirror-action-link:hover,
.btn-mirror-access:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.mirror-action-link:hover .btn-mirror-arrow,
.btn-mirror-access:hover .btn-mirror-arrow {
  transform: translate(2px, -2px);
}

.btn-mirror-arrow {
  transition: transform 0.2s ease;
}

.mirror-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .mirror-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.mirror-copy-btn:hover {
  color: var(--accent-primary);
  border-color: rgba(99, 102, 241, 0.4);
  background: #ffffff;
  transform: scale(1.05);
}

[data-theme="dark"] .mirror-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Overview & Prose Box */
.modal-prose-container,
.raw-text-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  max-height: 220px;
  overflow-y: auto;
}

[data-theme="dark"] .modal-prose-container,
[data-theme="dark"] .raw-text-box {
  background: #090d16;
  border-color: rgba(255, 255, 255, 0.08);
}

.modal-prose-content,
.raw-text-box pre {
  font-family: var(--font-main);
  white-space: pre-wrap;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.68;
  word-break: break-word;
  margin: 0;
}

/* Modal Footer */
.modal-footer {
  padding: 1.15rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

[data-theme="dark"] .modal-footer {
  background: #0a0e18;
  border-color: rgba(255, 255, 255, 0.08);
}

.modal-footer-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 550;
}

.telemetry-lock-icon {
  color: #10b981;
}

.modal-footer-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-modal-dismiss {
  padding: 0.55rem 1.2rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  transition: all 0.2s ease;
}

[data-theme="dark"] .btn-modal-dismiss {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.btn-modal-dismiss:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #94a3b8;
}

.btn-modal-action {
  padding: 0.55rem 1.25rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modal-action:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.btn-modal-action.saved {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
  box-shadow: none;
}

[data-theme="dark"] .btn-modal-action.saved {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* ==========================================================================
   Drawer (Channel Manager)
   ========================================================================== */

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  animation: drawerSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

[data-theme="dark"] .drawer-panel {
  background: #0b101b;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

@keyframes drawerSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.add-channel-card {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

[data-theme="dark"] .add-channel-card {
  background: rgba(255, 255, 255, 0.03);
}

.add-channel-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.add-channel-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

.input-prefix-wrap input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
}

[data-theme="dark"] .input-prefix-wrap input {
  background: rgba(0, 0, 0, 0.4);
}

.channels-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.channels-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.channel-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.channel-item-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

[data-theme="dark"] .channel-item-card {
  background: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] .channel-item-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.channel-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.channel-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.channel-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.channel-item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Settings Modal Styling
   ========================================================================== */

.modal-settings {
  max-width: 650px;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.settings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.custom-input,
.custom-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.custom-input::placeholder,
.custom-textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

[data-theme="dark"] .custom-input,
[data-theme="dark"] .custom-textarea {
  background: rgba(11, 15, 25, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-shadow: none;
}

[data-theme="dark"] .custom-input::placeholder,
[data-theme="dark"] .custom-textarea::placeholder {
  color: #64748b;
}

.custom-input:focus,
.custom-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.sync-logs-box {
  margin-top: 0.75rem;
  background: #090c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.log-entry {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.log-status-success { color: var(--accent-emerald); }
.log-status-failed { color: var(--accent-rose); }
.log-status-warning { color: var(--accent-amber); }

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  background: #111827;
  border: 1px solid var(--border-highlight);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  animation: toastIn 0.3s ease;
}

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

/* Empty & Loading States */
.empty-state, .loading-state {
  text-align: center;
  padding: 4rem 1.5rem;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.post-id-chip {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.price-chip {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.btn-mega-filter {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-weight: 700;
}

.btn-mega-filter.active {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}



.modal-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.card-subtitle-line {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .card-key-row {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-key-text {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.btn-copy-mini {
  background: none;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}
.btn-copy-mini:hover {
  text-decoration: underline;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .brand-logo-img {
    height: 42px;
    max-width: 210px;
  }
  .nav-stats {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .modal-links-grid {
    grid-template-columns: 1fr;
  }
  .drawer-panel {
    max-width: 100%;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-logo-img {
    height: 60px;
    max-width: 290px;
  }
}

/* ==========================================================================
   Archive Crawler Styles
   ========================================================================== */
.btn-accent {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-weight: 700;
}
.btn-accent:hover {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.archive-banner {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(238, 242, 255, 0.95) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin: 2rem auto 0;
  max-width: 1050px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 4px 16px -4px rgba(79, 70, 229, 0.08);
}

[data-theme="dark"] .archive-banner {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(99, 102, 241, 0.3);
}

.archive-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.archive-banner-icon {
  font-size: 1.25rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.archive-banner-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.archive-banner-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.archive-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-crawler {
  max-width: 620px;
}

.archive-status-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.archive-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.archive-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.archive-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.quick-crawl-section {
  margin-bottom: 1.5rem;
}

.quick-crawl-section h4,
.custom-crawl-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.quick-crawl-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
}

.btn-quick-crawl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.custom-crawl-form {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-block {
  width: 100%;
}

.crawler-progress-box {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.crawler-progress-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.crawler-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.crawler-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--grad-brand);
  transition: width 0.3s ease;
  animation: progressPulse 1.5s infinite;
}

@keyframes progressPulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* ==========================================================================
   Real-Time Live Stream Badge & Indicators
   ========================================================================== */
.live-stream-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
}
.live-stream-badge.disconnected {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}
.live-stream-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: liveStreamPulse 1.6s infinite;
}
.live-stream-badge.disconnected .live-stream-dot {
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: none;
}
@keyframes liveStreamPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 4px #10b981); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   Continuous Channel Archiver Dock
   ========================================================================== */
.archiver-dock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 2rem 0;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .archiver-dock-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.15);
}

.archiver-dock-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.archiver-dock-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

.archiver-icon-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.archiver-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: inherit;
  border: 2px solid rgba(99, 102, 241, 0.6);
  opacity: 0;
  pointer-events: none;
}
.archiver-dock-card.running .archiver-pulse-ring {
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.archiver-badge-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.archiver-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.archiver-status-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.archiver-status-tag.tag-running {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #059669;
}
[data-theme="dark"] .archiver-status-tag.tag-running {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}
.archiver-status-tag.tag-paused {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #d97706;
}
[data-theme="dark"] .archiver-status-tag.tag-paused {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.archiver-target-tag {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: var(--accent-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.archiver-live-tag {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.archiver-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.archiver-dock-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.archiver-progress-section {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
}

[data-theme="dark"] .archiver-progress-section {
  background: rgba(0, 0, 0, 0.35);
}

.archiver-progress-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.archiver-bar-track {
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .archiver-bar-track {
  background: rgba(255, 255, 255, 0.08);
}

.archiver-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
  position: relative;
}
.archiver-dock-card.running .archiver-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shineScan 2s infinite;
}
@keyframes shineScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   Real-Time Card Arrival Animation (Zero Page Refresh)
   ========================================================================== */
.card-pulse-enter {
  animation: liveCardEnter 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes liveCardEnter {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.9), 0 0 0 2px #10b981;
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
    box-shadow: 0 0 45px rgba(99, 102, 241, 0.8), 0 0 0 2px #6366f1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-card);
  }
}

/* ==========================================================================
   High-Speed Pagination Bar Controls
   ========================================================================== */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.15rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.pagination-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-info strong {
  color: var(--text-primary);
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.08);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  user-select: none;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.custom-select-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Official Enterprise Footer Styling
   ========================================================================== */
.app-footer,
.footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 4rem 2rem 2.5rem;
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.02);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.3fr 1.1fr;
  gap: 3.5rem;
  padding-bottom: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-brand {
  gap: 1rem;
}

.footer-brand-wrap {
  display: inline-flex;
  align-items: center;
}

.footer-logo-video,
.footer-logo-img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.footer-logo-video.logo-light,
.footer-logo-img.logo-light {
  display: block;
}

.footer-logo-video.logo-dark,
.footer-logo-img.logo-dark {
  display: none;
}

[data-theme="dark"] .footer-logo-video.logo-light,
[data-theme="dark"] .footer-logo-img.logo-light {
  display: none;
}

[data-theme="dark"] .footer-logo-video.logo-dark,
[data-theme="dark"] .footer-logo-img.logo-dark {
  display: block;
}

[data-theme="dark"] .app-footer,
[data-theme="dark"] .footer {
  background: #0B0D0F;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-brand-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
}

.footer-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  width: fit-content;
}

[data-theme="dark"] .footer-status-indicator {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.25);
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: livePulse 2.2s infinite;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.footer-nav-list a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--accent-primary);
  transform: translateX(2px);
}

.footer-sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-source-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.05);
  transform: translateY(-1px);
}

.source-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.footer-protocol-card {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.protocol-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.protocol-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.protocol-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.footer-compliance-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.75rem;
}

.footer-divider {
  height: 1px;
  background: var(--border-subtle);
  width: 100%;
  margin: 1.5rem 0 1.25rem;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--text-primary);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* (Hero search & trending styles moved to authoritative Hero section) */

/* ==========================================================================
   Section Headers & Shared Components
   ========================================================================== */
.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section-header-compact {
  max-width: 1400px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  background: rgba(79, 70, 229, 0.07);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}

[data-theme="dark"] .section-pill {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Capabilities Section
   ========================================================================== */
.capabilities-section {
  max-width: 1400px;
  margin: 4.5rem auto 2.5rem;
  padding: 0 1rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.capability-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-normal);
  position: relative;
}

.capability-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card);
}

.capability-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-cyan {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.icon-indigo {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.icon-emerald {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.icon-purple {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

.capability-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.capability-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.capability-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.capability-metric {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cap-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.cap-metric-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Archiver Compact Section Wrapper
   ========================================================================== */
.archiver-section {
  max-width: 1400px;
  margin: 3.5rem auto 1.5rem;
  padding: 0 1rem;
}

.courses-section {
  margin-top: 3.5rem;
}

/* ==========================================================================
   Channel Network Matrix Section
   ========================================================================== */
.network-section {
  max-width: 1400px;
  margin: 5rem auto 2.5rem;
  padding: 0 1rem;
}

.channel-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-normal);
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.12);
}

.channel-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-card-meta {
  flex: 1;
  min-width: 0;
}

.channel-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-handle {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.channel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.7rem;
  font-weight: 600;
  color: #059669;
}

.channel-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.channel-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.channel-clouds {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cloud-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.cloud-badge.mega {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

.cloud-badge.gdrive {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.cloud-badge.mediafire {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.channel-filter-btn {
  width: 100%;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* ==========================================================================
   Platform Roadmap Section
   ========================================================================== */
.roadmap-section {
  max-width: 1400px;
  margin: 5.5rem auto 2.5rem;
  padding: 0 1rem;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.roadmap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-normal);
}

.roadmap-card.card-completed {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.02) 0%, var(--bg-surface) 100%);
}

.roadmap-card.card-current {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 4px 20px -2px rgba(79, 70, 229, 0.12);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.02) 0%, var(--bg-surface) 100%);
}

.roadmap-phase-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.badge-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-progress {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.25);
}

.badge-planned {
  background: var(--bg-deep);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.roadmap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.roadmap-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   FAQ & Knowledge Base Section (International Grade)
   ========================================================================== */
.faq-section {
  max-width: 960px;
  margin: 6rem auto 3rem;
  padding: 0 1.25rem;
}

.faq-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.faq-search-box {
  position: relative;
  width: 100%;
}

.faq-search-input {
  width: 100%;
  height: 50px;
  padding: 0 2.85rem 0 3rem;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.94rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: none;
}

.faq-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.faq-search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

.faq-search-clear:hover {
  color: var(--text-primary);
}

.faq-category-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.faq-category-pills::-webkit-scrollbar {
  display: none;
}

.faq-cat-pill {
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 650;
  font-family: var(--font-main);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.faq-cat-pill:hover {
  border-color: rgba(99, 102, 241, 0.5);
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .faq-cat-pill:hover {
  color: #a5b4fc;
}

.faq-cat-pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Accordion Wrap */
.faq-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.faq-item.active,
.faq-item.open {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.025) 0%, var(--bg-surface) 100%);
  box-shadow: 0 10px 28px -6px rgba(79, 70, 229, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .faq-item.active,
[data-theme="dark"] .faq-item.open {
  border-color: rgba(129, 140, 248, 0.45);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-surface) 100%);
  box-shadow: 0 10px 32px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(129, 140, 248, 0.25);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
}

.faq-q-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item:hover .faq-q-badge {
  transform: scale(1.08);
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.faq-item.active .faq-question,
.faq-item.open .faq-question {
  color: #4f46e5;
}

[data-theme="dark"] .faq-item.active .faq-question,
[data-theme="dark"] .faq-item.open .faq-question {
  color: #a5b4fc;
}

.faq-toggle-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.faq-toggle-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-toggle-circle,
.faq-item.open .faq-toggle-circle {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.faq-item.active .faq-toggle-icon,
.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

/* Answer Body */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease, opacity 0.25s ease;
  padding: 0 1.5rem;
  opacity: 0;
}

.faq-item.active .faq-answer,
.faq-item.open .faq-answer {
  max-height: 800px;
  padding: 0 1.5rem 1.5rem;
  opacity: 1;
}

.faq-answer-inner {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1.15rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.faq-answer-inner p {
  margin-bottom: 0.75rem;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-tip-box {
  margin-top: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.18);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.faq-tip-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-list {
  margin: 0.75rem 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-list li {
  line-height: 1.6;
}

/* Concierge Support Helpdesk Card */
.faq-helpdesk-card {
  margin-top: 3.5rem;
  padding: 2.25rem 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%), var(--bg-surface);
  border: 1.5px solid rgba(99, 102, 241, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 12px 32px -8px rgba(79, 70, 229, 0.08);
}

[data-theme="dark"] .faq-helpdesk-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%), #0f172a;
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.5);
}

.faq-helpdesk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.76rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.6rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.faq-helpdesk-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.faq-helpdesk-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 520px;
}

.faq-helpdesk-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-faq-telegram {
  background: #0088cc;
  color: #ffffff !important;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-faq-telegram:hover {
  background: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 136, 204, 0.45);
}

.btn-faq-email {
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  border: 1.5px solid var(--border-subtle);
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-faq-email:hover {
  border-color: #6366f1;
  color: #4f46e5 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

@media (max-width: 768px) {
  .faq-helpdesk-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
  }
  .faq-helpdesk-actions {
    width: 100%;
    flex-direction: column;
  }
  .btn-faq-telegram,
  .btn-faq-email {
    width: 100%;
    justify-content: center;
  }
  .faq-trigger {
    padding: 1rem 1.15rem;
  }
}

/* ==========================================================================
   Community CTA Section
   ========================================================================== */
.community-cta-section {
  max-width: 1400px;
  margin: 4.5rem auto 1rem;
  padding: 0 1rem;
}

.community-cta-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.community-cta-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.community-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.community-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.community-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   CURATED LEARNING PATHS & CAREER TRACKS SECTION
   ========================================================================== */
.paths-section {
  padding: 4.5rem 0 3rem;
  border-top: 1px solid var(--border-subtle);
}

.learning-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.09);
}

.path-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.path-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.icon-rose {
  background: rgba(244, 63, 94, 0.1);
  color: #e11d48;
}

.path-meta-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.path-level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.path-duration {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.path-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.path-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.path-curriculum {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  margin-bottom: 1.25rem;
}

.curriculum-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.step-title {
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.skill-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.btn-explore-path {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   DEVELOPER & POWER TOOLS HUB SECTION
   ========================================================================== */
.tools-section {
  padding: 4.5rem 0 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.tool-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Mega Sandbox */
.sandbox-input-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.sandbox-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.sandbox-input-icon {
  position: absolute;
  left: 0.95rem;
  color: #6366f1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.sandbox-input-field {
  width: 100%;
  height: 44px;
  padding: 0 1rem 0 2.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sandbox-input-field::placeholder {
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 0.82rem;
}

[data-theme="dark"] .sandbox-input-field {
  background: rgba(11, 15, 25, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-shadow: none;
}

[data-theme="dark"] .sandbox-input-field::placeholder {
  color: #64748b;
}

.sandbox-input-field:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.16);
  background: #ffffff;
}

[data-theme="dark"] .sandbox-input-field:focus {
  background: rgba(11, 15, 25, 0.95);
  border-color: #818cf8;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.25);
}

.btn-sandbox-action {
  height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
  transition: all var(--transition-fast);
}

.btn-sandbox-action:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-sandbox-action:active {
  transform: translateY(0);
}

.sandbox-results {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .sandbox-results {
  background: rgba(11, 15, 25, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.sandbox-key-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy-sandbox-key {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-sandbox-key:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

[data-theme="dark"] .btn-copy-sandbox-key {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.sandbox-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.sandbox-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.status-ready {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
}

.status-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-warn {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.sandbox-url-preview {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sandbox-copy-bar {
  display: flex;
  gap: 0.4rem;
}

/* API Explorer */
.api-tabs-nav {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.api-tab {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.api-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.api-tab.active {
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.1);
}

.api-code-block-wrap {
  position: relative;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot-red {
  background: #ef4444;
}

.terminal-dots .dot-yellow {
  background: #f59e0b;
}

.terminal-dots .dot-green {
  background: #10b981;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.terminal-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminal-copy-btn:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

.api-code-block {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  margin: 0;
  padding: 0.95rem 1rem;
}

.api-endpoints-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.api-endpoint-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  transition: all 0.2s ease;
}

.api-endpoint-capsule:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
}

.api-pill-method {
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.68rem;
}

.api-pill-method.get {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.api-pill-path {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Cloud Health Matrix */
.cloud-health-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cloud-health-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.cloud-health-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cloud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.cloud-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cloud-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cloud-health-metrics {
  text-align: right;
}

.cloud-latency {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cloud-status-text {
  font-size: 0.72rem;
  font-weight: 700;
}

.cloud-status-text.operational {
  color: #10b981;
}

.telegram-bot-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(79, 70, 229, 0.06);
  border: 1px dashed rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: auto;
}

.bot-banner-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.bot-banner-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   COMMUNITY REQUESTS & INGESTION QUEUE SECTION
   ========================================================================== */
.community-board-section {
  padding: 4.5rem 0 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-header-left {
  max-width: 650px;
}

.requests-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.request-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.22s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
}

.request-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.request-vote-side {
  flex-shrink: 0;
}

.request-upvote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 54px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.request-upvote-btn:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.request-upvote-btn.upvoted {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.upvote-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.request-body {
  flex: 1;
  min-width: 0;
}

.request-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.request-category-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.request-status-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.status-ingested {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.status-queued {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.status-review {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.request-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.request-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.request-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.request-footer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.request-author {
  font-weight: 600;
}

.request-source-tag {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Request Modal */
.modal-request {
  max-width: 580px;
}

.custom-textarea {
  resize: vertical;
  min-height: 75px;
  line-height: 1.5;
}

@media (max-width: 1366px) {
  .nav-anchor-link {
    font-size: 0.74rem;
    padding: 0.22rem 0.38rem;
  }
  .nav-container {
    gap: 0.45rem;
  }
}

@media (max-width: 1200px) {
  .capabilities-grid,
  .channel-matrix-grid,
  .roadmap-grid,
  .learning-paths-grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1120px) {
  .nav-status-group {
    display: none;
  }
  .nav-btn .btn-text {
    display: none;
  }
  .nav-btn {
    padding: 0 0.55rem;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 990px) {
  .nav-anchor-link {
    font-size: 0.78rem;
    padding: 0.28rem 0.45rem;
  }
  .nav-container {
    gap: 0.6rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.45rem 0.85rem;
  }

  .nav-anchor-links {
    display: none;
  }

  .nav-status-group {
    display: none;
  }

  .nav-brand-divider {
    display: none;
  }

  .brand-logo-video,
  .brand-logo-img {
    height: 26px;
    max-width: 125px;
  }

  .nav-btn .btn-text {
    display: none;
  }

  .nav-btn {
    padding: 0 0.5rem;
  }

  .capabilities-grid,
  .channel-matrix-grid,
  .roadmap-grid,
  .learning-paths-grid,
  .tools-grid,
  .requests-board-grid {
    grid-template-columns: 1fr;
  }

  .section-header-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .community-title {
    font-size: 1.7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo-video,
  .footer-logo-img {
    height: 36px;
    max-width: 180px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Admin Mission Control Drawer (Confidential Admin Cockpit)
   ========================================================================== */

.admin-lock-btn {
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.admin-lock-btn:hover {
  opacity: 1;
  color: var(--accent-primary);
  transform: scale(1.08);
}

.admin-panel-large {
  width: min(880px, 94vw);
  max-width: 880px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-highlight);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .admin-panel-large {
  background: #0d1117;
  border-left-color: rgba(255, 255, 255, 0.12);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
}

.admin-drawer-header {
  padding: 1.5rem 1.75rem 1rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 0.4rem;
}

.admin-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.admin-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Admin Tabs */
.admin-nav-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

[data-theme="dark"] .admin-nav-tabs {
  background: rgba(255, 255, 255, 0.02);
}

.admin-tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
}

.admin-tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.admin-drawer-body {
  padding: 1.5rem 1.75rem 2.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.admin-tab-pane {
  display: block;
}

.admin-tab-pane.hidden {
  display: none !important;
}

.admin-section-intro {
  margin-bottom: 1.25rem;
}

.admin-section-intro h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-section-intro p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Academy Tag Badges on Course Cards */
.academy-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

.badge-skiller-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

/* Webhook Relay Banner */
.webhook-relay-banner {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.webhook-relay-banner strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Exclusive Method Tag Badges & High-Tech Styling
   ========================================================================== */

/* Category Filter Pill for Methods */
.pill-method {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #8b5cf6 !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
  font-weight: 700 !important;
}

.pill-method:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.pill-method.active {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* Hero Trending Method Pill */
.hero-tag-method {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #7c3aed !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  font-weight: 700;
}

[data-theme="dark"] .hero-tag-method {
  color: #c4b5fd !important;
  background: rgba(139, 92, 246, 0.25) !important;
}

/* Card Top Method Badge */
.method-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="dark"] .method-tag-badge {
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.category-method-badge {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.1) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

.method-modal-chip {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2)) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  font-weight: 800;
}

[data-theme="dark"] .method-modal-chip {
  color: #ddd6fe !important;
}

.method-price-tag {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #d97706 !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  font-weight: 700;
}

[data-theme="dark"] .method-price-tag {
  color: #fbbf24 !important;
}

/* Card highlight for Methods */
.card-is-method:hover {
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 12px 28px -6px rgba(139, 92, 246, 0.18) !important;
}

.banner-method-fallback {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(79, 70, 229, 0.2)) !important;
}

.link-chip-method {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.link-chip-method:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: #7c3aed !important;
}

[data-theme="dark"] .link-chip-method {
  color: #c4b5fd !important;
}

/* Multi-Page Navigation Styling consolidated into base Navbar rules */

/* Multi-Page Hero Headers */
.page-hero-header {
  padding: 3rem 0 2rem 0;
  text-align: center;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero-header .hero-pill {
  margin: 0 auto 1.25rem auto;
}

.page-hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.page-hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 1.8rem auto;
}

/* Homepage Showcase Sections */
.homepage-preview-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.preview-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.preview-header-left {
  max-width: 720px;
}

.preview-header-left .section-title {
  margin-top: 0.6rem;
  margin-bottom: 0.45rem;
}

.preview-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.88rem;
  height: 42px;
  padding: 0 1.25rem;
  border-radius: 11px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.35rem;
}

.preview-action-btn:hover {
  background: #ffffff;
  border-color: #6366f1;
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.16);
}

[data-theme="dark"] .preview-action-btn {
  background: #111418;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

[data-theme="dark"] .preview-action-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.3);
}

.preview-action-btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.preview-action-btn:hover svg {
  transform: translateX(3px);
}

.preview-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.preview-bottom-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 0 0 0;
}

/* (btn-hero styles consolidated in Hero section) */

/* ==========================================================================
   EXECUTIVE METHOD CARDS DESIGN SYSTEM (Light & Dark Theme)
   ========================================================================== */

/* 1. Method Floating Badge Pill with Pulse Dot */
.method-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.68rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #ede9fe;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

.method-badge-pill .pulse-indicator {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #c084fc;
  animation: methodPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

@keyframes methodPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #c084fc;
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
    box-shadow: 0 0 2px #c084fc;
  }
}

/* 2. Method Tier Pill in Card Meta */
.method-tier-pill {
  background: rgba(124, 58, 237, 0.08) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .method-tier-pill {
  background: rgba(168, 85, 247, 0.16) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.32) !important;
}

.method-tier-pill svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* 3. Method Perks Row Styling */
.perk-verified {
  color: #059669 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.22) !important;
  font-weight: 650;
}

[data-theme="dark"] .perk-verified {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(16, 185, 129, 0.32) !important;
}

/* 4. Action Dock: View Method & Quick Copy Steps */
.method-card-footer {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 0.5rem !important;
  align-items: center !important;
  margin-top: auto !important;
  padding-top: 0.85rem !important;
}

.btn-method-primary {
  width: 100% !important;
  height: 40px !important;
  background: #f8fafc;
  color: #6d28d9;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .btn-method-primary {
  background: rgba(139, 92, 246, 0.12);
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.28);
}

.card-is-method:hover .btn-method-primary,
.btn-method-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}

[data-theme="dark"] .card-is-method:hover .btn-method-primary,
[data-theme="dark"] .btn-method-primary:hover {
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45) !important;
}

.btn-method-quick-copy {
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

[data-theme="dark"] .btn-method-quick-copy {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.btn-method-quick-copy:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.4);
  color: #7c3aed;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-method-quick-copy:hover {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
}

.btn-method-quick-copy.copied {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #059669 !important;
}

[data-theme="dark"] .btn-method-quick-copy.copied {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
}

.btn-method-quick-copy svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.btn-method-quick-copy:active svg {
  transform: scale(0.9);
}

/* Methods Dedicated Page Header Banner */
.methods-hero-glow {
  background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

.pill-glow-violet {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #7c3aed;
}

[data-theme="dark"] .pill-glow-violet {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
}

/* ==========================================================================
   COMPLETE MOBILE & RESPONSIVE DESIGN SYSTEM OVERHAUL
   ========================================================================== */

/* 1. Universal Layout & Typography Polish */
.page-hero-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.gradient-title {
  display: inline;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

[data-theme="dark"] .gradient-title {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 2. Card Media Polish */
.card-media-wrap {
  width: 100%;
  height: 185px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 3. Method Card Glowing Polish */
.card-is-method {
  border: 1px solid var(--border-subtle) !important;
  background: var(--bg-surface) !important;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

[data-theme="dark"] .card-is-method {
  background: #111418 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}

.card-is-method:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 16px 36px -6px rgba(124, 58, 237, 0.16), 0 0 0 1px rgba(139, 92, 246, 0.25) !important;
}

[data-theme="dark"] .card-is-method:hover {
  border-color: rgba(168, 85, 247, 0.55) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(168, 85, 247, 0.35) !important;
}

.card-footer-action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.card-footer-action .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* 4. Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-col-left {
    align-items: center;
    text-align: center;
  }
  .hero-title, .hero-subtitle {
    text-align: center;
  }
  .hero-dual-cta {
    justify-content: center;
  }
  .hero-spotlight-deck {
    max-width: 520px;
    margin: 0 auto;
  }
  .courses-grid,
  .preview-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 5. Mobile Devices (<= 768px) - Full Mobile Responsiveness */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 0.5rem 0.75rem;
  }
  .nav-container {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .nav-brand-group {
    order: 1;
  }
  .nav-actions {
    order: 2;
    margin-left: auto;
    gap: 0.35rem;
  }
  .nav-status-group {
    display: none; /* Hide status pill on mobile to keep header clean */
  }
  .nav-brand-divider {
    display: none;
  }
  .nav-anchor-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 0.35rem;
    padding: 0.4rem 0 0.15rem;
    scrollbar-width: none;
    border-top: 1px solid var(--border-subtle);
  }
  .nav-anchor-links::-webkit-scrollbar {
    display: none;
  }
  .nav-anchor-link {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }

  /* Main Wrapper */
  .main-wrapper {
    padding: 1rem 0.75rem 3rem;
  }

  /* Page Headers */
  .page-hero-header {
    padding: 1.5rem 0.5rem 1rem;
  }
  .page-hero-title {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
  .page-hero-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.2rem;
  }
  .hero-trust-bullets {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
    font-size: 0.75rem;
  }

  /* Search & Controls */
  .controls-section {
    padding: 1rem 0.85rem;
    margin-bottom: 1.25rem;
  }
  .search-bar-wrapper {
    padding: 0.65rem 0.85rem;
  }
  .search-bar-wrapper input {
    font-size: 0.88rem;
  }

  /* Swipeable Pill Carousels on Mobile */
  .category-pills,
  .provider-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0 0.5rem !important;
    gap: 0.45rem !important;
    scrollbar-width: none;
    width: 100%;
  }
  .category-pills::-webkit-scrollbar,
  .provider-pills::-webkit-scrollbar {
    display: none;
  }
  .pill,
  .provider-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.38rem 0.8rem !important;
    font-size: 0.78rem !important;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .filter-controls-right {
    width: 100%;
  }
  .filter-controls-right .custom-select {
    width: 100%;
  }

  .provider-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* SINGLE COLUMN CARDS ON MOBILE - NO MORE SQUISHED 2-COLUMN CLUTTER! */
  .courses-grid,
  .preview-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .course-card {
    border-radius: var(--radius-lg);
  }

  .card-media-wrap {
    height: 175px !important;
  }

  .card-content {
    padding: 1rem !important;
  }

  .card-title {
    font-size: 1rem !important;
    line-height: 1.35 !important;
    min-height: auto !important;
  }

  .card-desc {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    min-height: auto !important;
    margin-bottom: 0.75rem !important;
  }

  .card-perks-row {
    gap: 0.35rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* Metrics Telemetry Dock on Mobile */
  .metrics-ribbon {
    padding: 0 0.5rem !important;
  }
  .metrics-telemetry-dock {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .telemetry-item {
    padding: 1rem 1.15rem !important;
  }
  .telemetry-val {
    font-size: 1.5rem !important;
  }
  .telemetry-sub {
    font-size: 0.8rem !important;
  }
  .telemetry-footnote {
    font-size: 0.7rem !important;
  }

  /* Hero Dual CTA on Mobile */
  .hero-dual-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .hero-dual-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Modals on Mobile: Bottom Sheet Presentation */
  .modal-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: auto 0 0 0 !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh !important;
    padding: 1.25rem 1rem !important;
  }

  .modal-header .modal-title {
    font-size: 1.2rem !important;
  }

  .modal-image-wrap {
    height: 180px !important;
  }

  /* Pagination Bar on Mobile */
  .pagination-wrapper {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
  }
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .btn-page {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}

/* 6. Ultra-Small Screens (<= 420px) */
@media (max-width: 420px) {
  .nav-brand-group .brand-logo-video,
  .nav-brand-group .brand-logo-img {
    height: 24px;
    max-width: 110px;
  }
  .card-media-wrap {
    height: 160px !important;
  }
  .metrics-telemetry-dock {
    grid-template-columns: 1fr !important;
  }
}

/* ==============================================================================
   7. SKILLER AUTHENTICATION & USER PROFILE DESIGN SYSTEM
   Ultra-premium, International Linear/Stripe Grade Aesthetic
   ============================================================================== */

/* Admin Lock Button Visibility: Locked down by default unless admin authenticated */
.admin-lock-btn.hidden,
#btnOpenAdmin.hidden,
#btnOpenAdmin[hidden] {
  display: none !important;
}

/* Navbar Auth Group & User Pill */
.nav-auth-group {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-signin-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-signin-btn {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .nav-signin-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.user-menu-wrapper {
  position: relative;
}

.user-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-primary);
  font-family: var(--font-main);
  box-shadow: var(--shadow-sm);
}

.user-profile-pill:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.user-avatar-initial {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.user-avatar-initial.admin-avatar {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}

.user-display-name {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-admin-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.chevron-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.user-dropdown-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-hover);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  z-index: 1000;
  animation: fadeInDrop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-card.active {
  display: flex;
}

@keyframes fadeInDrop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-header {
  padding: 0.25rem 0.35rem 0.5rem;
}

.dropdown-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dropdown-user-email {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1px;
  word-break: break-all;
}

.dropdown-role-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-top: 0.4rem;
}

.dropdown-role-tag.tag-admin {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.dropdown-role-tag.tag-member {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

.dropdown-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
}

.dropdown-item:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.dropdown-item.admin-highlight-item {
  color: #818cf8;
  font-weight: 600;
}

.dropdown-item.admin-highlight-item:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.dropdown-item.item-danger {
  color: #ef4444;
}

.dropdown-item.item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* ==============================================================================
   AUTH PAGES FULL LAYOUT (Login & Register)
   ============================================================================== */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
}

.auth-top-bar {
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  margin-bottom: 1.25rem;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.auth-back-link:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  transform: translateX(-2px);
}

.auth-page-container {
  width: 100%;
  max-width: 460px;
  z-index: 10;
  margin: auto 0;
}

.auth-card-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .auth-card-wrapper {
  background: rgba(17, 24, 39, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.6);
}

.auth-card-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand-logo {
  display: inline-block;
  margin-bottom: 0.25rem;
  transition: transform 0.2s ease;
}

.auth-brand-logo:hover {
  transform: scale(1.04);
}

.auth-brand-logo-video,
.auth-brand-logo-img {
  height: 40px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Light auth logo (default) */
.auth-brand-logo-video.logo-light,
.auth-brand-logo-img.logo-light {
  display: block !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 2px 8px rgba(79, 70, 229, 0.15));
}

.auth-brand-logo-video.logo-dark,
.auth-brand-logo-img.logo-dark {
  display: none !important;
}

/* Dark auth logo */
[data-theme="dark"] .auth-brand-logo-video.logo-light,
[data-theme="dark"] .auth-brand-logo-img.logo-light {
  display: none !important;
}

[data-theme="dark"] .auth-brand-logo-video.logo-dark,
[data-theme="dark"] .auth-brand-logo-img.logo-dark {
  display: block !important;
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 12px rgba(99, 102, 241, 0.35));
}

.auth-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0.75rem 0 0.35rem;
}

.auth-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Quick Admin Demo Pill */
.admin-demo-box {
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  transition: var(--transition-fast);
}

.admin-demo-box:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .admin-demo-box {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .admin-demo-box:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.45);
}

.admin-demo-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-demo-icon {
  font-size: 1rem;
}

.admin-demo-texts {
  display: flex;
  flex-direction: column;
}

.admin-demo-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-demo-cred {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-demo-autofill {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn-demo-autofill:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Segmented Tab Switch */
.auth-segmented-switch {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 1.35rem;
}

[data-theme="dark"] .auth-segmented-switch {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.switch-item {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-radius: 9px;
  transition: var(--transition-fast);
}

.switch-item:hover {
  color: var(--text-primary);
}

.switch-item.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .switch-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Auth Alerts */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.auth-alert.hidden {
  display: none !important;
}

.shake-alert {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
}

.auth-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.auth-secondary-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: var(--transition-fast);
}

.auth-secondary-link:hover {
  text-decoration: underline;
}

.auth-input-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 1rem 0 2.65rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

[data-theme="dark"] .auth-input {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.auth-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.15);
}

.auth-input.has-toggle {
  padding-right: 2.75rem;
}

.input-pulse {
  animation: pulseGreen 0.6s ease;
}

@keyframes pulseGreen {
  0% { border-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3); }
  100% { border-color: var(--border-subtle); box-shadow: none; }
}

.btn-pwd-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-pwd-toggle:hover {
  color: var(--text-primary);
}

/* Custom Checkbox */
.auth-form-options {
  display: flex;
  align-items: center;
  margin-top: 0.2rem;
}

.custom-checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.custom-checkbox-container input {
  display: none;
}

.custom-checkbox-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.custom-checkbox-container input:checked + .custom-checkbox-mark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.custom-checkbox-container input:checked + .custom-checkbox-mark::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Submit Button */
.btn-auth-primary {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  margin-top: 0.6rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-auth-primary:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.42);
}

.btn-auth-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-auth-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.6s linear infinite;
}

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

/* Card Footer */
.auth-card-footer {
  margin-top: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.auth-footer-prompt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.auth-highlight-link {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.auth-highlight-link:hover {
  text-decoration: underline;
}

.auth-encryption-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.8;
}

@media (max-width: 480px) {
  .auth-card-wrapper {
    padding: 1.75rem 1.25rem;
  }
}

/* ==============================================================================
   GITHUB OAUTH & PROFILE PICTURES
   ============================================================================== */
.btn-auth-github {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #181717;
  color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

[data-theme="dark"] .btn-auth-github {
  background: #24292f;
  color: #f0f6fc !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-auth-github:hover {
  background: #2f363d;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-auth-github:hover {
  background: #2c3239;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.btn-auth-github:active {
  transform: translateY(0);
}

.github-svg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Auth Divider ("or with email") */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  width: 100%;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-divider-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* User Avatar Image (Navigation & Dropdown) */
.user-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-subtle);
  display: block;
}

.user-avatar-img.admin-avatar {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.45);
}

.dropdown-user-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* ==============================================================================
   8. REMOVE ALL BORING DEFAULT BROWSER SCROLLBARS GLOBALLY
   ============================================================================== */
html,
body {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* ==============================================================================
   9. PROXIMITY MINIMAP SCROLLBAR DESIGN SYSTEM
   Magnetic fisheye proximity wave navigation rail (Linear/Vercel grade)
   ============================================================================== */
.proximity-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  align-items: center;
  padding: 16px 6px 16px 28px;
  pointer-events: auto;
  user-select: none;
}

/* Hairline scroll progress track */
.proximity-rail-track {
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.15s ease, background-color 0.15s ease;
}

.proximity-rail-track:hover {
  width: 4px;
  background: rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .proximity-rail-track {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .proximity-rail-track:hover {
  background: rgba(255, 255, 255, 0.15);
}

.proximity-rail-progress {
  width: 100%;
  height: 0%;
  background: var(--grad-brand);
  border-radius: 9999px;
  transition: height 0.08s linear;
}

/* Vertical stack of proximity dashes */
.proximity-minimap-track {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  position: relative;
  padding-right: 8px;
}

/* Individual Dash Button */
.proximity-dash-btn {
  background: transparent;
  border: none;
  padding: 3px 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  outline: none;
  position: relative;
  width: 110px;
  height: 12px;
  -webkit-tap-highlight-color: transparent;
}

/* The horizontal bar line */
.proximity-dash-line {
  display: block;
  transform-origin: right center;
  border-radius: 2px;
  background-color: #cbd5e1;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

[data-theme="dark"] .proximity-dash-line {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hover and active states */
.proximity-dash-btn:hover .proximity-dash-line {
  background-color: #64748b;
}

[data-theme="dark"] .proximity-dash-btn:hover .proximity-dash-line {
  background-color: rgba(255, 255, 255, 0.6);
}

.proximity-dash-btn.active .proximity-dash-line {
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.45);
}

[data-theme="dark"] .proximity-dash-btn.active .proximity-dash-line {
  background-color: #818cf8;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.6);
}

/* Floating Tooltip Pill */
.proximity-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 14px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  letter-spacing: -0.01em;
}

[data-theme="dark"] .proximity-tooltip {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* Show tooltip on hover */
.proximity-dash-btn:hover .proximity-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Hide on mobile devices to prevent touch interference */
@media (max-width: 768px) {
  .proximity-sidebar {
    display: none !important;
  }
}

/* ==============================================================================
   VIP Membership Nav Badges & Dropdown Status
   ============================================================================== */


.nav-plan-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.nav-plan-badge.badge-pro {
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.nav-plan-badge.badge-ultra {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.5);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.3);
}

.nav-upgrade-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  text-decoration: none;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-left: 4px;
  transition: all var(--transition-fast);
}

.nav-upgrade-link:hover {
  background: #10b981;
  color: #ffffff;
}

.dropdown-vip-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 10px;
}

[data-theme="dark"] .dropdown-vip-status-box {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.vip-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.vip-status-details {
  flex: 1;
}

.vip-tier-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.vip-expiry-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-vip-pill-mini {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-vip-pill-mini:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}



/* ==============================================================================
   VIP Data Locking & Protection UI Components
   ============================================================================== */
.badge-provider.badge-locked {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #e11d48;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .badge-provider.badge-locked {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.btn-card-access.btn-card-locked {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 16px -2px rgba(79, 70, 229, 0.45), 0 2px 6px rgba(124, 58, 237, 0.3) !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em !important;
  position: relative;
  overflow: hidden;
}

.btn-card-access.btn-card-locked span {
  color: #ffffff !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-card-access.btn-card-locked svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.btn-card-access.btn-card-locked::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: all 0.65s ease;
  pointer-events: none;
}

.course-card:hover .btn-card-access.btn-card-locked::before,
.btn-card-access.btn-card-locked:hover::before {
  left: 130%;
}

.course-card:hover .btn-card-access.btn-card-locked,
.btn-card-access.btn-card-locked:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #6d28d9 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 8px 26px -2px rgba(79, 70, 229, 0.65), 0 4px 12px rgba(124, 58, 237, 0.45) !important;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-card-access.btn-card-locked {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.55), 0 2px 8px rgba(139, 92, 246, 0.4) !important;
}

[data-theme="dark"] .course-card:hover .btn-card-access.btn-card-locked,
[data-theme="dark"] .btn-card-access.btn-card-locked:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%) !important;
  box-shadow: 0 8px 30px -2px rgba(99, 102, 241, 0.75), 0 4px 16px rgba(139, 92, 246, 0.55) !important;
}

.btn-action-icon,
.btn-lock-svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.course-card:hover .btn-action-icon,
.btn-card-access:hover .btn-action-icon {
  transform: scale(1.1);
}

.vip-locked-card {
  position: relative;
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.06) 0%, rgba(219, 39, 119, 0.04) 100%), var(--bg-surface);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.1);
  overflow: hidden;
  margin: 12px 0;
}

[data-theme="dark"] .vip-locked-card {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12) 0%, rgba(219, 39, 119, 0.08) 100%), #0f172a;
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 24px rgba(99, 102, 241, 0.15);
}

.vip-locked-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  animation: pulseLockGlow 2.5s infinite;
}

@keyframes pulseLockGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(219, 39, 119, 0.55);
  }
}

.vip-locked-heading {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.vip-locked-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

.vip-locked-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vip-locked-actions .btn {
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.vip-locked-subnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.key-unlock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #6366f1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-left: 8px;
  transition: all var(--transition-fast);
}

.key-unlock-badge:hover {
  background: #6366f1;
  color: #ffffff;
}

.method-locked-callout {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.method-locked-callout a {
  color: #6366f1;
  font-weight: 700;
  text-decoration: underline;
}


