/* =====================================================================
   LAKÁSŐR - Modern Design System v2.0
   Tailwind-inspired, Mobile-First, Dark Mode Support
   Production Ready CSS Architecture
   ===================================================================== */

/* =====================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ===================================================================== */

:root {
  /* Color Palette - Light Mode (Default) */
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-surface-hover: #f4f6f8;
  --color-border: #e5e9ef;
  --color-border-hover: #d1d9e6;
  
  /* Text Colors */
  --color-text: #1a202c;
  --color-text-secondary: #4a5568;
  --color-text-muted: #718096;
  --color-text-inverse: #ffffff;
  
  /* Brand Colors */
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-light: #eef2ff;
  --color-secondary: #8b5cf6;
  --color-accent: #06b6d4;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  
  /* Container */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  
  /* Risk Level Colors (for analyzers) */
  --risk-low: #22c55e;
  --risk-medium: #f59e0b;
  --risk-high: #ef4444;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-elevated: #334155;
  --color-surface-hover: #334155;
  --color-border: #334155;
  --color-border-hover: #475569;
  
  --color-text: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  
  --color-primary-light: rgba(99, 102, 241, 0.15);
  --color-success-light: rgba(16, 185, 129, 0.15);
  --color-warning-light: rgba(245, 158, 11, 0.15);
  --color-danger-light: rgba(239, 68, 68, 0.15);
  --color-info-light: rgba(59, 130, 246, 0.15);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* =====================================================================
   2. GLOBAL RESET & BASE STYLES
   ===================================================================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-base), color var(--transition-base);
}

main {
  flex: 1;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

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

ul, ol {
  list-style: none;
}

/* =====================================================================
   3. TYPOGRAPHY
   ===================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
}

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

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

/* =====================================================================
   4. CONTAINER & LAYOUT
   ===================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-24) 0;
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* =====================================================================
   5. NAVBAR
   ===================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.85);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-brand:hover {
  transform: translateY(-1px);
  color: var(--color-text);
}

.navbar-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.navbar-brand-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.navbar-brand-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* Logo images for light/dark mode */
.navbar-logo {
  height: 38px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .navbar-logo {
    height: 44px;
  }
}

.navbar-logo-light {
  display: block;
}

.navbar-logo-dark {
  display: none;
}

[data-theme="dark"] .navbar-logo-light {
  display: none;
}

[data-theme="dark"] .navbar-logo-dark {
  display: block;
}

/* Nav Menu */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  /* Overflow kezelés: ha nem fér, görgetés */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  max-width: calc(100vw - 280px); /* Logo + theme toggle helye */
}

.navbar-menu::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.navbar-link {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0; /* Ne zsugorodjanak */
}

.navbar-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.navbar-link.active {
  color: white !important;
  background: var(--color-primary) !important;
  font-weight: var(--font-semibold);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .navbar-link.active {
  color: white !important;
  background: var(--color-primary) !important;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  margin-left: var(--space-4);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--color-surface);
}

.theme-toggle-btn.active {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100% !important;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px); /* Dynamic viewport height for mobile */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-8);
    gap: var(--space-4);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: var(--z-modal);
  }
  
  [data-theme="dark"] .navbar-menu {
    background: var(--color-bg);
  }
  
  .navbar-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-link {
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    border-radius: var(--radius-xl);
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    min-height: 56px;
    display: flex;
    align-items: center;
    flex-shrink: unset; /* Mobil menüben ne fix */
  }
  
  .navbar-link:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
  }
  
  .navbar-link.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    font-weight: var(--font-semibold);
  }
  
  .theme-toggle {
    margin: auto 0 var(--space-4) 0;
    justify-content: center;
    padding: var(--space-3);
  }
  
  .theme-toggle-btn {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

/* =====================================================================
   6. HERO SECTION
   ===================================================================== */

.hero {
  padding: var(--space-16) var(--container-padding);
  background: var(--color-surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-title {
  font-size: var(--text-4xl);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  font-weight: var(--font-normal);
}

.hero-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: linear-gradient(135deg, var(--color-primary-light), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius-2xl);
  font-size: 6rem;
  border: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    min-height: 300px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-12) var(--container-padding);
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-visual {
    min-height: 200px;
    font-size: 4rem;
  }
}

/* Page Hero (smaller variant) */
.hero-page {
  padding: var(--space-12) var(--container-padding);
  background: linear-gradient(135deg, var(--color-surface), var(--color-primary-light));
  text-align: center;
}

.hero-page .hero-content {
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
}

/* Hero Color Variants */
.hero-purple { background: linear-gradient(135deg, var(--color-surface), rgba(139, 92, 246, 0.1)); }
.hero-blue { background: linear-gradient(135deg, var(--color-surface), rgba(59, 130, 246, 0.1)); }
.hero-green { background: linear-gradient(135deg, var(--color-surface), rgba(16, 185, 129, 0.1)); }
.hero-yellow { background: linear-gradient(135deg, var(--color-surface), rgba(245, 158, 11, 0.1)); }

/* =====================================================================
   7. BUTTONS
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Button Variants */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:focus:not(:disabled),
.btn-primary:focus-visible:not(:disabled) {
  background-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary:active:not(:disabled) {
  background-color: #4338ca;
  color: var(--color-text-inverse);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-surface-hover);
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.btn-secondary:focus:not(:disabled),
.btn-secondary:focus-visible:not(:disabled) {
  background-color: var(--color-surface);
  color: var(--color-text);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-secondary:active:not(:disabled) {
  background-color: var(--color-surface-hover);
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

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

.btn-outline:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-block {
  width: 100%;
}

/* Dark Mode Button Enhancements */
[data-theme="dark"] .btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  color: #ffffff;
}

[data-theme="dark"] .btn-primary:focus:not(:disabled),
[data-theme="dark"] .btn-primary:focus-visible:not(:disabled) {
  background-color: var(--color-primary-hover);
  color: #ffffff;
}

[data-theme="dark"] .btn-primary:active:not(:disabled) {
  background-color: #4338ca;
  color: #ffffff;
}

[data-theme="dark"] .btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .btn-secondary:hover:not(:disabled) {
  background-color: var(--color-surface-hover);
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

/* Touch device support - ensure visibility without hover */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-primary:hover,
  .btn-primary:active {
    color: var(--color-text-inverse);
  }
  
  .btn-secondary,
  .btn-secondary:hover,
  .btn-secondary:active {
    color: var(--color-text);
  }
}

/* =====================================================================
   8. CARDS
   ===================================================================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

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

.card-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-clickable:hover {
  transform: translateY(-2px);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

/* Center card-icon in text-center cards */
.text-center .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-primary);
}

/* Feature Card */
.feature-card {
  position: relative;
  overflow: hidden;
}

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

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

.feature-number {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

/* =====================================================================
   9. FORMS
   ===================================================================== */

.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.form-section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label,
.form-group label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
}

.form-input,
.form-select,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  appearance: none;
}

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

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

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-help {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
}

/* Input error state */
input.error,
select.error,
textarea.error {
  border-color: var(--color-danger);
  background-color: var(--color-danger-light);
}

input.error:focus,
select.error:focus,
textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Dark mode select dropdown fix */
[data-theme="dark"] select,
[data-theme="dark"] .form-select {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] select option,
[data-theme="dark"] .form-select option {
  background-color: #1f2937;
  color: #f9fafb;
}

[data-theme="dark"] select option:hover,
[data-theme="dark"] select option:checked,
[data-theme="dark"] .form-select option:hover,
[data-theme="dark"] .form-select option:checked {
  background-color: #374151;
}

/* =====================================================================
   10. RESULTS & RISK DISPLAY
   ===================================================================== */

.results-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-8);
}

.risk-summary {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  background: var(--color-surface-hover);
}

.risk-summary h3 {
  margin-bottom: var(--space-4);
}

.risk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .risk-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-box {
  text-align: center;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
}

/* Risk Badges */
.risk-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-badge.risk-low,
.risk-low {
  background: var(--color-success-light);
  color: var(--color-success);
}

.risk-badge.risk-medium,
.risk-medium {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.risk-badge.risk-high,
.risk-high {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.risk-badge.risk-critical,
.risk-critical {
  background: var(--color-danger);
  color: var(--color-text-inverse);
}

/* Risk Items */
.triggered-rules {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.rule-item {
  padding: var(--space-4);
  background: var(--color-surface-hover);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-border);
}

.rule-item.risk-low { border-left-color: var(--color-success); }
.rule-item.risk-medium { border-left-color: var(--color-warning); }
.rule-item.risk-high { border-left-color: var(--color-danger); }

.rule-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.rule-title {
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.rule-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.rule-timing {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Cost Table */
.cost-table {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.cost-row:last-child {
  border-bottom: none;
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 2px solid var(--color-border);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
}

/* =====================================================================
   11. FOOTER
   ===================================================================== */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) var(--container-padding) var(--space-8);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-section h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer-section p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-section a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  max-width: var(--container-max);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* =====================================================================
   12. UTILITY CLASSES
   ===================================================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Width */
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* =====================================================================
   13. SECTION SPECIFIC STYLES
   ===================================================================== */

/* Why Section */
.why-section {
  padding: var(--space-16) var(--container-padding);
  background: var(--color-bg);
}

.why-section h2 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

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

.why-card {
  text-align: center;
  padding: var(--space-6);
}

.why-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.why-icon .icon {
  margin: 0 auto;
}

.why-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.why-conclusion {
  text-align: center;
  margin-top: var(--space-12);
  font-size: var(--text-lg);
}

/* Features Section */
.features-section {
  padding: var(--space-16) var(--container-padding);
  background: var(--color-surface);
}

.features-section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

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

/* Problems Section */
.problems-section {
  padding: var(--space-16) var(--container-padding);
  background: var(--color-bg);
}

.problems-section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.problem-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.problem-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.problem-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: var(--space-16) var(--container-padding);
  background: linear-gradient(135deg, var(--color-primary-light), rgba(139, 92, 246, 0.1));
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* About Section */
.about-section {
  padding: var(--space-16) var(--container-padding);
  background: var(--color-surface);
}

.about-section h2 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

/* Trust Section */
.trust-section {
  padding: var(--space-16) var(--container-padding);
  background: var(--color-bg);
}

.trust-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.trust-item {
  text-align: center;
  padding: var(--space-6);
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.trust-item h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.trust-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* =====================================================================
   14. ANIMATIONS & MICRO-INTERACTIONS
   ===================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes progressBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

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

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

@keyframes riskMeterFill {
  from { width: 0%; }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-bounce {
  animation: bounce 0.6s ease infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Micro-interaction: Button press effect */
.btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* Micro-interaction: Input focus glow */
.form-input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Micro-interaction: Card hover lift */
.card {
  transform: translateY(0);
  will-change: transform, box-shadow;
}

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

/* Micro-interaction: Link underline animation */
.footer-section a,
.card-link {
  position: relative;
}

.footer-section a::after,
.card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.footer-section a:hover::after,
.card-link:hover::after {
  width: 100%;
}

/* =====================================================================
   15. PRINT STYLES
   ===================================================================== */

@media print {
  /* Hide navigation elements */
  .navbar,
  .theme-toggle,
  .navbar-toggle,
  .footer,
  .no-print,
  .export-buttons,
  .scroll-progress,
  .toast-container {
    display: none !important;
  }
  
  /* Show print-only elements */
  .print-only {
    display: block !important;
  }
  
  /* Reset colors for print */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }
  
  /* Card styles for print */
  .card,
  .form-section,
  .results-section {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  /* Ensure text is black */
  h1, h2, h3, h4, h5, h6,
  p, span, label, .stat-value {
    color: black !important;
  }
  
  /* Risk badges in print */
  .risk-badge {
    border: 1px solid currentColor !important;
    background: transparent !important;
  }
  
  /* Hide form elements, show values */
  input, select, textarea {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
  
  /* Adjust sections */
  .section {
    padding: 1rem 0 !important;
  }
  
  /* Links in print */
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-wrap: break-word;
  }
  
  /* Page breaks */
  .form-section {
    page-break-after: auto;
  }
  
  .results-section {
    page-break-before: always;
  }
  
  /* Print header */
  .print-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid black;
    padding-bottom: 1rem;
  }
  
  .print-header h1 {
    font-size: 24pt;
    margin-bottom: 0.5rem;
  }
  
  .print-header p {
    font-size: 10pt;
    color: #666 !important;
  }
  
  /* Print footer */
  @page {
    margin: 2cm;
    @bottom-center {
      content: "LakásŐr - " counter(page) " / " counter(pages);
    }
  }
}

/* =====================================================================
   16. ACCESSIBILITY
   ===================================================================== */

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000;
    --color-text-muted: #000;
  }
}

/* =====================================================================
   17. TOAST NOTIFICATIONS
   ===================================================================== */

.toast-container {
  position: fixed;
  top: 80px;
  right: var(--space-4);
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: toastSlideIn 0.3s ease;
  pointer-events: auto;
}

.toast.toast-exit {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.toast-message {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.toast-close {
  background: none;
  border: none;
  padding: var(--space-1);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--color-text);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  animation: progressBar 5s linear forwards;
}

.toast.toast-success { border-left: 4px solid var(--color-success); }
.toast.toast-warning { border-left: 4px solid var(--color-warning); }
.toast.toast-error { border-left: 4px solid var(--color-danger); }
.toast.toast-info { border-left: 4px solid var(--color-info); }

/* =====================================================================
   18. LOADING STATES
   ===================================================================== */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.btn.loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-hover) 25%,
    var(--color-surface) 50%,
    var(--color-surface-hover) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: var(--space-4);
}

.skeleton-card {
  height: 200px;
}

/* =====================================================================
   19. PROGRESS INDICATORS
   ===================================================================== */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  z-index: var(--z-sticky);
}

/* Hide scroll progress in PWA standalone mode */
.pwa-standalone .scroll-progress {
  display: none;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  width: 0%;
  transition: width 50ms linear;
}

/* Risk Meter */
.risk-meter {
  width: 100%;
  height: 12px;
  background: var(--color-surface-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-4) 0;
}

.risk-meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
  animation: riskMeterFill 1s ease-out;
}

.risk-meter-fill.risk-low {
  background: linear-gradient(90deg, var(--color-success), #34d399);
}

.risk-meter-fill.risk-medium {
  background: linear-gradient(90deg, var(--color-warning), #fbbf24);
}

.risk-meter-fill.risk-high {
  background: linear-gradient(90deg, var(--color-danger), #f87171);
}

.risk-meter-fill.risk-critical {
  background: linear-gradient(90deg, #dc2626, #991b1b);
}

/* Step Progress */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--color-border);
}

.step-item.completed:not(:last-child)::after {
  background: var(--color-primary);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  background: var(--color-surface-hover);
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  z-index: 1;
  transition: all var(--transition-base);
}

.step-item.active .step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.step-item.completed .step-circle {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.step-label {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

.step-item.active .step-label,
.step-item.completed .step-label {
  color: var(--color-text);
  font-weight: var(--font-medium);
}

/* =====================================================================
   20. GLASSMORPHISM EFFECTS
   ===================================================================== */

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

[data-theme="dark"] .glass {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-navbar {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .glass-navbar {
  background: rgba(15, 23, 42, 0.85);
}

/* Hero glass effect */
.hero-glass {
  position: relative;
  overflow: hidden;
}

.hero-glass::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

/* =====================================================================
   21. PRINT & EXPORT STYLES
   ===================================================================== */

.print-only {
  display: none;
}

.no-print {
  display: block; /* Normal display, will be hidden in @media print */
}

/* Export button styles */
.export-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-export:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* =====================================================================
   HOW-TO SECTION (Index Page)
   ===================================================================== */

.how-section {
  padding: var(--space-12) 0;
  background: var(--color-surface);
}

.how-section h2 {
  margin-bottom: var(--space-8);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.how-step {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.how-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-4);
}

.how-step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.how-step p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================================
   OFFER SECTION (Index Page)
   ===================================================================== */

.offer-section {
  padding: var(--space-12) 0;
  background: var(--color-bg);
}

.offer-section h2 {
  margin-bottom: var(--space-4);
}

.offer-section .section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
