/* ============================================================
   PDF417 GEN — PREMIUM THEME v2.0
   Ultra-professional dark UI with glassmorphism, rich gradients,
   refined typography, and polished micro-interactions
   ============================================================ */

/* ============================================================
   GOOGLE FONTS — Extended
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand palette */
  --accent:           #00e5ff;
  --accent-primary:   #00e5ff;
  --accent-2:         #7c3aed;
  --accent-secondary: #a855f7;
  --accent-3:         #f43f5e;
  --accent-gold:      #f59e0b;

  /* Gradient definitions */
  --gradient-primary:   linear-gradient(135deg, #00e5ff 0%, #7c3aed 100%);
  --gradient-hero:      linear-gradient(135deg, #00e5ff 0%, #a855f7 50%, #f43f5e 100%);
  --gradient-card:      linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-glow-cyan: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,229,255,0.18) 0%, transparent 70%);
  --gradient-glow-purple: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(124,58,237,0.15) 0%, transparent 70%);

  /* Backgrounds */
  --bg-primary:   #05070f;
  --bg-secondary: #080c18;
  --bg-card:      #0c1120;
  --bg-card-2:    #0f1629;
  --bg-hover:     rgba(255,255,255,0.04);
  --bg-input:     rgba(255,255,255,0.05);
  --bg-glass:     rgba(12, 17, 32, 0.7);

  /* Text */
  --text-primary:   #f0f4ff;
  --text-secondary: #8892a4;
  --text-muted:     #3d4a5c;
  --text-accent:    #00e5ff;

  /* Borders */
  --border-color:       rgba(0, 229, 255, 0.12);
  --border-subtle:      rgba(255, 255, 255, 0.06);
  --border-card:        rgba(255, 255, 255, 0.08);
  --border-glow:        rgba(0, 229, 255, 0.35);

  /* Shadows */
  --shadow:             0 24px 80px rgba(0, 0, 0, 0.7);
  --shadow-card:        0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow:        0 0 40px rgba(0, 229, 255, 0.18);
  --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.2);
  --shadow-btn:         0 8px 32px rgba(0, 229, 255, 0.35);
  --shadow-btn-hover:   0 16px 48px rgba(0, 229, 255, 0.45);

  /* Border radii */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-xl: 24px;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Transitions */
  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme overrides */
[data-theme="light"] {
  --accent:           #0066ff;
  --accent-primary:   #0066ff;
  --accent-2:         #7c3aed;
  --accent-secondary: #9333ea;
  --accent-3:         #f43f5e;

  --gradient-primary:   linear-gradient(135deg, #0066ff 0%, #7c3aed 100%);
  --gradient-hero:      linear-gradient(135deg, #0066ff 0%, #9333ea 50%, #f43f5e 100%);
  --gradient-card:      linear-gradient(145deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.005) 100%);
  --gradient-glow-cyan: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,102,255,0.1) 0%, transparent 70%);
  --gradient-glow-purple: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(124,58,237,0.08) 0%, transparent 70%);

  --bg-primary:   #f0f4ff;
  --bg-secondary: #e8edf8;
  --bg-card:      #ffffff;
  --bg-card-2:    #f8faff;
  --bg-hover:     rgba(0,0,0,0.03);
  --bg-input:     rgba(0,0,0,0.04);
  --bg-glass:     rgba(255, 255, 255, 0.85);

  --text-primary:   #0a0e1a;
  --text-secondary: #4a5568;
  --text-muted:     #94a3b8;
  --text-accent:    #0066ff;

  --border-color:   rgba(0, 102, 255, 0.12);
  --border-subtle:  rgba(0, 0, 0, 0.06);
  --border-card:    rgba(0, 0, 0, 0.08);
  --border-glow:    rgba(0, 102, 255, 0.35);

  --shadow:             0 24px 80px rgba(0, 0, 0, 0.1);
  --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow:        0 0 40px rgba(0, 102, 255, 0.15);
  --shadow-btn:         0 8px 32px rgba(0, 102, 255, 0.3);
  --shadow-btn-hover:   0 16px 48px rgba(0, 102, 255, 0.4);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient background glow layers */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.06) 0%, transparent 65%);
}

body::after {
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.07) 0%, transparent 65%);
}

[data-theme="light"] body::before {
  background: radial-gradient(ellipse, rgba(0, 102, 255, 0.05) 0%, transparent 65%);
}

[data-theme="light"] body::after {
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.04) 0%, transparent 65%);
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrapper {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
}

.navbar,
nav,
footer {
  position: relative;
  z-index: 10;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}



/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(5, 7, 15, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  background: rgba(5, 7, 15, 0.95);
}

[data-theme="light"] .navbar {
  background: rgba(240, 244, 255, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 244, 255, 0.97);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.04em;
}

.nav-brand:hover {
  color: var(--accent-primary);
}

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: 10px;
  font-weight: 900;
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-links a.active {
  color: var(--accent-primary);
  background: rgba(0, 229, 255, 0.08);
}

[data-theme="light"] .nav-links a:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-links a.active {
  background: rgba(0, 102, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Auth buttons */
.btn-nav-login {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-nav-login:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(0, 229, 255, 0.06);
}

.btn-nav-signup {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--gradient-primary);
  color: #fff;
  transition: var(--transition);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.25);
}

.btn-nav-signup:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
  color: #fff;
}

/* User menu */
.nav-user-menu { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.nav-user-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--border-glow);
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 220px;
  box-shadow: var(--shadow), 0 0 0 1px var(--border-subtle);
  z-index: 1000;
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: top right;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.nav-dropdown-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
  text-decoration: none;
  font-family: var(--font-main);
}

.nav-dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-dropdown-item.danger:hover { color: var(--accent-3); }

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  padding: 3px 5px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  width: 64px;
  height: 30px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-glow);
}

.toggle-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.68rem;
  pointer-events: none;
  padding: 0 2px;
}

.toggle-thumb {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--gradient-primary);
  border-radius: 50%;
  top: 3px;
  left: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.4);
}

[data-theme="light"] .toggle-thumb {
  transform: translateX(32px);
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section {
  padding: 50px 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

[data-theme="light"] .section-tag {
  background: rgba(0, 102, 255, 0.07);
  border-color: rgba(0, 102, 255, 0.18);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--accent-secondary); }

.text-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s ease;
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}

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

.btn-secondary {
  background: rgba(0, 229, 255, 0.07);
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.14);
  border-color: var(--border-glow);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 102, 255, 0.06);
  color: var(--accent-primary);
}

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-3);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.18);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

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

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.w-full { width: 100%; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-success {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent-primary);
}

.badge-info {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--accent-secondary);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-gold);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--accent-3);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

[data-theme="light"] .card:hover {
  border-color: rgba(0, 102, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 102, 255, 0.06);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 20px; }

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 13px;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
  color: var(--text-muted);
}

.input-action {
  position: absolute;
  right: 13px;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 1;
  user-select: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

.input-action:hover { color: var(--text-secondary); }

input,
textarea,
select,
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.input-wrapper input,
.input-wrapper .form-control {
  padding-left: 40px;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--accent-primary);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus,
[data-theme="light"] .form-control:focus {
  background: rgba(0, 102, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233d4a5c' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Fix for white dropdown options on some devices/browsers */
select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

[data-theme="light"] select option {
  background-color: #fff;
  color: var(--text-primary);
}

.form-error {
  font-size: 0.78rem;
  color: var(--accent-3);
  margin-top: 5px;
  display: none;
}

.form-error.visible { display: block; }

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.alert-info {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--accent-secondary);
}

.alert-success {
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent-primary);
}

.alert-error {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--accent-3);
}

/* Auth helpers */
.auth-success {
  text-align: center;
  padding: 1rem 0;
}

.auth-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.auth-terms {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.auth-terms a { color: var(--accent-primary); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

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

.strength-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast,
.toast-success,
.toast-error,
.toast-info,
.toast-warning {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-width: 290px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  color: var(--text-primary);
  font-size: 0.875rem;
  backdrop-filter: blur(20px);
}

.toast-success { border-left: 3px solid var(--accent-primary); }
.toast-error   { border-left: 3px solid var(--accent-3); }
.toast-info    { border-left: 3px solid var(--accent-secondary); }
.toast-warning { border-left: 3px solid var(--accent-gold); }
.toast.success { border-left: 3px solid var(--accent-primary); }
.toast.error   { border-left: 3px solid var(--accent-3); }
.toast.info    { border-left: 3px solid var(--accent-secondary); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(5, 7, 15, 0.9);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 24px 36px;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.4;
}

[data-theme="light"] .footer {
  background: rgba(232, 237, 248, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpOpen {
  0% { opacity: 0; transform: translateY(15px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.06), var(--shadow-card); }
  50%       { box-shadow: 0 0 50px rgba(0, 229, 255, 0.15), var(--shadow-card); }
}

@keyframes scanLine {
  0%   { top: 0; opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.9), transparent);
  animation: scanLine 2.5s ease-in-out infinite;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* Stagger children */
.stagger-children > * {
  animation: fadeInUp 0.6s ease both;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.12s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.19s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.26s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.33s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.40s; }

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

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }

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

.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
body.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px;
  z-index: 99;
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

body.nav-mobile-open .nav-links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

body.nav-mobile-open .nav-links li {
  animation: slideUpOpen 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.nav-mobile-open .nav-links li:nth-child(1) { animation-delay: 0.05s; }
body.nav-mobile-open .nav-links li:nth-child(2) { animation-delay: 0.10s; }
body.nav-mobile-open .nav-links li:nth-child(3) { animation-delay: 0.15s; }
body.nav-mobile-open .nav-links li:nth-child(4) { animation-delay: 0.20s; }
body.nav-mobile-open .nav-links li:nth-child(5) { animation-delay: 0.25s; }

body.nav-mobile-open .nav-links li { width: 100%; }
body.nav-mobile-open .nav-links a { display: block; padding: 10px 14px; }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .navbar { padding: 14px 20px; }
}

@media (max-width: 640px) {
  .container, .container-sm { padding: 0 16px; }
  .section { padding: 60px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-nav-login { display: none; }
}
