/* ═══════════════════════════════════════════════════════════════
   RentalPropertyAnalyzer.com — Base Stylesheet
   Version: 1.0
   Shared across all 174 pages. Never edit per-calculator styles
   here — use page-specific <style> blocks instead.
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --white:       #ffffff;
  --gray-50:     #f7f8fa;
  --gray-100:    #eef0f3;
  --gray-200:    #dde1e7;
  --gray-300:    #c4cad4;
  --gray-400:    #9aa3b0;
  --gray-500:    #6b7585;
  --gray-600:    #4a5260;
  --gray-700:    #343c4a;
  --gray-800:    #1e2430;
  --gray-900:    #111827;

  --blue:        #1a56db;
  --blue-hover:  #1448c0;
  --blue-light:  #e8f0fe;
  --blue-mid:    #3b82f6;

  --green:       #0e7a3d;
  --green-hover: #0a6632;
  --green-light: #e6f4ec;

  --red:         #c81f1f;
  --red-light:   #fde8e8;

  --amber:       #b45309;
  --amber-light: #fef3c7;

  --accent:      #1a56db;

  /* Typography */
  --font:        'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:        'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing */
  --shell-max:   1300px;
  --shell-pad:   20px;

  /* Borders */
  --border:      #dde1e7;
  --radius:      3px;
  --radius-md:   5px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);
}

/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: var(--font); cursor: pointer; }

/* Remove number input arrows */
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

img { max-width: 100%; display: block; }

/* ─────────────────────────────────────────────────────────────
   3. TOP NAV
───────────────────────────────────────────────────────── */
.topbar {
  background: var(--gray-900);
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 var(--shell-pad);
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.3px;
  text-decoration: none;
}
.topbar-brand strong { color: #60a5fa; font-weight: 700; }
.topbar-brand:hover  { text-decoration: none; }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-nav a {
  color: #9ca3af;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: var(--radius);
  transition: color .12s, background .12s;
}
.topbar-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   4. BREADCRUMB
───────────────────────────────────────────────────────── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 7px var(--shell-pad);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-500);
}
.breadcrumb a       { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); text-decoration: none; }
.breadcrumb-sep     { color: var(--gray-300); font-size: 11px; }

/* ─────────────────────────────────────────────────────────────
   5. LAYOUT SHELL
───────────────────────────────────────────────────────── */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 60px;
}

.shell-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--shell-pad) 60px;
}

/* ─────────────────────────────────────────────────────────────
   6. PAGE HEADER (calculator pages)
───────────────────────────────────────────────────────── */
.page-head {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-head h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 3px;
}

.page-head p {
  font-size: 13px;
  color: var(--gray-500);
}

.page-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   7. BUTTONS
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  border-radius: var(--radius);
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { background: var(--gray-50); border-color: var(--gray-300); text-decoration: none; color: var(--gray-800); }

.btn-primary  { background: var(--blue);  color: var(--white); border-color: var(--blue); }
.btn-primary:hover  { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--white); }

.btn-green    { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--white); }

.btn-sm       { padding: 5px 10px; font-size: 11px; }
.btn-lg       { padding: 10px 20px; font-size: 14px; font-weight: 600; }
.btn-full     { width: 100%; justify-content: center; }
.btn-icon     { padding: 6px 8px; }

/* ─────────────────────────────────────────────────────────────
   8. ADDRESS BANNER
───────────────────────────────────────────────────────── */
.addr-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 16px;
}

.addr-banner-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.addr-banner-hdr .addr-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.addr-banner-hdr .addr-label em {
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  color: var(--gray-400);
  letter-spacing: 0;
  font-size: 12px;
  margin-left: 4px;
}

.addr-dismiss {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
}
.addr-dismiss:hover { color: var(--gray-700); }

.addr-fields-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.addr-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.addr-field label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}
.addr-field input {
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--gray-800);
  padding: 6px 9px;
  font-size: 13px;
  border-radius: var(--radius);
  font-family: var(--font);
}
.addr-field input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.addr-field input::placeholder { color: var(--gray-300); }
.addr-field.f-wide input { width: 200px; }
.addr-field.f-mid  input { width: 130px; }
.addr-field.f-sm   input { width: 68px; }

.addr-type-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.type-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 12px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .12s;
  user-select: none;
}
.type-pill input[type=radio] { display: none; }
.type-pill.checked { border-color: var(--blue); background: var(--blue-light); color: var(--blue); font-weight: 600; }

.addr-actions-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.addr-saved-badge {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  padding: 6px 10px;
  background: var(--green-light);
  border: 1px solid #b7dfc9;
  border-radius: var(--radius);
}

/* ─────────────────────────────────────────────────────────────
   9. CALCULATOR LAYOUT (3-col)
───────────────────────────────────────────────────────── */
.calc-layout {
  display: grid;
  grid-template-columns: 300px 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 1000px) { .calc-layout { grid-template-columns: 280px 1fr 1fr; } }
@media (max-width: 860px)  {
  .calc-layout { grid-template-columns: 1fr; }
  .result-col  { border-left: none !important; border-top: 1px solid var(--border); }
}

.col-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
}
.col-head-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gray-500);
}

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
}
.badge-input  { background: var(--gray-200);  color: var(--gray-600); }
.badge-asis   { background: var(--blue-light); color: var(--blue); }
.badge-pf     { background: var(--green-light);color: var(--green); }
.badge-green  { background: var(--green-light);color: var(--green); }
.badge-amber  { background: var(--amber-light);color: var(--amber); }
.badge-red    { background: var(--red-light);  color: var(--red); }

/* ─────────────────────────────────────────────────────────────
   10. INPUT COLUMN
───────────────────────────────────────────────────────── */
.input-col {
  border-right: 1px solid var(--border);
  background: var(--gray-50);
}

.input-body { padding: 14px; }

.section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--gray-400);
  margin: 14px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gray-100);
}
.section-label:first-of-type { margin-top: 0; }

.field { margin-bottom: 9px; }

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
.field-label span {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
}

/* Tooltip */
.tip {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: help; position: relative; flex-shrink: 0;
}
.tip:hover::after {
  content: attr(data-t);
  position: absolute; right: 0; bottom: calc(100% + 6px);
  background: var(--gray-800); color: var(--white);
  font-size: 11px; padding: 6px 9px;
  border-radius: var(--radius);
  white-space: normal; z-index: 300;
  min-width: 160px; max-width: 220px;
  line-height: 1.4; font-weight: 400;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.input-wrap   { position: relative; }
.inp-prefix, .inp-suffix {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--gray-400); pointer-events: none;
}
.inp-prefix { left: 8px; }
.inp-suffix { right: 8px; }

.inp {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray-800);
  padding: 7px 9px;
  font-size: 13px;
  border-radius: var(--radius);
  font-family: var(--font);
  transition: border-color .12s;
}
.inp:focus      { outline: none; border-color: var(--blue); }
.inp::placeholder { color: var(--gray-300); }
.inp.has-prefix { padding-left: 20px; }
.inp.has-suffix { padding-right: 26px; }

.field-hint { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.inp-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inp-row-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.ex-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--blue);
  background: none; border: none; padding: 0;
  margin-bottom: 12px; cursor: pointer;
  font-family: var(--font);
}
.ex-btn:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────
   11. RESULTS COLUMNS
───────────────────────────────────────────────────────── */
.result-col { border-left: 1px solid var(--border); }
.result-body { padding: 14px; }

/* Verdict bar */
.verdict {
  padding: 8px 11px;
  border-radius: var(--radius);
  font-size: 12px; font-weight: 500;
  margin-bottom: 12px;
  border-left: 3px solid;
  display: flex; align-items: flex-start; gap: 7px;
  line-height: 1.4;
}
.verdict.good { background: var(--green-light); border-color: var(--green); color: var(--green); }
.verdict.warn { background: var(--amber-light); border-color: var(--amber); color: var(--amber); }
.verdict.bad  { background: var(--red-light);   border-color: var(--red);   color: var(--red); }
.verdict.idle { background: var(--gray-50); border-color: var(--gray-200); color: var(--gray-400); }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.kpi-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.kpi {
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: var(--white);
  border-radius: var(--radius);
}
.kpi-label {
  font-size: 10px; font-weight: 600;
  color: var(--gray-400); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 3px;
}
.kpi-val {
  font-family: var(--mono);
  font-size: 20px; font-weight: 600; line-height: 1;
}
.kpi-val.pos { color: var(--green); }
.kpi-val.neg { color: var(--red); }
.kpi-val.neu { color: var(--gray-700); }
.kpi-val.dim { color: var(--gray-300); }
.kpi-sub { font-size: 10px; color: var(--gray-400); margin-top: 3px; }

/* Breakdown table */
.breakdown {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  font-size: 12px;
}
.bk-head {
  background: var(--gray-50);
  padding: 7px 11px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--border);
}
.bk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 11px;
  border-bottom: 1px solid var(--gray-100);
}
.bk-row:last-child { border-bottom: none; }
.bk-row.total { background: var(--gray-50); font-weight: 600; }
.bk-row.subtotal { background: var(--gray-50); }
.bk-lbl { color: var(--gray-600); }
.bk-val {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  color: var(--gray-800);
}
.bk-val.pos     { color: var(--green); }
.bk-val.neg     { color: var(--red); }
.bk-val.expense { color: var(--gray-600); }
.bk-val.good    { color: var(--green); font-weight: 700; }
.bk-val.bad     { color: var(--red); font-weight: 700; }

/* Delta badge */
.delta {
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 2px;
  margin-left: 4px; font-family: var(--mono);
}
.delta.up { background: rgba(14,122,61,.1); color: var(--green); }
.delta.dn { background: rgba(200,31,31,.1);  color: var(--red); }
.delta.flat { background: var(--gray-100); color: var(--gray-500); }

/* Value-add box */
.vabox {
  border: 1px solid #c6ddb0;
  background: #f0f9e8;
  border-radius: var(--radius);
  padding: 11px 13px;
  margin-bottom: 12px;
}
.vabox-title {
  font-size: 11px; font-weight: 600;
  color: var(--green); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .4px;
}
.va-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.va-stat .va-lbl { font-size: 10px; color: #5a7a4a; margin-bottom: 1px; }
.va-stat .va-val { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--green); }

/* Sensitivity table */
.sens-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.sens-head {
  background: var(--gray-50);
  padding: 7px 11px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--border);
}
.sens-scroll { overflow-x: auto; }
.sens-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.sens-tbl th {
  padding: 5px 8px;
  background: var(--gray-50); color: var(--gray-500);
  font-weight: 600; text-align: center;
  border: 1px solid var(--border); white-space: nowrap;
}
.sens-tbl td {
  padding: 5px 8px; text-align: center;
  border: 1px solid var(--border);
  font-family: var(--mono); font-weight: 600; font-size: 11px;
}
.sg { background: #d1fae5; color: #065f46; }
.sy { background: #fef9c3; color: #854d0e; }
.sr { background: #fee2e2; color: #991b1b; }
.sh { background: #dbeafe; color: #1e40af; font-weight: 700; }

/* ─────────────────────────────────────────────────────────────
   12. BOTTOM BAR
───────────────────────────────────────────────────────── */
.bottom-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 14px;
  overflow: hidden;
}

.email-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
.email-cta-text h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
.email-cta-text p  { font-size: 12px; color: var(--gray-500); }

.bb-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.bb-tab {
  padding: 10px 16px;
  font-size: 12px; font-weight: 500;
  color: var(--gray-500);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .12s; white-space: nowrap;
  font-family: var(--font);
}
.bb-tab.active  { color: var(--blue); border-bottom-color: var(--blue); }
.bb-tab:hover:not(.active) { color: var(--gray-700); }

.bb-panel { display: none; padding: 16px 20px; }
.bb-panel.active { display: block; }

/* How-to grid */
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.how-item { display: flex; gap: 9px; align-items: flex-start; }
.how-icon {
  width: 26px; height: 26px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.how-text strong { font-size: 12px; color: var(--gray-800); display: block; margin-bottom: 2px; }
.how-text p      { font-size: 11px; color: var(--gray-500); line-height: 1.4; }

/* Related links */
.related-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rel-link {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px; color: var(--gray-600);
  background: var(--white); transition: all .12s;
}
.rel-link:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ─────────────────────────────────────────────────────────────
   13. MODALS (shared)
───────────────────────────────────────────────────────── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 500;
  align-items: center; justify-content: center; padding: 16px;
}
.overlay.open { display: flex; }

.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .18s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-hdr {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-hdr h3 { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.modal-hdr p  { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.modal-close {
  background: none; border: none;
  color: var(--gray-400); font-size: 18px; line-height: 1;
  padding: 2px; flex-shrink: 0;
}
.modal-close:hover { color: var(--gray-700); }

.modal-body { padding: 18px; }

/* Modal tabs */
.modal-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  padding: 0 18px; overflow-x: auto;
}
.modal-tab {
  padding: 10px 12px; font-size: 13px; font-weight: 500;
  color: var(--gray-500); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .12s; display: flex; align-items: center; gap: 5px;
  font-family: var(--font); white-space: nowrap;
}
.modal-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.modal-tab:hover:not(.active) { color: var(--gray-700); }

.modal-panel { display: none; padding: 18px; }
.modal-panel.active { display: block; }

/* Form fields inside modals */
.mf { margin-bottom: 12px; }
.mf label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--gray-600); text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 4px;
}
.mf input, .mf textarea {
  width: 100%; border: 1px solid var(--border);
  background: var(--white); color: var(--gray-800);
  padding: 8px 10px; font-size: 13px;
  border-radius: var(--radius); font-family: var(--font);
}
.mf input:focus, .mf textarea:focus { outline: none; border-color: var(--blue); }
.mf input::placeholder, .mf textarea::placeholder { color: var(--gray-300); }
.mf textarea { min-height: 80px; resize: vertical; }

.form-res {
  padding: 8px 11px; border-radius: var(--radius);
  font-size: 12px; margin-top: 8px; display: none; border-left: 3px solid;
}
.form-res.ok  { background: var(--green-light); color: var(--green); border-color: var(--green); }
.form-res.err { background: var(--red-light);   color: var(--red);   border-color: var(--red); }

/* ─────────────────────────────────────────────────────────────
   14. SHARE MODAL (specific)
───────────────────────────────────────────────────────── */
.share-check {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; background: var(--gray-50);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; font-size: 12px; color: var(--gray-600);
  cursor: pointer;
}
.share-check input { accent-color: var(--blue); }

.social-row { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; }
.social-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; font-size: 11px; font-weight: 600;
  color: var(--gray-600); cursor: pointer;
}
.social-btn:hover { color: var(--gray-900); }
.social-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .12s;
}
.social-btn:hover .social-icon { opacity: .85; }
.si-fb { background: #1877f2; }
.si-x  { background: #000; }
.si-li { background: #0a66c2; }
.si-wa { background: #25d366; }

.url-copy {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.url-copy input {
  flex: 1; border: none; padding: 8px 11px; font-size: 12px;
  color: var(--gray-600); background: var(--gray-50);
  font-family: var(--mono);
}
.url-copy input:focus { outline: none; }
.url-copy-btn {
  background: var(--white); border: none; border-left: 1px solid var(--border);
  padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--blue);
  cursor: pointer; font-family: var(--font);
}
.url-copy-btn:hover { background: var(--gray-50); }

.embed-code {
  background: var(--gray-50); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--gray-600);
  margin-bottom: 10px; word-break: break-all; line-height: 1.6;
}

/* Feedback type buttons */
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.fb-type {
  padding: 8px 10px; border: 1px solid var(--border);
  background: var(--white); border-radius: var(--radius);
  font-size: 12px; text-align: center; transition: all .12s;
  font-family: var(--font); cursor: pointer;
}
.fb-type.sel { border-color: var(--blue); background: var(--blue-light); color: var(--blue); font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   15. FEEDBACK FAB
───────────────────────────────────────────────────────── */
.fab {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--gray-800); color: var(--white); border: none;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-md); z-index: 100;
  transition: background .12s; font-family: var(--font);
}
.fab:hover { background: var(--gray-700); }

/* ─────────────────────────────────────────────────────────────
   16. TOAST
───────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 58px; right: 20px;
  background: var(--gray-800); color: var(--white);
  padding: 8px 14px; border-radius: var(--radius); font-size: 12px;
  opacity: 0; transform: translateY(6px); transition: all .22s;
  z-index: 600; pointer-events: none; max-width: 260px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────
   17. FOOTER
───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px var(--shell-pad) 24px;
  margin-top: 60px;
}
.footer-grid {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.footer-brand strong { color: #60a5fa; }
.footer-desc  { font-size: 12px; line-height: 1.6; max-width: 240px; }

.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--gray-300);
  margin-bottom: 10px;
}
.footer-col a {
  display: block; font-size: 12px; color: var(--gray-500);
  padding: 2px 0; transition: color .12s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  max-width: var(--shell-max);
  margin: 20px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: 11px; color: var(--gray-600);
}
.footer-bottom a { color: var(--gray-600); }
.footer-bottom a:hover { color: var(--gray-400); }

/* ─────────────────────────────────────────────────────────────
   18. UTILITY CLASSES
───────────────────────────────────────────────────────── */
.text-pos   { color: var(--green) !important; }
.text-neg   { color: var(--red)   !important; }
.text-warn  { color: var(--amber) !important; }
.text-muted { color: var(--gray-400); }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.mono       { font-family: var(--mono); }
.bold       { font-weight: 600; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.d-none   { display: none !important; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.gap-8    { gap: 8px; }
.gap-12   { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full   { width: 100%; }
.text-center { text-align: center; }
