/* ============================================
   JOGALART - Estilos CSS Puros
   Sin frameworks. Compatible con todos los navegadores.
   ============================================ */

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

:root {
  --purple-primary: #7B1FA2;
  --purple-dark: #4A148C;
  --purple-light: #9C27B0;
  --accent-gold: #FFD54F;
  --accent-warm: #FF8F00;
  --accent-orange: #FFA726;
  --bg-light: #FAFAFA;
  --bg-cream: #FFF8E1;
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-muted: #9E9E9E;
  --white: #FFFFFF;
  --success: #4CAF50;
  --error: #F44336;
  --border-light: #E0E0E0;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-normal);
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ---- Utilidades ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Scrollbar Hide ---- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  height: 72px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-primary);
  font-family: 'Poppins', sans-serif;
}

.logo svg {
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.logo:hover svg {
  transform: rotate(12deg);
}

/* Nav Links Desktop */
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-primary);
  transition: width var(--transition-normal);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav Buttons */
.nav-buttons {
  display: none;
  align-items: center;
  gap: 12px;
}

.btn-premium-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.btn-premium-nav:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.btn-premium-nav.active {
  background: var(--purple-primary);
}

.btn-register-nav {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple-primary);
  border: 2px solid var(--purple-primary);
  transition: all var(--transition-normal);
}

.btn-register-nav:hover {
  background: var(--purple-primary);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Menu Overlay (backdrop) */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 340px;
  background: var(--white);
  z-index: 1002;
  padding: 24px 20px;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  background: rgba(123,31,162,0.06);
  color: var(--purple-primary);
}

.mobile-menu .mobile-actions {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Menu Close Button */
.menu-close-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
  padding: 8px;
}

.menu-close-btn button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F5;
  transition: background var(--transition-fast);
}

.menu-close-btn button:hover {
  background: #EEEEEE;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--border-radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  font-weight: 700;
}

.btn-gold:hover {
  background: #FFCA28;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline-purple {
  border: 2px solid var(--purple-primary);
  color: var(--purple-primary);
  background: transparent;
  font-weight: 600;
}

.btn-outline-purple:hover {
  background: rgba(123,31,162,0.05);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-amber {
  background: #FFF3E0;
  color: #E65100;
}

.badge-purple {
  background: #F3E5F5;
  color: var(--purple-primary);
}

.badge-white {
  background: rgba(0,0,0,0.6);
  color: var(--white);
  backdrop-filter: blur(4px);
}

/* ============================================
   HOME PAGE - HERO
   ============================================ */
.home-hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,31,162,0.1) 0%, rgba(255,213,79,0.08) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.hero-badge {
  display: inline-block;
  background: #F3E5F5;
  color: var(--purple-primary);
  padding: 6px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title span {
  color: var(--purple-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

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

.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(74,20,140,0.25), transparent);
  pointer-events: none;
}

.hero-float-card {
  position: absolute;
  bottom: -24px;
  left: -20px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.hero-float-card .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F3E5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-float-card p:first-child {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.hero-float-card p:last-child {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   HOME PAGE - FEATURES
   ============================================ */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg-cream);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition-normal);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: #F3E5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================
   HOME PAGE - CTA
   ============================================ */
.cta-box {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  border-radius: var(--border-radius-xl);
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-box::before,
.cta-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-box::before {
  width: 250px;
  height: 250px;
  top: -80px;
  right: -60px;
}

.cta-box::after {
  width: 180px;
  height: 180px;
  bottom: -50px;
  left: -40px;
}

.cta-box h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.cta-box > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* ============================================
   SIGNUP PAGE
   ============================================ */
.signup-page {
  padding-top: 72px;
  min-height: 100vh;
}

.signup-split {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}

/* Left Panel */
.signup-left {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.signup-left-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.signup-left-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signup-left-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,20,140,0.85), rgba(123,31,162,0.7));
}

.signup-left-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 32px;
  color: var(--white);
}

.signup-left-content .subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  font-weight: 500;
}

.signup-left-content h2 {
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.signup-left-content .tagline {
  font-size: 1.3rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 40px;
}

.benefits-list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.benefit-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,213,79,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Right Panel */
.signup-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg-light);
}

.signup-form-wrap {
  width: 100%;
  max-width: 440px;
}

.signup-header {
  text-align: center;
  margin-bottom: 36px;
}

.signup-header h1 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.input-wrap .toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.input-wrap .toggle-password:hover {
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-md);
  background: #F5F5F5;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  outline: none;
}

.form-input:focus {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px rgba(123,31,162,0.1);
  background: var(--white);
}

.form-input.has-icon-right {
  padding-right: 46px;
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(244,67,54,0.1);
}

.error-msg {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* Password Strength */
.strength-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.strength-track {
  flex: 1;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: all var(--transition-normal);
  width: 0;
}

.strength-fill.weak { width: 33%; background: var(--error); }
.strength-fill.medium { width: 66%; background: var(--accent-gold); }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 20px;
}

.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-wrap span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-wrap a {
  color: var(--purple-primary);
  font-weight: 500;
}

.checkbox-wrap a:hover {
  text-decoration: underline;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--purple-primary);
  color: var(--white);
  border-radius: var(--border-radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.btn-submit:hover {
  background: var(--purple-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Success State */
.success-state {
  text-align: center;
  padding: 48px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #E8F5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-state h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.success-state p {
  color: var(--text-secondary);
}

/* Social Signup */
.social-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.social-divider span {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: all var(--transition-normal);
}

.social-btn:hover {
  border-color: var(--purple-primary);
  background: rgba(123,31,162,0.04);
  transform: translateY(-2px);
}

.signup-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.signup-footer a {
  color: var(--purple-primary);
  font-weight: 500;
}

.signup-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   VIDEOS PREMIUM PAGE
   ============================================ */
.videos-page {
  padding-top: 72px;
}

/* Hero */
.videos-hero {
  background: linear-gradient(to bottom, #F3E5F5, var(--white));
  padding: 48px 0 56px;
  text-align: center;
}

.videos-hero h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.videos-hero > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-actions-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* Stats */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 40px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple-primary);
  font-family: 'Poppins', sans-serif;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-separator {
  width: 1px;
  height: 40px;
  background: var(--border-light);
  display: none;
}

/* Category Tabs */
.category-tabs {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 16px 0;
  position: sticky;
  top: 72px;
  z-index: 50;
}

.tabs-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  white-space: nowrap;
  padding: 9px 22px;
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #F5F5F5;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.tab-btn:hover {
  background: #EEEEEE;
}

.tab-btn.active {
  background: var(--purple-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Video Grid */
.video-grid {
  padding: 48px 0;
}

.video-grid-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Video Card */
.video-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-thumbnail.locked img {
  filter: blur(2px);
}

.duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
}

/* Premium Overlay */
.premium-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lock-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.video-card:hover .lock-circle {
  transform: scale(1.1);
}

.premium-badge {
  background: var(--accent-warm);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
}

/* Play Overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-normal);
}

.video-card:hover .play-overlay {
  background: rgba(0,0,0,0.3);
}

.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.video-card:hover .play-circle {
  opacity: 1;
  transform: scale(1);
}

/* Video Info */
.video-info {
  padding: 16px 18px 18px;
}

.video-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.video-info h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.video-card:hover .video-info h3 {
  color: var(--purple-primary);
}

.video-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

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

.video-instructor span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.video-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  grid-column: 1 / -1;
}

.empty-state svg {
  color: #E0E0E0;
  margin: 0 auto 16px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Pricing Teaser */
.pricing-section {
  padding-bottom: 80px;
}

.pricing-box {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  border-radius: var(--border-radius-xl);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.pricing-box .decorator-1 {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -80px;
  right: -60px;
}

.pricing-box .decorator-2 {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -50px;
  left: -40px;
}

.pricing-box > *:not(.decorator-1):not(.decorator-2) {
  position: relative;
  z-index: 2;
}

.pricing-box h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.pricing-box .price {
  font-size: 1.2rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-icon:hover {
  background: var(--purple-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease infinite;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

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

  .video-grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-separator {
    display: block;
  }

  .signup-left h2 {
    font-size: 3.2rem;
  }
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-buttons {
    display: flex;
  }

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

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-float-card {
    display: flex;
  }

  .signup-split {
    flex-direction: row;
  }

  .signup-left {
    width: 40%;
    min-height: calc(100vh - 72px);
  }

  .signup-right {
    width: 60%;
    padding: 48px 64px;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-grid-inner {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-title {
    font-size: 3.8rem;
  }

  .section-header h2 {
    font-size: 2.4rem;
  }

  .videos-hero h1 {
    font-size: 3.2rem;
  }

  .signup-left h2 {
    font-size: 3.6rem;
  }
}

@media (min-width: 1280px) {
  .video-grid-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   SCROLL REVEAL (via IntersectionObserver in JS)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
