/* ============================================
   IVF DATE CALCULATOR - MAIN STYLESHEET
   Health/Fertility - Purple/Lavender Theme
   ============================================ */

:root {
  --primary: #a855f7;
  --primary-dark: #9333ea;
  --primary-light: #c084fc;
  --primary-bg: #faf5ff;
  --secondary: #7c3aed;
  --accent: #d946ef;
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --error: #ef4444;
  --error-bg: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--gray-800); background: var(--gray-50); min-height: 100vh; display: flex; flex-direction: column; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--gray-900); }
h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary); text-decoration: underline; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.content-narrow { max-width: 800px; margin: 0 auto; }
main { flex: 1; padding: 2rem 0 3rem; }

/* Header */
.header { background: white; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; color: var(--gray-900); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--primary-dark); }
.logo-icon { width: 32px; height: 32px; color: var(--primary); }
.nav-desktop { display: flex; align-items: center; gap: 1.5rem; }
.nav-desktop a { font-size: 0.9375rem; font-weight: 500; color: var(--gray-600); padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: all 0.15s ease; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary-dark); text-decoration: none; border-bottom-color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--gray-700); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border-bottom: 1px solid var(--gray-200); padding: 1rem; box-shadow: var(--shadow-lg); }
.nav-mobile.active { display: block; }
.nav-mobile a { display: block; padding: 0.5rem 1rem; color: var(--gray-700); font-weight: 500; border-radius: var(--radius-md); }
.nav-mobile a:hover { background: var(--gray-100); text-decoration: none; }
@media (max-width: 768px) { .nav-desktop { display: none; } .nav-toggle { display: block; } }

.intro-text { font-size: 1.125rem; color: var(--gray-600); margin-bottom: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Calculator Card */
.calculator-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Tabs */
.calc-tabs { display: flex; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.calc-tab { flex: 1; min-width: 0; padding: 0.875rem 0.5rem; font-size: 0.75rem; font-weight: 500; color: var(--gray-600); background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; transition: all 0.15s ease; border-bottom: 3px solid transparent; }
.calc-tab:hover { color: var(--gray-800); background: var(--gray-50); }
.calc-tab.active { color: var(--primary-dark); background: white; border-bottom-color: var(--primary); }
.calc-tab svg { width: 20px; height: 20px; }
.calc-tab-label { white-space: nowrap; font-size: 0.75rem; }
@media (min-width: 400px) {
  .calc-tab { padding: 0.875rem 0.75rem; font-size: 0.8125rem; }
  .calc-tab-label { font-size: 0.8125rem; }
}

.calc-panel { display: none; padding: 1.25rem; }
.calc-panel.active { display: block; }

/* Form */
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); }
.form-hint { font-size: 0.75rem; color: var(--gray-500); }

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  cursor: pointer;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); cursor: text; }

/* Date input - make fully clickable */
input[type="date"].form-input {
  cursor: pointer;
  -webkit-appearance: none;
  position: relative;
}
input[type="date"].form-input::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  color: transparent;
  background: transparent;
  cursor: pointer;
}
input[type="date"].form-input::-webkit-inner-spin-button,
input[type="date"].form-input::-webkit-clear-button {
  display: none;
}

.form-select {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  font-size: 1rem;
  color: var(--gray-800);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }

/* Radio */
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-option { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.625rem 0.875rem; border: 1px solid var(--gray-300); border-radius: var(--radius-md); transition: all 0.15s ease; font-size: 0.875rem; }
.radio-option:hover { border-color: var(--primary-light); background: var(--primary-bg); }
.radio-option:has(input:checked) { border-color: var(--primary); background: var(--primary-bg); }
.radio-option input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* Calculate Button */
.calculate-btn { width: 100%; height: 48px; margin-top: 1rem; font-size: 1rem; font-weight: 600; color: white; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border: none; border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.15s ease; box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.35); }
.calculate-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px 0 rgba(168, 85, 247, 0.45); }
.calculate-btn svg { width: 20px; height: 20px; }

/* Results */
.results-section { display: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); max-width: 800px; margin-left: auto; margin-right: auto; }
.results-section.visible { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.result-primary { text-align: center; padding: 1.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary-bg) 0%, #f3e8ff 100%); border-radius: var(--radius-lg); border: 2px solid var(--primary-light); }
.result-label { font-size: 0.875rem; font-weight: 500; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.result-value { font-size: 2rem; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.result-sublabel { font-size: 1rem; color: var(--gray-600); margin-top: 0.5rem; }

/* Progress Bar */
.progress-container { margin: 1.5rem 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--gray-600); margin-bottom: 0.5rem; }
.progress-bar { height: 12px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: var(--radius-full); transition: width 0.5s ease; }

/* Results Grid */
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1rem; }
.results-grid-3 { grid-template-columns: repeat(3, 1fr); }
.results-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) { .results-grid, .results-grid-3, .results-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.result-item { padding: 1rem; background: var(--gray-50); border-radius: var(--radius-md); text-align: center; }
.result-item-label { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.result-item-value { font-size: 1.125rem; font-weight: 600; color: var(--gray-800); }

/* Milestones */
.milestones-list { margin-top: 1.5rem; }
.milestones-title { font-size: 1rem; font-weight: 600; color: var(--gray-800); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.milestone-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.625rem 0.875rem; border-left: 3px solid var(--gray-200); margin-left: 0.25rem; margin-bottom: 0.25rem; transition: all 0.15s ease; }
.milestone-item.completed { border-left-color: var(--success); background: var(--success-bg); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.milestone-item.current { border-left-color: var(--primary); background: var(--primary-bg); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.milestone-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 600; flex-shrink: 0; }
.milestone-item.completed .milestone-icon { background: var(--success); color: white; }
.milestone-item.current .milestone-icon { background: var(--primary); color: white; }
.milestone-item:not(.completed):not(.current) .milestone-icon { background: var(--gray-200); color: var(--gray-500); }
.milestone-content { flex: 1; min-width: 0; }
.milestone-name { font-size: 0.875rem; font-weight: 500; color: var(--gray-800); }
.milestone-date { font-size: 0.75rem; color: var(--gray-500); }
.milestone-weeks { font-size: 0.6875rem; color: var(--gray-400); margin-left: auto; background: var(--gray-100); padding: 0.25rem 0.5rem; border-radius: var(--radius-full); }

/* Disclaimer */
.disclaimer { margin-top: 1.5rem; padding: 1rem; background: var(--warning-bg); border-radius: var(--radius-lg); border-left: 4px solid var(--warning); }
.disclaimer-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.disclaimer p { font-size: 0.8125rem; color: var(--gray-600); margin: 0; }

/* Content Section */
.content-section { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 1.5rem; margin-bottom: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.content-section h2 { margin-top: 0; }
.content-section h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary); margin-top: 0.5rem; border-radius: var(--radius-full); }

/* Tables */
.table-responsive { overflow-x: auto; margin: 1.5rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.data-table th { font-weight: 600; color: var(--gray-700); background: var(--gray-50); }
.data-table td { color: var(--gray-600); }
.data-table tbody tr:hover { background: var(--gray-50); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question { width: 100%; padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; font-weight: 500; text-align: left; color: var(--gray-800); background: var(--gray-50); border: none; cursor: pointer; }
.faq-question:hover { background: var(--gray-100); }
.faq-question svg { width: 18px; height: 18px; color: var(--gray-400); transition: transform 0.15s ease; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 1rem; background: white; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.blog-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; transition: all 0.15s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-content { padding: 1.25rem; }
.blog-card-meta { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.blog-card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.blog-card h3 a { color: var(--gray-900); }
.blog-card h3 a:hover { color: var(--primary-dark); text-decoration: none; }
.blog-card p { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 0; }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 2.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand .logo-icon { color: var(--primary-light); }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-nav h4 { color: white; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { font-size: 0.875rem; color: var(--gray-400); }
.footer-nav a:hover { color: white; text-decoration: none; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--gray-800); font-size: 0.8125rem; }

/* ============================================
   ENHANCED RESULTS SECTION
   ============================================ */

/* Trimester Progress Visual */
.trimester-visual { display: flex; height: 44px; border-radius: var(--radius-md); overflow: hidden; margin: 1.25rem 0; border: 1px solid var(--gray-200); }
.trimester-segment { display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: white; transition: all 0.3s ease; position: relative; }
.trimester-segment.first { background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%); flex: 12; }
.trimester-segment.second { background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%); flex: 14; }
.trimester-segment.third { background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%); flex: 14; }
.trimester-segment.inactive { opacity: 0.25; }
.trimester-segment.current { box-shadow: inset 0 0 0 2px white; }
.trimester-marker { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 0.6875rem; color: var(--gray-500); white-space: nowrap; }
@media (max-width: 480px) { .trimester-segment { font-size: 0.6875rem; } }

/* Summary Tables */
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1rem 0; }
.summary-table th, .summary-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.summary-table th { font-weight: 600; color: var(--gray-700); background: var(--gray-50); width: 40%; }
.summary-table td { color: var(--gray-800); }
.summary-table tbody tr:last-child th, .summary-table tbody tr:last-child td { border-bottom: none; }
.summary-table .highlight { background: var(--primary-bg); }
.summary-table .highlight td { font-weight: 600; color: var(--primary-dark); }

/* Results Box */
.results-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; margin: 1rem 0; }
.results-box-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.results-box-title svg { width: 16px; height: 16px; color: var(--primary); }

/* Tips Grid */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0; }
@media (max-width: 600px) { .tips-grid { grid-template-columns: 1fr; } }
.tip-card { display: flex; gap: 0.75rem; padding: 1rem; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.tip-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tip-icon svg { width: 18px; height: 18px; }
.tip-icon.purple { background: var(--primary-bg); color: var(--primary); }
.tip-icon.green { background: var(--success-bg); color: var(--success); }
.tip-icon.blue { background: #dbeafe; color: #3b82f6; }
.tip-icon.orange { background: var(--warning-bg); color: var(--warning); }
.tip-content h4 { font-size: 0.875rem; font-weight: 600; color: var(--gray-800); margin: 0 0 0.25rem 0; }
.tip-content p { font-size: 0.8125rem; color: var(--gray-600); margin: 0; line-height: 1.4; }

/* What This Means Section */
.meaning-section { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border: 1px solid #86efac; border-radius: var(--radius-lg); padding: 1.25rem; margin: 1rem 0; }
.meaning-section h4 { font-size: 0.9375rem; font-weight: 600; color: #166534; margin: 0 0 0.75rem 0; display: flex; align-items: center; gap: 0.5rem; }
.meaning-section h4 svg { flex-shrink: 0; color: #16a34a; }
.meaning-section p { font-size: 0.875rem; color: #15803d; margin: 0 0 0.5rem 0; }
.meaning-section p:last-child { margin-bottom: 0; }
.meaning-section ul { margin: 0.5rem 0 0 0; padding-left: 1.25rem; }
.meaning-section li { font-size: 0.875rem; color: #15803d; margin-bottom: 0.25rem; }

/* Print Button */
.print-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; font-size: 0.8125rem; font-weight: 500; color: var(--gray-600); background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s ease; }
.print-btn:hover { color: var(--gray-800); border-color: var(--gray-400); background: var(--gray-50); }
.print-btn svg { width: 16px; height: 16px; }

/* Formula Display */
.formula-box { background: var(--gray-800); color: #e2e8f0; padding: 1rem 1.25rem; border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 0.8125rem; margin: 1rem 0; overflow-x: auto; }
.formula-box code { color: #a5f3fc; }

/* Key Takeaways in Results */
.key-result { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: white; border: 1px solid var(--gray-200); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-bottom: 0.75rem; }
.key-result-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; }
.key-result-content { flex: 1; }
.key-result-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.03em; }
.key-result-value { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }

/* Section Dividers in Results */
.results-divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }

/* Compact Results Row */
.results-compact { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.result-tag { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; background: var(--gray-100); border-radius: var(--radius-full); font-size: 0.8125rem; color: var(--gray-700); }
.result-tag strong { color: var(--gray-900); }

/* Print Styles */
@media print {
  .header, .footer, .nav-toggle, .nav-mobile, .calculate-btn, .print-btn, .calc-tabs { display: none !important; }
  .calculator-card, .results-section, .content-section { box-shadow: none !important; border: 1px solid #ddd !important; max-width: 100% !important; }
  .results-section { display: block !important; }
  body { background: white !important; }
  .trimester-segment { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .result-primary, .meaning-section { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ============================================
   CHARTS & DATA VISUALIZATIONS
   ============================================ */

/* Stat Cards Grid */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card.purple { border-top: 3px solid var(--primary); }
.stat-card.green { border-top: 3px solid var(--success); }
.stat-card.blue { border-top: 3px solid #3b82f6; }
.stat-card.orange { border-top: 3px solid var(--warning); }
.stat-card.pink { border-top: 3px solid #ec4899; }
.stat-number { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.25rem; }
.stat-card.purple .stat-number { color: var(--primary-dark); }
.stat-card.green .stat-number { color: var(--success); }
.stat-card.blue .stat-number { color: #3b82f6; }
.stat-card.orange .stat-number { color: var(--warning); }
.stat-card.pink .stat-number { color: #ec4899; }
.stat-label { font-size: 0.8125rem; color: var(--gray-500); font-weight: 500; }
.stat-sublabel { font-size: 0.6875rem; color: var(--gray-400); margin-top: 0.25rem; }

/* Horizontal Bar Chart */
.bar-chart { margin: 1.5rem 0; }
.bar-chart-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.bar-chart-label { min-width: 120px; font-size: 0.8125rem; font-weight: 500; color: var(--gray-700); text-align: right; }
@media (max-width: 480px) { .bar-chart-label { min-width: 80px; font-size: 0.75rem; } }
.bar-chart-track { flex: 1; height: 28px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; position: relative; }
.bar-chart-fill { height: 100%; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.5rem; font-size: 0.6875rem; font-weight: 600; color: white; transition: width 0.6s ease; }
.bar-chart-fill.purple { background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.bar-chart-fill.green { background: linear-gradient(90deg, #6ee7b7, var(--success)); }
.bar-chart-fill.blue { background: linear-gradient(90deg, #93c5fd, #3b82f6); }
.bar-chart-fill.orange { background: linear-gradient(90deg, #fcd34d, var(--warning)); }
.bar-chart-fill.pink { background: linear-gradient(90deg, #f9a8d4, #ec4899); }
.bar-chart-fill.red { background: linear-gradient(90deg, #fca5a5, #ef4444); }
.bar-chart-fill.teal { background: linear-gradient(90deg, #5eead4, #14b8a6); }
.bar-chart-value { min-width: 45px; font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); }

/* Donut Chart (CSS-only) */
.donut-chart-container { display: flex; align-items: center; justify-content: center; gap: 2rem; margin: 1.5rem 0; flex-wrap: wrap; }
.donut-chart { width: 160px; height: 160px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.donut-chart-center { width: 100px; height: 100px; border-radius: 50%; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; }
.donut-chart-center .stat-number { font-size: 1.5rem; margin-bottom: 0; }
.donut-chart-center .stat-label { font-size: 0.625rem; }
.donut-legend { display: flex; flex-direction: column; gap: 0.5rem; }
.donut-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--gray-700); }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1.5rem 0; }
.comparison-table th { padding: 0.875rem 1rem; text-align: center; font-weight: 600; color: white; }
.comparison-table th:first-child { text-align: left; background: var(--gray-700); border-radius: var(--radius-md) 0 0 0; }
.comparison-table th:nth-child(2) { background: var(--primary); }
.comparison-table th:nth-child(3) { background: var(--gray-500); }
.comparison-table th:last-child:nth-child(4) { background: #3b82f6; border-radius: 0 var(--radius-md) 0 0; }
.comparison-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200); text-align: center; color: var(--gray-600); }
.comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--gray-800); }
.comparison-table tbody tr:hover { background: var(--gray-50); }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--error); font-weight: 700; }

/* Timeline Visual (Vertical) */
.visual-timeline { position: relative; margin: 2rem 0 2rem 1rem; padding-left: 2rem; border-left: 3px solid var(--primary-light); }
.visual-timeline-item { position: relative; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.visual-timeline-item::before { content: ''; position: absolute; left: -2.45rem; top: 1.25rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid white; box-shadow: 0 0 0 2px var(--primary-light); }
.visual-timeline-item.completed::before { background: var(--success); box-shadow: 0 0 0 2px #6ee7b7; }
.visual-timeline-item .timeline-week { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.visual-timeline-item .timeline-title { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.visual-timeline-item .timeline-desc { font-size: 0.8125rem; color: var(--gray-600); margin: 0; }

/* Highlight Box Variants */
.highlight-box { padding: 1.25rem 1.5rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 1.5rem 0; border-left: 4px solid; }
.highlight-box.purple { background: var(--primary-bg); border-color: var(--primary); }
.highlight-box.green { background: #f0fdf4; border-color: var(--success); }
.highlight-box.blue { background: #eff6ff; border-color: #3b82f6; }
.highlight-box.orange { background: var(--warning-bg); border-color: var(--warning); }
.highlight-box.red { background: var(--error-bg); border-color: var(--error); }
.highlight-box-title { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.highlight-box.purple .highlight-box-title { color: var(--primary-dark); }
.highlight-box.green .highlight-box-title { color: #166534; }
.highlight-box.blue .highlight-box-title { color: #1e40af; }
.highlight-box.orange .highlight-box-title { color: #92400e; }
.highlight-box.red .highlight-box-title { color: #991b1b; }
.highlight-box p, .highlight-box li { font-size: 0.875rem; }

/* Stacked Bar / Segmented Bar */
.segmented-bar { display: flex; height: 36px; border-radius: var(--radius-md); overflow: hidden; margin: 1rem 0; border: 1px solid var(--gray-200); }
.segmented-bar-item { display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 600; color: white; position: relative; transition: flex 0.3s ease; }
.segmented-bar-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.segmented-bar-legend-item { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--gray-600); }
.segmented-bar-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* Icon List */
.icon-list { list-style: none; padding: 0; margin: 1rem 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.625rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; color: var(--gray-700); }
.icon-list li:last-child { border-bottom: none; }
.icon-list-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.75rem; margin-top: 0.125rem; }
.icon-list-icon.purple { background: var(--primary-bg); color: var(--primary); }
.icon-list-icon.green { background: var(--success-bg); color: var(--success); }

/* Two Column Layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

/* Feature Cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.feature-card { padding: 1.25rem; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.feature-card-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.feature-card-icon.purple { background: var(--primary-bg); color: var(--primary); }
.feature-card-icon.green { background: var(--success-bg); color: var(--success); }
.feature-card-icon.blue { background: #dbeafe; color: #3b82f6; }
.feature-card-icon.orange { background: var(--warning-bg); color: var(--warning); }
.feature-card h4 { font-size: 0.9375rem; margin: 0 0 0.375rem 0; color: var(--gray-900); }
.feature-card p { font-size: 0.8125rem; color: var(--gray-600); margin: 0; line-height: 1.5; }

/* Numbered Steps */
.numbered-steps { counter-reset: step; margin: 1.5rem 0; }
.numbered-step { display: flex; gap: 1rem; margin-bottom: 1.25rem; counter-increment: step; }
.numbered-step::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; flex-shrink: 0; margin-top: 0.125rem; }
.numbered-step-content h4 { font-size: 0.9375rem; margin: 0 0 0.25rem 0; color: var(--gray-900); }
.numbered-step-content p { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

/* Data Callout */
.data-callout { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: linear-gradient(135deg, var(--primary-bg) 0%, #f3e8ff 100%); border: 1px solid var(--primary-light); border-radius: var(--radius-lg); margin: 1rem 0; }
.data-callout-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.data-callout-text { font-size: 0.875rem; color: var(--gray-700); }
.data-callout-text strong { color: var(--gray-900); }

/* Mini Progress Bars (inline) */
.mini-progress { display: flex; align-items: center; gap: 0.5rem; }
.mini-progress-bar { flex: 1; height: 8px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.mini-progress-fill { height: 100%; border-radius: var(--radius-full); }
.mini-progress-fill.purple { background: var(--primary); }
.mini-progress-fill.green { background: var(--success); }

/* Print: Charts */
@media print {
  .stat-card, .bar-chart-fill, .segmented-bar-item, .donut-chart { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .stat-card:hover { transform: none; box-shadow: none; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
