/* China Med Map - demo stylesheet
   Palette: deep navy base, medical blue, teal + amber accents. Dark by design (map-first product). */

:root {
  --bg: #080d17;
  --bg-2: #0b1320;
  --card: #0f1a2b;
  --card-2: #121f33;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e8eef7;
  --muted: #8fa3bf;
  --muted-2: #64748b;
  --blue: #1f5fae;
  --blue-lt: #3b82f6;
  --teal: #2dd4bf;
  --amber: #f0a63c;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --maxw: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- demo banner ---------- */
.demo-banner {
  background: linear-gradient(90deg, #2a1c05, #3a2708);
  border-bottom: 1px solid rgba(240, 166, 60, .28);
  color: #f5d9a8;
  font-size: 12px;
  padding: 7px 24px;
  text-align: center;
  letter-spacing: .01em;
}
.demo-banner b { color: #fff; font-weight: 600; }

/* ---------- nav ----------
   The sticky box is #nav-root, not .nav: .nav sits inside it, so a sticky .nav
   had no room to travel and scrolled away with the page. */
.nav-root { position: sticky; top: 0; z-index: 60; }
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 13, 23, .82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; font-size: 15px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(145deg, var(--blue-lt), var(--blue));
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .35), 0 6px 18px -6px rgba(59, 130, 246, .6);
}
.brand-mark svg { width: 15px; height: 15px; }

.nav-links { display: flex; gap: 22px; margin-left: 6px; }
.nav-links a { color: var(--muted); font-size: 13px; transition: color .16s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav-burger { display: none; background: none; border: 0; color: var(--text); padding: 4px; }

.lang-switch {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  background: none; border: 0; color: var(--muted);
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  transition: all .16s; font-weight: 500;
}
.lang-switch button.on { background: rgba(59, 130, 246, .18); color: #cfe0ff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05); color: var(--text);
  padding: 9px 16px; font-size: 13px; font-weight: 550;
  transition: all .16s; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-2); }
.btn-primary {
  background: linear-gradient(180deg, #2f74c9, var(--blue));
  border-color: transparent; color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 22px -12px rgba(59, 130, 246, .9);
}
.btn-primary:hover { background: linear-gradient(180deg, #3b82d6, #2468b8); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 13px; font-size: 12px; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 26px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 20% auto 20%; height: 340px;
  background: radial-gradient(ellipse at 50% 0%, rgba(31, 95, 174, .38), transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 950px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #9dc0ee; border: 1px solid rgba(59, 130, 246, .28);
  background: rgba(31, 95, 174, .12); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(45, 212, 191, .18); }

h1.hero-h1 {
  text-wrap: balance;
  font-size: 38px; line-height: 1.16; letter-spacing: -.025em;
  margin: 0 0 18px; font-weight: 680;
}
h1.hero-h1 em { font-style: normal; color: #7fb0f0; }
.hero-sub { font-size: 15.5px; color: var(--muted); max-width: 720px; margin: 0 0 26px; line-height: 1.68; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.trustbar {
  display: flex; gap: 10px 28px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted-2);
}
.trustbar b { color: var(--text); font-weight: 600; }

/* ---------- value props ---------- */
.props { padding: 0 0 48px; }
.props-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prop {
  background: linear-gradient(170deg, var(--card), rgba(15, 26, 43, .55));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: border-color .18s, transform .18s;
}
.prop:hover { border-color: rgba(59, 130, 246, .34); transform: translateY(-2px); }
.prop-ico {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(59, 130, 246, .12); color: #7fb0f0; margin-bottom: 12px;
}
.prop h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; }
.prop p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- search-question cards ----------
   The four phrases foreign patients actually type. Each card is a link into the
   page that documents the answer, so the heading text doubles as the anchor. */
.qa { padding: 0 0 8px; }
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.qa-card {
  display: block; background: rgba(15, 26, 43, .55); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 17px 14px;
  transition: border-color .18s, background .18s, transform .18s;
}
.qa-card:hover { border-color: rgba(59, 130, 246, .34); background: rgba(20, 34, 55, .7); transform: translateY(-2px); }
.qa-q { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -.01em; line-height: 1.45; }
.qa-a { margin-top: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.62; }
.qa-go { display: inline-block; margin-top: 10px; font-size: 11.5px; color: #7fb0f0; }

/* ---------- workspace ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

#map { scroll-margin-top: 84px; }

.workspace {
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr) 332px;
  gap: 14px;
  height: 600px;
  margin-bottom: 48px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.panel-head {
  padding: 13px 15px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
  display: flex; align-items: center; justify-content: space-between;
}

/* filters */
.search-box { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.search-field {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 11px;
  transition: border-color .16s;
}
.search-field:focus-within { border-color: rgba(59, 130, 246, .5); }
.search-field input {
  background: none; border: 0; outline: 0; color: var(--text);
  font-size: 13px; width: 100%; font-family: inherit;
}
.search-field input::placeholder { color: var(--muted-2); }

.filter-group { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 4px 11px;
  font-size: 12px; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: rgba(59, 130, 246, .18); border-color: rgba(59, 130, 246, .45); color: #cfe0ff; }

.result-count { padding: 11px 15px; font-size: 12px; color: var(--muted-2); border-bottom: 1px solid var(--line); }
.result-count b { color: var(--text); }

.list { overflow-y: auto; flex: 1; }
.list-item {
  padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, .05);
  cursor: pointer; transition: background .14s;
}
.list-item:hover { background: rgba(255, 255, 255, .035); }
.list-item.on { background: rgba(59, 130, 246, .1); box-shadow: inset 2px 0 0 var(--blue-lt); }
.list-item .nm { font-size: 13px; font-weight: 550; line-height: 1.4; margin-bottom: 5px; }
.list-item .meta { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; }
.type-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }

/* map */
.map-panel { position: relative; background: radial-gradient(circle at 60% 45%, #0d1a2c, #070c15 78%); }
.map-toolbar {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5;
  display: flex; justify-content: space-between; gap: 10px; pointer-events: none;
}
.map-tag {
  pointer-events: auto;
  background: rgba(11, 19, 32, .88); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 6px 11px; font-size: 11.5px; color: var(--muted);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 7px;
}
.map-tag b { color: var(--text); font-weight: 600; }
.map-reset {
  pointer-events: auto; background: rgba(11, 19, 32, .88); border: 1px solid var(--line);
  color: var(--muted); border-radius: var(--radius-sm); padding: 6px 11px; font-size: 11.5px;
  backdrop-filter: blur(8px);
}
.map-reset:hover { color: var(--text); }

#map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-legend {
  position: absolute; top: 52px; left: 12px; bottom: auto; z-index: 5;
  display: flex; gap: 14px; font-size: 11px; color: var(--muted-2);
  background: rgba(11, 19, 32, .82); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 7px 12px; backdrop-filter: blur(8px);
}
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-hint {
  position: absolute; bottom: 12px; right: 12px; z-index: 5;
  font-size: 11px; color: var(--muted-2);
}

.city-pulse { animation: pulse 3.2s ease-out infinite; transform-origin: center; }
@keyframes pulse { 0% { opacity: .5; r: 7; } 70% { opacity: 0; r: 22; } 100% { opacity: 0; r: 22; } }

.hosp-node { transition: opacity .2s, r .15s; cursor: pointer; }
.hosp-node.dim { opacity: .1; }

.map-tip {
  position: absolute; z-index: 20; pointer-events: none;
  background: rgba(9, 15, 26, .96); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 11px; font-size: 11.5px; max-width: 230px;
  box-shadow: 0 12px 32px -12px #000; transform: translate(-50%, -125%);
  opacity: 0; transition: opacity .12s;
}
.map-tip.show { opacity: 1; }
.map-tip b { display: block; font-size: 12px; margin-bottom: 3px; }
.map-tip span { color: var(--muted); }

/* detail card */
.detail { overflow-y: auto; }
.detail-empty { padding: 40px 22px; text-align: center; color: var(--muted-2); font-size: 12.5px; line-height: 1.7; }
.detail-empty svg { width: 34px; height: 34px; margin: 0 auto 14px; opacity: .4; }

.detail-body { padding: 18px 17px 22px; }
.detail h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; font-weight: 620; }
.detail .sub { font-size: 12px; color: var(--muted-2); margin-bottom: 14px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.badge.pilot { border-color: rgba(45, 212, 191, .35); color: #8ff0e3; background: rgba(45, 212, 191, .08); }
.badge.tcm { border-color: rgba(240, 166, 60, .35); color: #f5c98a; background: rgba(240, 166, 60, .08); }

.field { margin-bottom: 13px; }
.field-k { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.field-v { font-size: 12.5px; color: #c8d5e8; line-height: 1.55; }
.field-v.na { color: var(--muted-2); font-style: italic; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 2.5px 8px; border-radius: 5px;
  background: rgba(59, 130, 246, .1); color: #a7c6f0; border: 1px solid rgba(59, 130, 246, .18);
}
.tag.green { background: rgba(45, 212, 191, .1); color: #8ff0e3; border-color: rgba(45, 212, 191, .2); }
.tag.amber { background: rgba(240, 166, 60, .1); color: #f5c98a; border-color: rgba(240, 166, 60, .2); }

.detail-actions { display: flex; gap: 8px; margin-top: 16px; }
.detail-actions .btn { flex: 1; }
.detail-foot {
  margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--muted-2); line-height: 1.6;
}

/* ---------- conditions grid ---------- */
.conditions { padding: 8px 0 60px; }
.cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cond-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: all .18s; display: block;
}
.cond-card:hover { border-color: rgba(59, 130, 246, .38); background: var(--card-2); transform: translateY(-2px); }
.cond-card .cn { font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.cond-card .cd { font-size: 11.5px; color: var(--muted-2); }
.cond-card .arrow { margin-top: 12px; font-size: 11.5px; color: #7fb0f0; display: flex; align-items: center; gap: 4px; }

/* ---------- how ---------- */
.how { padding: 56px 0; border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; }
.step { position: relative; padding-left: 46px; }
.step-n {
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: rgba(59, 130, 246, .12); color: #7fb0f0; border: 1px solid rgba(59, 130, 246, .25);
}
.step h4 { margin: 2px 0 6px; font-size: 14px; font-weight: 600; }
.step p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* ---------- partner band ---------- */
.band {
  margin: 0 0 60px; border: 1px solid rgba(59, 130, 246, .22); border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 95, 174, .18), rgba(15, 26, 43, .5) 62%);
  padding: 34px 36px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.band h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.015em; }
.band p { margin: 0; color: var(--muted); font-size: 13px; max-width: 620px; }
.band .band-cta { margin-left: auto; display: flex; gap: 10px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-brand p { color: var(--muted-2); font-size: 12px; max-width: 300px; margin: 10px 0 0; line-height: 1.7; }
.foot-col h5 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; font-weight: 600; }
.foot-col a { display: block; font-size: 12.5px; color: var(--muted); padding: 3px 0; }
.foot-col a:hover { color: var(--text); }
.disclaimer {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted-2); line-height: 1.7;
}
/* Legal identity under the disclaimer: registry line, then a real address on
   our own domain. Patients and payment processors both look for it. */
.foot-entity {
  margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted-2);
}
.foot-entity a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid rgba(143, 163, 191, .28); padding-bottom: 1px;
}
.foot-entity a:hover { color: var(--text); border-bottom-color: var(--muted); }
.foot-entity .sep { opacity: .4; }

/* ---------- chat widget ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: linear-gradient(150deg, #3b82f6, #1f5fae);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 34px -12px rgba(59, 130, 246, .9), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  transition: transform .18s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .x { display: none; }
.chat-fab.open .ico { display: none; }
.chat-fab.open .x { display: block; }
.chat-nudge {
  position: fixed; right: 88px; bottom: 34px; z-index: 89;
  background: #12213a; border: 1px solid var(--line-2); color: var(--text);
  font-size: 12pt; font-size: 12px; padding: 9px 13px; border-radius: 10px;
  box-shadow: 0 12px 30px -14px #000; opacity: 0; transform: translateX(8px);
  transition: all .3s; pointer-events: none; max-width: 220px;
}
.chat-nudge.show { opacity: 1; transform: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 91;
  width: 372px; max-width: calc(100vw - 32px);
  height: 580px; max-height: calc(100vh - 130px);
  background: #0b1422; border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 30px 70px -24px #000;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98);
  transition: all .22s cubic-bezier(.2, .8, .3, 1);
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(180deg, rgba(31, 95, 174, .16), transparent);
}
.chat-avatar {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, #3b82f6, #1f5fae); flex: none;
}
.chat-head .t { font-size: 13px; font-weight: 600; line-height: 1.3; }
.chat-head .s { font-size: 11px; color: var(--muted-2); display: flex; align-items: center; gap: 5px; }
.chat-head .s i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: inline-block; }
.chat-close { margin-left: auto; background: none; border: 0; color: var(--muted); padding: 4px; }

.chat-body { min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; font-size: 12.5px; line-height: 1.6; padding: 10px 13px; border-radius: 12px; }
.msg.bot { background: rgba(255, 255, 255, .055); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: linear-gradient(180deg, #2f74c9, #235f9f); border-bottom-right-radius: 4px; align-self: flex-end; color: #fff; }
.msg.sys { align-self: center; font-size: 11px; color: var(--muted-2); background: rgba(255, 255, 255, .04); padding: 5px 10px; border-radius: 999px; }
.msg .meta { display: block; font-size: 10px; opacity: .55; margin-top: 4px; }

.chat-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 0 4px; }
.qbtn {
  background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .28);
  color: #a7c6f0; font-size: 11.5px; padding: 6px 10px; border-radius: 999px;
  transition: all .15s; text-align: left;
}
.qbtn:hover { background: rgba(59, 130, 246, .2); color: #dbe8fb; }

.chat-form { flex: none; border-top: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 8px; }
.chat-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-form .row3 { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.chat-form input, .chat-form select, .chat-form textarea {
  width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 11px; color: var(--text); font-size: 12.5px;
  font-family: inherit; outline: 0; transition: border-color .15s;
}
.chat-form input:focus, .chat-form select:focus, .chat-form textarea:focus { border-color: rgba(59, 130, 246, .5); }
.chat-form textarea { resize: none; height: 56px; }
.chat-form input::placeholder, .chat-form textarea::placeholder { color: var(--muted-2); }
.chat-form select { appearance: none; min-height: 34px; }
.chat-foot-note { font-size: 10px; color: var(--muted-2); text-align: center; line-height: 1.5; }

.typing { display: flex; gap: 3px; align-items: center; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: bl 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bl { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ---------- content pages ---------- */
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.page-head .crumb { font-size: 11.5px; color: var(--muted-2); margin-bottom: 12px; }
.page-head .crumb a:hover { color: var(--text); }
.page-head h1 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.02em; line-height: 1.24; font-weight: 660; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 760px; line-height: 1.7; }

.content { max-width: 820px; padding-bottom: 70px; }
.content h2 { font-size: 19px; margin: 38px 0 12px; letter-spacing: -.01em; }
.content h2:first-child { margin-top: 0; }
.content p { color: #c0cee1; font-size: 13.5px; line-height: 1.78; margin: 0 0 14px; }
.content ul { color: #c0cee1; font-size: 13.5px; line-height: 1.78; padding-left: 20px; }
.content li { margin-bottom: 7px; }
.content .note {
  background: rgba(240, 166, 60, .07); border: 1px solid rgba(240, 166, 60, .22);
  border-left: 2px solid var(--amber); border-radius: 0 8px 8px 0;
  padding: 13px 16px; font-size: 12.5px; color: #e8d3ad; margin: 18px 0;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }

.sticky-card {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.sticky-card h4 { margin: 0 0 10px; font-size: 13.5px; }
.sticky-card .kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 12px; }
.sticky-card .kv:last-of-type { border-bottom: 0; }
.sticky-card .kv span:first-child { color: var(--muted-2); }
.sticky-card .kv span:last-child { color: #c8d5e8; text-align: right; }
.sticky-card .btn { width: 100%; margin-top: 12px; }

.faq-item { border-bottom: 1px solid var(--line); padding: 15px 0; }
.faq-q { font-size: 13.5px; font-weight: 550; margin-bottom: 7px; display: flex; gap: 9px; }
.faq-q .q { color: var(--blue-lt); flex: none; }
.faq-a { font-size: 12.5px; color: var(--muted); line-height: 1.72; padding-left: 19px; }

.hosp-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; background: var(--card); transition: all .16s;
}
.hosp-mini:hover { border-color: rgba(59, 130, 246, .38); background: var(--card-2); }
.hosp-mini .nm { font-size: 13px; font-weight: 550; line-height: 1.35; }
.hosp-mini .mt { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.hosp-mini .go { margin-left: auto; color: var(--muted-2); font-size: 16px; }

/* hospital profile */
.prof-head { padding: 34px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.prof-head h1 { margin: 6px 0 8px; font-size: 27px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
.prof-head .alt { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.prof-sections { display: grid; gap: 0; }
.psec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.psec:first-child { padding-top: 0; }
.psec-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 11px; }
.psec-h .n { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; background: rgba(59, 130, 246, .12); color: #7fb0f0; }
.psec-v { font-size: 13px; color: #c8d5e8; line-height: 1.7; }
.psec-v.na { color: var(--muted-2); font-style: italic; font-size: 12.5px; }

/* forms (partner) */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fgroup { margin-bottom: 13px; }
.fgroup label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.fgroup input, .fgroup select, .fgroup textarea {
  width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: 13px;
  font-family: inherit; outline: 0;
}
.fgroup textarea { height: 84px; resize: vertical; }
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus { border-color: rgba(59, 130, 246, .5); }

/* responsive */
@media (max-width: 1180px) {
  #map { scroll-margin-top: 84px; }

.workspace { grid-template-columns: 250px minmax(0, 1fr); height: auto; }
  .detail { grid-column: 1 / -1; max-height: 420px; }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .cond-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #0b1422; border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: 0 18px 30px -18px #000;
  }
  .nav-open .nav-links a { padding: 9px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
  h1.hero-h1 {
  text-wrap: balance; font-size: 30px; }
  .hero { padding: 34px 0 22px; }
  #map { scroll-margin-top: 84px; }

.workspace { grid-template-columns: 1fr; height: auto; }
  .map-panel { height: 400px; order: -1; }
  .panel { max-height: none; }
  .list { max-height: 340px; }
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .wrap { padding: 0 16px; }
  .band { padding: 24px; }
  .band .band-cta { margin-left: 0; }
  .chat-panel { right: 12px; bottom: 84px; width: calc(100vw - 24px); }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-nudge { display: none; }
  .page-head h1 { font-size: 23px; }
  .props-grid { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cond-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  h1.hero-h1 {
  text-wrap: balance; font-size: 26px; }
  .hero-sub { font-size: 14px; }
}

/* ================= journey flow (homepage) ================= */
.journey { padding: 56px 0; border-top: 1px solid var(--line); }
.jrn-flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 34px 16px; margin-top: 30px;
}
.jrn-step { position: relative; padding-top: 30px; }
.jrn-rail { position: absolute; top: 8px; left: 0; right: 0; display: flex; align-items: center; }
.jrn-num {
  width: 23px; height: 23px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: -.02em;
  background: #0d1727; color: #9fc2ee;
  border: 1.5px solid rgba(59, 130, 246, .55);
}
.jrn-line { flex: 1; height: 0; border-top: 1px dashed rgba(120, 160, 215, .26); margin-left: 8px; }
.jrn-step:nth-child(4n) .jrn-line { display: none; }
.jrn-step.who-us .jrn-num { border-color: rgba(45, 212, 191, .6); color: #7fe3d5; }
.jrn-step.who-hospital .jrn-num { border-color: rgba(240, 166, 60, .6); color: #f3c184; }
.jrn-step.who-both .jrn-num { border-color: rgba(167, 139, 250, .6); color: #c4b0fb; }

.jrn-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 31, 51, .85), rgba(15, 26, 43, .55));
  padding: 15px 16px 13px; height: 100%;
  transition: border-color .18s, transform .18s;
}
.jrn-card:hover { border-color: rgba(59, 130, 246, .32); transform: translateY(-2px); }
.jrn-t { font-size: 14px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.jrn-d { font-size: 12.3px; color: var(--muted); line-height: 1.62; min-height: 58px; }
.jrn-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 11px;
  padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .05);
  font-size: 11px;
}
.jrn-who {
  padding: 2px 7px; border-radius: 5px;
  background: rgba(59, 130, 246, .12); color: #8fb8f0; font-weight: 600;
}
.who-us .jrn-who { background: rgba(45, 212, 191, .12); color: #7fe3d5; }
.who-hospital .jrn-who { background: rgba(240, 166, 60, .12); color: #f3c184; }
.who-both .jrn-who { background: rgba(167, 139, 250, .12); color: #c4b0fb; }
.jrn-dur { color: var(--muted-2); margin-left: auto; font-variant-numeric: tabular-nums; }
.jrn-total {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); background: rgba(59, 130, 246, .08);
  border: 1px solid rgba(59, 130, 246, .18); border-radius: 999px; padding: 6px 13px;
  white-space: nowrap;
}
.jrn-total svg { color: #7fb0f0; }
.jrn-note { margin-top: 18px; font-size: 11.5px; color: var(--muted-2); }

/* ================= FAQ ================= */
.faq-rail { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.faq-chip {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: all .16s;
}
.faq-chip:hover { color: var(--text); border-color: rgba(59, 130, 246, .45); background: rgba(59, 130, 246, .08); }
.faq-group { margin-bottom: 30px; scroll-margin-top: 84px; }
.faq-gh {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted-2); margin: 0 0 6px; font-weight: 600;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 17px 2px; background: none; border: 0; text-align: left;
  color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.45;
}
.faq-q svg { flex: none; color: var(--muted-2); transition: transform .22s; }
.faq-item.open .faq-q { color: #a9c9ef; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: #7fb0f0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a-in p {
  margin: 0 0 16px; font-size: 13.4px; color: var(--muted);
  line-height: 1.78; max-width: 82ch;
}
.faq-jump { margin: -6px 0 18px !important; }
.faq-jump a { color: #7fb0f0; font-size: 12.5px; border-bottom: 1px solid rgba(127, 176, 240, .35); }

/* out-of-pocket breakdown */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 18px; }
.pay-col { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; background: rgba(255, 255, 255, .015); }
.pay-col.warn { border-color: rgba(240, 166, 60, .26); background: rgba(240, 166, 60, .045); }
.pay-h { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9fc2ee; margin-bottom: 9px; }
.pay-col.warn .pay-h { color: #f3c184; }
.pay-col ul { margin: 0; padding-left: 15px; }
.pay-col li { font-size: 12.2px; color: var(--muted); line-height: 1.6; margin-bottom: 5px; }

/* ================= service tiers ================= */
.tiers { margin: 56px 0 0; padding-top: 44px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 18px; }
.tier-card {
  text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 15px; color: var(--text);
  display: flex; flex-direction: column; transition: all .18s;
}
.tier-card:hover { border-color: rgba(59, 130, 246, .4); transform: translateY(-2px); }
.tier-card.on { border-color: rgba(59, 130, 246, .75); background: linear-gradient(180deg, rgba(31, 95, 174, .2), rgba(15, 26, 43, .9)); box-shadow: 0 0 0 1px rgba(59, 130, 246, .25) inset; }
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier-name { font-size: 13px; font-weight: 600; }
.tier-check { width: 17px; height: 17px; border-radius: 50%; background: var(--blue-lt); color: #fff; display: grid; place-items: center; flex: none; }
.tier-price { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin: 9px 0 3px; font-variant-numeric: tabular-nums; }
.tier-price .fx, .ts-price .fx { font-size: 11.5px; font-weight: 500; color: var(--muted-2); margin-left: 5px; letter-spacing: 0; }
.tier-note { font-size: 11px; color: var(--amber); margin-bottom: 11px; }
.tier-list { margin: 0; padding-left: 15px; flex: 1; }
.tier-list li { font-size: 11.8px; color: var(--muted); line-height: 1.55; margin-bottom: 5px; }
.tier-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid rgba(59, 130, 246, .28); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(31, 95, 174, .16), rgba(15, 26, 43, .6));
  padding: 15px 18px;
}
.ts-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.ts-name { font-size: 14px; font-weight: 600; margin: 2px 0; }
.ts-price { font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ts-per { font-size: 11.5px; font-weight: 500; color: var(--amber); }
.ts-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ts-fine { font-size: 10.5px; color: var(--muted-2); }
.tier-basis { font-size: 11.5px; color: var(--muted-2); line-height: 1.65; margin-bottom: 34px; max-width: 90ch; }

/* ================= pricing tables ================= */
.src-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 26px; }
.src-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: rgba(255, 255, 255, .015); }
.src-item p { margin: 8px 0 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.src-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 5px; text-transform: uppercase;
}
.src-badge.gov { background: rgba(59, 130, 246, .14); color: #8fb8f0; }
.src-badge.filed { background: rgba(240, 166, 60, .14); color: #f3c184; }
.src-badge.market { background: rgba(148, 163, 184, .14); color: #a8b6c9; }
/* certainty scale: settled (teal) -> estimate (amber) -> words only (slate) */
.src-badge.fixed { background: rgba(45, 212, 191, .14); color: #7fe0cd; }
.src-badge.range { background: rgba(240, 166, 60, .14); color: #f3c184; }
.src-badge.quote { background: rgba(148, 163, 184, .13); color: #a8b6c9; }
/* second line inside a table header: which certainty the column carries */
.ptable th .col-sub {
  display: block; margin-top: 3px; font-size: 9.6px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: rgba(148, 163, 184, .72);
}
/* inline explanation under a fee row */
.ptable .row-note {
  margin-top: 4px; font-size: 11px; color: var(--muted-2); line-height: 1.55;
  white-space: normal; max-width: 62ch;
}
.ptable .free { color: #7fe0cd; font-weight: 600; }
.ptable .fxi { font-size: 10.5px; color: var(--muted-2); font-weight: 400; margin-left: 4px; }

.price-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 11px 0; margin-bottom: 26px;
}
.price-bar-l { display: flex; align-items: center; gap: 10px; }
.pb-label { font-size: 11.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.price-bar-r { font-size: 11.5px; color: var(--muted-2); }
.price-bar-r b { color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; }
.seg button {
  background: none; border: 0; color: var(--muted); font-size: 11.5px; font-weight: 600;
  padding: 5px 14px; transition: all .15s;
}
.seg button.on { background: rgba(59, 130, 246, .2); color: #a9c9ef; }

.sub-h { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 38px 0 14px; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: rgba(15, 26, 43, .5); }
.ptable { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 620px; }
.ptable th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted-2); font-weight: 600; padding: 11px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, .02);
}
.ptable td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .045); color: var(--text); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover td { background: rgba(59, 130, 246, .045); }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable .unit { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; }
.rng i { color: var(--muted-2); font-style: normal; margin: 0 3px; }
.ptable .na { color: var(--muted-2); }
.ptable .fx { display: block; font-size: 10px; color: var(--muted-2); font-weight: 400; }
.table-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.65; margin: 10px 0 0; max-width: 92ch; }

.disc-box {
  margin: 38px 0 0; border: 1px solid var(--line); border-left: 3px solid rgba(240, 166, 60, .5);
  border-radius: var(--radius-sm); padding: 16px 18px; background: rgba(240, 166, 60, .035);
}
.disc-box h4 { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: #f3c184; letter-spacing: .02em; }
.disc-box ul { margin: 0; padding-left: 17px; }
.disc-box li { font-size: 12.2px; color: var(--muted); line-height: 1.68; margin-bottom: 6px; }

/* ================= price band indicator ================= */
.pb-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.pb-dot { width: 9px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.pb-dot.on { background: #4d8fd8; }
.pb-wrap { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pb-txt { font-size: 11px; color: var(--muted-2); }
.pb-link { font-size: 11.5px; color: #7fb0f0; white-space: nowrap; }
.pb-link { display: inline-flex; align-items: center; gap: 4px; }
.pb-link svg { display: inline-block; }
.pb-link:hover { text-decoration: underline; }
.pb-block { display: grid; gap: 9px; }
.pb-row { display: flex; align-items: center; gap: 10px; }
.pb-lbl { font-size: 12.5px; color: var(--text); }
.pb-lv { font-size: 11px; color: var(--muted-2); margin-left: auto; font-variant-numeric: tabular-nums; }
.pb-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.65; max-width: 76ch; }

/* Hospital cost card: three honest states, visually distinct.
   pending  = nothing public, stated as pending (amber, no numbers)
   media    = a newsroom published figures from an on-site visit (blue)
   published= the hospital itself publishes per-item prices (teal) */
.price-card {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--card-2); padding: 12px 13px; margin-bottom: 14px;
}
.price-card.is-pending { border-color: rgba(240, 166, 60, .3); background: rgba(240, 166, 60, .045); }
.price-card.is-published { border-color: rgba(45, 212, 191, .3); background: rgba(45, 212, 191, .04); }
.price-card.is-media { border-color: rgba(59, 130, 246, .3); background: rgba(59, 130, 246, .05); }
.pc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.pc-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  color: #f3c184; border: 1px solid rgba(240, 166, 60, .45); background: rgba(240, 166, 60, .1);
}
.is-published .pc-badge { color: #7fe0cd; border-color: rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .1); }
.is-media .pc-badge { color: #9dc3f7; border-color: rgba(59, 130, 246, .45); background: rgba(59, 130, 246, .12); }
.pc-title { font-size: 12.5px; color: var(--text); font-weight: 600; }
.pc-table { width: 100%; border-collapse: collapse; margin-bottom: 9px; }
.pc-table td { padding: 5px 0; font-size: 12px; color: var(--muted); border-bottom: 1px dashed var(--line); vertical-align: top; }
.pc-table tr:last-child td { border-bottom: 0; }
.pc-table td.amt { text-align: right; color: var(--text); font-weight: 650; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.pc-note { font-size: 11.3px; color: var(--muted-2); line-height: 1.65; }
.pc-kv { display: flex; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.pc-kv b { color: var(--text); font-weight: 600; }
.pc-src { font-size: 11px; color: var(--muted-2); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.pc-src a { color: #7fb0f0; }
.pc-link { display: inline-block; margin-top: 9px; font-size: 11.5px; color: #7fb0f0; }
.pc-link:hover { text-decoration: underline; }

/* the review fee that sits beside every cost figure: hospital-charged, fixed
   range band, always labelled as an estimate */
.fee-line {
  display: grid; gap: 3px; margin-top: 12px; padding: 10px 12px;
  border: 1px solid rgba(240, 166, 60, .22); border-left: 2px solid rgba(240, 166, 60, .55);
  border-radius: var(--radius-sm); background: rgba(240, 166, 60, .04);
}
.fee-k { font-size: 11.6px; font-weight: 650; color: #f3c184; }
.fee-v { font-size: 11.5px; color: var(--muted); line-height: 1.62; }

@media (max-width: 1100px) {
  .jrn-flow { grid-template-columns: repeat(2, 1fr); }
  .jrn-step:nth-child(4n) .jrn-line { display: block; }
  .jrn-step:nth-child(2n) .jrn-line { display: none; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-grid { grid-template-columns: 1fr; }
  .src-legend { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .jrn-flow { grid-template-columns: 1fr; gap: 26px; }
  .jrn-step:nth-child(2n) .jrn-line { display: block; }
  .jrn-step:nth-child(n) .jrn-line { display: block; }
  .jrn-d { min-height: 0; }
  .tier-grid { grid-template-columns: 1fr; }
  .jrn-total { white-space: normal; }
  .tier-summary { flex-direction: column; align-items: flex-start; }
  .ts-actions { align-items: flex-start; }
  .faq-q { font-size: 13.8px; }
}

.table-wrap.narrow { max-width: 680px; }
.table-wrap.narrow .ptable { min-width: 0; }

/* ================= chat: staff replies, attachments ================= */
.msg.staff {
  background: linear-gradient(180deg, #17563f, #124534);
  border: 1px solid rgba(45, 212, 191, .38);
  border-bottom-right-radius: 4px; align-self: flex-end; color: #eafff8;
}
.msg.staff .meta { color: #9ae8d5; opacity: .85; }
.staff-meta { font-weight: 600; }
.msg-files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mfile {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; padding: 2px 7px; border-radius: 4px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .13);
}
.msg.bot .mfile { background: rgba(255, 255, 255, .05); }
.mfile i { font-style: normal; opacity: .55; }

.fab-badge[hidden] { display: none; }
.fab-badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; background: #ef6461; color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
  border: 1.5px solid #080d17;
}

.attach-row { display: flex; align-items: center; gap: 8px; }
.attach-btn {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  background: rgba(255, 255, 255, .05); border: 1px dashed rgba(255, 255, 255, .2);
  color: #a9c9ef; font-size: 11.5px; padding: 5px 10px; border-radius: 7px;
}
.attach-btn:hover { border-color: rgba(59, 130, 246, .55); color: #cfe0f7; background: rgba(59, 130, 246, .1); }
.attach-hint { font-size: 10.5px; color: var(--muted-2); line-height: 1.4; }
.attach-list { display: none; flex-wrap: wrap; gap: 5px; }
.attach-list.has { display: flex; }
.pf {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .28);
  border-radius: 6px; padding: 3px 8px; font-size: 11px; color: #bcd6f5;
}
.pf b { font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf i { font-style: normal; opacity: .55; }
.pf button {
  background: none; border: 0; color: #8fb8f0; font-size: 14px; line-height: 1; padding: 0 0 0 2px;
}
.pf button:hover { color: #ff9c99; }
.foot-staff { opacity: .55; font-size: 12px; }
.foot-staff:hover { opacity: 1; }

/* ================= operator console entry ================= */
.nav-staff {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line-2); color: #b9cbe3;
  font-size: 11.5px; letter-spacing: .2px; white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
}
.nav-staff:hover { color: #fff; border-color: rgba(59, 130, 246, .55); background: rgba(59, 130, 246, .12); }
.nav-staff svg { flex: none; }
@media (max-width: 900px) { .nav-staff .ns-txt { display: none; } .nav-staff { padding: 0 8px; } }

/* ================= payment block (FAQ) ================= */
.paybox {
  margin-top: 22px; padding: 20px 22px 18px;
  background: linear-gradient(180deg, rgba(31, 95, 174, .10), rgba(15, 26, 43, .55));
  border: 1px solid rgba(59, 130, 246, .24); border-radius: 14px;
}
.pay-head h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.1px; }
.pay-lang {
  margin: 0 0 14px; font-size: 12.2px; line-height: 1.7; color: #a8c2e2;
  padding-left: 10px; border-left: 2px solid rgba(45, 212, 191, .5);
}
.pay-steps {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.pay-steps li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.2px; line-height: 1.6; color: #c4d6ec;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 11px;
}
.pay-step-n {
  position: static; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(59, 130, 246, .22); border: 1px solid rgba(59, 130, 246, .45);
  color: #bcd6f5; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; margin-top: 1px;
}
.pay-grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.pay-h4 {
  margin: 0 0 9px; font-size: 11px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted-2);
}
.pay-m {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.pay-m:last-child { border-bottom: 0; }
.pay-m-main { min-width: 0; }
.pay-m-h { font-size: 12.6px; color: #dbe7f6; }
.pay-m-d { font-size: 11.4px; line-height: 1.6; color: var(--muted); margin-top: 2px; }
.pay-off {
  flex: none; font-size: 10.5px; color: #8fa3bf; padding: 3px 8px; border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, .18); white-space: nowrap;
}
.pay-m.live .pay-off { border-style: solid; border-color: rgba(45, 212, 191, .5); color: #9ae8d5; }
.pay-go {
  flex: none; font-size: 11.5px; font-weight: 600; color: #06213f;
  background: var(--teal); border-radius: 20px; padding: 4px 12px;
}
.pay-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-k { font-size: 11.5px; color: var(--muted-2); }
.pay-v { font-size: 11.9px; line-height: 1.62; color: #c4d6ec; overflow-wrap: anywhere; }
.pay-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap;
}
.pay-warn { font-size: 11.5px; line-height: 1.6; color: var(--muted); max-width: 62ch; }

@media (max-width: 900px) {
  .pay-steps { grid-template-columns: 1fr; }
  .pay-grid2 { grid-template-columns: 1fr; gap: 16px; }
  .paybox { padding: 16px 15px 14px; }
}

/* ---------- services box (homepage) ----------
   One bordered panel, three cards. Deliberately a single frame: this is the only
   block on the page selling paid work, and it should not read as a fourth
   marketing strip. Prices reuse the .src-badge certainty colours from the price
   page so "fixed / range / quoted" means the same thing in both places. */
.svc { padding: 0 0 52px; }
#services { scroll-margin-top: 84px; }
.svc-box {
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 18px;
  padding: 26px 26px 20px;
  background:
    radial-gradient(120% 90% at 6% 0%, rgba(31, 95, 174, .20), transparent 62%),
    linear-gradient(180deg, rgba(15, 26, 43, .92), rgba(9, 15, 26, .78));
  box-shadow: 0 22px 60px -46px rgba(59, 130, 246, .8);
}
.svc-head { max-width: 760px; margin-bottom: 20px; }
.svc-eb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.8px; letter-spacing: .11em; text-transform: uppercase;
  color: #9dc0ee; margin-bottom: 10px;
}
.svc-eb .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(45, 212, 191, .16); }
.svc-head h2 { margin: 0 0 7px; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.svc-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.66; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 12px; align-items: stretch; }
.svc-card {
  display: flex; flex-direction: column;
  background: rgba(8, 14, 25, .62);
  border: 1px solid var(--line); border-radius: 13px;
  padding: 17px 17px 15px;
  transition: border-color .18s, transform .18s, background .18s;
}
.svc-card:hover { border-color: rgba(59, 130, 246, .34); background: rgba(13, 22, 37, .8); transform: translateY(-2px); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.svc-ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(59, 130, 246, .13); color: #7fb0f0;
}
.svc-n { font-size: 10.6px; font-weight: 650; letter-spacing: .12em; color: #38496a; }
.svc-card h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 620; letter-spacing: -.01em; line-height: 1.38; }
.svc-lead { margin: 0 0 11px; font-size: 12.3px; color: var(--muted); line-height: 1.6; }
.svc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.svc-list li { position: relative; padding-left: 15px; font-size: 12.1px; line-height: 1.55; color: #bfd0e4; }
.svc-list li::before {
  content: ""; position: absolute; left: 1px; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: rgba(45, 212, 191, .8);
}
.svc-price { margin-top: auto; padding-top: 13px; }
.svc-price-k {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 10.2px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2);
  padding-top: 12px; border-top: 1px solid var(--line);
}
.svc-price-v { margin-top: 6px; font-size: 12px; line-height: 1.6; color: #cbd9ea; }
.svc-btn {
  margin-top: 13px; width: 100%;
  background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .34);
  color: #cfe0ff; border-radius: 8px; padding: 8px 12px;
  font-size: 12.4px; font-weight: 600;
  transition: background .16s, border-color .16s, color .16s;
}
.svc-btn:hover { background: rgba(59, 130, 246, .2); border-color: rgba(59, 130, 246, .55); color: #fff; }

.svc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.svc-foot p { margin: 0; font-size: 11.6px; line-height: 1.62; color: var(--muted-2); max-width: 90ch; }
.svc-see {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; color: #7fb0f0; white-space: nowrap;
}
.svc-see:hover { color: #a9c9ef; }

@media (max-width: 860px) {
  .svc-box { padding: 20px 16px 16px; border-radius: 15px; }
  .svc-head h2 { font-size: 18px; }
  .svc-foot { gap: 10px; }
}
