:root {
  /* Colors */
  --primary: #4A90D9;
  --primary-light: #E8F4FD;
  --primary-dark: #2B6CB0;
  
  --secondary: #2CB5A0;
  --secondary-light: #E6F7F5;
  
  --success: #5CB85C;
  --success-light: #E8F8E8;
  
  --warning: #F5A623;
  --warning-light: #FEF6E9;
  
  --danger: #E74C3C;
  --danger-light: #FDEDEC;
  
  --text-main: #1A2332;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --bg-main: #F8FAFB;
  --bg-card: #FFFFFF;
  --bg-alt: #F0F4F8;
  
  --border-light: #E2E8F0;
  --border-focus: #93C5FD;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --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-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ================== RESET & BASE ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

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

.section {
  padding: 80px 0;
  min-height: calc(100vh - 80px);
  animation: fadeIn 0.5s ease;
}

.section-hidden {
  display: none !important;
}

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

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

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

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  text-align: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3a7bc8);
  color: white;
  box-shadow: 0 4px 14px rgba(74, 144, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 217, 0.6);
}

.btn-secondary {
  background-color: white;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: #cbd5e1;
}

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

.btn-outline:hover {
  background: var(--primary-light);
}

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

.btn-danger-outline:hover {
  background: var(--danger-light);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ================== NAVIGATION ================== */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  height: 80px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.logo-accent {
  color: var(--primary);
}

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

.step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.step-btn:hover {
  background-color: var(--bg-alt);
  color: var(--text-main);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  font-size: 12px;
  font-weight: 700;
}

.step-btn.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.step-btn.active .step-num {
  background-color: var(--primary);
  color: white;
}

.step-btn.completed .step-num {
  background-color: var(--success);
  color: white;
}

.step-line {
  width: 16px;
  height: 2px;
  background-color: var(--border-light);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: white;
  padding: 16px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-light);
  flex-direction: column;
  gap: 8px;
}

.nav-mobile-menu.open {
  display: flex;
}

.mobile-step-btn {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  font-weight: 500;
  border: 1px solid transparent;
}

.mobile-step-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ================== HERO SECTION ================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0 100px;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(74, 144, 217, 0.15);
  top: -100px;
  right: -100px;
  animation: float 10s infinite ease-in-out;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(44, 181, 160, 0.1);
  bottom: -50px;
  left: -100px;
  animation: float 8s infinite ease-in-out reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(92, 184, 92, 0.1);
  top: 30%;
  left: 30%;
  animation: float 12s infinite ease-in-out 2s;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: var(--warning-light);
  padding: 16px;
  border-radius: var(--radius-md);
  color: #856404;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.stat-card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.stat-icon-blue { background: var(--primary-light); color: var(--primary); }
.stat-icon-green { background: var(--success-light); color: var(--success); }
.stat-icon-teal { background: var(--secondary-light); color: var(--secondary); }

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 15px;
}

/* ================== SECTION HEADERS ================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--text-main);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
}

/* ================== SYMPTOM ASSESSMENT (STEP 1) ================== */
.question-progress {
  max-width: 800px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-bar {
  flex-grow: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
  min-width: 80px;
  text-align: right;
}

.questions-container {
  max-width: 800px;
  margin: 0 auto;
}

.question-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.question-card:hover {
  box-shadow: var(--shadow-md);
}

.question-card.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-light);
}

.q-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.q-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.q-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.radio-option:hover {
  border-color: var(--primary-light);
  background: var(--bg-main);
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.radio-option input[type="radio"]:checked + .radio-mark {
  border-color: var(--primary);
}

.radio-option input[type="radio"]:checked + .radio-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Chip Groups */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-option {
  cursor: pointer;
}

.chip-option input[type="radio"] {
  display: none;
}

.chip-mark {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: var(--transition);
}

.chip-option:hover .chip-mark {
  border-color: var(--primary-light);
  background: var(--bg-main);
}

.chip-option input[type="radio"]:checked + .chip-mark {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.form-actions {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.validation-msg {
  max-width: 800px;
  margin: 20px auto 0;
  padding: 16px;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
}

/* ================== RISK RESULTS (STEP 2) ================== */
.risk-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.risk-card-main {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.risk-level-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.risk-circle {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
}

.risk-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.risk-circle-svg circle {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.risk-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.risk-score {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.risk-score-label {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.risk-badge {
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-low { background: var(--success-light); color: var(--success); }
.risk-medium { background: var(--warning-light); color: var(--warning); }
.risk-high { background: rgba(230, 126, 34, 0.1); color: #e67e22; }
.risk-very-high { background: var(--danger-light); color: var(--danger); }

.risk-details {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 24px;
}

.risk-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.risk-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.risk-detail-item:first-child {
  padding-top: 0;
}

.risk-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.risk-detail-value {
  font-weight: 700;
  color: var(--text-main);
}

.risk-description-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.risk-desc-title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

#risk-recommendations p {
  margin-bottom: 16px;
}

#risk-recommendations ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

#risk-recommendations li {
  margin-bottom: 8px;
}

.medical-disclaimer {
  max-width: 1000px;
  margin: 0 auto 40px;
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: #856404;
}

/* ================== SIMULATION (STEP 3) ================== */
.simulation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.info-card, .simulation-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--primary);
}

.info-card p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.info-card strong {
  color: var(--text-main);
}

.sim-form-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.sim-form-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.sim-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
}

.form-input {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: var(--transition);
  background: var(--bg-main);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: white;
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
}

.sim-results {
  max-width: 1000px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.5s ease;
}

.sim-results-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
}

.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.sim-result-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid var(--border-light);
}

.sim-result-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.sim-result-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.sim-result-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-main);
}

.sim-result-card.status-good { border-top-color: var(--success); }
.sim-result-card.status-good .sim-result-status { background: var(--success-light); color: var(--success); }

.sim-result-card.status-warning { border-top-color: var(--warning); }
.sim-result-card.status-warning .sim-result-status { background: var(--warning-light); color: var(--warning); }

.sim-result-card.status-danger { border-top-color: var(--danger); }
.sim-result-card.status-danger .sim-result-status { background: var(--danger-light); color: var(--danger); }

/* FINAL RESULTS PANEL */
.final-results-panel {
  max-width: 1000px;
  margin: 0 auto 40px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
}

.final-results-title {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
}

.final-results-content {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.final-risk-summary {
  grid-column: 1 / -1;
  font-size: 18px;
  margin-bottom: 16px;
  line-height: 1.6;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.result-action-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.result-action-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 18px;
}

.result-action-card ul {
  padding-left: 24px;
}

.result-action-card li {
  margin-bottom: 8px;
  position: relative;
}

.result-action-card li::before {
  content: '•';
  position: absolute;
  left: -16px;
  font-weight: bold;
}

.action-do { border-left: 4px solid var(--success); }
.action-do h4 { color: var(--success); }
.action-do li::before { color: var(--success); }

.action-avoid { border-left: 4px solid var(--warning); }
.action-avoid h4 { color: var(--warning); }
.action-avoid li::before { color: var(--warning); }

.action-doctor { border-left: 4px solid var(--primary); }
.action-doctor h4 { color: var(--primary); }
.action-doctor li::before { color: var(--primary); }

.action-emergency {
  grid-column: 1 / -1;
  background: var(--danger-light);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.action-emergency h4 { color: var(--danger); }

.emergency-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.emergency-list li {
  font-weight: 500;
}

.emergency-list li::before {
  color: var(--danger);
}

.specialist-indicator {
  padding: 24px 32px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border-light);
}

.specialist-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.specialist-indicator.recommend-yes .specialist-icon {
  background: var(--warning-light);
  color: var(--warning);
}
.specialist-indicator.recommend-yes .specialist-icon::after { content: '!'; }

.specialist-indicator.recommend-no .specialist-icon {
  background: var(--success-light);
  color: var(--success);
}
.specialist-indicator.recommend-no .specialist-icon::after { content: '✓'; }

.specialist-text {
  font-size: 18px;
  font-weight: 600;
}

/* ================== SUPPORT TABS (STEP 4) ================== */
.support-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 32px;
  scrollbar-width: thin;
}

.support-tabs::-webkit-scrollbar {
  height: 6px;
}
.support-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(74, 144, 217, 0.3);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

/* ================== BREATHING EXERCISES ================== */
.breathing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.breathing-visual-card, .breathing-controls-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.breathing-visual-card h3, .breathing-controls-card h3 {
  margin-bottom: 32px;
  font-size: 22px;
}

.breathing-circle-container {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px dashed var(--border-light);
  border-radius: 50%;
}

.breathing-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--secondary-light) 0%, rgba(44, 181, 160, 0.6) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(44, 181, 160, 0.4);
  transition: transform 4s linear; /* Default, overridden by JS inline styles */
}

.breathing-circle.inhale {
  transform: scale(1.8);
}

.breathing-circle.exhale {
  transform: scale(1);
}

.breathing-text {
  color: white;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
  transition: opacity 0.3s;
}

.breathing-phase {
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
  min-height: 30px;
}

.breathing-timer {
  font-size: 20px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.exercise-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.exercise-option {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.exercise-option:hover {
  border-color: var(--secondary-light);
  background: var(--bg-main);
}

.exercise-option input[type="radio"] {
  margin-top: 4px;
  margin-right: 16px;
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}

.exercise-info strong {
  display: block;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.exercise-info span {
  font-size: 14px;
  color: var(--text-muted);
}

.exercise-option.active {
  border-color: var(--secondary);
  background: var(--secondary-light);
}

.breathing-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================== INHALER GUIDE ================== */
.inhaler-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.inhaler-steps-card, .inhaler-info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.inhaler-steps-card h3, .inhaler-info-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.inhaler-intro {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.inhaler-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inhaler-step {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.inhaler-step:hover {
  border-color: var(--border-light);
}

.inhaler-check {
  display: none;
}

.inhaler-step .check-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  margin-right: 16px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: white;
  flex-shrink: 0;
}

.inhaler-check:checked + .check-mark {
  background: var(--success);
  border-color: var(--success);
}

.inhaler-check:checked + .check-mark::after {
  content: '✓';
  color: white;
  font-weight: bold;
}

.inhaler-step:has(.inhaler-check:checked) {
  background: var(--success-light);
}

.step-content strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-main);
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.inhaler-step:has(.inhaler-check:checked) .step-content strong {
  color: var(--success);
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.error-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--danger-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 500;
}

.reminder-card {
  background: var(--bg-main);
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.reminder-card h4 {
  margin-bottom: 8px;
}

.reminder-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.reminder-inputs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.reminder-inputs .form-group {
  margin-bottom: 0;
  flex-grow: 1;
}

.reminder-status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--success);
  font-weight: 500;
  min-height: 20px;
}

/* ================== SMOKING CESSATION ================== */
.smoking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.smoking-counter-card, .money-saved-card, .smoking-motivation-card, .smoking-journal-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.smoking-counter-card h3, .money-saved-card h3, .smoking-motivation-card h3, .smoking-journal-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quit-date-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quit-stats {
  text-align: center;
  padding: 24px 0;
}

.quit-stat-big {
  margin-bottom: 24px;
}

.quit-days {
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.quit-label {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 600;
}

.quit-stat-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.quit-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quit-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.quit-stat-item span:last-child {
  font-size: 12px;
  color: var(--text-muted);
}

.money-result {
  text-align: center;
  padding: 24px;
  background: var(--success-light);
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.money-big {
  font-size: 36px;
  font-weight: 800;
  color: var(--success);
}

.triggers-list {
  margin-bottom: 24px;
}

.triggers-list h4, .motivation-messages h4, .mini-challenge h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.trigger-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trigger-chip {
  padding: 6px 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
}

.motivation-box {
  padding: 16px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 12px;
  font-style: italic;
  font-weight: 500;
  color: var(--primary-dark);
}

.mini-challenge {
  margin-top: 24px;
  padding: 16px;
  background: var(--warning-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.mini-challenge p {
  font-size: 14px;
  margin-bottom: 12px;
}

.challenge-status {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  resize: vertical;
  margin-bottom: 16px;
  font-size: 16px;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ================== SYMPTOM JOURNAL ================== */
.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
}

.journal-form-card, .journal-history-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.journal-form-card h3, .journal-history-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.journal-slider-group {
  margin-bottom: 24px;
}

.journal-slider-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.slider-val {
  color: var(--primary);
  font-weight: 800;
}

.form-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  outline: none;
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}

.form-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.journal-extras {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
}

.toggle-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.toggle-option input[type="checkbox"] {
  display: none;
}

.toggle-mark {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  margin-right: 12px;
  transition: 0.3s;
}

.toggle-mark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-option input:checked + .toggle-mark {
  background: var(--primary);
}

.toggle-option input:checked + .toggle-mark::after {
  transform: translateX(20px);
}

.journal-entries {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.journal-entries::-webkit-scrollbar { width: 6px; }
.journal-entries::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 16px;
}

.journal-entry {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--primary);
  position: relative;
}

.journal-entry.has-flareup {
  border-left-color: var(--danger);
  background: var(--danger-light);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.entry-date {
  font-weight: 700;
  font-size: 16px;
}

.btn-delete-entry {
  color: var(--text-light);
  padding: 4px;
}

.btn-delete-entry:hover {
  color: var(--danger);
}

.entry-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.entry-stat {
  font-size: 12px;
  padding: 4px 8px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-high { color: var(--danger); border-color: rgba(231, 76, 60, 0.3); }

.entry-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.entry-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.tag-med { background: var(--primary-light); color: var(--primary); }
.tag-flare { background: var(--danger); color: white; }

.entry-notes {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.flareup-warning {
  margin-top: 24px;
  padding: 16px;
  background: var(--danger-light);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

/* ================== EMERGENCY ================== */
.emergency-grid {
  max-width: 800px;
  margin: 0 auto;
}

.emergency-main-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.15);
  border-top: 6px solid var(--danger);
  text-align: center;
}

.emergency-icon-big {
  width: 80px;
  height: 80px;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.emergency-main-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--danger);
}

.emergency-main-card > p {
  font-size: 18px;
  margin-bottom: 32px;
}

.emergency-signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  margin-bottom: 40px;
}

.emergency-sign {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
}

.sign-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.sign-critical {
  background: var(--danger);
  color: white;
}

.emergency-sign strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.emergency-sign p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.emergency-call-big {
  background: var(--danger);
  color: white;
  padding: 32px;
  border-radius: var(--radius-md);
  animation: pulse 2s infinite;
}

.emergency-call-big strong {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(231, 76, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* ================== EDUCATION CENTER ================== */
.education-grid {
  max-width: 800px;
  margin: 0 auto;
}

.edu-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  text-align: center;
}

.edu-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.edu-intro {
  color: var(--text-muted);
  font-size: 16px;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: white;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--bg-main);
}

.accordion-header svg {
  transition: transform 0.3s;
}

.accordion-header.active svg {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
}

.accordion-body.active {
  max-height: 1000px; /* arbitrary large value */
}

.accordion-body p, .accordion-body ul, .accordion-body .faq-item {
  padding: 0 24px 20px;
}

.accordion-body ul {
  list-style: disc;
  padding-left: 44px;
}

.accordion-body li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.accordion-body p {
  color: var(--text-muted);
}

.faq-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
}

/* ================== CALCULATORS (STEP 5) ================== */
.calculators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.calc-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.calc-header {
  padding: 20px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.calc-header h3 {
  font-size: 16px;
  margin: 0;
  color: var(--text-main);
}

.calc-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.calc-body > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Symptom Score specific */
.symptom-score-slider {
  margin-bottom: 20px;
  text-align: center;
}

.score-slider {
  margin-bottom: 8px;
}

.score-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.score-display {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.score-history {
  margin-top: 16px;
  display: flex;
  gap: 4px;
  height: 40px;
  align-items: flex-end;
}

.history-bar {
  flex-grow: 1;
  background: var(--primary-light);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: 0.3s;
}

/* Water tracker specific */
.water-tracker {
  text-align: center;
}

.water-glasses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.water-glass {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  filter: grayscale(1);
  opacity: 0.5;
}

.water-glass.filled {
  filter: grayscale(0);
  opacity: 1;
  background: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.1);
}

.water-count {
  font-size: 18px;
  font-weight: 700;
}

.water-count span {
  color: var(--primary);
  font-size: 24px;
}

/* Flareup Counter specific */
.flareup-counter {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.flareup-list {
  flex-grow: 1;
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.flareup-item {
  padding: 4px 8px;
  font-size: 14px;
  border-bottom: 1px solid var(--bg-main);
  display: flex;
  justify-content: space-between;
}

.flareup-total {
  text-align: center;
  font-size: 16px;
  background: var(--danger-light);
  color: var(--danger);
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* Checkup & Savings Results */
.checkup-result, .savings-result {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

.checkup-result.urgent {
  background: var(--danger-light);
  color: var(--danger);
}

.savings-result span {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
  margin-top: 4px;
}

/* Timer Options */
.timer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.timer-btn {
  padding: 8px;
  border: 1px solid var(--border-light);
  background: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s;
}

.timer-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.timer-display {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.timer-controls {
  display: flex;
  gap: 8px;
}

.timer-controls .btn {
  flex: 1;
}

/* Data Management */
.data-management {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px dashed var(--border-light);
}

.data-management h3 {
  margin-bottom: 8px;
}

.data-management p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.data-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ================== FOOTER ================== */
.site-footer {
  background: white;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 20px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-disclaimer {
  max-width: 500px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-light);
}

/* ================== TOAST ================== */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
  animation: slideInRight 0.3s ease forwards;
  border-left: 4px solid var(--text-main);
}

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

.toast.hiding {
  animation: slideOutRight 0.3s ease forwards;
}

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

/* ================== MODAL & CONFIRM ================== */
.modal-overlay, .confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.modal-overlay.active, .confirm-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  position: relative;
  transform: translateY(20px);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-main);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.modal-body {
  padding: 40px;
  overflow-y: auto;
}

/* Last result modal specific styling */
.modal-body .risk-card-main {
  box-shadow: none;
  border: 1px solid var(--border-light);
}

.confirm-dialog {
  background: white;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-hover);
  transform: scale(0.9);
  transition: 0.3s ease;
}

.confirm-overlay.active .confirm-dialog {
  transform: scale(1);
}

.confirm-icon {
  width: 64px;
  height: 64px;
  background: var(--warning-light);
  color: var(--warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-dialog h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.confirm-dialog p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.confirm-actions .btn {
  flex: 1;
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .calculators-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-results-grid { grid-template-columns: repeat(2, 1fr); }
  .final-results-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  
  /* Nav Mobile */
  .nav-stepper { display: none; }
  .nav-mobile-toggle { display: block; }
  
  /* Hero Mobile */
  .hero-title { font-size: 36px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  
  /* Grids Mobile */
  .risk-results-grid, 
  .simulation-grid, 
  .breathing-grid, 
  .inhaler-grid, 
  .smoking-grid, 
  .journal-grid, 
  .calculators-grid {
    grid-template-columns: 1fr;
  }
  
  /* Forms Mobile */
  .sim-form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; gap: 16px; }
  .form-actions .btn { width: 100%; justify-content: center; }
  
  /* Other adjustments */
  .risk-circle { width: 150px; height: 150px; }
  .risk-score { font-size: 36px; }
  .emergency-signs { grid-template-columns: 1fr; }
  .sim-results-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 24px; }
  
  .modal-body { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .question-card { padding: 20px; }
  .q-title { font-size: 18px; }
  .breathing-circle-container { width: 200px; height: 200px; }
  .breathing-circle { width: 100px; height: 100px; }
  .quit-days { font-size: 48px; }
  .emergency-call-big strong { font-size: 28px; }
  .data-actions { flex-direction: column; }
}
