/* ========================================
   StepBuilder — Glassmorphism Landing
   ======================================== */

:root {
  /* Colors — светлая палитра */
  --color-bg: #f8fafc;
  --color-bg-light: #f1f5f9;
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;
  --color-accent: #8b5cf6;
  --color-accent-pink: #ec4899;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  
  /* Glassmorphism — на светлом фоне */
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-medium: rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-strong: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
  --glass-blur: 32px;
  --glass-blur-strong: 48px;
  
  /* Gradients — насыщенные для видимого размытия через стекло */
  --gradient-hero: linear-gradient(180deg, #f8fafc 0%, #ddd6fe 25%, #e0e7ff 50%, #fce7f3 75%, #f8fafc 100%);
  --gradient-orb-1: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(99, 102, 241, 0.2) 35%, rgba(99, 102, 241, 0.08) 60%, transparent 80%);
  --gradient-orb-2: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, rgba(236, 72, 153, 0.18) 35%, rgba(236, 72, 153, 0.06) 60%, transparent 80%);
  --gradient-orb-3: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, rgba(139, 92, 246, 0.15) 35%, rgba(139, 92, 246, 0.05) 60%, transparent 80%);
  
  /* Spacing & Sizing */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 40%, #fce7f3 80%, #f1f5f9 100%);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Контент заполняет экран — footer всегда ниже viewport при короткой странице */
main {
  min-height: 100vh;
}

/* ========================================
   Animated Gradient Orbs (Background)
   ======================================== */

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 1;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.gradient-orb-1 {
  width: 700px;
  height: 700px;
  background: var(--gradient-orb-1);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 600px;
  height: 600px;
  background: var(--gradient-orb-2);
  top: 40%;
  right: -150px;
  animation-delay: -7s;
}

.gradient-orb-3 {
  width: 500px;
  height: 500px;
  background: var(--gradient-orb-3);
  bottom: -100px;
  left: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ========================================
   Glassmorphism — Стеклянный морфизм
   ======================================== */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Основная стеклянная панель — глянец + отражение */
.glass-panel {
  position: relative;
  background: 
    linear-gradient(125deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.3) 20%, transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6),
    inset -1px -1px 2px rgba(255, 255, 255, 0.2);
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.05) 100%);
}

/* Усиленный стеклянный эффект — яркий глянец */
.glass-panel-strong {
  position: relative;
  background: 
    linear-gradient(120deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 25%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.25) 100%);
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 20px 60px rgba(99, 102, 241, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 3px 3px 8px rgba(255, 255, 255, 0.7),
    inset -2px -2px 4px rgba(255, 255, 255, 0.15);
}

.glass-inner {
  background: 
    linear-gradient(140deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 40%, transparent 70%),
    rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Матовое стекло — глянцевое отражение */
.glass-frosted {
  background: 
    linear-gradient(130deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.35) 25%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.25) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 2px 2px 4px rgba(255, 255, 255, 0.4),
    0 2px 12px rgba(99, 102, 241, 0.08);
}

.glass-card {
  background: 
    linear-gradient(128deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.35) 22%, transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.25) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 2px 2px 6px rgba(255, 255, 255, 0.5);
}

/* Стеклянные кнопки — глянец */
.glass-btn {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(255, 255, 255, 0.3) 100%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: var(--color-primary) !important;
  box-shadow: 
    0 2px 12px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.glass-btn:hover {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.4) 100%) !important;
  border-color: rgba(255, 255, 255, 1) !important;
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.glass-btn-primary {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 30%, transparent 70%),
    linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 
    0 4px 24px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 2px 2px 4px rgba(255, 255, 255, 0.25);
}

.glass-btn-primary:hover {
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 2px 2px 6px rgba(255, 255, 255, 0.3);
}

/* ========================================
   Header
   ======================================== */

/* Header — прозрачное стекло glassmorphism */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.35) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 4px 24px rgba(99, 102, 241, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

/* Minimal header for auth pages (login, register) */
.header-minimal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}

.header.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.45) 100%) !important;
  box-shadow: 
    0 16px 48px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 2px 2px 6px rgba(255, 255, 255, 0.4);
}

/* Прозрачное стекло для хедера — убираем лишний слой от glass-panel */
.header.glass-panel::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.06) 100%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.25rem;
  transition: var(--transition-fast);
  margin-left: 1.5rem;
}

.logo:hover {
  color: var(--color-primary);
  transform: scale(1.02);
}

.logo-icon svg,
.logo-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.logo-icon svg {
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.logo-icon img {
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.25));
}

.logo-small .logo-icon svg,
.logo-small .logo-icon img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 3rem;
}

.nav-guest {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-lang-switcher {
  display: flex;
  gap: 0.25rem;
  margin-right: 0.5rem;
}

/* Header nav links */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.header-link:hover {
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
}

.header-link.active {
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
}

.header-link-dashboard,
.header-link-user {
  display: none;
}

/* Show dashboard link in nav when user is logged in (toggled via JS) */
.nav-user-active .header-link-user {
  display: flex;
}

/* Go to app button (left of avatar) */
.nav-app-btn {
  margin-right: 0.5rem;
}

/* Avatar + dropdown */
.avatar-dropdown {
  position: relative;
}

.avatar-dropdown-left {
  margin-left: 0.5rem;
}

.avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0;
  overflow: hidden;
  transition: var(--transition-fast);
}

.avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.avatar-initials {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-fast);
  z-index: 200;
}

.avatar-menu.avatar-menu-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.avatar-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.avatar-menu-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
}

.avatar-menu-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.avatar-menu-item-danger {
  color: #dc2626;
}

.avatar-menu-item-danger:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.avatar-menu-divider {
  border: none;
  height: 1px;
  background: rgba(99, 102, 241, 0.15);
  margin: 0.25rem 0;
}

/* Language switcher in avatar menu */
.avatar-menu-lang {
  padding: 0.5rem 1rem;
}

.avatar-menu-lang-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.avatar-menu-lang-options {
  display: flex;
  gap: 0.25rem;
}

.avatar-menu-lang-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.avatar-menu-lang-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-color: rgba(99, 102, 241, 0.4);
}

.avatar-menu-lang-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .header-nav-links {
    display: none;
  }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

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

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

.btn-ghost, .btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-ghost:hover, .btn-outline:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  min-height: 100vh;
}

@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
}

.hero-content {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease forwards;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@media (max-width: 968px) {
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

@media (max-width: 968px) {
  .hero-buttons {
    justify-content: center;
  }
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.illustration-glass {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.monitor-frame {
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: 
    0 24px 64px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 4px 4px 12px rgba(255, 255, 255, 0.6),
    inset -2px -2px 6px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.monitor-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 32px 80px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 5px 5px 14px rgba(255, 255, 255, 0.7),
    inset -2px -2px 6px rgba(255, 255, 255, 0.25);
}

.monitor-screen {
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-monitor-screen {
  padding: 0.75rem;
  overflow: hidden;
}

.hero-dashboard-visual {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius-lg) - 6px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.screen-content {
  width: 100%;
  max-width: 200px;
}

.doc-preview {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  transition: var(--transition-smooth);
}

.doc-preview:hover {
  transform: scale(1.05);
}

.doc-icon {
  font-size: 1.5rem;
}

.doc-preview span {
  font-weight: 600;
  flex: 1;
}

.check-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.floating-doc {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 1rem 1.25rem;
  width: 140px;
  box-shadow: 
    0 16px 48px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 2px 2px 6px rgba(255, 255, 255, 0.6),
    inset -1px -1px 3px rgba(255, 255, 255, 0.15);
  animation: floatDoc 4s ease-in-out infinite;
}

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

.doc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  margin-bottom: 0.5rem;
}

.doc-lines span {
  display: block;
  height: 6px;
  background: rgba(99, 102, 241, 0.25);
  border-radius: 4px;
  margin-bottom: 4px;
}

.doc-lines span:last-child {
  width: 60%;
}

/* ========================================
   Stats Section — Glassmorphism
   ======================================== */

.stats {
  position: relative;
  z-index: 1;
  padding: 0 2rem 4rem;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 48px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 2px 2px 6px rgba(255, 255, 255, 0.5),
    inset -1px -1px 3px rgba(255, 255, 255, 0.15);
}

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

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

/* ========================================
   Features Section
   ======================================== */

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.features {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

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

@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  transition: var(--transition-smooth);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 24px 64px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 2px 2px 8px rgba(255, 255, 255, 0.6),
    inset -1px -1px 4px rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-icon-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--color-primary);
}

.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0 0;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(99, 102, 241, 0.25);
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
  border-color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-heart {
  color: var(--color-accent-pink) !important;
}

/* ========================================
   Auth Pages — Register / Login
   ======================================== */

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
}

.auth-page-register {
  padding: 8rem 1.5rem 3rem;
}

.auth-section {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.6s ease;
}

/* ========== Register — Horizontal split layout ========== */

.auth-register-split {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  min-height: 480px;
}

.auth-register-step {
  display: flex;
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.auth-register-step-hidden {
  display: none !important;
}

.auth-register-step.auth-register-step-visible {
  display: flex !important;
}

/* Step 1: Welcome left + Form right */
#step-1 {
  flex-direction: row;
  gap: 0;
}

.auth-welcome {
  flex: 1;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(99, 102, 241, 0.08);
}

.auth-welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.auth-welcome-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-welcome-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.auth-welcome-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.auth-form-minimal {
  flex: 1;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-minimal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.auth-form-minimal-hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Step 2: Full form layout */
#step-2 {
  flex-direction: row;
}

.auth-form-full {
  flex: 1.2;
  padding: 2.5rem 2rem;
  position: relative;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-back-btn:hover {
  color: var(--color-primary-dark);
}

.auth-form-full-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.auth-form-full-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.auth-welcome-compact {
  flex: 0.8;
  border-right: none;
  border-left: 1px solid rgba(99, 102, 241, 0.08);
}

.auth-welcome-title-small {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.auth-welcome-subtitle-small {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-footer-standalone {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

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

/* Auth register — mobile */
@media (max-width: 768px) {
  .auth-register-split {
    flex-direction: column;
    max-width: 420px;
    min-height: auto;
  }

  #step-1 {
    flex-direction: column;
  }

  .auth-welcome {
    border-right: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    padding-bottom: 1.5rem;
  }

  #step-2 {
    flex-direction: column;
  }

  .auth-form-full {
    order: 1;
  }

  .auth-welcome-compact {
    order: 0;
    border-left: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: var(--transition-fast);
}

.form-group input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

.form-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 0.25rem;
}

.form-link:hover {
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

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

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

/* ========================================
   Page layouts (Features, About, Guides, Dashboard)
   ======================================== */

.page-main {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  text-align: center;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.page-content {
  margin-top: 2rem;
}

/* Features grid extended */
.features-grid-extended {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .features-grid-extended {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid-extended {
    grid-template-columns: 1fr;
  }
}

/* Home page sections */
.about-section.home-section,
.guides-section.home-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.about-section .about-content {
  margin-top: 1rem;
}

.guides-section .guides-grid {
  margin-top: 1rem;
}

.guides-section .guide-card {
  cursor: default;
}

/* About content */
.about-content {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
}

.about-content h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text);
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p, .about-content li {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-content ul {
  padding-left: 1.5rem;
}

/* Guides grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  display: block;
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.guide-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.6;
  display: block;
  margin-bottom: 0.5rem;
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.guide-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Dashboard */
.dashboard-hero .page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  display: block;
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.2);
}

.dashboard-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dashboard-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.dashboard-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Profile */
.profile-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

.profile-avatar-large.profile-avatar-has-img {
  background: transparent;
  padding: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.profile-email {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Settings */
.settings-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

.settings-note {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ========================================
   Animations
   ======================================== */

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

/* Mouse-tilt effect for feature cards */
.feature-card[data-tilt] {
  transform-style: preserve-3d;
}

.feature-card[data-tilt] .feature-icon,
.feature-card[data-tilt] h3,
.feature-card[data-tilt] p {
  transform: translateZ(20px);
}

/* ========================================
   Status Badges — Note 6
   ======================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid currentColor;
  line-height: 1.5;
  white-space: nowrap;
}

.status-completed {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

.status-in-progress {
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
}

.status-pending {
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
}

.status-missing {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.status-not-started {
  color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}

/* ========================================
   Dark & Navy Themes — Note 7
   ======================================== */

/* — Dark Theme — */
html[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-bg-light: #1e293b;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-primary-light: #818cf8;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 45%, #0f172a 100%);
  color: #e2e8f0;
}

html[data-theme="dark"] .glass-panel {
  background:
    linear-gradient(125deg, rgba(51,65,85,0.7) 0%, rgba(30,41,59,0.4) 40%, transparent 70%),
    linear-gradient(135deg, rgba(51,65,85,0.5) 0%, rgba(15,23,42,0.3) 100%);
  border-color: rgba(148,163,184,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}

html[data-theme="dark"] .glass-panel::before {
  background: linear-gradient(145deg, rgba(99,102,241,0.06) 0%, transparent 40%);
}

html[data-theme="dark"] .glass-panel-strong {
  background:
    linear-gradient(120deg, rgba(51,65,85,0.85) 0%, rgba(30,41,59,0.5) 40%, transparent 70%),
    linear-gradient(135deg, rgba(51,65,85,0.6) 0%, rgba(15,23,42,0.4) 100%);
  border-color: rgba(148,163,184,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
}

html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .glass-inner,
html[data-theme="dark"] .glass-frosted {
  background: rgba(30,41,59,0.6);
  border-color: rgba(148,163,184,0.1);
}

html[data-theme="dark"] .header {
  background: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.75) 100%) !important;
  border-color: rgba(148,163,184,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

html[data-theme="dark"] .glass-btn {
  background: linear-gradient(135deg, rgba(51,65,85,0.85) 0%, rgba(30,41,59,0.65) 100%) !important;
  border-color: rgba(148,163,184,0.2) !important;
  color: #818cf8 !important;
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-outline {
  color: #818cf8;
  border-color: #818cf8;
}

html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-outline:hover {
  background: rgba(99,102,241,0.15);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
  background: rgba(30,41,59,0.75);
  border-color: rgba(99,102,241,0.3);
  color: #e2e8f0;
}

html[data-theme="dark"] .form-group input::placeholder,
html[data-theme="dark"] .form-group textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .form-group-label {
  color: #cbd5e1;
}

html[data-theme="dark"] .header-link {
  color: #94a3b8;
}

html[data-theme="dark"] .header-link:hover,
html[data-theme="dark"] .header-link.active {
  color: #818cf8;
  background: rgba(99,102,241,0.15);
}

html[data-theme="dark"] .avatar-menu-item {
  color: #e2e8f0;
}

html[data-theme="dark"] .avatar-menu-item:hover {
  background: rgba(99,102,241,0.15);
  color: #818cf8;
}

html[data-theme="dark"] .avatar-menu-divider {
  background: rgba(148,163,184,0.1);
}

html[data-theme="dark"] .avatar-menu-lang-btn {
  background: rgba(30,41,59,0.8);
  color: #94a3b8;
  border-color: rgba(148,163,184,0.2);
}

html[data-theme="dark"] .avatar-menu-lang-btn.active {
  background: rgba(99,102,241,0.2);
  color: #818cf8;
  border-color: #818cf8;
}

html[data-theme="dark"] .footer-nav a,
html[data-theme="dark"] .footer-bottom p {
  color: #94a3b8;
}

html[data-theme="dark"] .footer-nav a:hover {
  color: #818cf8;
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .guide-card h3,
html[data-theme="dark"] .dashboard-card h3 {
  color: #e2e8f0;
}

html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .guide-card p,
html[data-theme="dark"] .dashboard-card p,
html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .hero-description {
  color: #94a3b8;
}

html[data-theme="dark"] .stat-number {
  color: #818cf8;
}

html[data-theme="dark"] .stat-label {
  color: #94a3b8;
}

html[data-theme="dark"] .gradient-orb-1 {
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, rgba(99,102,241,0.12) 40%, transparent 70%);
}

html[data-theme="dark"] .gradient-orb-2 {
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, rgba(139,92,246,0.1) 40%, transparent 70%);
}

html[data-theme="dark"] .gradient-orb-3 {
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(99,102,241,0.08) 40%, transparent 70%);
}

html[data-theme="dark"] .logo {
  color: #e2e8f0;
}

html[data-theme="dark"] .about-content p,
html[data-theme="dark"] .about-content li {
  color: #94a3b8;
}

html[data-theme="dark"] .checklist-item {
  background: rgba(30,41,59,0.5);
  border-color: rgba(99,102,241,0.15);
}

html[data-theme="dark"] .checklist-item:hover {
  background: rgba(99,102,241,0.1);
}

html[data-theme="dark"] .checklist-item label,
html[data-theme="dark"] .profile-username,
html[data-theme="dark"] .profile-section-title,
html[data-theme="dark"] .settings-section-title {
  color: #e2e8f0;
}

html[data-theme="dark"] .profile-email-display,
html[data-theme="dark"] .profile-view-label {
  color: #94a3b8;
}

html[data-theme="dark"] .profile-view-value {
  color: #cbd5e1;
}

/* — Navy Theme — */
html[data-theme="navy"] {
  --color-primary: #60a5fa;
  --color-primary-light: #93c5fd;
  --color-primary-dark: #3b82f6;
  --color-accent: #818cf8;
  --color-accent-pink: #f472b6;
  --color-text: #dbeafe;
  --color-text-muted: #93c5fd;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

html[data-theme="navy"] body {
  background: linear-gradient(180deg, #0a1628 0%, #0d2042 45%, #0a1628 100%);
  color: #dbeafe;
}

html[data-theme="navy"] .glass-panel {
  background:
    linear-gradient(125deg, rgba(13,32,66,0.75) 0%, rgba(10,22,40,0.45) 40%, transparent 70%),
    linear-gradient(135deg, rgba(13,32,66,0.55) 0%, rgba(10,22,40,0.35) 100%);
  border-color: rgba(59,130,246,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(59,130,246,0.07);
}

html[data-theme="navy"] .glass-panel::before {
  background: linear-gradient(145deg, rgba(59,130,246,0.06) 0%, transparent 40%);
}

html[data-theme="navy"] .glass-panel-strong {
  background:
    linear-gradient(120deg, rgba(13,32,66,0.9) 0%, rgba(10,22,40,0.55) 40%, transparent 70%),
    linear-gradient(135deg, rgba(13,32,66,0.65) 0%, rgba(10,22,40,0.45) 100%);
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(59,130,246,0.06);
}

html[data-theme="navy"] .glass-card,
html[data-theme="navy"] .glass-inner,
html[data-theme="navy"] .glass-frosted {
  background: rgba(13,32,66,0.6);
  border-color: rgba(59,130,246,0.12);
}

html[data-theme="navy"] .header {
  background: linear-gradient(135deg, rgba(13,32,66,0.92) 0%, rgba(10,22,40,0.78) 100%) !important;
  border-color: rgba(59,130,246,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(59,130,246,0.07) !important;
}

html[data-theme="navy"] .glass-btn {
  background: linear-gradient(135deg, rgba(13,32,66,0.85) 0%, rgba(10,22,40,0.65) 100%) !important;
  border-color: rgba(59,130,246,0.25) !important;
  color: #93c5fd !important;
}

html[data-theme="navy"] .btn-ghost,
html[data-theme="navy"] .btn-outline {
  color: #60a5fa;
  border-color: #60a5fa;
}

html[data-theme="navy"] .btn-ghost:hover,
html[data-theme="navy"] .btn-outline:hover {
  background: rgba(59,130,246,0.15);
}

html[data-theme="navy"] .form-group input,
html[data-theme="navy"] .form-group select,
html[data-theme="navy"] .form-group textarea {
  background: rgba(10,22,40,0.75);
  border-color: rgba(59,130,246,0.3);
  color: #dbeafe;
}

html[data-theme="navy"] .form-group input::placeholder,
html[data-theme="navy"] .form-group textarea::placeholder {
  color: #93c5fd;
  opacity: 1;
}

html[data-theme="navy"] .form-group label {
  color: #bfdbfe;
}

html[data-theme="navy"] .header-link {
  color: #93c5fd;
}

html[data-theme="navy"] .header-link:hover,
html[data-theme="navy"] .header-link.active {
  color: #dbeafe;
  background: rgba(59,130,246,0.12);
}

html[data-theme="navy"] .avatar-menu-item {
  color: #dbeafe;
}

html[data-theme="navy"] .avatar-menu-item:hover {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
}

html[data-theme="navy"] .avatar-menu-divider {
  background: rgba(59,130,246,0.12);
}

html[data-theme="navy"] .avatar-menu-lang-btn {
  background: rgba(10,22,40,0.8);
  color: #93c5fd;
  border-color: rgba(59,130,246,0.2);
}

html[data-theme="navy"] .avatar-menu-lang-btn.active {
  background: rgba(59,130,246,0.2);
  color: #dbeafe;
  border-color: #60a5fa;
}

html[data-theme="navy"] .footer-nav a,
html[data-theme="navy"] .footer-bottom p {
  color: #93c5fd;
}

html[data-theme="navy"] .footer-nav a:hover {
  color: #dbeafe;
}

html[data-theme="navy"] .section-title,
html[data-theme="navy"] .page-title,
html[data-theme="navy"] .feature-card h3,
html[data-theme="navy"] .guide-card h3,
html[data-theme="navy"] .dashboard-card h3 {
  color: #dbeafe;
}

html[data-theme="navy"] .feature-card p,
html[data-theme="navy"] .guide-card p,
html[data-theme="navy"] .dashboard-card p,
html[data-theme="navy"] .page-subtitle,
html[data-theme="navy"] .hero-description {
  color: #93c5fd;
}

html[data-theme="navy"] .stat-number {
  color: #60a5fa;
}

html[data-theme="navy"] .stat-label {
  color: #93c5fd;
}

html[data-theme="navy"] .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="navy"] .gradient-orb-1 {
  background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, rgba(59,130,246,0.15) 40%, transparent 70%);
}

html[data-theme="navy"] .gradient-orb-2 {
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, rgba(99,102,241,0.12) 40%, transparent 70%);
}

html[data-theme="navy"] .gradient-orb-3 {
  background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, rgba(59,130,246,0.1) 40%, transparent 70%);
}

html[data-theme="navy"] .logo {
  color: #dbeafe;
}

html[data-theme="navy"] .about-content p,
html[data-theme="navy"] .about-content li {
  color: #93c5fd;
}

html[data-theme="navy"] .checklist-item {
  background: rgba(13,32,66,0.5);
  border-color: rgba(59,130,246,0.15);
}

html[data-theme="navy"] .checklist-item:hover {
  background: rgba(59,130,246,0.1);
}

html[data-theme="navy"] .checklist-item label,
html[data-theme="navy"] .profile-username,
html[data-theme="navy"] .profile-section-title,
html[data-theme="navy"] .settings-section-title {
  color: #dbeafe;
}

html[data-theme="navy"] .profile-email-display,
html[data-theme="navy"] .profile-view-label {
  color: #93c5fd;
}

html[data-theme="navy"] .profile-view-value {
  color: #bfdbfe;
}

/* ========================================
   Application Checklist — Note 8
   ======================================== */

.checklist-section {
  margin-top: 2rem;
}

.checklist-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.checklist-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.checklist-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checklist-progress-bar {
  width: 120px;
  height: 8px;
  background: rgba(99,102,241,0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.checklist-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 3rem;
}

.checklist-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(99,102,241,0.1);
  transition: var(--transition-fast);
  cursor: pointer;
}

.checklist-item:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.2);
}

.checklist-item.done {
  opacity: 0.65;
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text);
  user-select: none;
}

.checklist-item.done label {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.checklist-item-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ========================================
   Settings Page — Full Rebuild
   ======================================== */

.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-section {
  padding: 1.75rem 2rem;
  border-radius: var(--radius-xl);
}

.settings-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.settings-section-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

/* Theme selector cards */
.settings-themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 480px) {
  .settings-themes {
    grid-template-columns: 1fr;
  }
}

.theme-card {
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(99,102,241,0.15);
  overflow: hidden;
  transition: var(--transition-smooth);
  padding: 0;
  background: none;
  font-family: inherit;
  text-align: left;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.35);
}

.theme-card.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 8px 24px rgba(99,102,241,0.25);
}

.theme-preview {
  height: 72px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 0.5rem;
  gap: 0.25rem;
}

.theme-preview-light {
  background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
}

.theme-preview-dark {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

.theme-preview-navy {
  background: linear-gradient(135deg, #0d2042 0%, #0a1628 100%);
}

.theme-preview-bar {
  height: 8px;
  border-radius: 4px;
  flex: 1;
  opacity: 0.7;
}

.theme-preview-light .theme-preview-bar { background: rgba(99,102,241,0.4); }
.theme-preview-dark .theme-preview-bar  { background: rgba(148,163,184,0.3); }
.theme-preview-navy .theme-preview-bar  { background: rgba(59,130,246,0.35); }

.theme-label-wrap {
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.08);
}

.theme-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.theme-label-check {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  vertical-align: middle;
  margin-left: 0.35rem;
  position: relative;
}

.theme-card.active .theme-label-check::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Language section in settings */
.settings-lang-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.settings-lang-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
}

/* ========================================
   Profile Page — Expanded — Note 2
   ======================================== */

.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.profile-sidebar {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 6rem;
}

.profile-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 0.25rem;
}

.profile-avatar-large-new {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.profile-avatar-large-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-upload-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.75rem;
}

.profile-avatar-upload-btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.1);
}

.profile-username {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.profile-role-badge {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: capitalize;
}

.profile-email-display {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  word-break: break-all;
}

.profile-go-app-btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* Main profile area */
.profile-main-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-section-card {
  padding: 1.75rem 2rem;
  border-radius: var(--radius-xl);
}

.profile-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-edit-inline-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-family: inherit;
}

.profile-edit-inline-btn:hover {
  background: rgba(99,102,241,0.1);
}

.profile-view-field {
  margin-bottom: 1rem;
}

.profile-view-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.profile-view-value {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.profile-view-value.empty {
  color: var(--color-text-muted);
  font-style: italic;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.profile-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: var(--transition-fast);
  resize: vertical;
  min-height: 90px;
}

.profile-form .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.profile-save-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-secondary {
  background: rgba(99,102,241,0.08);
  color: var(--color-primary);
  border: 1px solid rgba(99,102,241,0.2);
}

.btn-secondary:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
}

html[data-theme="dark"] .profile-form .form-group textarea,
html[data-theme="navy"] .profile-form .form-group textarea {
  background: rgba(30,41,59,0.65);
  color: var(--color-text);
}

/* Logged-in hero on landing page — Note 10 */
.hero-logged-in .hero-greeting {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.hero-logged-in .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.hero-quick-action:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

html[data-theme="dark"] .hero-quick-action,
html[data-theme="navy"] .hero-quick-action {
  background: rgba(99,102,241,0.12);
  color: #818cf8;
}

/* My Students section in Dashboard */
.students-section {
  margin-top: 2rem;
}

.students-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.student-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(99,102,241,0.12);
  transition: var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.student-card:hover {
  background: rgba(99,102,241,0.07);
  border-color: rgba(99,102,241,0.25);
  transform: translateX(4px);
}

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

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

.student-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.student-email {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .student-card,
html[data-theme="navy"] .student-card {
  background: rgba(30,41,59,0.4);
}

html[data-theme="dark"] .student-name,
html[data-theme="navy"] .student-name {
  color: var(--color-text);
}
