/* ============================================================
   TerryBot — Shared Stylesheet
   Design: Navy #1B2B4B | Yellow #F5C518 | Nunito font
   ============================================================ */

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

:root {
  --yellow:       #F5C518;
  --yellow-light: #FEF9E7;
  --yellow-dark:  #D4A017;
  --navy:         #1B2B4B;
  --navy-light:   #2E4070;
  --green:        #16A34A;
  --green-light:  #DCFCE7;
  --red:          #DC2626;
  --red-light:    #FEE2E2;
  --orange:       #EA580C;
  --orange-light: #FFF7ED;
  --border:       #E5E7EB;
  --text:         #111827;
  --muted:        #6B7280;
  --bg:           #F4F6FA;
  --white:        #ffffff;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ── TOP NAV ───────────────────────────────────────────────── */
nav {
  background: var(--navy);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav-logo {
  width: 32px; height: 32px;
  background: var(--yellow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: var(--navy);
  flex-shrink: 0;
}
.nav-brand { color: white; font-size: 20px; font-weight: 900; }
.nav-brand span { color: var(--yellow); }
.nav-tagline { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 600; }
.nav-back { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 700; cursor: pointer; }
.nav-date { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 700; }

/* ── BOTTOM NAV ────────────────────────────────────────────── */
.bottom-nav {
  background: white;
  border-top: 1.5px solid var(--border);
  padding: 0.6rem 0 0.5rem;
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; cursor: pointer; padding: 4px 16px;
  border-radius: 10px; transition: all 0.15s;
}
.nav-item.active { background: var(--yellow-light); }
.nav-icon { font-size: 22px; }
.nav-item-label { font-size: 10px; font-weight: 800; color: var(--muted); }
.nav-item.active .nav-item-label { color: var(--navy); }

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main { padding: 1.25rem; max-width: 480px; margin: 0 auto; }

/* ── HERO BANNER ───────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 1.25rem 1.25rem 0;
}
.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
}
.hero-content { flex: 1; padding-bottom: 1.5rem; }
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 8px; letter-spacing: 0.3px;
}
.hero-content h1, .hero-content h2 {
  color: white; font-weight: 900; line-height: 1.2; margin-bottom: 6px;
}
.hero-content h1 { font-size: 22px; }
.hero-content h2 { font-size: 20px; }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600; line-height: 1.5; }
.hero-sub strong { color: var(--yellow); }
.hero-image { width: 150px; height: 175px; flex-shrink: 0; margin-right: -8px; margin-bottom: -4px; }
.hero-image img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 10px 20px;
  background: var(--yellow); color: var(--navy);
  font-size: 14px; font-weight: 800;
  border-radius: 10px; border: none;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  text-decoration: none;
}
.hero-btn:hover { background: var(--yellow-dark); }

/* ── STATS GRID ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  border: 1.5px solid var(--border);
}
.stat-card.full { grid-column: 1 / -1; }
.stat-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1; }
.stat-sub   { font-size: 12px; font-weight: 600; margin-top: 4px; color: var(--muted); }
.stat-value.green { color: var(--green); }
.stat-value.red   { color: var(--red); }
.stat-value.orange { color: var(--orange); }

/* ── QUICK ACTIONS ─────────────────────────────────────────── */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.action-btn {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.action-btn:hover { border-color: var(--yellow); background: var(--yellow-light); transform: translateY(-2px); }
.action-btn-icon { font-size: 28px; }
.action-btn-label { font-size: 14px; font-weight: 800; color: var(--text); }
.action-btn-sub   { font-size: 11px; font-weight: 600; color: var(--muted); }

/* ── SECTION TITLE ─────────────────────────────────────────── */
.section-title {
  font-size: 16px; font-weight: 800; color: var(--text);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title .link {
  font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer;
}

/* ── JOB CARDS ─────────────────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.25rem; }
.jobs-card {
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.jobs-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.jobs-header span { font-size: 16px; font-weight: 800; }
.see-all { font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; }
.job-row {
  display: flex; align-items: center; gap: 12px;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background 0.1s;
}
.job-row:last-child { border-bottom: none; }
.job-row:hover { background: var(--bg); }
.job-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green  { background: var(--green); }
.dot-orange { background: var(--orange); }
.dot-red    { background: var(--red); }
.dot-gray   { background: #9CA3AF; }
.job-info { flex: 1; }
.job-name { font-size: 14px; font-weight: 800; color: var(--text); }
.job-desc { font-size: 12px; font-weight: 600; color: var(--muted); }
.job-amount { font-size: 14px; font-weight: 900; color: var(--text); }

/* ── JOB CARD (jobs page) ──────────────────────────────────── */
.job-card {
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 10px;
}
.job-card:hover { border-color: var(--navy); transform: translateY(-1px); }
.job-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px;
}
.job-card-name { font-size: 15px; font-weight: 800; color: var(--text); }
.job-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.job-card-amount { font-size: 16px; font-weight: 900; color: var(--text); }
.job-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid #F3F4F6;
}
.job-inv-num { font-size: 11px; font-weight: 700; color: var(--muted); }
.job-actions { display: flex; gap: 6px; }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
  display: inline-block;
}
.badge-paid    { background: var(--green-light); color: var(--green); }
.badge-pending { background: var(--orange-light); color: var(--orange); }
.badge-overdue { background: var(--red-light); color: var(--red); }
.badge-draft   { background: #F3F4F6; color: var(--muted); }

/* ── TERRY TIP ─────────────────────────────────────────────── */
.terry-tip {
  background: var(--navy);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 1.25rem;
  overflow: hidden;
  min-height: 120px;
}
.terry-tip-img {
  width: 95px; height: 110px; flex-shrink: 0;
  margin-left: -10px; margin-bottom: -22px;
}
.terry-tip-img img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.terry-tip-bubble { flex: 1; padding-left: 10px; }
.terry-tip-title {
  display: inline-block;
  background: var(--yellow); color: var(--navy);
  font-size: 10px; font-weight: 800;
  padding: 2px 10px; border-radius: 999px; margin-bottom: 6px;
}
.terry-tip-text { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600; line-height: 1.55; }
.terry-tip-text strong { color: var(--yellow); }

/* ── TERRY HERO (subpages) ─────────────────────────────────── */
.terry-hero {
  background: var(--navy);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.25rem; overflow: hidden; min-height: 130px;
}
.terry-hero-content { flex: 1; padding-bottom: 1.5rem; }
.terry-hero-badge {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 8px;
}
.terry-hero-badge.paid    { background: var(--green-light); color: var(--green); }
.terry-hero-badge.pending { background: var(--yellow-light); color: var(--yellow-dark); }
.terry-hero-badge.overdue { background: var(--red-light); color: var(--red); }
.terry-hero-badge.yellow  { background: var(--yellow); color: var(--navy); }
.terry-hero h2 { color: white; font-size: 20px; font-weight: 900; line-height: 1.2; margin-bottom: 4px; }
.terry-hero p  { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600; line-height: 1.5; }
.terry-hero p strong { color: var(--yellow); }
.terry-hero-img { width: 140px; height: 165px; flex-shrink: 0; margin-right: -8px; }
.terry-hero-img img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; border: none;
  font-size: 15px; font-weight: 800; font-family: 'Nunito', sans-serif;
  cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-full  { width: 100%; margin-bottom: 10px; }
.btn-navy  { background: var(--navy); color: white; }
.btn-navy:hover  { background: var(--navy-light); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { opacity: 0.9; }
.btn-red, .btn-danger { background: var(--red); color: white; }
.btn-red:hover { opacity: 0.9; }
.btn-outline {
  background: white; color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 13px; font-weight: 800; border-radius: 10px; }

/* ── ACTION CARDS (subpages) ───────────────────────────────── */
.action-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 1rem; text-align: center;
  cursor: pointer; transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.action-card:hover { border-color: var(--navy); background: var(--yellow-light); transform: translateY(-2px); }
.action-card-icon  { font-size: 26px; }
.action-card-label { font-size: 13px; font-weight: 800; color: var(--text); }
.action-card-sub   { font-size: 11px; font-weight: 600; color: var(--muted); }

/* ── FORM ELEMENTS ─────────────────────────────────────────── */
.form-card {
  background: white; border-radius: 16px;
  border: 1.5px solid var(--border); padding: 1.25rem; margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-label { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 6px; display: block; }
.form-label-sub { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: 'Nunito', sans-serif;
  color: var(--text); background: white;
  outline: none; transition: border-color 0.15s; font-weight: 600;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,43,75,0.08);
}
.form-textarea { min-height: 80px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── CATEGORY GRID ─────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-btn {
  padding: 10px 8px; border-radius: 10px;
  border: 1.5px solid var(--border); background: white;
  font-size: 12px; font-weight: 800; color: var(--muted);
  cursor: pointer; text-align: center;
  transition: all 0.15s; font-family: 'Nunito', sans-serif;
}
.cat-btn:hover { border-color: var(--navy); color: var(--navy); }
.cat-btn.active { border-color: var(--navy); background: var(--navy); color: white; }
.cat-icon { font-size: 20px; display: block; margin-bottom: 4px; }

/* ── TOGGLE ────────────────────────────────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.toggle-info .toggle-label { font-size: 14px; font-weight: 700; color: var(--text); }
.toggle-info .toggle-sub   { font-size: 12px; font-weight: 600; color: var(--muted); }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #D1D5DB;
  border-radius: 999px; cursor: pointer; transition: 0.2s;
}
.toggle-slider:before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--navy); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ── TOTALS BOX ────────────────────────────────────────────── */
.totals-box {
  background: var(--yellow-light); border-radius: 10px;
  padding: 1rem; margin-top: 1rem; border: 1.5px solid var(--yellow);
}
.totals-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; padding: 3px 0; }
.totals-row.grand { font-size: 17px; font-weight: 900; color: var(--navy); border-top: 1.5px solid var(--yellow); margin-top: 6px; padding-top: 8px; }

/* ── INVOICE CARD ──────────────────────────────────────────── */
.invoice-card { background: white; border-radius: 16px; border: 1.5px solid var(--border); overflow: hidden; margin-bottom: 1.25rem; }
.inv-header { background: var(--navy); padding: 1.25rem; display: flex; justify-content: space-between; align-items: flex-start; }
.inv-brand { color: white; font-size: 20px; font-weight: 900; }
.inv-brand span { color: var(--yellow); }
.inv-brand-sub { color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 700; margin-top: 2px; }
.inv-num-label { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700; text-align: right; }
.inv-num { color: var(--yellow); font-size: 18px; font-weight: 900; text-align: right; }
.inv-date-label { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700; text-align: right; margin-top: 4px; }
.inv-body { padding: 1.25rem; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.inv-party-label { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.inv-party-name  { font-size: 14px; font-weight: 800; color: var(--text); }
.inv-party-detail { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 13px; }
.inv-table th { background: #F9FAFB; padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1.5px solid var(--border); }
.inv-table th:last-child { text-align: right; }
.inv-table td { padding: 10px; border-bottom: 1px solid #F3F4F6; font-weight: 600; color: var(--text); }
.inv-table td:last-child { text-align: right; font-weight: 700; }
.inv-totals { margin-left: auto; width: 55%; }
.inv-total-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; padding: 4px 0; color: var(--muted); }
.inv-total-row.grand { font-size: 16px; font-weight: 900; color: var(--navy); border-top: 2px solid var(--border); margin-top: 6px; padding-top: 8px; }
.inv-footer { background: var(--navy); padding: 0.9rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.inv-footer span { color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 700; }
.inv-footer strong { color: var(--yellow); font-size: 11px; }

/* ── PROGRESS BAR ──────────────────────────────────────────── */
.progress-wrap { margin-bottom: 1rem; }
.progress-header { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.progress-track { background: #E5E7EB; border-radius: 999px; height: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--yellow); transition: width 0.8s ease; }

/* ── TIMELINE ──────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 12px; align-items: flex-start; }
.timeline-line-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; }
.dot-done    { background: var(--green); }
.dot-current { background: var(--yellow); border: 2px solid var(--yellow-dark); }
.dot-todo    { background: #E5E7EB; }
.timeline-connector { width: 2px; height: 24px; background: #E5E7EB; margin: 2px 0; }
.timeline-connector.done { background: var(--green); }
.timeline-text { flex: 1; padding-bottom: 16px; }
.timeline-label { font-size: 13px; font-weight: 800; color: var(--text); }
.timeline-sub   { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* ── UPLOAD ZONE ───────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: all 0.15s; background: #FAFAFA;
}
.upload-zone:hover { border-color: var(--yellow); background: var(--yellow-light); }
.upload-zone.has-file { border-color: var(--green); background: var(--green-light); border-style: solid; }
.upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-text { font-size: 13px; font-weight: 700; color: var(--muted); }
.upload-sub  { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; }
input[type=file] { display: none; }

/* ── TAX BREAKDOWN ─────────────────────────────────────────── */
.tax-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid #F3F4F6; font-size: 14px;
}
.tax-row:last-child { border-bottom: none; }
.tax-row-label { font-weight: 700; color: var(--text); }
.tax-row-sub   { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.tax-row-value { font-weight: 800; color: var(--text); }
.tax-row.total-row .tax-row-label { font-size: 15px; font-weight: 900; }
.tax-row.total-row .tax-row-value { font-size: 17px; font-weight: 900; color: var(--red); }
.tax-row .green { color: var(--green); }
.tax-row .red   { color: var(--red); }
.tax-row .orange { color: var(--orange); }

/* ── EXPENSE CAT ROW ───────────────────────────────────────── */
.expense-cat-row { display: flex; align-items: center; gap: 12px; padding: 0.85rem 1.25rem; border-bottom: 1px solid #F3F4F6; }
.expense-cat-row:last-child { border-bottom: none; }
.cat-icon-wrap { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.cat-row-label { flex: 1; font-size: 13px; font-weight: 700; color: var(--text); }
.cat-row-bar-wrap { flex: 2; height: 8px; background: #F3F4F6; border-radius: 999px; overflow: hidden; margin: 0 10px; }
.cat-row-bar { height: 100%; border-radius: 999px; background: var(--navy); }
.cat-row-amount { font-size: 13px; font-weight: 800; color: var(--text); min-width: 60px; text-align: right; }

/* ── CHECKLIST ─────────────────────────────────────────────── */
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 0.9rem 1.25rem; border-bottom: 1px solid #F3F4F6; }
.check-row:last-child { border-bottom: none; }
.check-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.check-done { background: var(--green-light); color: var(--green); }
.check-todo { background: #F3F4F6; color: var(--muted); }
.check-warn { background: var(--orange-light); color: var(--orange); }
.check-title { font-size: 14px; font-weight: 800; color: var(--text); }
.check-sub   { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* ── SETTINGS ──────────────────────────────────────────────── */
.settings-section { background: white; border-radius: 14px; border: 1.5px solid var(--border); overflow: hidden; margin-bottom: 1rem; }
.settings-section-title { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); background: #F9FAFB; }
.settings-row { padding: 1rem 1.25rem; border-bottom: 1px solid #F3F4F6; }
.settings-row:last-child { border-bottom: none; }

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; align-items: flex-end; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: 20px 20px 0 0; padding: 1.5rem; width: 100%; max-width: 480px; }
.modal-title { font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.modal-sub   { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.5; }
.modal-btn { width: 100%; padding: 14px; border: none; border-radius: 12px; font-size: 15px; font-weight: 800; font-family: 'Nunito', sans-serif; cursor: pointer; margin-bottom: 8px; }

/* ── SUMMARY PILLS ─────────────────────────────────────────── */
.summary-pills { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 1.25rem; }
.pill { background: white; border: 1.5px solid var(--border); border-radius: 12px; padding: 0.75rem; text-align: center; }
.pill-value { font-size: 20px; font-weight: 900; color: var(--text); }
.pill-value.green  { color: var(--green); }
.pill-value.red    { color: var(--red); }
.pill-value.orange { color: var(--orange); }
.pill-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 2px; }

/* ── SEARCH & FILTERS ──────────────────────────────────────── */
.search-wrap { position: relative; margin-bottom: 1rem; }
.search-input {
  width: 100%; padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: 'Nunito', sans-serif;
  color: var(--text); background: white; outline: none; font-weight: 600;
}
.search-input:focus { border-color: var(--navy); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--muted); }
.filter-tabs { display: flex; gap: 8px; margin-bottom: 1.25rem; overflow-x: auto; padding-bottom: 4px; }
.filter-tab {
  padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--border);
  background: white; font-size: 13px; font-weight: 800; color: var(--muted);
  cursor: pointer; white-space: nowrap; font-family: 'Nunito', sans-serif; transition: all 0.15s;
}
.filter-tab.active { background: var(--navy); border-color: var(--navy); color: white; }
.filter-tab:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

/* ── FAB ───────────────────────────────────────────────────── */
.fab {
  position: fixed; bottom: 80px; right: 1.25rem;
  width: 56px; height: 56px;
  background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #F5C518; cursor: pointer; z-index: 99;
  box-shadow: 0 4px 12px rgba(27,43,75,0.3);
  transition: all 0.15s;
}
.fab:hover { background: var(--navy-light); transform: scale(1.05); }

/* ── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: white;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  opacity: 0; transition: all 0.3s; z-index: 300; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── STEP PROGRESS ─────────────────────────────────────────── */
.step-progress { margin-bottom: 1.5rem; }
.step-dots { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  border: 2px solid var(--border); background: white; color: var(--muted);
  transition: all 0.3s; flex-shrink: 0;
}
.step-dot.active { background: var(--navy); border-color: var(--navy); color: white; }
.step-dot.done   { background: var(--green); border-color: var(--green); color: white; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; transition: background 0.3s; }
.step-line.done { background: var(--green); }
.step-progress-label { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.step-progress-label span { color: var(--navy); font-weight: 800; }

/* ── PRICING ───────────────────────────────────────────────── */
.plan-card { background: white; border: 1.5px solid var(--border); border-radius: 16px; padding: 1.25rem; cursor: pointer; transition: all 0.2s; position: relative; margin-bottom: 14px; }
.plan-card.selected { border: 2.5px solid var(--navy); }
.plan-card.featured { border: 2.5px solid var(--yellow); }
.plan-card.featured.selected { border: 2.5px solid var(--navy); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 800; padding: 4px 16px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: 18px; font-weight: 900; color: var(--navy); }
.plan-desc { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.plan-amount { font-size: 38px; font-weight: 900; color: var(--text); line-height: 1; }
.plan-amount span { font-size: 20px; font-weight: 700; color: var(--muted); }
.plan-period { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.plan-saving { font-size: 13px; font-weight: 800; color: var(--green); margin-top: 4px; }
.plan-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); background: white; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.plan-card.selected .plan-radio { border-color: var(--navy); background: var(--navy); }
.plan-radio-dot { width: 10px; height: 10px; border-radius: 50%; background: white; }
.feature-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.feature-cross { width: 20px; height: 20px; border-radius: 50%; background: #F3F4F6; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }

/* ── TRUST BADGES ──────────────────────────────────────────── */
.trust-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 1.5rem; }
.trust-item { background: white; border: 1.5px solid var(--border); border-radius: 12px; padding: 0.9rem; text-align: center; }
.trust-icon  { font-size: 22px; margin-bottom: 4px; }
.trust-label { font-size: 11px; font-weight: 800; color: var(--navy); }
.trust-sub   { font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-row { padding: 1rem 1.25rem; border-bottom: 1px solid #F3F4F6; cursor: pointer; }
.faq-row:last-child { border-bottom: none; }
.faq-q { font-size: 14px; font-weight: 800; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.faq-a { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; line-height: 1.6; display: none; }
.faq-row.open .faq-a { display: block; }
.faq-arrow { transition: transform 0.2s; color: var(--muted); }
.faq-row.open .faq-arrow { transform: rotate(90deg); }

/* ── DISCLAIMER ────────────────────────────────────────────── */
.disclaimer {
  background: #F9FAFB; border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem;
  font-size: 12px; font-weight: 600; color: var(--muted);
  line-height: 1.6; text-align: center; margin-bottom: 1.25rem;
}

/* ── APP VERSION ───────────────────────────────────────────── */
.app-version { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 1rem; margin-bottom: 1rem; }

/* ── COMPARE TABLE ─────────────────────────────────────────── */
.compare-card { background: white; border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem; }
.compare-header { display: grid; grid-template-columns: 1fr 80px 80px 80px; background: #F9FAFB; padding: 0.75rem 1rem; border-bottom: 1.5px solid var(--border); }
.compare-header-cell { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: 0.4px; }
.compare-header-cell:first-child { text-align: left; }
.compare-row { display: grid; grid-template-columns: 1fr 80px 80px 80px; padding: 0.8rem 1rem; border-bottom: 1px solid #F3F4F6; align-items: center; }
.compare-row:last-child { border-bottom: none; }
.compare-feature { font-size: 13px; font-weight: 700; color: var(--text); }
.compare-cell { text-align: center; font-size: 16px; }
.compare-cell.yes  { color: var(--green); }
.compare-cell.no   { color: #D1D5DB; }
.compare-cell.text { font-size: 11px; font-weight: 800; color: var(--navy); }

/* ── MISC ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.card   { background: white; border-radius: 14px; border: 1.5px solid var(--border); padding: 1.25rem; margin-bottom: 1rem; }
.card-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 1.5rem; }
.billing-toggle-label { font-size: 14px; font-weight: 800; color: var(--muted); }
.billing-toggle-label.active { color: var(--navy); }
.save-badge { background: var(--green-light); color: var(--green); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
