/* =============================================
   My Library — Premium Design System
   Modern SaaS UI with Glassmorphism & Animations
   ============================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties — Design Tokens --- */
:root {
  /* Premium Color Palette */
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-light: #A5B4FC;
  --primary-ultra-light: #EEF2FF;
  --accent: #0D9488;
  --accent-light: #5EEAD4;
  --accent-ultra-light: #F0FDFA;

  /* Neutral Palette */
  --background: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* Status Colors */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;

  /* Shadows — Layered for Depth */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  --shadow-card-hover: 0 20px 40px rgba(99, 102, 241, 0.12);

  /* Border Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
  overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.25rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex {
  display: flex;
}

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

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

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

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

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

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

/* --- Logo Component --- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.brand-logo .logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    transform: translateX(-100%) rotate(45deg);
  }

  50% {
    transform: translateX(100%) rotate(45deg);
  }
}

.brand-logo .logo-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-size: 0.875rem;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  color: white;
}

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

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ultra-light);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0F766E);
  color: white;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #DC2626);
  color: white;
}

.btn-danger:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* --- Cards --- */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
}

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

.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
  background-color: var(--card-bg);
  color: var(--text-main);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.form-control::placeholder {
  color: var(--text-light);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 1em;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-success {
  background: var(--success-light);
  color: #065F46;
}

.badge-warning {
  background: var(--warning-light);
  color: #92400E;
}

.badge-danger {
  background: var(--danger-light);
  color: #991B1B;
}

.badge-primary {
  background: var(--primary-ultra-light);
  color: var(--primary);
}

.badge-accent {
  background: var(--accent-ultra-light);
  color: var(--accent);
}

/* --- Navigation Header (Landing) --- */
.landing-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-nav a:not(.btn) {
  color: var(--text-muted);
}

.landing-nav a.btn-primary {
  color: white;
}

.landing-nav a {
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  position: relative;
}


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

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

.landing-nav a.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

/* --- Hero Section --- */
.hero-section {
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-ultra-light) 0%, var(--background) 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-section h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out;
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--card-bg);
}

.section-dark {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header h2 {
  color: white;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- How It Works Steps (legacy, kept for other uses) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.step-card .step-number {
  margin: 0 auto 1.25rem;
}

.step-card h4 {
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
}

/* --- How It Works — Screenshot Showcase --- */
.hiw-step {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.hiw-step:last-child {
  margin-bottom: 0;
}

.hiw-step-reverse {
  direction: rtl;
}

.hiw-step-reverse>* {
  direction: ltr;
}

.hiw-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hiw-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hiw-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hiw-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.hiw-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hiw-highlights li svg {
  stroke: var(--accent);
  flex-shrink: 0;
}

/* Browser-frame mockup */
.hiw-screenshot {
  position: relative;
}

.screenshot-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(99, 102, 241, 0.10),
    0 24px 64px rgba(0, 0, 0, 0.10);
  border: 1px solid var(--border-light);
  background: #1E293B;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.screenshot-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 16px 40px rgba(99, 102, 241, 0.16),
    0 40px 80px rgba(0, 0, 0, 0.12);
}

.screenshot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #1E293B;
}

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

.dot-red {
  background: #FF5F57;
}

.dot-yellow {
  background: #FFBD2E;
}

.dot-green {
  background: #28C941;
}

.screenshot-url {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Outfit', monospace;
  letter-spacing: 0.01em;
  margin: 0 8px;
}

.screenshot-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Responsive: stack on mobile */
@media (max-width: 820px) {

  .hiw-step,
  .hiw-step-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .hiw-content {
    order: 1;
  }

  .hiw-screenshot {
    order: 2;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .hiw-content h3 {
    font-size: 1.4rem;
  }
}


/* --- Feature Cards Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--primary-ultra-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scale(1.1);
}

.feature-card:hover .feature-icon svg {
  stroke: white;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  transition: stroke var(--transition);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  text-align: center;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

.pricing-card.popular:hover {
  transform: scale(1.04) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* --- Testimonial Cards --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  text-align: left;
  padding: 2rem;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  color: #F59E0B;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 50%, var(--accent) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.btn-cta {
  background: white;
  color: var(--primary);
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

/* --- Footer --- */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand-logo .logo-text {
  background: linear-gradient(135deg, #A5B4FC, #5EEAD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand .logo-icon {
  background: linear-gradient(135deg, #A5B4FC, #5EEAD4);
}

.footer-brand p {
  color: #64748B;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #64748B;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #A5B4FC;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}

.sidebar-logo {
  padding: 0 1.5rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.sidebar .brand-logo .logo-text {
  background: linear-gradient(135deg, #A5B4FC, #5EEAD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar .brand-logo .logo-icon {
  background: linear-gradient(135deg, #A5B4FC, #5EEAD4);
  color: #0F172A;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: #94A3B8;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
  margin: 2px 0;
}

/* Prevent icons from collapsing when sidebar is narrow */
.nav-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  border-left-color: rgba(99, 102, 241, 0.3);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.12);
  color: #A5B4FC;
  border-left-color: var(--primary);
  font-weight: 600;
}

.nav-item.active:hover {
  background: rgba(99, 102, 241, 0.15);
}

.logout-btn {
  color: #F87171 !important;
  margin-top: auto;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #FCA5A5 !important;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background: var(--background);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.topbar h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.stat-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* --- Tables --- */
.table-container {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}

th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: var(--background);
}

tr:last-child td {
  border-bottom: none;
}

tr {
  transition: background-color var(--transition-fast);
}

tr:hover td {
  background-color: rgba(99, 102, 241, 0.02);
}

/* --- Auth Layout --- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  background: linear-gradient(135deg, var(--primary-ultra-light) 0%, var(--background) 50%, var(--accent-ultra-light) 100%);
  position: relative;
  overflow-x: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.5);
  position: relative;
  z-index: 1;
}

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

.auth-logo {
  margin-bottom: 0.75rem;
}

/* --- Loading Spinner --- */
.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(99, 102, 241, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --- Modals --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--card-bg);
  margin: auto;
  padding: 2rem;
  border: 1px solid var(--border-light);
  width: 90%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: var(--text-main);
  background: var(--background);
}

/* --- Seat Grid --- */
.seat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  user-select: none;
}

.seat.available {
  background-color: var(--success-light);
  color: #065F46;
  border-color: #6EE7B7;
}

.seat.available:hover {
  background-color: #A7F3D0;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.seat.occupied {
  background-color: var(--danger-light);
  color: #991B1B;
  border-color: #FCA5A5;
}

.seat.occupied:hover {
  background-color: #FECACA;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.seat.not-available {
  background-color: #F1F5F9;
  color: #94A3B8;
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.6;
}

.seat.not-available:hover {
  background-color: var(--border);
}

/* --- Utility Classes --- */
.text-primary {
  color: var(--primary);
}

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

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

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

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

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

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

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

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

.mt-2 {
  margin-top: 0.5rem;
}

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

.mt-8 {
  margin-top: 2rem;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ── Bottom Navigation Bar (Mobile Dashboard) ─────────────────
   A native-feeling bottom tab bar replaces the horizontal scroll nav.
   The old sidebar is hidden on mobile and replaced with this. */
.mobile-bottom-nav {
  display: none;
  /* Hidden on desktop */
}

.mobile-fab {
  display: none;
  /* Hidden on desktop */
}

/* Tablet & Below (1024px) */
@media (max-width: 1024px) {

  /* Public landing nav */
  .landing-nav {
    display: none;
  }

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

  .landing-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    gap: 0.5rem;
    z-index: 200;
  }

  .landing-nav.open a {
    padding: 10px 0;
  }

  /* Hide sidebar on mobile for BOTH user and admin dashboards */
  body.user-dashboard .sidebar,
  body.admin-dashboard .sidebar {
    display: none !important;
  }

  body.user-dashboard .dashboard-layout,
  body.admin-dashboard .dashboard-layout {
    flex-direction: column;
    min-height: 100vh;
  }

  body.user-dashboard .main-content,
  body.admin-dashboard .main-content {
    /* Room for bottom nav */
    padding-bottom: 80px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* ── Bottom Navigation Bar ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 900;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.22);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 6px 2px;
    color: #64748B;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    font-family: inherit;
    position: relative;
    border-radius: 12px;
    margin: 4px 1px;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mobile-nav-item:hover {
    color: #94A3B8;
  }

  .mobile-nav-item.active {
    color: #818CF8;
  }

  .mobile-nav-item.active svg {
    transform: translateY(-2px) scale(1.1);
  }

  .mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    z-index: -1;
    animation: navPop 200ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  /* More button for hidden nav items */
  .mobile-nav-more-panel {
    display: none;
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    z-index: 899;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: slideUpPanel 250ms ease-out;
  }

  .mobile-nav-more-panel.open {
    display: flex;
  }

  .mobile-more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    font-family: inherit;
    width: 100%;
    transition: all var(--transition);
  }

  .mobile-more-item:hover,
  .mobile-more-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #A5B4FC;
  }

  .mobile-more-item svg {
    width: 18px;
    height: 18px;
  }

  .mobile-more-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 898;
    backdrop-filter: blur(2px);
  }

  .mobile-more-overlay.open {
    display: block;
  }

  /* ── Floating Action Button ── */
  .mobile-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    cursor: pointer;
    z-index: 800;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5), 0 8px 40px rgba(99, 102, 241, 0.25);
    transition: all var(--transition-spring);
    font-size: 1.75rem;
    line-height: 1;
    padding: 0;
  }

  .mobile-fab:active {
    transform: scale(0.92);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
  }

  .mobile-fab:hover {
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.55), 0 12px 50px rgba(99, 102, 241, 0.3);
  }

  /* ── Sticky Topbar (glass) — user & admin dashboards ── */
  body.user-dashboard .topbar,
  body.admin-dashboard .topbar {
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 500;
    margin: -1rem -1rem 1.5rem -1rem;
    padding: 0.9rem 1rem;
    border-radius: 0;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.07);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  [data-theme="dark"] body.user-dashboard .topbar,
  [data-theme="dark"] body.admin-dashboard .topbar {
    background: rgba(15, 17, 23, 0.9);
  }

  .topbar>div:first-child {
    flex: 1;
    min-width: 0;
  }

  .topbar>div:first-child h2 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0 !important;
  }

  .topbar>div:first-child p {
    font-size: 0.78rem;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar .flex.items-center.gap-4 {
    flex-shrink: 0;
  }

  /* ── Notification dropdown: full-width panel on mobile ── */
  #userNotifDropdown {
    position: fixed !important;
    top: 70px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
    border-radius: var(--radius-lg) !important;
  }

  /* ── Stats Grid: 2-col on tablet ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .stat-card {
    padding: 1.1rem 1.25rem;
  }

  .stat-value {
    font-size: 1.6rem;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  body.user-dashboard .main-content,
  body.admin-dashboard .main-content {
    padding-bottom: 84px;
  }

  header .container,
  .landing-header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

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

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  section,
  .section {
    padding: 3rem 0 !important;
  }

  .hero-section {
    padding: 4rem 0 3rem !important;
  }

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

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

  .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
  }

  /* ── Dashboard Quick-Action Row ── */
  .main-content>.flex.gap-4.mb-8 {
    flex-direction: column;
    align-items: stretch;
  }

  .main-content>.flex.gap-4.mb-8>button {
    width: 100%;
    margin-left: 0 !important;
  }

  /* ── Dashboard Table Header ── */
  #section-dashboard .flex.justify-between.items-center {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  #section-dashboard .flex.justify-between.items-center .flex.gap-4 {
    flex-direction: column;
    width: 100%;
  }

  #section-dashboard .flex.justify-between.items-center select,
  #section-dashboard .flex.justify-between.items-center input {
    width: 100% !important;
  }

  #section-students .flex.justify-between.items-center,
  #section-students .flex.gap-4.items-center {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  #section-students .flex.gap-4.items-center input,
  #section-students .flex.gap-4.items-center button {
    width: 100% !important;
  }

  #fixedSeatDiv {
    flex-direction: column !important;
  }

  /* ── Stats: single column on small mobile ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Mobile Table: replace overflow-scroll with card rows ── */
  .mobile-card-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem;
  }

  .mobile-card-row {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
  }

  .mobile-card-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 0 2px 2px 0;
  }

  .mobile-card-row:active {
    transform: scale(0.99);
    box-shadow: var(--shadow-sm);
  }

  .mobile-card-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .mobile-card-row-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-card-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .mobile-card-row-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-card-row-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
  }

  .mobile-card-row-actions .btn {
    flex: 1;
    font-size: 0.78rem;
    padding: 7px 12px;
    min-width: 0;
  }

  /* ── Modal: slide-up sheet on mobile (user dashboard only) ── */
  body.user-dashboard .modal-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1.5rem !important;
    max-height: 92vh;
    overflow-y: auto;
    animation: slideUpSheet 300ms cubic-bezier(0.34, 1.2, 0.64, 1) !important;
  }

  body.user-dashboard .modal.show {
    align-items: flex-end !important;
  }

  .auth-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
  }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .form-control,
  input,
  select {
    font-size: 16px !important;
    /* Fix iOS zoom */
  }

  .container {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Auth Responsiveness — block on mobile so tall forms scroll natively */
  .auth-wrapper {
    display: block;
    padding: 1.5rem 0.75rem 3rem;
  }

  .auth-card {
    padding: 1.5rem !important;
    border-radius: var(--radius-lg);
  }

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

  /* Stats: 2-col even on small phones */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .stat-card {
    padding: 0.9rem 1rem;
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .stat-title {
    font-size: 0.75rem;
  }
}

/* ── Animations for mobile nav & panels ── */
@keyframes navPop {
  from {
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

@keyframes slideUpPanel {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUpSheet {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Dark theme overrides for mobile nav */
[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(10, 11, 18, 0.97);
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .mobile-nav-more-panel {
  background: rgba(10, 11, 18, 0.98);
  border-top-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .mobile-more-item {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .topbar {
  background: rgba(15, 17, 23, 0.9);
}

/* --- Print Styles --- */
@media print {

  .sidebar,
  .topbar,
  .btn,
  .modal {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  .dashboard-layout {
    display: block;
  }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* --- Selection --- */
::selection {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-hover);
}

/* ==============================================
   DARK THEME SYSTEM
   Dashboard pages: toggled by [data-theme="dark"] on <html>
   Public pages:    follows OS via prefers-color-scheme
   ============================================== */

[data-theme="dark"] {
  --primary: #818CF8;
  --primary-hover: #6366F1;
  --primary-light: #6366F1;
  --primary-ultra-light: rgba(99, 102, 241, 0.13);
  --accent: #2DD4BF;
  --accent-light: #0D9488;
  --accent-ultra-light: rgba(13, 148, 136, 0.13);
  --background: #0F1117;
  --card-bg: #1A1D27;
  --text-main: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --border: #2D3148;
  --border-light: #222536;
  --success: #34D399;
  --success-light: rgba(52, 211, 153, 0.15);
  --warning: #FCD34D;
  --warning-light: rgba(252, 211, 77, 0.15);
  --danger: #F87171;
  --danger-light: rgba(248, 113, 113, 0.15);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45), 0 2px 4px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.55), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(129, 140, 248, 0.2);
  --shadow-card-hover: 0 20px 40px rgba(129, 140, 248, 0.15);
}

/* Auto-dark for public pages via OS system preference */
@media (prefers-color-scheme: dark) {
  html:not([data-page="dashboard"]):not([data-theme="light"]) {
    --primary: #818CF8;
    --primary-hover: #6366F1;
    --primary-light: #6366F1;
    --primary-ultra-light: rgba(99, 102, 241, 0.13);
    --accent: #2DD4BF;
    --accent-light: #0D9488;
    --accent-ultra-light: rgba(13, 148, 136, 0.13);
    --background: #0F1117;
    --card-bg: #1A1D27;
    --text-main: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    --border: #2D3148;
    --border-light: #222536;
    --success: #34D399;
    --success-light: rgba(52, 211, 153, 0.15);
    --warning: #FCD34D;
    --warning-light: rgba(252, 211, 77, 0.15);
    --danger: #F87171;
    --danger-light: rgba(248, 113, 113, 0.15);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45), 0 2px 4px -2px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.55), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(129, 140, 248, 0.2);
    --shadow-card-hover: 0 20px 40px rgba(129, 140, 248, 0.15);
  }

  /* Navbar overrides for public pages in dark OS mode */
  html:not([data-page="dashboard"]):not([data-theme="light"]) .landing-header {
    background: rgba(15, 17, 23, 0.88);
    border-bottom-color: rgba(45, 49, 72, 0.7);
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .landing-nav a:not(.btn) {
    color: #94A3B8;
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .landing-nav a:hover {
    color: #818CF8;
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .hero-section {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, #0F1117 100%);
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .section-alt {
    background: #1A1D27;
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .auth-wrapper {
    background: linear-gradient(135deg, #0F1117 0%, #13151f 50%, #0F1117 100%);
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .badge-success {
    color: #6EE7B7;
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .badge-warning {
    color: #FDE68A;
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .badge-danger {
    color: #FCA5A5;
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) .badge-primary {
    color: #818CF8;
  }

  html:not([data-page="dashboard"]):not([data-theme="light"]) body {
    background-color: #0F1117;
    color: #F1F5F9;
  }
}

/* Smooth colour transition when toggling theme */
html {
  transition: background-color 0.25s ease;
}

body,
.card,
.sidebar,
.main-content,
.modal-content,
.landing-header,
.form-control,
th {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease, box-shadow 0.25s ease;
}

/* Dark-mode overrides for hard-coded colours */
[data-theme="dark"] body {
  background-color: var(--background);
  color: var(--text-main);
}

[data-theme="dark"] .landing-header {
  background: rgba(15, 17, 23, 0.88);
  border-bottom-color: rgba(45, 49, 72, 0.8);
}

[data-theme="dark"] .landing-nav.open {
  background: var(--card-bg);
  border-top-color: var(--border);
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, var(--background) 100%);
}

[data-theme="dark"] .section-alt {
  background: var(--card-bg);
}

[data-theme="dark"] .auth-wrapper {
  background: linear-gradient(135deg, var(--background) 0%, #13151f 50%, var(--background) 100%);
}

[data-theme="dark"] .badge-success {
  color: #6EE7B7;
}

[data-theme="dark"] .badge-warning {
  color: #FDE68A;
}

[data-theme="dark"] .badge-danger {
  color: #FCA5A5;
}

[data-theme="dark"] .badge-primary {
  color: var(--primary);
}

[data-theme="dark"] th {
  background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] tr:hover td {
  background-color: rgba(129, 140, 248, 0.04);
}

[data-theme="dark"] .seat.not-available {
  background-color: #1e2030;
  color: var(--text-light);
  border-color: var(--border);
}

[data-theme="dark"] select.form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* ── Theme Toggle Button Component ──────────────────────────── */
.theme-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.theme-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--background);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
}

.theme-option-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ultra-light);
}

.theme-option-btn.active {
  border-color: var(--primary);
  background: var(--primary-ultra-light);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .theme-option-btn {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .theme-option-btn.active {
  background: var(--primary-ultra-light);
}