* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
}

:root {
  --primary-color: #3b82f6;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --background: #111827;
  --surface: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --border-color: #374151;
  --scrollbar-track: #1f2937;
  --scrollbar-thumb: #374151;
  --scrollbar-thumb-hover: #4b5563;
}

/* Custom Scrollbar - Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
  transition: background 0.2s ease;
}

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

/* Hide horizontal scrollbar completely */
::-webkit-scrollbar-horizontal {
  display: none;
  height: 0 !important;
}

/* Mobile: Hide custom scrollbar, use system default */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
  }

  * {
    scrollbar-width: none;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color), #1e40af);
  color: white;
  margin-bottom: 3rem;
  border-radius: 0.5rem;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background-color: #1d4ed8;
}

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

.btn-secondary:hover {
  background-color: #475569;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Features Section */
.features-section {
  padding: 3rem 0;
}

.features-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

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

.auth-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border-color);
}

.auth-card h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #111827;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background-color: #1f2937;
}

.form-control::placeholder {
  color: #6b7280;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #374151;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Auth Footer */
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

.auth-form {
  margin-top: 1.5rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Dashboard */
.dashboard-container {
  padding: 2rem 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card.active {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
  color: white;
}

.stat-icon {
  font-size: 2.5rem;
}

.stat-info h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.stat-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.stat-card.active .stat-info p {
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-sections {
  margin-top: 3rem;
}

.dashboard-section {
  background: var(--surface);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.content-card {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-thumbnail {
  width: 100%;
  height: 150px;
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.placeholder-thumbnail {
  font-size: 3rem;
  color: var(--text-secondary);
}

.content-info {
  padding: 1rem;
}

.content-info h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.content-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

/* Broadcasts List */
.broadcasts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.broadcast-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  gap: 1rem;
}

.broadcast-platform {
  min-width: 150px;
}

.broadcast-content {
  flex: 1;
  color: var(--text-secondary);
}

.broadcast-status .badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-active {
  background-color: var(--success-color);
  color: white;
}

.badge-scheduled {
  background-color: var(--warning-color);
  color: white;
}

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

.badge-failed {
  background-color: var(--danger-color);
  color: white;
}

.badge-stopped {
  background-color: var(--text-secondary);
  color: white;
}

/* Footer */
.footer {
  background-color: var(--surface);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Responsive Design */

/* Mobile First - Base styles above */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .auth-card {
    padding: 3rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .auth-card {
    max-width: 480px;
  }
}

/* Mobile Adjustments (max-width: 767px) */
@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .broadcast-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .broadcast-platform {
    min-width: auto;
  }

  .auth-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .auth-card h2 {
    font-size: 1.5rem;
  }

  .form-control {
    font-size: 16px; /* Prevent zoom on mobile */
  }

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

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

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }

  .form-group label {
    font-size: 0.8125rem;
  }
}

/* Mobile Bottom Navigation Spacing */
@media (max-width: 1023px) {
  /* Add padding to prevent content being hidden under bottom nav */
  /* Removed padding-bottom from .flex.h-screen to avoid double padding */

  /* Ensure dashboard container uses full available height on mobile */
  .flex.h-screen {
    height: calc(100vh - 4rem - env(safe-area-inset-bottom));
    min-height: calc(100vh - 4rem - env(safe-area-inset-bottom));
    overflow: visible; /* Allow content to show, main will handle scroll */
  }

  /* Ensure main content fills available height and is not cut off by bottom nav */
  main.flex-1.overflow-auto {
    height: 100%;
    min-height: 100%;
  }
}

/* ============================================
   SMOOTH SCROLL & MODERN ANIMATIONS
   ============================================ */

/* Enable smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Hero Section - Modern Design */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem 0 !important;
  margin-bottom: 0 !important;
  margin-top: 0;
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #0f172a 100%
  ) !important;
  border: none !important;
  border-radius: 0 !important;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(139, 92, 246, 0.1) 30%,
    transparent 70%
  );
  animation: gradient-shift 15s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-50px, -50px);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #93c5fd;
  backdrop-filter: blur(4px);
}

.badge-text {
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-in-up 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-lg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-lg:hover::before {
  left: 100%;
}

.btn-primary.btn-lg {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.btn-secondary.btn-lg {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-secondary.btn-lg:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in-right 0.8s ease-out 0.2s both;
}

.hero-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
  width: 100%;
  max-width: 350px;
}

.card-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 600;
}

.record-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.card-content {
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.video-placeholder {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

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

/* Features Section */
.features-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(59, 130, 246, 0.05) 100%
  );
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fade-in 0.8s ease-out;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
}

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

.card-hover-effect:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(30, 41, 59, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

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

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(139, 92, 246, 0.2)
  );
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.75rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.card-hover-effect:hover .feature-icon-wrapper {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.4),
    rgba(139, 92, 246, 0.4)
  );
  border-color: rgba(59, 130, 246, 0.6);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-footer {
  margin-top: auto;
}

.learn-more {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.learn-more::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.learn-more:hover {
  gap: 0.5rem;
}

.learn-more:hover::after {
  width: 100%;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.cta-content h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.btn-cta {
  animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-actions {
    flex-direction: column;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    width: 100%;
    justify-content: center;
  }

  .features-section {
    padding: 3rem 0;
  }

  .cta-section {
    padding: 2.5rem 0;
  }
}

/* Light Mode Styles - Soft & Warm */
html.light {
  --primary-color: #4f7fd9;
  --secondary-color: #6b7a8f;
  --success-color: #4fa373;
  --danger-color: #d64a4a;
  --warning-color: #d9954a;
  --background: #faf9f7;
  --surface: #f0ede8;
  --text-primary: #3a3a3a;
  --text-secondary: #7a7a7a;
  --border-color: #e8e3da;
  --scrollbar-track: #f0ede8;
  --scrollbar-thumb: #d4cfc6;
  --scrollbar-thumb-hover: #bfb9ae;
}

html.light,
html.light body {
  background-color: #faf9f7;
  color: #3a3a3a;
}

html.light ::-webkit-scrollbar-track {
  background: #f0ede8;
}

html.light ::-webkit-scrollbar-thumb {
  background: #d4cfc6;
}

html.light ::-webkit-scrollbar-thumb:hover {
  background: #bfb9ae;
}

/* Light mode for common elements */
html.light .bg-gray-900 {
  background-color: #f5f3f0;
}

html.light .bg-gray-800 {
  background-color: #f0ede8;
}

html.light .bg-gray-700 {
  background-color: #e8e3da;
}

html.light .text-gray-400 {
  color: #8a8a8a;
}

html.light .text-gray-300 {
  color: #6a6a6a;
}

html.light .text-white {
  color: #3a3a3a;
}

html.light .border-gray-700 {
  border-color: #e8e3da;
}

html.light .border-gray-600 {
  border-color: #e0d9ce;
}

html.light .hover\:bg-gray-700:hover {
  background-color: #e8e3da;
}

html.light .hover\:text-white:hover {
  color: #3a3a3a;
}

/* Soft light mode for forms */
html.light .form-control {
  background-color: #fdfbf9;
  color: #3a3a3a;
  border-color: #e0d9ce;
}

html.light .form-control:focus {
  background-color: #fef9f5;
  border-color: #4f7fd9;
  box-shadow: 0 0 0 3px rgba(79, 127, 217, 0.15);
}

html.light .form-control::placeholder {
  color: #a8a8a8;
}

/* Soft light mode for cards */
html.light .feature-card {
  background: rgba(240, 237, 232, 0.6);
  border-color: rgba(79, 127, 217, 0.15);
}

html.light .feature-card:hover {
  background: rgba(240, 237, 232, 0.9);
  border-color: rgba(79, 127, 217, 0.3);
  box-shadow: 0 20px 40px rgba(79, 127, 217, 0.1);
}

html.light .hero-card {
  background: rgba(250, 249, 247, 0.8);
  border-color: rgba(79, 127, 217, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

html.light .auth-card {
  background: #fef9f5;
  border-color: #e8e3da;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
