/* ========================================
   ATTENOVA INDEX - APP DESIGN SYSTEM
   Mobile-First, Onboarding Experience
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Brand Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --success: #10b981;
  
  /* Neutral Colors - Light Mode */
  --bg-primary-light: #ffffff;
  --bg-secondary-light: #f8fafc;
  --bg-tertiary-light: #f1f5f9;
  --text-primary-light: #0f172a;
  --text-secondary-light: #475569;
  --text-tertiary-light: #94a3b8;
  --border-light: #e2e8f0;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg-light: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Neutral Colors - Dark Mode */
  --bg-primary-dark: #0f172a;
  --bg-secondary-dark: #1e293b;
  --bg-tertiary-dark: #334155;
  --text-primary-dark: #f1f5f9;
  --text-secondary-dark: #cbd5e1;
  --text-tertiary-dark: #94a3b8;
  --border-dark: #334155;
  --shadow-dark: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md-dark: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg-dark: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Safe Areas */
  --safe-area-top: env(safe-area-inset-top);
  --safe-area-bottom: env(safe-area-inset-bottom);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

body.light {
  background: var(--bg-secondary-light);
  color: var(--text-primary-light);
}

body.dark {
  background: var(--bg-primary-dark);
  color: var(--text-primary-dark);
}

/* ========================================
   SPLASH SCREEN — CINEMATIC REVEAL
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400&display=swap');

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #050510;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1),
              visibility 0.8s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Background grid ── */
.splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 8s linear infinite;
}

/* ── Radial glow ── */
.splash-screen::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gridShift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* ── Orbs ── */
.splash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.splash-orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.35);
  top: -100px;
  right: -80px;
  animation: orbFloat1 7s ease-in-out infinite;
}

.splash-orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(236, 72, 153, 0.25);
  bottom: -80px;
  left: -60px;
  animation: orbFloat2 9s ease-in-out infinite;
}

.splash-orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(34, 211, 238, 0.2);
  bottom: 20%;
  right: 15%;
  animation: orbFloat3 6s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-30px, 30px) scale(1.05); }
  66%       { transform: translate(20px, -20px) scale(0.97); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(40px, -30px) scale(1.08); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-20px, 20px); }
}

/* ── Center content ── */
.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* ── Logo / wordmark ── */
.splash-logo {
  max-width: 260px;
  width: 70vw;
  height: auto;
  filter: brightness(0) invert(1);
  animation: logoReveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoReveal {
  0%   { opacity: 0; transform: translateY(24px) scale(0.92); filter: brightness(0) invert(1) blur(8px); }
  100% { opacity: 1; transform: translateY(0)   scale(1);    filter: brightness(0) invert(1) blur(0); }
}

/* ── Tagline ── */
.splash-tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  animation: fadeUp 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Progress bar ── */
.splash-progress-wrap {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeUp 1s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.splash-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #ec4899, #22d3ee);
  border-radius: 2px;
  animation: progressLoad 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
  position: relative;
}

/* shimmer on the fill */
.splash-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: shimmer 1.8s ease-in-out 0.8s infinite;
}

@keyframes progressLoad {
  0%   { width: 0%; }
  60%  { width: 75%; }
  85%  { width: 90%; }
  100% { width: 100%; }
}

@keyframes shimmer {
  0%   { transform: translateX(-40px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(0px); opacity: 0; }
}

.splash-progress-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Floating particles ── */
.splash-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.splash-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: particleDrift linear infinite;
}

.splash-particle:nth-child(1)  { left: 10%; animation-duration: 12s; animation-delay: 0s;    width: 2px; height: 2px; background: rgba(99,102,241,0.8); }
.splash-particle:nth-child(2)  { left: 25%; animation-duration: 16s; animation-delay: -4s;   width: 3px; height: 3px; }
.splash-particle:nth-child(3)  { left: 40%; animation-duration: 10s; animation-delay: -7s;   width: 2px; height: 2px; background: rgba(236,72,153,0.7); }
.splash-particle:nth-child(4)  { left: 55%; animation-duration: 14s; animation-delay: -2s;   }
.splash-particle:nth-child(5)  { left: 70%; animation-duration: 11s; animation-delay: -9s;   width: 4px; height: 4px; background: rgba(34,211,238,0.6); }
.splash-particle:nth-child(6)  { left: 82%; animation-duration: 13s; animation-delay: -5s;   width: 2px; height: 2px; }
.splash-particle:nth-child(7)  { left: 92%; animation-duration: 18s; animation-delay: -1s;   width: 3px; height: 3px; background: rgba(99,102,241,0.5); }
.splash-particle:nth-child(8)  { left: 5%;  animation-duration: 9s;  animation-delay: -3s;   width: 2px; height: 2px; background: rgba(236,72,153,0.5); }
.splash-particle:nth-child(9)  { left: 60%; animation-duration: 15s; animation-delay: -11s;  }
.splash-particle:nth-child(10) { left: 33%; animation-duration: 17s; animation-delay: -6s;   width: 2px; height: 2px; background: rgba(34,211,238,0.8); }

@keyframes particleDrift {
  0%   { bottom: -10px; opacity: 0; transform: translateX(0) scale(1); }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { bottom: 110%; opacity: 0; transform: translateX(calc(sin(1) * 40px)) scale(0.4); }
}

/* ── Corner accents ── */
.splash-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  opacity: 0.3;
  animation: cornerFade 1.2s 1s ease both;
}

.splash-corner--tl { top: 24px;    left: 24px;    border-top: 1px solid #6366f1;  border-left: 1px solid #6366f1; }
.splash-corner--tr { top: 24px;    right: 24px;   border-top: 1px solid #6366f1;  border-right: 1px solid #6366f1; }
.splash-corner--bl { bottom: 24px; left: 24px;    border-bottom: 1px solid #6366f1; border-left: 1px solid #6366f1; }
.splash-corner--br { bottom: 24px; right: 24px;   border-bottom: 1px solid #6366f1; border-right: 1px solid #6366f1; }

@keyframes cornerFade {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 0.3; transform: scale(1); }
}

/* ========================================
   APP CONTAINER
   ======================================== */

.app-container {
  display: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-container.active {
  display: flex;
}

/* ========================================
   HEADER
   ======================================== */

.app-header {
  background: var(--bg-primary-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-md) var(--space-lg);
  padding-top: calc(var(--space-md) + var(--safe-area-top));
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.dark .app-header {
  background: rgba(15, 23, 42, 0.8);
  border-bottom-color: var(--border-dark);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  height: 36px;
  width: auto;
}

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-tertiary-light);
  color: var(--text-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

body.dark .theme-toggle-btn {
  background: var(--bg-tertiary-dark);
  color: var(--text-primary-dark);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.sun-icon {
  position: absolute;
  transition: all var(--transition-base);
}

.moon-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(90deg);
  transition: all var(--transition-base);
}

body.dark .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

body.dark .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   WELCOME SECTION
   ======================================== */

.welcome-section {
  margin-bottom: var(--space-2xl);
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.brand-section {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.brand-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-text {
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary-light);
  line-height: 1.5;
  font-weight: 500;
}

body.dark .hero-subtitle {
  color: var(--text-secondary-dark);
}

/* ========================================
   FORM
   ======================================== */

.connection-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary-light);
}

body.dark .form-label {
  color: var(--text-primary-dark);
}

.form-label svg {
  color: var(--primary);
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem;
  padding-right: 3rem; /* Space for spinner */
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-primary-light);
  color: var(--text-primary-light);
  outline: none;
  transition: all var(--transition-base);
}

body.dark .form-input {
  border-color: var(--border-dark);
  background: var(--bg-secondary-dark);
  color: var(--text-primary-dark);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary-light);
}

body.dark .form-input::placeholder {
  color: var(--text-tertiary-dark);
}

/* Input Spinner */
.input-spinner {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  pointer-events: none;
}

.input-spinner.active {
  opacity: 1;
  visibility: visible;
}

.spinner-icon {
  width: 100%;
  height: 100%;
  animation: rotate 1s linear infinite;
}

.spinner-path {
  stroke: var(--primary);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Suggestions Dropdown - Pushes content down */
.suggestions-dropdown {
  width: 100%;
  background: var(--bg-primary-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-height: 0;
  overflow: hidden;
  margin-top: var(--space-sm);
  box-shadow: var(--shadow-lg-light);
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.2s ease,
              margin-top 0.3s ease;
  opacity: 0;
}

body.dark .suggestions-dropdown {
  background: var(--bg-secondary-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-lg-dark);
}

.suggestions-dropdown.active {
  max-height: 280px; /* Allows for ~4-5 items */
  opacity: 1;
  overflow-y: auto;
}

.suggestions-dropdown.empty {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* Custom scrollbar for suggestions */
.suggestions-dropdown::-webkit-scrollbar {
  width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

body.dark .suggestions-dropdown::-webkit-scrollbar-thumb {
  background: var(--border-dark);
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary-light);
}

body.dark .suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary-dark);
}

.suggestion-item {
  padding: 1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

body.dark .suggestion-item {
  border-bottom-color: var(--border-dark);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--bg-secondary-light);
  padding-left: 1.25rem;
}

body.dark .suggestion-item:hover,
body.dark .suggestion-item.active {
  background: var(--bg-tertiary-dark);
}

.suggestion-item.active {
  border-left: 3px solid var(--primary);
}

.suggestion-item:active {
  background: var(--bg-tertiary-light);
  transform: scale(0.99);
}

body.dark .suggestion-item:active {
  background: var(--border-dark);
}

/* Suggestion item icon */
.suggestion-item::before {
  content: '🏫';
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Loading state for suggestions */
.suggestions-loading {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary-light);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

body.dark .suggestions-loading {
  color: var(--text-secondary-dark);
}

.suggestions-loading .spinner-icon {
  width: 24px;
  height: 24px;
}

/* No results state */
.suggestions-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-tertiary-light);
  font-size: 0.875rem;
}

body.dark .suggestions-empty {
  color: var(--text-tertiary-dark);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-text {
  flex: 1;
  text-align: center;
}

.btn-icon {
  transition: transform var(--transition-base);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-xl) 0;
  animation: fadeIn 0.6s ease-out 0.5s both;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

body.dark .divider::before,
body.dark .divider::after {
  border-bottom-color: var(--border-dark);
}

.divider-text {
  padding: 0 var(--space-md);
  color: var(--text-tertiary-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.dark .divider-text {
  color: var(--text-tertiary-dark);
}

/* Secondary Button */
.btn-secondary {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-primary-light);
  color: var(--text-primary-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transition: all var(--transition-base);
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

body.dark .btn-secondary {
  background: var(--bg-secondary-dark);
  color: var(--text-primary-dark);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-secondary-light);
}

body.dark .btn-secondary:hover {
  background: var(--bg-tertiary-dark);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.qr-icon {
  color: var(--primary);
}

/* Help Section */
.help-section {
  text-align: center;
  margin-top: var(--space-lg);
  animation: fadeIn 0.6s ease-out 0.7s both;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary-light);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

body.dark .help-link {
  color: var(--text-secondary-dark);
}

.help-link:hover {
  color: var(--primary);
}

.help-link svg {
  transition: transform var(--transition-fast);
}

.help-link:hover svg {
  transform: scale(1.1);
}

/* ========================================
   FEATURES PREVIEW
   ======================================== */

.features-preview {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-light);
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

body.dark .features-preview {
  border-top-color: var(--border-dark);
}

.features-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-primary-light);
}

body.dark .features-title {
  color: var(--text-primary-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-primary-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

body.dark .feature-card {
  background: var(--bg-secondary-dark);
  border-color: var(--border-dark);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md-light);
}

body.dark .feature-card:hover {
  box-shadow: var(--shadow-md-dark);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.feature-name {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary-light);
}

body.dark .feature-name {
  color: var(--text-primary-dark);
}

.feature-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary-light);
  font-weight: 500;
}

body.dark .feature-desc {
  color: var(--text-secondary-dark);
}

/* ========================================
   FOOTER
   ======================================== */

.app-footer {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  padding-bottom: calc(var(--space-xl) + var(--safe-area-bottom));
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary-light);
  margin-top: auto;
}

body.dark .app-footer {
  border-top-color: var(--border-dark);
  background: var(--bg-secondary-dark);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-link {
  color: var(--text-secondary-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

body.dark .footer-link {
  color: var(--text-secondary-dark);
}

.footer-link:hover {
  color: var(--primary);
}

.separator {
  color: var(--text-tertiary-light);
}

body.dark .separator {
  color: var(--text-tertiary-dark);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary-light);
  font-weight: 500;
}

body.dark .footer-copy {
  color: var(--text-tertiary-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .main-content {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .brand-logo {
    max-width: 200px;
  }
}

/* ========================================
   SWEETALERT2 CUSTOM STYLES
   ======================================== */

.swal2-popup {
  border-radius: var(--radius-2xl) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body.dark .swal2-popup {
  background: var(--bg-secondary-dark) !important;
  color: var(--text-primary-dark) !important;
}