@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
}

:root {
  /* ══════════════════════════════════════════════════════════════════════════
     COLOR PALETTE
     ══════════════════════════════════════════════════════════════════════════ */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --primary-lighter: #6ee7b7;
  --secondary: #6366f1;
  --accent: #0ea5e9;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-dark: #dc2626;

  /* Backgrounds */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.8);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --bg-input: rgba(15, 23, 42, 0.8);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border: #334155;
  --border-light: rgba(51, 65, 85, 0.5);
  --border-hover: rgba(16, 185, 129, 0.5);

  /* Glows & Shadows */
  --glow-primary: rgba(16, 185, 129, 0.4);
  --glow-secondary: rgba(99, 102, 241, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--glow-primary);

  /* ══════════════════════════════════════════════════════════════════════════
     SPACING SCALE (based on 4px grid)
     ══════════════════════════════════════════════════════════════════════════ */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */

  /* ══════════════════════════════════════════════════════════════════════════
     TYPOGRAPHY - Consistent Scale for All Screens
     ══════════════════════════════════════════════════════════════════════════ */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);

  /* Desktop Scale (16px base) */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ══════════════════════════════════════════════════════════════════════════
     BORDER RADIUS
     ══════════════════════════════════════════════════════════════════════════ */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ══════════════════════════════════════════════════════════════════════════
     TRANSITIONS & ANIMATIONS - Smooth, non-poppy curves
     ══════════════════════════════════════════════════════════════════════════ */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ══════════════════════════════════════════════════════════════════════════
     Z-INDEX SCALE
     ══════════════════════════════════════════════════════════════════════════ */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-modal: 1000;
  --z-tooltip: 5000;
  --z-toast: 9000;
  --z-max: 99999;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  font-size: var(--text-base);
}

.dna-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0 !important;
  background: transparent;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  will-change: contents;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  contain: layout style paint;
  isolation: isolate;
}

#container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  display: block !important;
  visibility: visible !important;
  will-change: contents;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: strict;
}

#container canvas {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  will-change: contents;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: optimizeSpeed;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 768px) {
  .dna-background {
    background: #1b2738;
  }

  .language-switcher {
    bottom: 20px;
    left: 20px;
    width: auto;
    height: auto;
    min-width: auto;
    max-width: none;
    min-height: 48px;
    max-height: none;
    border-radius: 32px;
    padding: 12px 20px;
  }

  .language-switcher .lang-emoji {
    font-size: 22px;
  }

  .language-switcher .lang-text {
    display: inline;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    min-height: 56px;
    max-height: 56px;
    border-radius: 50%;
    padding: 0;
  }

  .language-switcher .lang-emoji {
    font-size: 24px;
  }

  .language-switcher .lang-text {
    display: none;
  }
}

.app-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  text-align: center;
  margin: 0 auto 40px auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInDown 0.8s ease-out;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
  width: 100%;
}

.logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  animation: float 3s ease-in-out infinite;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.header h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin: 0;
  padding: 0;
  text-align: center;
}

.back-to-home {
  position: fixed;
  left: 20px;
  top: 20px;
  background: rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  animation: none !important;
  opacity: 1 !important;
  z-index: 1001;
}

.back-to-home:hover {
  background: var(--primary);
  color: white;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pdf-export-top {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  opacity: 0;
  animation: slideInRight 0.6s ease-out 0.5s forwards;
  pointer-events: auto;
}

.export-pdf-btn {
  background: var(--success);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  position: relative;
  z-index: 10000;
}

.export-pdf-btn:hover {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
  transform: translateY(-1px);
}

.export-pdf-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative;
}

.progress-container {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    rgba(30, 41, 59, 0.5) 100%
  );
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 10px;
}

.progress-line {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 4px;
  z-index: 0;
  overflow: hidden;
}

.progress-line-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-dark),
    var(--primary),
    var(--primary-light)
  );
  transition: width 0.6s var(--ease-out-expo);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.progress-line-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-lighter);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-light);
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 3px solid var(--border);
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-muted);
  transition: all var(--transition-base);
  position: relative;
}

.step.active .step-circle {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-glow);
  transform: scale(1.08);
}

.step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step.completed .step-circle::after {
  content: "✓";
  position: absolute;
  font-size: var(--text-lg);
}

.step-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.form-content {
  padding: var(--space-12) var(--space-10);
  min-height: 520px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.5px;
}

.step-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

label {
  display: block;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

label .required {
  color: var(--danger);
  margin-left: 4px;
}

label .optional {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: var(--text-sm);
  margin-left: 6px;
  opacity: 0.7;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--primary-light);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--glow-primary);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2310b981' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

option {
  background-color: #1e293b;
  color: var(--text-primary);
  padding: 8px;
  border: none;
}

option:checked {
  background: linear-gradient(#0d9488, #0d9488);
  background-color: #0d9488;
  color: white;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.unit-toggle {
  margin-bottom: 10px;
}

.unit-toggle select {
  width: auto;
  min-width: 150px;
  /* Force text to display */
  line-height: 1.5;
  text-align: left;
  padding-left: 12px;
  /* Ensure text is visible */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.height-input,
.weight-input {
  margin-top: 8px;
}

.height-input .form-row {
  gap: 10px;
}

.disease-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.disease-card:nth-child(1) {
  animation-delay: 0.02s;
}

.disease-card:nth-child(2) {
  animation-delay: 0.04s;
}

.disease-card:nth-child(3) {
  animation-delay: 0.06s;
}

.disease-card:nth-child(4) {
  animation-delay: 0.08s;
}

.disease-card:nth-child(5) {
  animation-delay: 0.1s;
}

.disease-card:nth-child(6) {
  animation-delay: 0.12s;
}

.disease-card:nth-child(7) {
  animation-delay: 0.14s;
}

.disease-card:nth-child(8) {
  animation-delay: 0.16s;
}

.disease-card:nth-child(9) {
  animation-delay: 0.18s;
}

.disease-card:nth-child(10) {
  animation-delay: 0.2s;
}

.disease-card:nth-child(11) {
  animation-delay: 0.22s;
}

.disease-card:nth-child(12) {
  animation-delay: 0.24s;
}

.disease-card:nth-child(13) {
  animation-delay: 0.26s;
}

.disease-card:nth-child(14) {
  animation-delay: 0.28s;
}

.disease-card:nth-child(15) {
  animation-delay: 0.3s;
}

.disease-card:nth-child(16) {
  animation-delay: 0.32s;
}

.disease-card:nth-child(17) {
  animation-delay: 0.34s;
}

.disease-card:nth-child(18) {
  animation-delay: 0.36s;
}

.disease-card:nth-child(19) {
  animation-delay: 0.38s;
}

.disease-card:nth-child(20) {
  animation-delay: 0.4s;
}

.disease-card {
  background: var(--bg-card);
  /* Removed backdrop-filter for better performance */
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.15s ease,
    background 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  animation: fadeInScale 0.25s ease-out both;
  will-change: transform;
}

.disease-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 24px var(--glow-primary);
  transform: translateY(-4px) scale(1.01);
  background: var(--bg-card-hover);
}

.disease-card.selected {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(16, 185, 129, 0.05)
  );
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 24px var(--glow-primary);
}

.disease-card .card-content {
  flex: 1;
}

.disease-card h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
  color: var(--text-primary);
}

.disease-card .inheritance-type {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.disease-card.selected .inheritance-type {
  color: var(--primary-light);
  font-weight: 600;
}

.info-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: var(--primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  padding: 0;
  font-size: var(--text-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  flex-grow: 0;
  align-self: center;
  margin-left: 12px;
  line-height: 1;
}

.info-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
  transform: scale(1.05);
}

.info-btn:active {
  transform: scale(0.9);
}

/* Info Helper Arrow */
.info-helper-arrow {
  position: absolute;
  top: -55px;
  right: 0px;
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 100;
  pointer-events: none;
  animation: bounceArrow 1.5s ease-in-out infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-helper-arrow.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.info-helper-text {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.info-helper-arrow-icon {
  font-size: 26px;
  color: #10b981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.9);
  line-height: 1;
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Hide arrow on mobile to avoid clutter */
@media (max-width: 768px) {
  .info-helper-arrow {
    display: none !important;
  }
}

.family-member {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  animation: slideInLeft 0.4s ease-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.family-member:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
  transform: translateX(2px);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.family-member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.family-member-title {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.remove-btn {
  background: var(--danger);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 600;
  width: auto;
  max-width: 90px;
  flex-shrink: 0;
  white-space: nowrap;
}

.remove-btn:hover {
  background: #b91c1c;
}

.add-family-btn {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  border: 2px dashed var(--primary);
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  font-size: var(--text-base);
  position: relative;
  overflow: hidden;
}

.add-family-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.add-family-btn:hover::before {
  width: 400px;
  height: 400px;
}

.add-family-btn:hover {
  background: var(--primary);
  color: white;
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.add-family-btn:active {
  transform: translateY(0);
}

.button-group {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
}

/* Removed - buttons should be visible on step 4 */
/* .form-content:has(.form-step[data-step="4"].active) .button-group {
  display: none;
} */

button {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-smooth),
    box-shadow var(--transition-smooth), background var(--transition-base);
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-sm), 0 0 0 0 var(--glow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--glow-primary);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: var(--shadow-md);
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.btn-secondary {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-light);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.results-container {
  display: none;
}

.results-container.active {
  display: block;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.results-header {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary),
    var(--primary-light)
  );
  color: white;
  padding: var(--space-12) var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.results-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.results-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.risk-score {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  margin: var(--space-5) 0;
  animation: scaleIn 0.3s ease;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.risk-category {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.3s ease 0.1s both;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
}

.risk-category:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.3);
}

.results-body {
  padding: var(--space-10);
}

.result-section {
  margin-bottom: var(--space-10);
}

.result-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.result-section h3::before {
  content: "";
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
}

.info-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInScale 0.5s ease-out both;
}

.info-card:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.info-card h4 {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: var(--text-base);
}

.info-card p {
  color: #f1f5f9 !important;
  line-height: 1.8;
  font-size: var(--text-base);
  display: block;
  min-height: 40px;
}

.comparison-bar {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}

.bar-container {
  height: 28px;
  background: #334155;
  border-radius: 6px;
  position: relative;
  margin-top: 12px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-dark),
    var(--primary),
    var(--primary-light)
  );
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.bar-label {
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.factor-list {
  list-style: none;
  display: block;
  width: 100%;
}

.factor-item {
  background: #1b2738;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid var(--border);
  min-height: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.5s ease-out both;
}

.factor-item:nth-child(1) {
  animation-delay: 0.1s;
}

.factor-item:nth-child(2) {
  animation-delay: 0.2s;
}

.factor-item:nth-child(3) {
  animation-delay: 0.3s;
}

.factor-item:nth-child(4) {
  animation-delay: 0.4s;
}

.factor-item:nth-child(5) {
  animation-delay: 0.5s;
}

.factor-item:hover {
  transform: translateX(3px);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.factor-name {
  font-weight: 600;
  color: #f1f5f9 !important;
  display: block;
  font-size: var(--text-base);
}

.factor-impact {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-high {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.impact-moderate {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.impact-low {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.recommendations {
  background: rgba(16, 185, 129, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--primary-light);
  border-radius: 8px;
  padding: 24px;
}

.recommendations ul {
  margin-top: 15px;
  padding-left: 28px;
}

.recommendations li {
  margin-bottom: 14px;
  color: #f1f5f9 !important;
  line-height: 1.8;
  font-size: var(--text-base);
  display: list-item;
}

.disclaimer {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15),
    rgba(217, 119, 6, 0.15)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 5px solid var(--warning);
  padding: 24px;
  border-radius: 16px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.disclaimer h4 {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-lg);
}

.disclaimer p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.8;
}

.restart-btn,
.action-buttons button {
  width: 100%;
  margin-top: 28px;
  position: relative;
  overflow: hidden;
}

.restart-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.restart-btn:hover::before {
  width: 500px;
  height: 500px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.action-buttons .restart-btn {
  max-width: 400px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .app-container {
    padding: 20px 10px;
  }

  .pdf-export-top {
    top: 15px;
    right: 15px;
  }

  .export-pdf-btn {
    padding: 10px 16px;
    font-size: var(--text-sm);
  }

  .export-pdf-btn span {
    display: none;
  }

  .header {
    margin: 0 auto 30px auto;
    width: 100%;
  }

  .logo-container {
    gap: 15px;
    width: 100%;
    margin: 0 auto 15px auto;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .header h1 {
    font-size: var(--text-4xl);
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .header .tagline {
    font-size: var(--text-base);
    text-align: center;
    width: 100%;
    padding: 0 10px;
  }

  .back-to-home {
    position: fixed;
    left: 15px;
    right: auto;
    top: 15px;
    transform: none;
    padding: 0 !important;
    font-size: 0 !important;
    z-index: 1001;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    text-indent: -9999px;
    overflow: hidden;
  }

  .back-to-home::before {
    content: "←";
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary);
    text-indent: 0;
    position: absolute;
    line-height: 1;
  }

  .toast.nav-toast {
    min-width: auto;
    max-width: calc(100vw - 40px);
    left: 20px;
    right: 20px;
    bottom: 90px;
    padding: 10px 16px;
    gap: 12px;
  }

  .toast.nav-toast .toast-message {
    font-size: var(--text-sm);
  }

  .toast.nav-toast .toast-btn {
    padding: 8px 20px;
    font-size: var(--text-sm);
  }

  .form-content {
    padding: 35px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .disease-grid {
    grid-template-columns: 1fr;
  }

  .family-member-header {
    gap: 20px;
  }

  .remove-btn {
    padding: 8px 14px;
    font-size: var(--text-sm);
    flex-shrink: 0;
    margin-left: auto;
  }

  .step-label {
    font-size: var(--text-xs);
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: var(--text-sm);
  }

  .risk-score {
    font-size: var(--text-4xl);
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .step-title {
    font-size: var(--text-2xl);
  }

  .progress-container {
    padding: 24px 20px;
  }

  .progress-line {
    top: 18px;
  }

  .results-body {
    padding: 28px 24px;
  }

  .button-group {
    flex-direction: column;
  }

  button {
    width: 100%;
    min-height: 48px;
    font-size: var(--text-base);
  }

  input[type="text"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    min-height: 48px;
    font-size: var(--text-base);
  }

  .disease-card {
    padding: 18px;
    min-height: 100px;
  }

  .disease-card h4 {
    font-size: var(--text-base);
  }

  .card {
    border-radius: 12px;
    margin: 0 8px;
  }

  .form-group {
    margin-bottom: 24px;
  }

  label {
    font-size: var(--text-base);
    margin-bottom: 8px;
  }
}

svg defs {
  display: none;
}

.error-container {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15),
    rgba(220, 38, 38, 0.15)
  );
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #fca5a5;
  font-weight: 500;
  display: none;
  animation: shakeError 0.5s ease-in-out;
}

.error-container.show {
  display: block;
}

.error-container ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.error-container li {
  margin-bottom: 4px;
}

@keyframes shakeError {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
  opacity: 0.8;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes languageHover {
  0% {
    transform: translateY(0) rotateZ(0deg);
  }

  50% {
    transform: translateY(-3px) rotateZ(5deg);
  }

  100% {
    transform: translateY(0) rotateZ(0deg);
  }
}

.language-switcher {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100000;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.3),
    rgba(13, 148, 136, 0.35)
  );
  border-radius: 32px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(13, 148, 136, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(13, 148, 136, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideDownFade 0.6s ease-out;
  width: auto;
  height: auto;
  min-height: 52px;
  cursor: pointer;
}

.language-switcher .lang-emoji {
  font-size: 24px;
  line-height: 1;
  margin: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-switcher .lang-text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.language-switcher:hover {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.45),
    rgba(13, 148, 136, 0.5)
  );
  border: 2px solid rgba(13, 148, 136, 0.9);
  box-shadow: 0 14px 50px rgba(13, 148, 136, 0.8);
  transform: translateY(-3px) scale(1.05);
}

.language-switcher:hover .lang-emoji {
  animation: languageHover 0.6s ease-in-out;
}

.language-switcher select {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 16px;
  z-index: 10;
  left: 0;
  top: 0;
}

.language-switcher option {
  background: rgba(20, 20, 40, 0.9);
  color: white;
  padding: 12px 8px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.language-switcher option:last-child {
  border-bottom: none;
}

.language-switcher option:checked {
  background: rgba(13, 148, 136, 0.8);
  color: white;
  font-weight: 600;
}

.language-switcher option:hover {
  background: rgba(13, 148, 136, 0.6);
}

.homepage-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-8);
  position: relative;
  z-index: var(--z-base);
}

.homepage-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.hero-section {
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.hero-logo {
  width: 80px;
  height: 80px;
  animation: fadeInDown 0.8s var(--ease-out-expo);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--primary);
  margin-bottom: var(--space-6);
  text-align: center;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
  text-shadow: 0 0 60px var(--glow-primary);
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-content-blur {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  margin: 0 auto;
  max-width: 800px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
  box-shadow: var(--shadow-lg);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-cta {
  text-align: center;
}

.cta-icon {
  margin-left: var(--space-2);
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: var(--text-lg);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 30px var(--glow-primary);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 40px var(--glow-primary);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

.intro-section {
  padding: 0;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.intro-content {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 2rem 3rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.15);
}

.intro-content p {
  font-size: var(--text-lg);
  line-height: 1.9;
  color: #e2e8f0;
  margin: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-content strong {
  color: var(--primary);
  font-weight: 600;
}

.homepage-section {
  padding: var(--space-10) var(--space-8);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  animation: fadeIn 0.8s var(--ease-out-expo);
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--space-8);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
  max-width: 1400px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: transform var(--transition-smooth),
    box-shadow var(--transition-smooth), border-color var(--transition-base);
  animation: slideInUp 0.5s var(--ease-out-quart) both;
}

.step-card:nth-child(1) {
  animation-delay: 0.1s;
}

.step-card:nth-child(2) {
  animation-delay: 0.15s;
}

.step-card:nth-child(3) {
  animation-delay: 0.2s;
}

.step-card:nth-child(4) {
  animation-delay: 0.25s;
}

.step-card:nth-child(5) {
  animation-delay: 0.3s;
}

.step-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 30px var(--glow-primary);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-glow);
}

.step-card h3 {
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.step-card p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

.disorders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.disorder-category {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(51, 65, 85, 0.6);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.15s ease;
  animation: fadeInScale 0.3s ease both;
}

.disorder-category:nth-child(1) {
  animation-delay: 0.1s;
}

.disorder-category:nth-child(2) {
  animation-delay: 0.2s;
}

.disorder-category:nth-child(3) {
  animation-delay: 0.3s;
}

.disorder-category:nth-child(4) {
  animation-delay: 0.4s;
}

.disorder-category:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
  transform: translateY(-3px);
}

.disorder-category h3 {
  color: var(--primary);
  font-size: var(--text-xl);
  margin-bottom: 1.2rem;
  text-align: center;
  font-weight: 600;
}

.disorder-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.disorder-category li {
  color: var(--text-secondary);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.disorder-category li:last-child {
  border-bottom: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: transform var(--transition-smooth),
    box-shadow var(--transition-smooth), border-color var(--transition-base);
  animation: zoomIn 0.4s var(--ease-out-quart) both;
}

.feature-card:nth-child(1) {
  animation-delay: 0.05s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.15s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(5) {
  animation-delay: 0.25s;
}

.feature-card:nth-child(6) {
  animation-delay: 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 30px var(--glow-primary);
}

.feature-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  display: inline-block;
  transition: transform var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

.feature-card h3 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

.cta-section {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(13, 148, 136, 0.1)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  animation: fadeInScale 0.8s var(--ease-out-expo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.cta-section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.copyright-footer {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.copyright-footer p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

@media (max-width: 1200px) and (min-width: 769px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .disorders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .step-card {
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .step-card:hover {
    transform: translateY(-8px) scale(1.02);
  }

  .step-card h3 {
    font-size: var(--text-base);
  }

  .step-card p {
    font-size: var(--text-sm);
  }

  .disease-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }

  .form-content {
    padding: 40px 35px;
  }

  button {
    min-height: 50px;
    font-size: var(--text-base);
  }

  input[type="text"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    min-height: 46px;
    padding: 14px 18px;
    font-size: var(--text-base);
  }

  .step-circle {
    width: 40px;
    height: 40px;
  }

  .step-label {
    font-size: var(--text-sm);
  }
}

@media (max-width: 768px) {
  .homepage-container {
    padding: 2rem 1rem;
  }

  .hero-section {
    padding: 3rem 1rem;
  }

  .hero-section h1 {
    font-size: var(--text-3xl) !important;
  }

  .hero-section h2 {
    font-size: var(--text-xl) !important;
  }

  .hero-section p {
    font-size: var(--text-base) !important;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: var(--text-base);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .disorders-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-section h2 {
    font-size: var(--text-2xl) !important;
  }

  /* Back to home button already styled as circle in tablet media query */
  .back-to-home {
    /* Keep circular shape from tablet styles - perfect circle */
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .intro-content {
    padding: 1.5rem 1.5rem;
  }

  .intro-content p {
    font-size: var(--text-base);
    line-height: 1.7;
  }
}

/* Button loading styles removed - no longer used */

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.disease-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.3);
}

button.step {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  outline: none;
  font: inherit;
  color: inherit;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

button.step:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

button.step:not(:disabled) {
  cursor: pointer;
}

button.step.completed:hover .step-circle {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

button.step:focus-visible {
  outline: none;
}

button.step:focus-visible .step-circle {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group .field-error {
  color: #fca5a5;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.tooltip-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--text-secondary);
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  max-width: 250px;
  white-space: normal;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:focus::after {
  opacity: 1;
  visibility: visible;
}

.toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: linear-gradient(135deg, #10b981, #059669);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.results-container.active ~ .toast,
body:has(.results-container.active) .toast {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.toast.nav-toast {
  padding: 12px 20px;
  min-width: 280px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(51, 65, 85, 0.5);
  animation: none;
}

.toast.nav-toast .toast-message {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f1f5f9;
  flex: 1;
  text-align: left;
}

.toast.nav-toast .toast-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  flex-shrink: 0;
}

.toast.nav-toast .toast-btn:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.5);
  }
}

.disease-info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.disease-info-modal.active {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

.modal-content {
  background: rgba(120, 130, 145, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 48px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  animation: modalSlideUp 0.2s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: var(--text-2xl);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: #0d948d;
  transform: scale(1.05) rotate(90deg);
}

.modal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding-bottom: 24px;
}

.modal-header h1 {
  font-size: var(--text-3xl);
  color: #e2e8f0;
  margin: 0 0 12px 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.modal-category {
  margin: 0;
  font-size: var(--text-sm);
  color: #0d948d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-body {
  color: #cbd5e1;
}

.info-card {
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(13, 148, 136, 0.2);
  transform: translateY(-1px);
}

.info-card:last-child {
  margin-bottom: 0;
}

.info-card-header {
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(13, 148, 136, 0.3);
  padding-bottom: 12px;
}

.info-card-header h3 {
  color: #0d948d;
  font-size: var(--text-base);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.info-text {
  line-height: 1.8;
  font-size: var(--text-base);
  color: #cbd5e1;
  margin: 0;
  letter-spacing: 0.3px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: rgba(13, 148, 136, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.stat-label {
  font-size: var(--text-xs);
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: var(--text-2xl);
  color: #0d948d;
  font-weight: 700;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.3);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.6);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .disease-info-modal {
    padding: 16px;
  }

  .modal-content {
    padding: 32px 24px;
    max-width: 100%;
  }

  .modal-header {
    margin-bottom: 28px;
  }

  .modal-header h1 {
    font-size: var(--text-2xl);
  }

  .modal-close {
    top: 20px;
    right: 20px;
  }

  .info-card {
    padding: 20px;
    margin-bottom: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-text {
    font-size: var(--text-sm);
  }
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1b2738;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  /* Ensure no shadows or borders on container */
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.loading-video {
  width: 400px;
  height: 400px;
  object-fit: contain;
  /* GPU acceleration - videos use hardware decoding by default */
  transform: translateZ(0);
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Remove all borders, shadows, and outlines */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0;
  padding: 0;
  display: block;
}

.loading-text {
  color: #f1f5f9;
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .loading-video {
    width: 300px;
    height: 300px;
    /* Remove all borders, shadows, and outlines on mobile */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .loading-text {
    font-size: var(--text-base);
  }
}

/* Warning Modal Styles - Dark Theme with Glassy Effect */
.warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 18, 32, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.warning-modal.show {
  opacity: 1;
  visibility: visible;
}

.warning-modal-content {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 28px;
  padding: 50px 45px;
  max-width: 650px;
  width: 90%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.warning-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.4),
    rgba(20, 184, 166, 0.2)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-80px) scale(0.92);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.warning-icon {
  font-size: 76px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.8));
  }
}

.warning-title {
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.warning-message {
  font-size: 17px;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 28px;
  text-align: left;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.warning-note {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: rgba(13, 148, 136, 0.15);
  backdrop-filter: blur(10px);
  border-left: 4px solid #0d9488;
  border-radius: 14px;
  text-align: left;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.warning-btn {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff;
  border: none;
  padding: 18px 52px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.warning-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.warning-btn:hover::before {
  left: 100%;
}

.warning-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(13, 148, 136, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
}

.warning-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.45);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .warning-modal-content {
    padding: 40px 28px;
    max-width: 92%;
    border-radius: 20px;
  }

  .warning-icon {
    font-size: 56px;
  }

  .warning-title {
    font-size: 26px;
  }

  .warning-message {
    font-size: 15px;
    line-height: 1.6;
  }

  .warning-note {
    font-size: 13px;
    padding: 15px 16px;
  }

  .warning-btn {
    padding: 14px 36px;
    font-size: 16px;
    width: 100%;
  }
}
