/* ===== PIAR 360 — Design System ===== */
/* Fonts loaded via <link> in HTML for non-blocking render */

:root {
  --bg: #f0f7f4;
  --bg-warm: #f8faf9;
  --card: #ffffff;
  --text: #1e3a2f;
  --dark: #0a1f17;
  --muted: #5a7d6e;
  --faint: #8fa99d;
  --border: #d4e5db;
  --border-light: #e8f0ec;
  --brand: #1a6b4a;
  --brand-hover: #145a3d;
  --brand-light: #e6f5ee;
  --brand-50: #f0faf5;
  --accent: #1565c0;
  --accent-hover: #0d47a1;
  --accent-light: #e3f2fd;
  --accent-50: #f5f9ff;
  --teal: #00897b;
  --teal-light: #e0f2f1;
  --amber: #f57f17;
  --amber-light: #fff8e1;
  --rose: #c62828;
  --rose-light: #ffebee;
  --success: #2e7d32;
  --success-light: #e8f5e9;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-brand: 0 8px 30px rgba(26,107,74,0.2);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

::selection { background: rgba(26,107,74,0.15); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-hover); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.font-serif { font-family: var(--font-display); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .md-hide { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-hover); color: #fff; box-shadow: 0 12px 35px rgba(26,107,74,0.3); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px rgba(21,101,192,0.2);
}
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow);
}
.btn-white:hover { box-shadow: var(--shadow-lg); color: var(--brand-hover); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 20px;
}
.btn-ghost:hover { background: var(--border-light); color: var(--dark); }

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }
.btn-icon:hover { background: var(--border-light); }

.btn-ai {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  box-shadow: 0 6px 25px rgba(21,101,192,0.25);
  position: relative;
  overflow: hidden;
}
.btn-ai::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 28px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-bordered { border: 1px solid var(--border); }
.card-brand { border-left: 4px solid var(--brand); }
.card-accent { border-left: 4px solid var(--accent); }
.card-flat { border: none; background: var(--bg-warm); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark);
}
.nav-logo span { color: var(--brand); }
.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); padding: 8px; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(170deg, #0a2e1f 0%, #134b35 40%, #1a6b4a 70%, #1565c0 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(21,101,192,0.15);
  filter: blur(80px);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0,137,123,0.15);
  filter: blur(60px);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
/* When hero uses split layout, override hero-content constraints */
.hero-split .hero-content { max-width: none; text-align: left; }
.hero h1 { color: white; margin-bottom: 24px; }
.hero h1 .highlight {
  background: linear-gradient(135deg, #4fc3f7, #81c784);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: center; }
.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  background: linear-gradient(135deg, #fff, #81c784);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 4px; }
/* Hero Split Layout */
.hero-split {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-left {
  flex: 1 1 0%;
  min-width: 0;
  text-align: left;
}
.hero-left h1 { text-align: left; font-size: clamp(1.8rem, 4vw, 3.2rem); }
.hero-left p { margin-left: 0; text-align: left; max-width: 540px; }
.hero-left .hero-badge { display: inline-flex; }
.hero-left .hero-stats { gap: 24px; }
.hero-right {
  flex: 0 0 380px;
  width: 380px;
  min-width: 320px;
}
.hero-form-card {
  background: white;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  width: 100%;
}
.hero-form-card h3 { color: var(--dark); font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 6px; }
.hero-form-card .form-input,
.hero-form-card .form-select {
  border-color: var(--border);
}
.hero-form-card .form-input:focus,
.hero-form-card .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.hero-form-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}

@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .hero-left { text-align: center; }
  .hero-left h1 { text-align: center; }
  .hero-left p { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-left .hero-stats { justify-content: center; flex-wrap: wrap; }
  .hero-right { flex: none; width: 100%; min-width: 0; max-width: 400px; }
}
@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero-stats { flex-direction: column; gap: 20px; }
}

/* ===== PAIN POINTS ===== */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.pain-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pain-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.pain-card h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.pain-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 768px) { .pain-grid { grid-template-columns: 1fr; } }

/* ===== FEATURES ===== */
.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.feature-icon.green { background: var(--brand-light); }
.feature-icon.blue { background: var(--accent-light); }
.feature-icon.teal { background: var(--teal-light); }
.feature-icon.amber { background: var(--amber-light); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card { text-align: center; position: relative; }
.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }

/* ===== DUA SECTION ===== */
.dua-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dua-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--border-light);
  transition: var(--transition);
}
.dua-card:hover { border-color: var(--brand); }
.dua-card .dua-icon { font-size: 2.5rem; margin-bottom: 16px; }
.dua-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.dua-card p { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 768px) { .dua-grid { grid-template-columns: 1fr; } }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #0a2e1f 0%, #1a6b4a 50%, #1565c0 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand .nav-logo, .footer-brand .nav-logo span { color: white; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-links h4 { color: white; font-size: 0.9rem; font-family: var(--font-body); margin-bottom: 12px; }
.footer-links a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.8rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-label .required { color: var(--rose); margin-left: 2px; }
.form-hint { font-size: 0.78rem; color: var(--faint); margin-top: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--card);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--faint); }
.form-textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%235a7d6e'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}
.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  accent-color: var(--brand);
  cursor: pointer;
}
.form-radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-warm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.form-radio:hover { border-color: var(--brand); }
.form-radio.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand); font-weight: 600; }
.form-radio input { display: none; }

.form-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form-switch input { display: none; }
.form-switch .slider {
  width: 48px; height: 26px; background: var(--border); border-radius: 13px; position: relative; transition: var(--transition);
}
.form-switch .slider::after {
  content: ''; position: absolute; width: 22px; height: 22px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.form-switch input:checked + .slider { background: var(--brand); }
.form-switch input:checked + .slider::after { left: 24px; }

/* ===== WIZARD ===== */
.wizard { max-width: 900px; margin: 0 auto; }
.wizard-steps {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  padding: 0 20px;
  flex-wrap: wrap;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-warm);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.wizard-step.active { background: var(--brand); color: white; font-weight: 600; }
.wizard-step.completed { background: var(--brand-light); color: var(--brand); }
.wizard-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
}
.wizard-step.active .step-num { background: rgba(255,255,255,0.2); color: white; }
.wizard-step.completed .step-num { background: var(--brand); color: white; }

.wizard-panel { display: none; animation: fadeUp 0.4s ease; }
.wizard-panel.active { display: block; }
.wizard-footer { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light); }

/* ===== AI PANEL ===== */
.ai-panel {
  background: linear-gradient(135deg, var(--accent-50), var(--teal-light));
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}
.ai-panel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-panel-header .ai-badge {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.ai-panel-header h4 { font-family: var(--font-body); font-size: 0.95rem; }
.ai-panel p { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.ai-result {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--accent);
  font-size: 0.9rem;
}
.ai-loading .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== HEALTH ALERT ===== */
.health-alert {
  background: var(--amber-light);
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 12px 0;
  font-size: 0.88rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.health-alert.info { background: var(--accent-light); border-color: var(--accent); }
.health-alert.success { background: var(--success-light); border-color: var(--success); }
.health-alert .alert-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ===== ADJUSTMENTS TABLE ===== */
.adj-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.adj-table th {
  background: var(--brand);
  color: white;
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.adj-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; vertical-align: top; }
.adj-table tr:last-child td { border-bottom: none; }
.adj-table tr:hover td { background: var(--brand-50); }
.adj-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}
.adj-badge.dua-rep { background: var(--accent-light); color: var(--accent); }
.adj-badge.dua-act { background: var(--brand-light); color: var(--brand); }
.adj-badge.dua-imp { background: var(--teal-light); color: var(--teal); }
.adj-badge.ai { background: linear-gradient(135deg, var(--accent-light), var(--teal-light)); color: var(--accent); }

/* ===== DASHBOARD ===== */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
}
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--dark); }
.stat-card .stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.stat-card .stat-trend { font-size: 0.78rem; font-weight: 600; margin-top: 8px; }
.stat-card .stat-trend.up { color: var(--success); }
.stat-card .stat-trend.down { color: var(--rose); }
@media (max-width: 768px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dash-grid { grid-template-columns: 1fr; } }

.chart-container { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border-light); }
.chart-container h3 { font-size: 1rem; font-family: var(--font-body); margin-bottom: 20px; }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 20px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar {
  width: 100%;
  max-width: 60px;
  border-radius: 6px 6px 0 0;
  transition: var(--transition);
  min-height: 4px;
}
.bar.green { background: linear-gradient(180deg, var(--brand), #2e7d32); }
.bar.blue { background: linear-gradient(180deg, var(--accent), #0d47a1); }
.bar.teal { background: linear-gradient(180deg, var(--teal), #00695c); }
.bar-label { font-size: 0.7rem; color: var(--muted); text-align: center; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 80px; overflow: hidden; }
.bar-value { font-size: 0.78rem; font-weight: 700; color: var(--dark); }

/* ===== APP LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; padding-top: 72px; }
.sidebar {
  width: 260px;
  background: var(--card);
  border-right: 1px solid var(--border-light);
  padding: 24px 0;
  position: fixed;
  top: 72px;
  bottom: 0;
  overflow-y: auto;
  z-index: 50;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-nav li a:hover { background: var(--bg-warm); color: var(--dark); }
.sidebar-nav li a.active { background: var(--brand-light); color: var(--brand); font-weight: 600; border-right: 3px solid var(--brand); }
.sidebar-nav li a .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.sidebar-section { padding: 8px 24px; font-size: 0.72rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 16px; }

.main-content { flex: 1; margin-left: 260px; padding: 32px; min-height: calc(100vh - 72px); }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 4px; }
.page-header p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: var(--transition); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-content { margin-left: 0; padding: 20px; }
}

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-draft { background: var(--amber-light); color: var(--amber); }
.badge-active { background: var(--success-light); color: var(--success); }
.badge-completed { background: var(--accent-light); color: var(--accent); }

/* ===== DATA TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.data-table tr:hover td { background: var(--bg-warm); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { font-size: 1.2rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); padding: 4px; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 88px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  animation: slideIn 0.3s ease;
  min-width: 280px;
  border-left: 4px solid var(--brand);
}
.toast.error { border-left-color: var(--rose); }
.toast.success { border-left-color: var(--success); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.animate-fadeUp { animation: fadeUp 0.6s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, #0a2e1f 0%, #134b35 40%, #1a6b4a 100%);
  padding: 24px;
}
.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 { text-align: center; margin-bottom: 8px; font-size: 1.6rem; }
.auth-card .auth-subtitle { text-align: center; color: var(--muted); margin-bottom: 32px; font-size: 0.9rem; }
.auth-card .auth-footer { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.82rem; color: var(--faint); }

/* ===== UTILITIES ===== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.relative { position: relative; }
