/* ============================================================
   LIFELAB 재무상담 시스템 - 메인 스타일시트
   네이비 + 블루 계열 / 고급 금융 보고서 느낌
============================================================ */

:root {
  --navy: #0d1b3e;
  --navy-deep: #081429;
  --navy-mid: #132244;
  --blue: #1565c0;
  --blue-light: #1976d2;
  --blue-pale: #e3f0fc;
  --teal: #00796b;
  --gold: #c8a951;
  --gold-light: #f5e9c5;
  --gray-50: #f8f9fc;
  --gray-100: #eef1f7;
  --gray-200: #dde3ee;
  --gray-300: #c4cedd;
  --gray-400: #9aabbc;
  --gray-500: #6b7a90;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --white: #ffffff;
  --red: #c62828;
  --red-light: #fdecea;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --shadow-sm: 0 1px 3px rgba(13,27,62,0.08);
  --shadow: 0 4px 16px rgba(13,27,62,0.12);
  --shadow-lg: 0 8px 32px rgba(13,27,62,0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================ HEADER */
.main-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 18px;
}

.logo-main {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.logo-sub {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.nav-link.active { background: var(--blue); color: var(--white); }

.header-right { margin-left: auto; color: rgba(255,255,255,0.6); font-size: 12px; }

/* ============================================================ LAYOUT */
.main-content { padding: 32px 0 60px; }

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

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21,101,192,0.35); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-mid); }

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

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: #d4a832; }

.btn-danger { background: var(--red); color: var(--white); }
.btn-success { background: var(--green); color: var(--white); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--gray-500);
  transition: all 0.15s;
  font-size: 14px;
}
.btn-icon:hover { background: var(--blue-pale); color: var(--blue); }

/* ============================================================ CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h2 i { color: var(--blue); }
.card-link { color: var(--blue); font-size: 12px; font-weight: 600; }
.card-body { padding: 24px; }

/* ============================================================ WELCOME */
.welcome-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1a3568 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  color: var(--white);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200,169,81,0.15) 0%, transparent 70%);
}

.welcome-text h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.welcome-text .highlight { color: var(--gold); }

.welcome-text p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.welcome-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ============================================================ STATS */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s;
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.blue { background: var(--blue-pale); color: var(--blue); }
.stat-icon.navy { background: rgba(13,27,62,0.08); color: var(--navy); }
.stat-icon.teal { background: rgba(0,121,107,0.08); color: var(--teal); }
.stat-icon.gold { background: var(--gold-light); color: #8B6914; }

.stat-number { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--gray-500); }

/* ============================================================ DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-bottom: 24px;
}

.client-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.15s;
}
.client-item:hover { background: var(--gray-50); }
.client-item:last-child { border-bottom: none; }

.client-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.client-meta { flex: 1; }
.client-name { display: block; font-size: 14px; font-weight: 600; color: var(--gray-800); }
.client-info { font-size: 12px; color: var(--gray-500); }
.client-date { font-size: 11px; color: var(--gray-400); margin-right: 8px; }
.client-actions { display: flex; gap: 4px; }

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--gray-400);
}
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; }
.empty-state p { margin-bottom: 16px; }

/* Quick Menu */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.quick-item:hover { background: var(--blue-pale); border-color: var(--blue); transform: translateY(-2px); }

.quick-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
}
.quick-item:hover .quick-icon { background: var(--blue); }
.quick-item span { font-size: 12px; font-weight: 600; color: var(--gray-600); }

/* ============================================================ PRINCIPLES */
.principles-section .card-body {
  padding: 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.principle-item {
  padding: 24px;
  border-right: 1px solid var(--gray-100);
  display: flex;
  gap: 16px;
}
.principle-item:last-child { border-right: none; }

.principle-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
}

.principle-content h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.principle-content p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================ FOOTER */
.main-footer {
  background: var(--navy-deep);
  padding: 24px;
  text-align: center;
  margin-top: auto;
}

.footer-inner p { color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-sub { margin-top: 4px; }

/* ============================================================ FORMS */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
  overflow: hidden;
}

.form-section-header {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-header .section-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
}

.form-section-body { padding: 24px; }

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group.span2 { grid-column: span 2; }

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .required { color: var(--red); }

.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-700);
  font-family: var(--font);
  transition: all 0.2s;
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

select.form-control { cursor: pointer; }

textarea.form-control { resize: vertical; min-height: 80px; }

.form-hint { font-size: 11px; color: var(--gray-400); }

/* ============================================================ TABS */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--gray-500);
  transition: all 0.2s;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

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

/* ============================================================ TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: var(--gray-50);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.data-table tr:hover td { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }

/* ============================================================ BADGES */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.badge-blue { background: var(--blue-pale); color: var(--blue); }
.badge-navy { background: rgba(13,27,62,0.08); color: var(--navy); }
.badge-gold { background: var(--gold-light); color: #7a6010; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }

/* ============================================================ TIMELINE */
.lifecycle-timeline {
  position: relative;
  padding: 40px 0 20px;
  overflow-x: auto;
}

.timeline-track {
  position: relative;
  min-width: 900px;
  padding: 0 40px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--teal));
  transform: translateY(-50%);
  border-radius: 2px;
}

.timeline-ages {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.timeline-age-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.age-dot {
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 50%;
}

.age-dot.current {
  background: var(--gold);
  border-color: var(--gold);
  width: 22px;
  height: 22px;
  box-shadow: 0 0 0 4px rgba(200,169,81,0.3);
}

.age-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
}

.timeline-events-upper,
.timeline-events-lower {
  display: flex;
  position: relative;
  margin-bottom: 8px;
}

.timeline-event-card {
  position: absolute;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  min-width: 90px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.timeline-event-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.timeline-event-card.financial {
  border-color: var(--blue);
  border-top: 3px solid var(--blue);
}

.timeline-event-card.non-financial {
  border-color: var(--teal);
  border-top: 3px solid var(--teal);
}

.timeline-event-card .event-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-event-card.financial .event-type { color: var(--blue); }
.timeline-event-card.non-financial .event-type { color: var(--teal); }

.timeline-event-card .event-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
}

.timeline-event-card .event-amount {
  font-size: 11px;
  color: var(--navy);
  font-weight: 700;
  margin-top: 2px;
}

/* ============================================================ PORTFOLIO PAGE */
.portfolio-page {
  background: var(--gray-50);
}

.portfolio-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.portfolio-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3568 60%, var(--blue) 100%);
  padding: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  page-break-after: avoid;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200,169,81,0.2) 0%, transparent 70%);
}

.portfolio-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.portfolio-section-header {
  background: var(--navy);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-section-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-section-header .section-num {
  background: var(--gold);
  color: var(--navy);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.portfolio-section-body { padding: 28px; }

.analysis-alert {
  background: var(--red-light);
  border: 1.5px solid var(--red);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.analysis-good {
  background: var(--green-light);
  border: 1.5px solid var(--green);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
}

.info-box-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.info-box-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.info-box-sub {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Chart Containers */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.chart-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
}

.chart-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Before After */
.before-after {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 20px;
  align-items: center;
}

.ba-panel {
  border-radius: var(--radius);
  overflow: hidden;
}

.ba-header {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
}

.ba-before .ba-header { background: var(--red-light); color: var(--red); }
.ba-after .ba-header { background: var(--green-light); color: var(--green); }

.ba-body {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-top: none;
  padding: 16px;
}

.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--navy);
}

/* Risk Meter */
.risk-meter { margin: 20px 0; }

.risk-bar-container {
  background: var(--gray-200);
  border-radius: 6px;
  height: 12px;
  position: relative;
  margin: 8px 0;
}

.risk-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s ease;
}

.risk-bar.low { background: var(--green); }
.risk-bar.medium { background: #f57c00; }
.risk-bar.high { background: var(--red); }

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================================ CHECKBOX SECTION */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-item:hover { border-color: var(--blue); background: var(--blue-pale); }
.checkbox-item.checked { border-color: var(--blue); background: var(--blue-pale); }

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  margin-top: 1px;
  flex-shrink: 0;
}

.checkbox-item label {
  cursor: pointer;
}

.checkbox-item label .cb-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 3px;
}

.checkbox-item label .cb-desc {
  font-size: 11px;
  color: var(--gray-500);
}

/* ============================================================ INSURANCE TABLE */
.insurance-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.insurance-row:last-child { border-bottom: none; }

/* ============================================================ CLIENTS PAGE */
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.client-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}
.client-card:hover { box-shadow: var(--shadow); border-color: var(--blue-light); }

.client-card-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.client-card-info { flex: 1; }
.client-card-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.client-card-meta { font-size: 12px; color: var(--gray-500); display: flex; gap: 12px; }
.client-card-actions { display: flex; gap: 8px; }

/* ============================================================ PRINT STYLES */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  body { background: white !important; margin: 0 !important; }

  .main-header, .main-footer, .portfolio-nav, .no-print,
  .btn, .tab-nav { display: none !important; }

  .main-content { padding: 0 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }

  .portfolio-section {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px solid #ccc !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
  }

  .portfolio-hero {
    background: #0d1b3e !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .chart-grid { page-break-inside: avoid; }
  .before-after { page-break-inside: avoid; }

  @page {
    size: A4;
    margin: 15mm 12mm 15mm 12mm;
  }

  .print-page-break {
    page-break-before: always;
    break-before: page;
  }

  .no-page-break {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .portfolio-section-header {
    background: #0d1b3e !important;
  }

  canvas { max-width: 100% !important; }

  h1, h2, h3 { page-break-after: avoid; }
}

/* ============================================================ CONSULTATION PAGE */
.consultation-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 28px 32px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.consultation-header h1 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.consultation-header p { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 4px; }

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
}

.step-item.active { color: var(--navy); }
.step-item.done { color: var(--green); }

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

.step-item.active .step-num { background: var(--navy); color: white; }
.step-item.done .step-num { background: var(--green); color: white; }

.step-separator { flex: 1; height: 2px; background: var(--gray-200); }
.step-item.done + .step-separator { background: var(--green); }

/* ============================================================ FACT FINDING */
.factfinding-event {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.factfinding-event-header {
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.factfinding-event-header:hover { background: var(--blue-pale); }

.factfinding-event-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.factfinding-event-body {
  padding: 20px;
  display: none;
}

.factfinding-event-body.open { display: block; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1200px) {
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; gap: 16px; }
  .main-nav { display: none; }
  .welcome-section { flex-direction: column; padding: 28px 24px; text-align: center; }
  .welcome-actions { flex-direction: column; width: 100%; }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-4 { grid-template-columns: 1fr 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .ba-arrow { display: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-item { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .principle-item:last-child { border-bottom: none; }
}

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.text-navy { color: var(--navy); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-gold { color: #8B6914; }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.divider { height: 1px; background: var(--gray-200); margin: 16px 0; }
.tag {
  display: inline-block;
  background: var(--gray-100);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
}
.tag-blue { background: var(--blue-pale); color: var(--blue); }
.tag-navy { background: rgba(13,27,62,0.08); color: var(--navy); }
.tag-gold { background: var(--gold-light); color: #8B6914; }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-red { background: var(--red-light); color: var(--red); }
