/* ============================================================
   Tender Loving Caregivers — Main Stylesheet
   Design system extracted from platform wireframes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --navy:        #1B2B6B;
  --navy-dark:   #111D4A;
  --navy-light:  #2A3E8F;
  --teal:        #2EC4B6;
  --teal-dark:   #1FA89B;
  --teal-light:  #A8EDE9;
  --teal-xlight: #E6FAF9;
  --sky:         #4B9FE1;
  --sky-light:   #B8D9F5;
  --sky-xlight:  #EBF5FD;
  --mint:        #00BFA6;
  --white:       #FFFFFF;
  --off-white:   #F5F8FF;
  --light-bg:    #EEF2FB;
  --border:      #D6DFF5;
  --mid:         #6B7699;
  --text:        #1A2040;
  --danger:      #E05C5C;
  --success:     #27AE60;
  --yellow:      #F5A623;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== LOGO ===== */
.tlc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.tlc-logo img {
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: 200px;
  display: block;
}

.tlc-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46,196,182,0.35);
}
.tlc-logo .logo-text {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  color: var(--navy);
}
.tlc-logo .logo-text span { color: var(--teal); }
.tlc-logo.light .logo-text { color: white; }
.tlc-logo.sm .logo-icon { width: 30px; height: 30px; font-size: 15px; }
.tlc-logo.sm .logo-text { font-size: 14px; }

/* ===== HEADER ===== */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  box-shadow: 0 2px 8px rgba(17,29,74,0.08);
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a {
  padding: 7px 14px;
  color: var(--mid);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.15s;
}
.header-nav a:hover { color: var(--navy); background: var(--off-white); }
.header-nav a.active { color: var(--teal-dark); background: var(--teal-xlight); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-badge {
  font-size: 11px;
  background: rgba(46,196,182,0.2);
  color: var(--teal);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid rgba(46,196,182,0.3);
}

/* ===== LAYOUT ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: calc(100vh - 60px);
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: white;
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-section {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 16px 10px 5px;
}
.sidebar-item {
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-item:hover { background: var(--off-white); color: var(--text); }
.sidebar-item.active { background: var(--teal-xlight); color: var(--teal-dark); }
.sidebar-item .s-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto;
  background: var(--navy);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}
.sidebar-badge.teal { background: var(--teal); }
.sidebar-profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.sidebar-profile:hover { background: var(--off-white); }
.sidebar-profile > div { min-width: 0; overflow: hidden; }
.profile-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-role { font-size: 11px; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== MAIN CONTENT ===== */
.main-content {
  background: var(--off-white);
  padding: 30px 32px;
  overflow-y: auto;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}
.page-sub { font-size: 13px; color: var(--mid); font-weight: 500; }

/* ===== AVATAR ===== */
.avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.avatar.teal { background: linear-gradient(135deg, var(--teal-light), var(--teal)); }
.avatar.navy { background: linear-gradient(135deg, var(--sky-light), var(--navy)); color: white; }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.md { width: 44px; height: 44px; font-size: 20px; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.avatar.xl { width: 80px; height: 80px; font-size: 36px; }

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--teal-xlight);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

/* ===== METRIC CARDS ===== */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.metric-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.metric-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
}
.metric-icon { font-size: 20px; margin-bottom: 10px; }
.metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 3px;
  color: var(--navy);
}
.metric-label { font-size: 11.5px; color: var(--mid); font-weight: 700; }
.metric-delta {
  font-size: 10.5px;
  font-weight: 800;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 10px;
}
.metric-delta.up { background: #E6FAF9; color: var(--teal-dark); }
.metric-delta.down { background: #FFEEEE; color: var(--danger); }
.metric-delta.neutral { background: var(--off-white); color: var(--mid); }

/* ===== STATUS BADGES ===== */
.badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-block;
}
.badge.open, .badge.active, .badge.approved { background: var(--teal-xlight); color: var(--teal-dark); }
.badge.filled, .badge.matched { background: var(--sky-xlight); color: #1F6DAB; }
.badge.pending { background: #FFF5E6; color: #8B5E00; }
.badge.new { background: #EEF0FF; color: var(--navy); }
.badge.closed, .badge.rejected { background: #FFEEEE; color: var(--danger); }
.badge.declined { background: #f0f0f0; color: var(--mid); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 9px;
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,43,107,0.3); }
.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: white;
}
.btn-teal:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,196,182,0.3); }
.btn-ghost {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--mid);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-xlight); }
.btn-danger {
  background: #FFEEEE;
  color: var(--danger);
  border: 1.5px solid #ffd0d0;
}
.btn-danger:hover { background: var(--danger); color: white; }
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}
.form-label .note { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 10.5px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  background: var(--off-white);
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,0.12);
  background: white;
}
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.form-error { font-size: 11.5px; color: var(--danger); margin-top: 4px; font-weight: 600; }
.form-hint { font-size: 11.5px; color: var(--mid); margin-top: 4px; }

/* ===== SKILL CHIPS ===== */
.chips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--off-white);
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  font-weight: 600;
  transition: all 0.15s;
  user-select: none;
}
.chip.selected { border-color: var(--teal); background: var(--teal-xlight); color: var(--teal-dark); }
.chip-check {
  width: 17px; height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.chip.selected .chip-check { background: var(--teal); border-color: var(--teal); color: white; }

/* ===== AVAILABILITY GRID ===== */
.avail-grid { display: grid; grid-template-columns: 80px repeat(3, 1fr); gap: 5px; }
.avail-header { font-size: 10.5px; font-weight: 800; color: var(--mid); text-align: center; text-transform: uppercase; letter-spacing: 0.4px; padding: 6px; }
.avail-day { font-size: 12px; font-weight: 700; color: var(--text); display: flex; align-items: center; }
.avail-cell {
  border: 1.5px solid var(--border);
  border-radius: 7px;
  height: 34px;
  cursor: pointer;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.avail-cell.on { background: var(--teal); border-color: var(--teal); }
.avail-cell.on::after { content: '✓'; color: white; font-size: 11px; font-weight: 800; }

/* ===== TABLE CARDS ===== */
.table-card { background: white; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 16px; }
.table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-title { font-size: 14px; font-weight: 800; color: var(--navy); }
.table-action { font-size: 12px; color: var(--teal-dark); cursor: pointer; font-weight: 800; text-decoration: none; }
.table-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  transition: background 0.1s;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: var(--off-white); }
.table-row-name { font-weight: 700; flex: 1; color: var(--text); }
.table-row-meta { font-size: 11px; color: var(--mid); margin-top: 1px; }

/* ===== JOB CARDS ===== */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.job-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
}
.job-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,43,107,0.1); }
.job-card-top { height: 5px; background: linear-gradient(90deg, var(--teal), var(--sky)); }
.job-card-header { padding: 16px 18px 0; display: flex; align-items: flex-start; gap: 12px; }
.job-name { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.job-location { font-size: 11.5px; color: var(--mid); display: flex; align-items: center; gap: 3px; font-weight: 600; }
.job-body { padding: 12px 18px; }
.job-desc { font-size: 12.5px; color: var(--mid); line-height: 1.55; margin-bottom: 10px; }
.job-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.job-tag {
  font-size: 10.5px;
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--mid);
  font-weight: 700;
}
.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
}
.job-hours { font-size: 12.5px; font-weight: 800; color: var(--navy); }
.job-hours span { font-weight: 500; color: var(--mid); font-size: 11.5px; }

/* ===== MATCH TAGS ===== */
.match-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.match-tag {
  font-size: 10.5px; font-weight: 800;
  padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.match-tag.schedule { background: var(--teal-xlight); color: var(--teal-dark); }
.match-tag.location { background: var(--sky-xlight); color: #1F6DAB; }
.match-tag.gender { background: #EEF0FF; color: var(--navy); }
.match-tag.skill { background: #FFF5E6; color: #8B5E00; }

/* ===== PRIVACY BANNER ===== */
.privacy-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.privacy-banner .privacy-text strong { font-size: 13px; color: white; display: block; margin-bottom: 2px; }
.privacy-banner .privacy-text p { font-size: 11.5px; color: rgba(255,255,255,0.65); }
.privacy-badge {
  font-size: 11px;
  background: rgba(46,196,182,0.2);
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid rgba(46,196,182,0.3);
  white-space: nowrap;
}

/* ===== NOTIFICATIONS ===== */
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.notif-item:hover { border-color: var(--teal); }
.notif-item.unread { border-left: 3px solid var(--teal); }
.notif-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.notif-icon.match { background: var(--teal-xlight); }
.notif-icon.status { background: var(--sky-xlight); }
.notif-icon.alert { background: #FFF5E6; }
.notif-title { font-size: 13.5px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.notif-desc { font-size: 12px; color: var(--mid); line-height: 1.45; }
.notif-time { font-size: 11px; color: var(--mid); font-weight: 600; white-space: nowrap; }

/* ===== ALERTS ===== */
.alert {
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert.success { background: #E6FAF4; border: 1px solid #A8EDD4; color: #1A7A4B; }
.alert.error { background: #FFEEEE; border: 1px solid #ffcece; color: var(--danger); }
.alert.info { background: var(--sky-xlight); border: 1px solid var(--sky-light); color: #1F6DAB; }
.alert.warning { background: #FFF5E6; border: 1px solid #F5D3A6; color: #8B5E00; }

/* ===== PROGRESS BAR (onboarding) ===== */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}
.progress-step { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--mid); }
.progress-step.done { color: var(--teal-dark); }
.progress-step.current { color: var(--navy); }
.step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
}
.progress-step.done .step-dot { background: var(--teal); color: white; }
.progress-step.current .step-dot { background: var(--navy); color: white; }
.step-line { width: 24px; height: 2px; background: var(--border); flex-shrink: 0; }
.step-line.done { background: var(--teal); }

/* ===== HERO BANNER ===== */
.tlc-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--sky) 100%);
  border-radius: 16px;
  padding: 30px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
}
.tlc-hero::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(46,196,182,0.12);
}
.tlc-hero::after {
  content: '';
  position: absolute; bottom: -20px; right: 60px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(75,159,225,0.15);
}
.tlc-hero-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(46,196,182,0.4);
  position: relative; z-index: 1;
}
.tlc-hero-content { position: relative; z-index: 1; }
.tlc-hero .tagline { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.tlc-hero h1 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; color: white; margin-bottom: 4px; }
.tlc-hero p { font-size: 13px; color: rgba(255,255,255,0.72); }

/* ===== FILTER BAR ===== */
.filter-bar {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-label { font-size: 11px; font-weight: 800; color: var(--mid); text-transform: uppercase; letter-spacing: 0.6px; flex-shrink: 0; }
.filter-pill {
  padding: 6px 13px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12.5px;
  cursor: pointer;
  background: var(--off-white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--text);
  transition: all 0.15s;
}
.filter-pill:hover, .filter-pill.active { border-color: var(--teal); background: var(--teal-xlight); color: var(--teal-dark); }
.filter-search {
  flex: 1;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  background: var(--off-white);
  outline: none;
  min-width: 160px;
  font-weight: 600;
}
.filter-search:focus { border-color: var(--teal); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--mid);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.empty-state p { font-size: 13px; line-height: 1.6; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17,29,74,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal {
  background: white;
  border-radius: 16px;
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(17,29,74,0.25);
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.modal-sub { font-size: 13px; color: var(--mid); margin-bottom: 24px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(46,196,182,0.08);
}
.auth-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(17,29,74,0.3);
  position: relative;
  z-index: 1;
}
.auth-logo { margin-bottom: 28px; }
.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.auth-sub { font-size: 13.5px; color: var(--mid); margin-bottom: 28px; font-weight: 500; }
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mid);
}
.auth-switch a { color: var(--teal-dark); font-weight: 700; }

/* ===== LANDING PAGE ===== */
.landing-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  position: relative;
}
.landing-hero-content::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(46,196,182,0.08) 0%, transparent 70%);
}
.hero-tagline { font-size: 12px; font-weight: 800; color: var(--teal); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 600; color: white; line-height: 1.15; margin-bottom: 18px; }
.hero-title span { color: var(--teal); }
.hero-desc { font-size: 17px; color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.features-section { background: var(--off-white); padding: 80px 40px; }
.features-inner { max-width: 1080px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 800; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.section-sub { font-size: 15px; color: var(--mid); max-width: 560px; line-height: 1.7; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(27,43,107,0.1); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--teal-xlight);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.feature-desc { font-size: 13.5px; color: var(--mid); line-height: 1.65; }

.how-section { background: white; padding: 80px 40px; }
.how-inner { max-width: 1080px; margin: 0 auto; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.how-steps { display: flex; flex-direction: column; gap: 24px; }
.how-step { display: flex; gap: 18px; }
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 15px;
  flex-shrink: 0;
}
.step-content h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.step-content p { font-size: 13.5px; color: var(--mid); line-height: 1.6; }

.cta-section { background: linear-gradient(135deg, var(--navy), var(--navy-light)); padding: 80px 40px; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-title { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 600; color: white; margin-bottom: 14px; }
.cta-desc { font-size: 16px; color: rgba(255,255,255,0.72); margin-bottom: 32px; }

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 30px 40px;
  text-align: center;
  font-size: 13px;
}
.site-footer a { color: var(--teal); }

/* ===== ONBOARDING WRAP ===== */
.onboard-wrap { max-width: 680px; margin: 0 auto; padding: 40px 20px; }

/* ===== PHOTO UPLOAD ===== */
.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 20px;
}
.photo-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 3px 12px rgba(46,196,182,0.3);
  overflow: hidden;
}
.photo-circle img { width: 100%; height: 100%; object-fit: cover; }

/* ===== CAREGIVER PROFILE CARD ===== */
.caregiver-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
}
.caregiver-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,43,107,0.1); }
.caregiver-card-top { height: 5px; background: linear-gradient(90deg, var(--teal), var(--sky)); }
.caregiver-card-body { padding: 18px; }
.caregiver-name { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.caregiver-location { font-size: 12px; color: var(--mid); margin-bottom: 10px; }
.caregiver-bio { font-size: 12.5px; color: var(--mid); line-height: 1.55; margin-bottom: 12px; }
.caregiver-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal-dark); }
.text-mid { color: var(--mid); }
.text-sm { font-size: 12px; }
.hidden { display: none; }

/* ===== YELP REVIEWS SECTION (landing page) ===== */
.yelp-reviews-section {
  background: var(--off-white);
  padding: 80px 40px;
}
.yelp-reviews-section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.yelp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.yelp-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d32323;
  color: white;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
  flex-shrink: 0;
}
.yelp-read-more-btn:hover {
  background: #b51d1d;
  transform: translateY(-1px);
  color: white;
}
.yelp-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.yelp-widget-area {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  min-height: 180px;
  padding: 0;
  overflow: hidden;
}
/* Placeholder shown until Elfsight widget is installed */
.yelp-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  gap: 12px;
}
.yelp-placeholder-stars {
  font-size: 28px;
  letter-spacing: 3px;
  color: #f5a623;
}
.yelp-placeholder-text {
  font-size: 14px;
  color: var(--mid);
  max-width: 440px;
  line-height: 1.6;
}
.yelp-placeholder-text a {
  color: var(--teal-dark);
  font-weight: 600;
}
.yelp-placeholder-text code {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
  color: var(--navy);
}
@media (max-width: 700px) {
  .yelp-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
}
@media (max-width: 600px) {
  .main-content { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .chips-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
}
