/* Alpha Academy - Pure HTML/CSS Styles */
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(240, 10%, 10%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(240, 10%, 10%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(240, 10%, 10%);
  /* Logo Colors */
  --logo-blue: #1a5db0;
  --logo-green: #00ff88;
  
  --primary: hsl(214, 74%, 40%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(240, 5%, 96%);
  --secondary-foreground: hsl(240, 10%, 10%);
  --muted: hsl(240, 5%, 96%);
  --muted-foreground: hsl(240, 4%, 46%);
  --accent: hsl(150, 100%, 50%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --border: hsl(240, 6%, 90%);
  --input: hsl(240, 6%, 90%);
  --ring: hsl(150, 100%, 50%);
  --radius: 0.75rem;
  --success: hsl(150, 100%, 45%);
  --success-foreground: hsl(0, 0%, 100%);
  --warning: hsl(48, 96%, 53%);
  --warning-foreground: hsl(0, 0%, 100%);
  --yellow: hsl(48, 96%, 53%);
  --yellow-foreground: hsl(0, 0%, 100%);
  --pink: hsl(330, 81%, 60%);
  --pink-foreground: hsl(0, 0%, 100%);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a5db0 0%, #00ff88 100%);
  --gradient-split: linear-gradient(90deg, #1a5db0 0%, #1a5db0 50%, #00ff88 50%, #00ff88 100%);
  --gradient-dark: linear-gradient(180deg, hsl(240, 10%, 6%) 0%, hsl(240, 10%, 10%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(240, 5%, 98%) 100%);
  --gradient-glow: radial-gradient(circle at center, hsla(214, 74%, 40%, 0.15) 0%, hsla(150, 100%, 50%, 0.15) 70%, transparent 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px hsla(240, 10%, 10%, 0.05);
  --shadow-md: 0 4px 12px hsla(240, 10%, 10%, 0.08);
  --shadow-lg: 0 8px 30px hsla(240, 10%, 10%, 0.12);
  --shadow-glow: 0 0 40px hsla(214, 74%, 40%, 0.25), 0 0 20px hsla(150, 100%, 50%, 0.15);
  --shadow-glow-blue: 0 0 30px hsla(214, 74%, 40%, 0.3);
  --shadow-glow-green: 0 0 30px hsla(150, 100%, 50%, 0.3);
}

/* Dark mode */
.dark {
  --logo-blue: #3d7fd6;
  --logo-green: #00ff88;
  
  --background: hsl(240, 10%, 6%);
  --foreground: hsl(0, 0%, 98%);
  --card: hsl(240, 10%, 9%);
  --card-foreground: hsl(0, 0%, 98%);
  --popover: hsl(240, 10%, 9%);
  --popover-foreground: hsl(0, 0%, 98%);
  --primary: hsl(214, 70%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(240, 10%, 14%);
  --secondary-foreground: hsl(0, 0%, 98%);
  --muted: hsl(240, 10%, 14%);
  --muted-foreground: hsl(240, 5%, 55%);
  --accent: hsl(150, 90%, 55%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 62%, 50%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --border: hsl(240, 10%, 18%);
  --input: hsl(240, 10%, 18%);
  --ring: hsl(150, 90%, 55%);
  --gradient-primary: linear-gradient(135deg, hsl(214, 70%, 55%) 0%, hsl(150, 90%, 55%) 100%);
  --gradient-split: linear-gradient(90deg, hsl(214, 70%, 55%) 0%, hsl(214, 70%, 55%) 50%, hsl(150, 90%, 55%) 50%, hsl(150, 90%, 55%) 100%);
  --gradient-dark: linear-gradient(180deg, hsl(240, 10%, 4%) 0%, hsl(240, 10%, 8%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(240, 10%, 10%) 0%, hsl(240, 10%, 8%) 100%);
  --gradient-glow: radial-gradient(circle at center, hsla(214, 70%, 55%, 0.2) 0%, hsla(150, 90%, 55%, 0.2) 70%, transparent 100%);
  --shadow-sm: 0 1px 2px hsla(0, 0%, 0%, 0.2);
  --shadow-md: 0 4px 12px hsla(0, 0%, 0%, 0.3);
  --shadow-lg: 0 8px 30px hsla(0, 0%, 0%, 0.4);
  --shadow-glow: 0 0 60px hsla(214, 70%, 55%, 0.35), 0 0 30px hsla(150, 90%, 55%, 0.25);
  --shadow-glow-blue: 0 0 40px hsla(214, 70%, 55%, 0.4);
  --shadow-glow-green: 0 0 40px hsla(150, 90%, 55%, 0.4);
  --success: hsl(150, 85%, 50%);
  --warning: hsl(38, 92%, 55%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
  max-width: 100vw;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Ensure html also respects safe areas */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Prevent horizontal overflow globally */
* {
  box-sizing: border-box;
}

/* Ensure images and media don't overflow */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Fix any potential overflow issues */
@media (max-width: 768px) {
  /* Ensure sections don't overflow */
  .section-header,
  .page-header {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Optimize hero section on mobile */
  .hero {
    padding: 2rem 0;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .hero-content {
    padding: 0;
    margin-left: 0;
  }
  
  /* Optimize feature cards spacing */
  .features-grid {
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  /* Optimize buttons on mobile */
  .btn {
    min-height: 44px;
    padding: 0.625rem 1.25rem;
  }
  
  .btn-sm {
    min-height: 40px;
    padding: 0.5rem 0.75rem;
  }
  
  /* Ensure form inputs are touch-friendly */
  .form-input {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0 1rem;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}

/* Mobile: reduce container padding further on small screens */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.split-color-text {
  background: var(--gradient-split);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-split {
  background: var(--gradient-split);
}

.gradient-glow {
  background: var(--gradient-glow);
}

.split-color-bg {
  background: var(--gradient-split);
  position: relative;
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(var(--background), var(--background)) padding-box,
              var(--gradient-primary) border-box;
}

.glow-blue {
  box-shadow: var(--shadow-glow-blue);
}

.glow-green {
  box-shadow: var(--shadow-glow-green);
}

.glow-blue-green {
  box-shadow: var(--shadow-glow-blue), var(--shadow-glow-green);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

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

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

.line-clamp-1 {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  opacity: 0.95;
  box-shadow: var(--shadow-glow-blue), var(--shadow-glow-green);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: var(--muted);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.btn-ghost.active {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow-blue);
}

.btn-ghost.active:hover {
  background: var(--gradient-primary);
  opacity: 0.9;
  box-shadow: var(--shadow-glow-blue), var(--shadow-glow-green);
}

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

.btn-success:hover {
  opacity: 0.9;
}

.btn-lg {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

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

.card-content {
  padding: 1.5rem;
}

.card-header {
  padding: 1.5rem;
  padding-bottom: 0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.card-footer {
  padding: 1.5rem;
  padding-top: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow-blue);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-success {
  background-color: var(--logo-green);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow-green);
}

/* Form Elements */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--logo-green);
  box-shadow: 0 0 0 3px hsla(150, 100%, 50%, 0.15), var(--shadow-glow-green);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-input.error {
  border-color: var(--destructive);
}

.form-error {
  font-size: 0.875rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

.input-group {
  position: relative;
}

.input-group .toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group .toggle-password:hover {
  color: var(--foreground);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  background-image: linear-gradient(white, white),
                    var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 0 1px rgba(26, 93, 176, 0.1);
  transition: all 0.3s ease;
}

/* When scrolling down, hide the navbar */
.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08), var(--shadow-glow-blue);
}

.dark .navbar {
  background-color: rgba(20, 20, 25, 0.95);
  border-bottom: 2px solid transparent;
  background-image: linear-gradient(hsl(240, 10%, 9%), hsl(240, 10%, 9%)),
                    var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 1px rgba(61, 127, 214, 0.2);
}

.dark .navbar:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow-blue);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (max-width: 480px) {
  .navbar-container {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease;
  padding: 0.25rem;
  overflow: hidden;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.navbar-logo svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-foreground);
  fill: currentColor;
}

.navbar-brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
}

@media (min-width: 480px) {
  .navbar-brand-text {
    font-size: 1.25rem;
  }
}

.dark .navbar-brand-text {
  color: #fff;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-nav .btn-ghost {
  display: none;
  color: #000;
}

.navbar-nav .btn-ghost:hover {
  color: #000;
}

/* Sign In / Sign Out button styling in the top navbar */
.navbar-nav #signInBtn {
  display: inline-flex;
  background-color: #000;
  color: #fff;
  border-radius: 50px;
  padding: 0.625rem 1.25rem;
}

/* Active state for top navbar links - yellow background when active */
.navbar-nav .btn.btn-ghost.active,
.navbar-nav .btn.btn-ghost[aria-current="page"],
.navbar-nav a.btn-ghost.active,
.navbar-nav a.btn-ghost[aria-current="page"] {
  background-color: #a8e2ff8d !important;
  background: #a8e2ff8d !important;
  background-image: none !important;
  color: #086200 !important;
  font-weight: 600;
  box-shadow: none !important;
  padding: 0.625rem 1rem !important;
  border-radius: 0.5rem !important;
}

.dark .navbar-nav .btn.btn-ghost.active,
.dark .navbar-nav .btn.btn-ghost[aria-current="page"],
.dark .navbar-nav a.btn-ghost.active,
.dark .navbar-nav a.btn-ghost[aria-current="page"] {
  background-color: #a8cbff8d !important;
  background: #a8e2ff8d !important;
  background-image: none !important;
  color: #000 !important;
}

.navbar-nav .btn.btn-ghost.active:hover,
.navbar-nav .btn.btn-ghost[aria-current="page"]:hover,
.navbar-nav a.btn-ghost.active:hover,
.navbar-nav a.btn-ghost[aria-current="page"]:hover {
  background-color: #a8e2ff8d !important;
  background: #a8e2ff8d !important;
  background-image: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

@media (min-width: 1024px) {
  .navbar-nav .btn-ghost {
    display: inline-flex;
  }

  /* Desktop: keep same pill styling; hover state slightly lighter black */
  .navbar-nav #signInBtn:hover {
    background-color: #111;
  }

}

.navbar-user {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-user svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary-foreground);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Bottom Navigation (Home / Browse / My Videos) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1024px) {
  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); /* space for fixed bottom nav */
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(4.25rem + env(safe-area-inset-bottom));
    z-index: 60;
    background-color: hsla(0, 0%, 100%, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid hsla(240, 6%, 90%, 0.6);
    box-shadow: 0 -10px 30px hsla(240, 10%, 10%, 0.08);
  }

  .dark .mobile-bottom-nav {
    background-color: hsla(240, 10%, 6%, 0.9);
    border-top-color: hsla(240, 10%, 18%, 0.6);
  }

  .mobile-bottom-nav-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 0.5rem;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bottom-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.625rem 0.5rem;
    min-height: 60px;
    border-radius: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.15s ease, background-color 0.15s ease;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
  }

  .mobile-bottom-nav-link svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }
  
  .mobile-bottom-nav-link span {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  
  /* Ensure active state is more prominent on mobile */
  .mobile-bottom-nav-link.active,
  .mobile-bottom-nav-link[aria-current="page"] {
    color: var(--primary);
    font-weight: 700;
  }

  .mobile-bottom-nav-link.active,
  .mobile-bottom-nav-link[aria-current="page"] {
    color: var(--primary);
  }

  /* Material-like active indicator (subtle pill behind the icon/label) */
  .mobile-bottom-nav-link.active::before,
  .mobile-bottom-nav-link[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    top: 0.25rem;
    bottom: 0.25rem;
    border-radius: 999px;
    background: hsla(262, 83%, 58%, 0.15);
    z-index: -1;
  }

  .dark .mobile-bottom-nav-link.active::before,
  .dark .mobile-bottom-nav-link[aria-current="page"]::before {
    background: hsla(262, 83%, 65%, 0.16);
  }

  .mobile-bottom-nav-link:active {
    background-color: hsla(240, 5%, 96%, 0.9);
  }

  .dark .mobile-bottom-nav-link:active {
    background-color: hsla(240, 10%, 14%, 0.9);
  }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: 5rem;
  left: 25%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(214, 74%, 40%, 0.4) 0%, transparent 70%);
  opacity: 0.6;
  filter: blur(48px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsla(150, 100%, 50%, 0.3) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(48px);
}

.hero-content {
  position: relative;
  max-width: 56rem;
  margin: 0;
  margin-left: -6rem;
  text-align: left;
}

@media (max-width: 768px) {
  .hero-content {
    margin-left: 0;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, hsla(214, 74%, 40%, 0.1) 0%, hsla(150, 100%, 50%, 0.1) 100%);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--background), var(--background)), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 0 2.5rem 0;
  text-align: left;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }
}

/* Mobile: ensure hero buttons are full-width and touch-friendly */
@media (max-width: 479px) {
  .hero-buttons .btn,
  .hero-buttons .hero-start-btn-container {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-buttons .hero-start-btn {
    width: 100%;
    max-width: 100%;
  }
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.dark .features {
  background-color: hsla(240, 10%, 14%, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
    padding: 0;
  }
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  line-height: 1.3;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-tech);
  border-radius: 2px;
  animation: gradientShift 3s ease infinite;
}

@media (min-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 0 1rem;
}

@media (min-width: 480px) {
  .section-description {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    padding: 0;
  }
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
  }
  
  .feature-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .feature-description {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary-foreground);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: black;
}

.feature-description {
  color: black;
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
  background: url('../assets/Gradient Background.jpg') center center / cover no-repeat;
}

.benefits-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .benefits-grid {
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.benefits-content h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .benefits-content h2 {
    font-size: 2.25rem;
  }
}

.benefits-content > p {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefits-list li span {
  color: #ffffff;
}

.benefits-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.benefits-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.play-button {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-foreground);
  fill: currentColor;
  margin-left: 0.25rem;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.dark .cta {
  background-color: hsla(240, 10%, 14%, 0.3);
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.cta-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .cta-content h2 {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .cta-content {
    padding: 0;
  }
  
  .cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }
}

.cta-content p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .cta-content p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 100%;
  }
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

.footer-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  overflow: hidden;
}

.footer-logo svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary-foreground);
  fill: currentColor;
}

.footer-brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Courses Page */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}

.page-description {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .page-description {
    font-size: 1.125rem;
  }
}

.courses-grid {
  display: grid;
  gap: 2rem;
}

/* Mobile: make course thumbnails much smaller; height is controlled by --course-thumb-h set inline */
@media (max-width: 768px) {
  .courses-grid {
    gap: 0.75rem;
  }

  .courses-grid .course-thumbnail {
    aspect-ratio: auto;
    height: var(--course-thumb-h, 120px);
    max-height: 120px;
    min-height: 100px;
  }

  /* Make the entire card UI more compact on mobile (not just the image) */
  .courses-grid .course-card {
    border-radius: 1rem;
  }

  .courses-grid .course-thumbnail {
    border-radius: 1rem 1rem 0 0;
  }

  .courses-grid .course-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .courses-grid .course-badge svg {
    width: 14px;
    height: 14px;
  }

  .courses-grid .course-content {
    padding: 0 0.75rem;
    gap: 0.375rem;
  }

  .courses-grid .course-title {
    font-size: 0.95rem;
    margin-top: 0.6rem;
  }

  .courses-grid .course-description {
    font-size: 0.75rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
  }

  .courses-grid .course-footer {
    padding: 0.5rem 0 0;
  }

  .courses-grid .btn-gradient {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0 0 1rem 1rem;
  }
}

@media (min-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.course-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.course-thumbnail {
  position: relative;
  aspect-ratio: 1/1;
  background-color: var(--muted);
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  flex-shrink: 0;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.course-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  opacity: 0.15;
}

.course-thumbnail-placeholder svg {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
}

.course-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 0%, 0.5) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
  opacity: 1;
}

.course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-content {
  padding: 0 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  min-height: 0;
}

.course-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--foreground);
  line-height: 1.2;
  width: 100%;
}

.course-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
}

.course-footer {
  padding: 0.75rem 0 0;
  margin-top: 0;
}

.btn-gradient {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0 0 1.25rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue), var(--shadow-glow-green);
  opacity: 0.95;
}

.btn-gradient:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* Category Detail Page */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--foreground);
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

.category-layout {
  display: grid;
  gap: 2rem;
}

@media (max-width: 1023px) {
  .category-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .purchase-card {
    position: relative;
    top: 0;
  }
}

@media (min-width: 1024px) {
  .category-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  .purchase-card {
    position: sticky;
    top: 6rem;
  }
}

.category-hero {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--muted);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}

/* Mobile: reduce category hero height */
@media (max-width: 768px) {
  .category-hero {
    aspect-ratio: 16/9;
    max-height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
  }
  
  .category-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  
  .category-meta {
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }
  
  .category-meta-item {
    font-size: 0.875rem;
  }
  
  .category-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  /* Category layout - stack on mobile */
  .category-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .purchase-card {
    position: relative;
    top: 0;
    order: 2;
  }
}

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

.category-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsla(262, 83%, 58%, 0.2) 0%, hsla(262, 83%, 58%, 0.05) 100%);
}

.category-hero-placeholder svg {
  width: 4rem;
  height: 4rem;
  color: var(--primary);
}

.category-owned-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.category-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .category-title {
    font-size: 2.5rem;
  }
}

.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.category-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-meta-item svg {
  width: 1rem;
  height: 1rem;
}

.category-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Video List */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.video-list-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .video-list {
    gap: 0.75rem;
  }
  
  .video-list-header {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .video-list-header {
    font-size: 1rem;
  }
}

.video-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.video-item.clickable {
  cursor: pointer;
}

.video-item.clickable:hover {
  box-shadow: var(--shadow-md);
}

.video-item.locked {
  opacity: 0.8;
}

.video-thumbnail {
  position: relative;
  width: 6rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--muted);
  flex-shrink: 0;
}

/* Mobile: reduce video item thumbnails in lists */
@media (max-width: 768px) {
  .video-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .video-thumbnail {
    width: 4rem;
    height: 2.5rem;
    min-width: 4rem;
    min-height: 2.5rem;
    border-radius: 0.375rem;
  }
  
  .video-info {
    min-width: 0;
    overflow: hidden;
  }
  
  .video-title {
    font-size: 0.875rem;
    line-height: 1.3;
  }
  
  .video-subtitle {
    font-size: 0.75rem;
    margin-top: 0.2rem;
  }
  
  .video-number {
    font-size: 0.75rem;
  }
  
  .video-actions {
    font-size: 0.75rem;
    gap: 0.375rem;
  }
}

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

.video-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail-placeholder svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}

.video-thumbnail-lock {
  position: absolute;
  inset: 0;
  background-color: hsla(0, 0%, 0%, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail-lock svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

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

.video-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-number {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.video-title {
  font-weight: 500;
}

.video-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.video-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.video-actions svg {
  width: 1rem;
  height: 1rem;
}

/* Sidebar Purchase Card */
.purchase-card {
  position: sticky;
  top: 6rem;
}

.purchase-card .card-content {
  padding: 1.5rem;
}

.purchase-owned {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.purchase-owned svg {
  width: 1.25rem;
  height: 1.25rem;
}

.purchase-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.purchase-price-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.purchase-price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.purchase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.purchase-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.purchase-features svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

/* Auth Page */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-glow-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: var(--gradient-glow);
  opacity: 0.5;
  filter: blur(48px);
}

.auth-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: var(--gradient-glow);
  opacity: 0.3;
  filter: blur(48px);
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  position: relative;
}

.auth-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-glow);
  padding: 0.375rem;
  overflow: hidden;
}

.auth-logo svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary-foreground);
  fill: currentColor;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.auth-footer a, .auth-footer button {
  color: var(--primary);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

.auth-footer a:hover, .auth-footer button:hover {
  text-decoration: underline;
}

/* My Videos Page */
.my-videos-empty {
  text-align: center;
  padding: 4rem 0;
}

.my-videos-empty-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.my-videos-empty-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--muted-foreground);
}

.my-videos-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.my-videos-empty p {
  color: var(--muted-foreground);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.videos-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.video-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
}

.video-card-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background-color: var(--muted);
  overflow: hidden;
}

/* Mobile: reduce video card thumbnails */
@media (max-width: 768px) {
  .videos-grid .video-card-thumbnail {
    aspect-ratio: 16/9;
    max-height: 140px;
    height: 140px;
  }
  
  .video-card {
    border-radius: 0.75rem;
  }
  
  .video-card-content {
    padding: 0.75rem;
  }
  
  .video-card-category {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
  }
  
  .video-card-title {
    font-size: 0.875rem;
    line-height: 1.3;
  }
}

.video-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.video-card-overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(0, 0%, 0%, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-card-overlay {
  opacity: 1;
}

.video-card-play {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.video-card-play svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-foreground);
  fill: currentColor;
  margin-left: 0.125rem;
}

.video-card-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: hsla(0, 0%, 0%, 0.8);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.video-card-duration svg {
  width: 0.75rem;
  height: 0.75rem;
}

.video-card-pdf {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--primary);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.video-card-pdf svg {
  width: 0.75rem;
  height: 0.75rem;
}

.video-card-content {
  padding: 1rem;
}

.video-card-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.video-card-title {
  font-weight: 600;
  transition: color 0.2s ease;
}

.video-card:hover .video-card-title {
  color: var(--primary);
}

/* Watch Page */
.video-player {
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--muted);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--background);
}

/* Mobile: adjust video player for smaller screens */
@media (max-width: 768px) {
  .video-player {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .video-player video {
    width: 100%;
    height: auto;
    max-height: 60vh; /* Prevent video from being too tall on mobile */
  }
}

.video-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .video-navigation {
    margin-bottom: 1rem;
    gap: 0.75rem;
  }
  
  .video-navigation .btn {
    min-height: 44px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    flex: 1;
    min-width: 0;
  }
}

.video-navigation-info {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .video-navigation-info {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
    order: 3;
  }
}

.watch-layout {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .watch-layout {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .watch-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.watch-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 480px) {
  .watch-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .watch-title {
    font-size: 2rem;
  }
}

.watch-description {
  color: var(--muted-foreground);
}

.pdf-download-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pdf-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: hsla(262, 83%, 58%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.pdf-info h3 {
  font-weight: 500;
}

.pdf-info p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.related-videos {
  margin-top: 3rem;
}

.related-videos h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.related-videos-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .related-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .related-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.related-video-item {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.related-video-item:hover {
  border-color: hsla(262, 83%, 58%, 0.5);
}

.related-video-item.active {
  border-color: var(--primary);
  background-color: hsla(262, 83%, 58%, 0.05);
}

.related-video-number {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.related-video-title {
  font-weight: 500;
}

.related-video-item.active .related-video-title {
  color: var(--primary);
}

/* 404 Page */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
  text-align: center;
  padding: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.not-found h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .not-found h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .not-found h1 {
    font-size: 4rem;
  }
}

.not-found p {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .not-found p {
    font-size: 1.25rem;
  }
}

.not-found a {
  color: var(--primary);
  text-decoration: underline;
}

.not-found a:hover {
  opacity: 0.9;
}

/* Access Denied */
.access-denied {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}

.access-denied-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.access-denied-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--muted-foreground);
}

.access-denied h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.access-denied p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--muted) 0%,
    hsla(240, 5%, 70%, 0.1) 50%,
    var(--muted) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Spacing utilities */
.pt-24 {
  padding-top: max(6rem, calc(4rem + env(safe-area-inset-top)));
}

.pb-16 {
  padding-bottom: max(4rem, calc(4rem + env(safe-area-inset-bottom)));
}

@media (max-width: 768px) {
  .pt-24 {
    padding-top: max(5rem, calc(4rem + env(safe-area-inset-top)));
  }
  
  .pb-16 {
    padding-bottom: max(5rem, calc(4rem + env(safe-area-inset-bottom)));
  }
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Show on mobile only */
@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }
}

/* Show on desktop only */
.md\:block {
  display: none;
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
}

/* Responsive text */
.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

/* Flex utilities */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Width utilities */
.w-full {
  width: 100%;
}

/* Grid utilities */
.grid {
  display: grid;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 14rem;
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  padding: 0.25rem;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
}

@media (max-width: 768px) {
  .dropdown-content {
    min-width: 12rem;
    max-width: calc(100vw - 1rem);
    right: 0;
    left: auto;
    margin-top: 0.5rem;
  }
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-header {
  padding: 0.5rem 0.75rem;
}

.dropdown-header p:first-child {
  font-size: 0.875rem;
  font-weight: 500;
}

.dropdown-header p:last-child {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: 0.25rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: none;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  color: var(--foreground);
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--secondary);
}

.dropdown-item svg {
  width: 1rem;
  height: 1rem;
}

/* User avatar circle in top navbar */
.user-avatar-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.user-avatar-btn:hover {
  background-color: var(--secondary);
}

.user-avatar-btn:focus-visible {
  outline: 2px solid hsla(262, 83%, 58%, 0.4);
  outline-offset: 2px;
}

/* Name label next to avatar in top navbar */

/* Admin Sidebar Styles */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--background);
}

.admin-sidebar {
  width: 260px;
  background-color: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
}

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

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
}

.admin-sidebar-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
  padding: 0.25rem;
  overflow: hidden;
}

.admin-sidebar-logo svg {
  width: 1rem;
  height: 1rem;
  color: white;
  fill: currentColor;
}

.admin-sidebar-brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.admin-sidebar-brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.admin-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.admin-sidebar-section {
  margin-bottom: 1.5rem;
}

.admin-sidebar-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-sidebar-menu-item {
  margin-bottom: 0.25rem;
}

.admin-sidebar-menu-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: none;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-sidebar-menu-button:hover {
  background-color: var(--secondary);
}

.admin-sidebar-menu-button.active {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow-blue);
  border-left: 3px solid var(--logo-green);
}

.admin-sidebar-menu-button svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.admin-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: hsla(var(--background-hsl), 0.95);
  backdrop-filter: blur(8px);
}

.admin-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.admin-header-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.admin-content {
  flex: 1;
  padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
  }
}

/* Admin sidebar mobile toggle + overlay */
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
}

.admin-sidebar-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 35; /* below sidebar (40), above content */
}

body.admin-sidebar-open .admin-sidebar-overlay {
  display: block;
}

@media (max-width: 768px) {
  .admin-sidebar-toggle {
    display: inline-flex;
  }
}

/* Keep admin sidebar actions visible above the fixed mobile bottom nav */
@media (max-width: 1024px) {
  /* The base admin sidebar sets bottom: 0 later in this file.
     This override must live AFTER the admin sidebar styles to win. */
  .admin-sidebar {
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
  }

  .admin-sidebar-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

/* Thumbnail Size Control Buttons */
.thumbnail-size-btn {
  transition: all 0.2s ease;
}

.thumbnail-size-btn:hover {
  transform: translateY(-1px);
}

.thumbnail-size-btn svg {
  transition: transform 0.2s ease;
}

.thumbnail-size-btn:hover svg {
  transform: scale(1.1);
}

.thumbnail-size-btn.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.thumbnail-size-btn.btn-primary:hover {
  background-color: var(--primary);
  opacity: 0.9;
}

/* ============================================
   PWA Polish
   ============================================ */

/* Accessibility helper */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Touch-friendly defaults (mobile/tablet) */
@media (pointer: coarse) {
  .btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
  }
  
  .btn.btn-sm {
    min-height: 40px;
    min-width: 40px;
    padding: 0.5rem 0.75rem;
  }
  
  .btn.btn-lg {
    min-height: 48px;
    min-width: 48px;
    padding: 0.875rem 2rem;
  }
  
  .btn-icon {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }
  
  .form-input {
    min-height: 44px;
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  /* Navigation links - ensure touch-friendly */
  .navbar-nav .btn-ghost {
    min-height: 44px;
    min-width: 44px;
    padding: 0.625rem 1rem;
  }
  
  /* Dropdown items */
  .dropdown-item {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  /* Back links */
  .back-link,
  .learning-back-link {
    min-height: 44px;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Card links and buttons */
  .course-card,
  .video-card,
  .learning-video-card,
  .learning-pdf-card {
    cursor: pointer;
    touch-action: manipulation;
  }
  
  /* Increase spacing between interactive elements */
  .courses-grid,
  .videos-grid {
    gap: 1rem;
  }
  
  /* Video navigation buttons */
  .video-navigation .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
}

/* Install banner */
.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(4.5rem + env(safe-area-inset-bottom));
  z-index: 120;
  padding: 0.75rem;
  pointer-events: none;
}

.pwa-install-banner.hidden {
  display: none;
}

.pwa-install-banner-inner {
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.pwa-install-banner-title {
  font-weight: 800;
}

.pwa-install-banner-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.15rem;
}

.pwa-install-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .pwa-install-banner {
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
  .pwa-install-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .pwa-install-banner-actions {
    width: 100%;
  }
  .pwa-install-banner-actions .btn {
    width: 100%;
  }
}

/* Persistent install icon (home page) */
.pwa-install-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  color: var(--foreground);
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.pwa-install-fab.hidden {
  display: none;
}

.pwa-install-fab:active {
  transform: scale(0.98);
}

.pwa-install-fab-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.pwa-install-fab-icon svg {
  width: 18px;
  height: 18px;
}

.pwa-install-fab-label {
  font-weight: 800;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .pwa-install-fab {
    right: 0.75rem;
    bottom: calc(5.15rem + env(safe-area-inset-bottom));
  }
}


/* Alpha Academy Styles */

/* Button variations */
.btn-yellow {
  background-color: var(--warning);
  color: var(--warning-foreground);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-yellow:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-blue {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
}

.btn-blue:hover {
  opacity: 0.9;
}

.btn-contact {
  background-color: hsl(217, 91%, 55%);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 0.625rem 1.5rem;
}

.btn-contact:hover {
  background-color: var(--primary);
}

/* Hero with background image */
.hero-with-bg {
  position: relative;
  /* Rectangle card look with padding on all sides */
  padding: 5rem 0rem 4rem;
  margin: 1.5rem auto;
  max-width: 95%;
  border-radius: 2rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-with-bg {
    padding: 3rem 0 2.5rem;
    margin: 1rem auto;
    max-width: 100%;
    border-radius: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

@media (max-width: 480px) {
  .hero-with-bg {
    padding: 2.5rem 0 2rem;
    margin: 0.75rem auto;
    border-radius: 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

.hero-with-bg::before {
  display: none;
}

.hero-with-bg .container {
  position: relative;
  z-index: 2;
}

.hero-with-bg .hero-title {
  color: white;
}

.hero-with-bg .hero-description {
  color: #ffffff;
}

.hero-with-bg .text-gradient {
  background: linear-gradient(90deg, hsl(225, 85%, 62%) 0%, hsl(202, 100%, 76%) 25%, hsl(225, 85%, 62%) 50%, hsl(202, 100%, 78%) 75%, hsl(225, 85%, 62%) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* Statistics cards */
.stat-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* VIP Clients section */
.vip-clients {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.vip-clients-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  text-align: center;
}

.vip-clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .vip-clients-logos {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .vip-client-logo {
    max-width: 80px;
    max-height: 40px;
  }
}

.vip-client-logo {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.vip-client-logo:hover {
  opacity: 1;
}

/* About Us Section */
.about-section {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .about-grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .about-images {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .about-image {
    aspect-ratio: 16/9;
    max-height: 200px;
  }
  
  .about-image-large {
    max-height: 250px;
  }
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--muted);
}

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

.about-image-large {
  grid-column: 1 / -1;
  aspect-ratio: 2/1;
}

.about-image-circle {
  border-radius: 50%;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

.about-ceo {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.ceo-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.ceo-name {
  font-weight: 600;
  color: var(--foreground);
}

.ceo-title {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Why Choose Section */
.why-choose-section {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.why-choose-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--muted);
}

.why-choose-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

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

.pricing-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-button {
  width: 100%;
  margin-top: auto;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
}

@media (min-width: 480px) {
  .gallery-grid {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--muted);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* CTA Footer */
.cta-footer {
  padding: 4rem 0;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.cta-footer-box {
  background-color: var(--primary);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.cta-footer-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1rem;
}

.cta-footer-address {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-footer-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary-foreground);
  font-size: 1.25rem;
  font-weight: 600;
}

.cta-footer-phone svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .cta-footer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 3rem;
  }

  .cta-footer-content {
    flex: 1;
  }

  .cta-footer-phone {
    justify-content: flex-end;
  }
}

/* Search icon in navbar */
.navbar-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.navbar-search:hover {
  background-color: var(--secondary);
}

/* ============================================
   TECH MODERN REDESIGN STYLES
   ============================================ */

/* Enhanced Tech Theme Variables */
:root {
  --tech-primary: hsl(262, 83%, 58%);
  --tech-secondary: hsl(217, 91%, 60%);
  --tech-accent: hsl(280, 87%, 65%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-dark: rgba(0, 0, 0, 0.2);
  --glass-border: rgba(255, 255, 255, 0.2);
  --gradient-tech: linear-gradient(135deg, #1a5db0 0%, #00b870 50%, #00ff88 100%);
  --gradient-tech-animated: linear-gradient(135deg, #1a5db0 0%, #00b870 25%, #00ff88 50%, #00b870 75%, #1a5db0 100%);
}

.dark {
  --glass-bg: rgba(0, 0, 0, 0.3);
  --glass-bg-dark: rgba(0, 0, 0, 0.5);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ============================================
   HERO SECTION REDESIGN
   ============================================ */

.hero-modern {
  position: relative;
  overflow: hidden;
}

.hero-gradient-overlay {
  display: none;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: floatParticle 15s infinite ease-in-out;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle:nth-child(2) {
  left: 30%;
  top: 60%;
  animation-delay: 2s;
  animation-duration: 18s;
}

.particle:nth-child(3) {
  left: 60%;
  top: 30%;
  animation-delay: 4s;
  animation-duration: 15s;
}

.particle:nth-child(4) {
  left: 80%;
  top: 70%;
  animation-delay: 6s;
  animation-duration: 20s;
}

.particle:nth-child(5) {
  left: 50%;
  top: 80%;
  animation-delay: 8s;
  animation-duration: 14s;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -50px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-20px, -100px) scale(0.8);
    opacity: 0.5;
  }
  75% {
    transform: translate(40px, -30px) scale(1.1);
    opacity: 0.7;
  }
}

.hero-glass {
  position: relative;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 2;
}

.dark .hero-glass {
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@media (max-width: 768px) {
  .hero-glass {
    padding: 1.5rem 1rem;
    border-radius: 1.5rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-badge svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .hero-glass {
    padding: 1.25rem 0.75rem;
    border-radius: 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .hero-buttons {
    gap: 0.75rem;
    width: 100%;
  }
  
  /* Ensure hero buttons are full-width on very small screens */
  .hero-buttons .btn,
  .hero-buttons .hero-start-btn-container,
  .hero-buttons .animated-install-btn {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-start-btn {
    width: 100%;
    max-width: 100%;
  }
}

.hero-badge-glow {
  /* Hero badge: keep original glowing background, but use a white outline */
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid #4188eb;
  box-shadow: 0 0 20px rgba(58, 136, 237, 0.3),
              0 0 40px rgba(58, 136, 237, 0.3);
  animation: pulseGlow 3s ease-in-out infinite;
  color: white !important;
}

.hero-badge-glow svg {
  color: white !important;
}

.hero .hero-badge,
.hero .hero-badge-glow {
  color: white !important;
}

.hero .hero-badge svg,
.hero .hero-badge-glow svg {
  color: white !important;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3),
                0 0 40px rgba(124, 58, 237, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5),
                0 0 60px rgba(124, 58, 237, 0.2);
  }
}

.btn-gradient {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue), var(--shadow-glow-green);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--foreground);
  transition: all 0.3s ease;
}

.hero .btn-glass {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-glass:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.btn-glass:hover {
  background: var(--glass-bg-dark);
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Hero "Install our app" animated button
   (From Uiverse.io by Navarog21, scoped to installAppBtn)
   ============================================ */

.animated-install-btn {
  position: relative;
  width: 11em;
  height: 4em;
  outline: none;
  transition: 0.1s;
  background-color: transparent;
  border: none;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.animated-install-btn .animated-install-label {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* Main clipped border shape */
.animated-install-btn #clip {
  /* Default outline color: white to match the hero CTA styling */
  --color: #ffffff;
  position: absolute;
  top: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 5px double var(--color);
  box-shadow: inset 0px 0px 15px #195480;
  -webkit-clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
          clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.animated-install-btn .arrow {
  position: absolute;
  z-index: 1;
  transition: 0.2s;
  background-color: #2761c3;
  top: 35%;
  width: 11%;
  height: 30%;
}

.animated-install-btn #leftArrow {
  left: -13.5%;
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0 50%);
          clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.animated-install-btn #rightArrow {
  -webkit-clip-path: polygon(100% 49%, 0 0, 0 100%);
          clip-path: polygon(100% 49%, 0 0, 0 100%);
  left: 102%;
}

.animated-install-btn:hover #rightArrow {
  background-color: #27c39f;
  left: -15%;
  animation: 0.6s ease-in-out both infinite alternate rightArrow8;
}

.animated-install-btn:hover #leftArrow {
  background-color: #27c39f;
  left: 103%;
  animation: 0.6s ease-in-out both infinite alternate leftArrow8;
}

.animated-install-btn .corner {
  position: absolute;
  z-index: 1;
  width: 4em;
  height: 4em;
  background-color: #2761c3;
  box-shadow: inset 1px 1px 8px #2781c3;
  transform: scale(1) rotate(45deg);
  transition: 0.2s;
}

.animated-install-btn #rightTop {
  top: -1.98em;
  left: 91%;
}

.animated-install-btn #leftTop {
  top: -1.96em;
  left: -3.0em;
}

.animated-install-btn #leftBottom {
  top: 2.10em;
  left: -2.15em;
}

.animated-install-btn #rightBottom {
  top: 45%;
  left: 88%;
}

.animated-install-btn:hover #leftTop {
  animation: 0.1s ease-in-out 0.05s both changeColor8,
             0.2s linear 0.4s both lightEffect8;
}

.animated-install-btn:hover #rightTop {
  animation: 0.1s ease-in-out 0.15s both changeColor8,
             0.2s linear 0.4s both lightEffect8;
}

.animated-install-btn:hover #rightBottom {
  animation: 0.1s ease-in-out 0.25s both changeColor8,
             0.2s linear 0.4s both lightEffect8;
}

.animated-install-btn:hover #leftBottom {
  animation: 0.1s ease-in-out 0.35s both changeColor8,
             0.2s linear 0.4s both lightEffect8;
}

.animated-install-btn:hover .corner {
  transform: scale(1.25) rotate(45deg);
}

.animated-install-btn:hover #clip {
  animation: 0.2s ease-in-out 0.55s both greenLight8;
  /* On hover, switch outline to solid black */
  --color: #000000;
}

@keyframes changeColor8 {
  from {
    background-color: #2781c3;
  }
  to {
    background-color: #27c39f;
  }
}

@keyframes lightEffect8 {
  from {
    box-shadow: 1px 1px 5px #27c39f;
  }
  to {
    box-shadow: 0 0 2px #27c39f;
  }
}

@keyframes greenLight8 {
  from { }
  to {
    box-shadow: inset 0px 0px 32px #27c39f;
  }
}

@keyframes leftArrow8 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(10px);
  }
}

@keyframes rightArrow8 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-10px);
  }
}

/* ============================================
   Hero primary "Get started" button
   (From Uiverse.io by dexter-st, scoped to hero-start- classes)
   ============================================ */

.hero-start-btn-container {
  --btn-color: #ffffff;
  --corner-color: #ffffff;
  --corner-dist: 24px;
  --corner-multiplier: 1.5;
  --timing-function: cubic-bezier(0, 0, 0, 2.5);
  --duration: 250ms;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-start-btn {
  position: relative;
  min-width: 160px;
  min-height: calc(var(--corner-dist) * 2);
  border-radius: 16px;
  border: none;
  padding: 0.25em 1em;

  /* Solid white background for primary CTA */
  background: #ffffff;
  box-shadow:
    1px 1px 2px -1px #fff inset,
    0 2px 1px #00000010,
    0 4px 2px #00000010,
    0 8px 4px #00000010,
    0 16px 8px #00000010,
    0 32px 16px #00000010;

  transition:
    transform var(--duration) var(--timing-function),
    filter var(--duration) var(--timing-function);

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-start-btn-drawer {
  position: absolute;
  display: flex;
  justify-content: center;

  min-height: 32px;
  border-radius: 16px;
  border: none;
  padding: 0.25em 1em;
  font-size: 0.8em;
  font-weight: 600;
  font-family: "Poppins", system-ui, sans-serif;
  color: #0009;

  background: linear-gradient(#fff2, #0001), var(--btn-color);
  background-color: #fbff13;
  opacity: 0;

  transition:
    transform calc(0.5 * var(--duration)) ease,
    filter var(--duration) var(--timing-function),
    opacity calc(0.5 * var(--duration)) ease;
  filter: blur(2px);
}

.hero-start-transition-top {
  top: 0;
  left: 0;
  border-radius: 12px 12px 0 0;
  align-items: flex-start;
}

.hero-start-transition-bottom {
  bottom: 0;
  right: 0;
  border-radius: 0 0 12px 12px;
  align-items: flex-end;
}

.hero-start-btn-text {
  display: inline-block;
  font-size: 1.25em;
  font-family: "Syne", "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 600;
  color: #000000;

  /* Remove gradient text effect for a clean black label */
  background-image: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: initial;
  filter: none;

  transition:
    transform var(--duration) var(--timing-function),
    filter var(--duration) var(--timing-function),
    color var(--duration) var(--timing-function);
}

.hero-start-btn-corner {
  position: absolute;
  width: 32px;

  fill: none;
  /* White outline corners to match button background */
  stroke: #ffffff;

  transition:
    transform var(--duration) var(--timing-function),
    filter var(--duration) var(--timing-function);
}

.hero-start-btn-corner:nth-of-type(1) {
  top: 0;
  left: 0;
  transform: translate(
      calc(-1 * var(--corner-dist)),
      calc(-1 * var(--corner-dist))
    )
    rotate(90deg);
}

.hero-start-btn-corner:nth-of-type(2) {
  top: 0;
  right: 0;
  transform: translate(var(--corner-dist), calc(-1 * var(--corner-dist)))
    rotate(180deg);
}

.hero-start-btn-corner:nth-of-type(3) {
  bottom: 0;
  right: 0;
  transform: translate(var(--corner-dist), var(--corner-dist)) rotate(-90deg);
}

.hero-start-btn-corner:nth-of-type(4) {
  bottom: 0;
  left: 0;
  transform: translate(calc(-1 * var(--corner-dist)), var(--corner-dist))
    rotate(0deg);
}

.hero-start-btn-container:has(.hero-start-btn:hover),
.hero-start-btn-container:has(.hero-start-btn:focus-visible) {
  .hero-start-btn {
    transform: scale(1.05);
    filter: drop-shadow(0 16px 16px #0002);
  }
  .hero-start-transition-top {
    transform: translateY(-24px) rotateZ(4deg);
    filter: blur(0px);
    animation: hero-start-hue-anim 3s infinite linear;
    opacity: 1;
  }
  .hero-start-transition-bottom {
    transform: translateY(24px) rotateZ(4deg);
    filter: blur(0px);
    animation: hero-start-hue-anim 3s infinite linear;
    opacity: 1;
  }
  .hero-start-btn-text {
    filter: drop-shadow(0 1px 0 #fff6) drop-shadow(0 -1px 0 #0006)
      drop-shadow(0px 6px 2px #0003);
    transform: scale(1.05);
    color: #0008;
  }

  --corner-color: #0004;
  .hero-start-btn-corner:first-of-type {
    transform: translate(
        calc(-1 * var(--corner-multiplier) * var(--corner-dist)),
        calc(-1 * var(--corner-multiplier) * var(--corner-dist))
      )
      rotate(90deg);
    filter: drop-shadow(-10px 10px 1px var(--corner-color))
      drop-shadow(-20px 20px 2px var(--corner-color));
  }
  .hero-start-btn-corner:nth-of-type(2) {
    transform: translate(
        calc(var(--corner-multiplier) * var(--corner-dist)),
        calc(-1 * var(--corner-multiplier) * var(--corner-dist))
      )
      rotate(180deg);
    filter: drop-shadow(-10px 10px 1px var(--corner-color))
      drop-shadow(-20px 20px 2px var(--corner-color));
  }
  .hero-start-btn-corner:nth-of-type(3) {
    transform: translate(
        calc(var(--corner-multiplier) * var(--corner-dist)),
        calc(var(--corner-multiplier) * var(--corner-dist))
      )
      rotate(-90deg);
    filter: drop-shadow(-10px 10px 1px var(--corner-color))
      drop-shadow(-20px 20px 2px var(--corner-color));
  }
  .hero-start-btn-corner:nth-of-type(4) {
    transform: translate(
        calc(-1 * var(--corner-multiplier) * var(--corner-dist)),
        calc(var(--corner-multiplier) * var(--corner-dist))
      )
      rotate(0deg);
    filter: drop-shadow(-10px 10px 1px var(--corner-color))
      drop-shadow(-20px 20px 2px var(--corner-color));
  }
}

.hero-start-btn-container:has(.hero-start-btn:active) {
  .hero-start-btn {
    transform: scale(0.95);
    filter: drop-shadow(0 10px 4px #0002);
  }
  .hero-start-transition-top,
  .hero-start-transition-bottom {
    transform: translateY(0px) scale(0.5);
  }
  .hero-start-btn-text {
    filter: drop-shadow(0 1px 0 #fff6) drop-shadow(0 -1px 0 #0006)
      drop-shadow(0px 6px 2px #0003);
    transform: scale(1);
    color: #000a;
  }
  --corner-color: #0005;
  --corner-multiplier: 0.95;
  .hero-start-btn-corner:first-of-type {
    transform: translate(
        calc(-1 * var(--corner-multiplier) * var(--corner-dist)),
        calc(-1 * var(--corner-multiplier) * var(--corner-dist))
      )
      rotate(90deg);
    filter: drop-shadow(-10px 10px 2px var(--corner-color))
      drop-shadow(-20px 20px 3px var(--corner-color));
  }
  .hero-start-btn-corner:nth-of-type(2) {
    transform: translate(
        calc(var(--corner-multiplier) * var(--corner-dist)),
        calc(-1 * var(--corner-multiplier) * var(--corner-dist))
      )
      rotate(180deg);
    filter: drop-shadow(-10px 10px 2px var(--corner-color))
      drop-shadow(-20px 20px 3px var(--corner-color));
  }
  .hero-start-btn-corner:nth-of-type(3) {
    transform: translate(
        calc(var(--corner-multiplier) * var(--corner-dist)),
        calc(var(--corner-multiplier) * var(--corner-dist))
      )
      rotate(-90deg);
    filter: drop-shadow(-10px 10px 2px var(--corner-color))
      drop-shadow(-20px 20px 3px var(--corner-color));
  }
  .hero-start-btn-corner:nth-of-type(4) {
    transform: translate(
        calc(-1 * var(--corner-multiplier) * var(--corner-dist)),
        calc(var(--corner-multiplier) * var(--corner-dist))
      )
      rotate(0deg);
    filter: drop-shadow(-10px 10px 2px var(--corner-color))
      drop-shadow(-20px 20px 3px var(--corner-color));
  }
}

@keyframes hero-start-hue-anim {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(-70deg);
  }
}

/* ============================================
   FEATURES SECTION REDESIGN
   ============================================ */

.features {
  position: relative;
  background: linear-gradient(180deg, 
    var(--background) 0%, 
    var(--secondary) 50%, 
    var(--background) 100%);
}

.feature-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: black;
}

.feature-glass h3,
.feature-glass p,
.feature-glass .feature-title,
.feature-glass .feature-description {
  color: black !important;
}

.feature-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  transition: left 0.5s ease;
}

.feature-glass:hover::before {
  left: 100%;
}

.feature-glass:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15),
              0 0 0 1px rgba(124, 58, 237, 0.2) inset,
              0 0 60px rgba(124, 58, 237, 0.1);
}

.dark .feature-glass {
  background: var(--glass-bg-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.dark .feature-glass:hover {
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.25),
              0 0 0 1px rgba(124, 58, 237, 0.3) inset,
              0 0 60px rgba(124, 58, 237, 0.2);
}

.feature-icon-animated {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon-animated::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 0.75rem;
  background: var(--gradient-tech);
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.feature-glass:hover .feature-icon-animated {
  transform: scale(1.15) rotate(5deg);
}

.feature-glass:hover .feature-icon-animated::after {
  opacity: 0.6;
}

/* ============================================
   BENEFITS SECTION REDESIGN
   ============================================ */

.benefits-modern {
  position: relative;
  overflow: hidden;
}

.benefits-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(124, 58, 237, 0.1) 0%, 
    rgba(59, 130, 246, 0.08) 50%, 
    rgba(139, 92, 246, 0.1) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  z-index: 0;
}

.benefits-glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 1;
}

.dark .benefits-glass {
  background: var(--glass-bg-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@media (max-width: 768px) {
  .benefits-glass {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }
}

.benefit-item-animated {
  position: relative;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.benefit-item-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-tech);
  opacity: 0;
  border-radius: 0.75rem;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.benefit-item-animated:hover {
  transform: translateX(8px);
  padding-left: 1rem;
}

.benefit-item-animated:hover::before {
  opacity: 0.1;
}

.benefit-item-animated svg {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.3));
}

.benefit-item-animated:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5));
}

.benefits-image-wrapper {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.benefits-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(124, 58, 237, 0.2) 0%, 
    rgba(59, 130, 246, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.benefits-image {
  position: relative;
  z-index: 0;
  transition: transform 0.5s ease;
}

.benefits-image-wrapper:hover .benefits-image {
  transform: scale(1.05);
}

/* ============================================
   CTA SECTION REDESIGN
   ============================================ */

.cta-modern {
  position: relative;
  overflow: hidden;
}

.cta-gradient-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-tech-animated);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  opacity: 0.1;
  z-index: 0;
}

.cta-glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 4rem 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 1;
}

.dark .cta-glass {
  background: var(--glass-bg-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@media (max-width: 768px) {
  .cta-glass {
    padding: 3rem 2rem;
    border-radius: 1.5rem;
  }
}

.btn-glow {
  position: relative;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3),
              0 0 40px rgba(124, 58, 237, 0.1);
  animation: pulseGlow 3s ease-in-out infinite;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5),
              0 0 60px rgba(124, 58, 237, 0.2),
              0 10px 30px rgba(124, 58, 237, 0.4);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

/* Intersection Observer for scroll animations */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  .hero-glass {
    margin: 0 1rem;
  }

  .feature-glass {
    margin-bottom: 1.5rem;
  }

  .benefits-glass {
    margin-bottom: 2rem;
  }

  .cta-glass {
    margin: 0 1rem;
  }
}

/* ============================================
   ENHANCED BUTTON STYLES
   ============================================ */

.btn-primary.btn-gradient {
  color: white;
}

.btn-primary.btn-gradient:active {
  transform: translateY(0);
}

/* ============================================
   SMOOTH SCROLLING ENHANCEMENTS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  * {
    scroll-margin-top: 2rem;
  }
}

/* ============================================
   TYPOGRAPHY ENHANCEMENTS
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-title {
  line-height: 1.1;
  font-weight: 800;
}

.hero-description {
  line-height: 1.7;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

/* ============================================
   ENHANCED SPACING SYSTEM
   ============================================ */

.features {
  padding: 6rem 0;
}

.benefits {
  padding: 6rem 0;
}

.cta {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .features,
  .benefits,
  .cta {
    padding: 4rem 0;
  }
}

/* ============================================
   FOOTER ENHANCEMENTS
   ============================================ */

.footer {
  position: relative;
  background: linear-gradient(180deg, 
    var(--background) 0%, 
    var(--secondary) 100%);
  border-top: 1px solid var(--border);
}

.dark .footer {
  background: linear-gradient(180deg, 
    var(--background) 0%, 
    hsla(240, 10%, 14%, 0.5) 100%);
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.feature-glass,
.benefits-glass,
.cta-glass,
.hero-glass {
  will-change: transform;
  transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particle {
    animation: none;
  }

  .hero-gradient-overlay,
  .benefits-gradient-bg,
  .cta-gradient-bg {
    animation: none;
  }
}

