/* Layout cues borrowed from health and order-tracking apps on Mobbin:
   white metric cards on a grey canvas (Apple Health, Bevel), a status pill per item,
   and an ETA headline above a dotted step tracker (Keeta, Blue Apron). */
:root {
  --brand: #0a6aa8; --brand-soft: #e7f1f9; --ink: #16202a; --sub: #5f6b76; --line: #e3e7eb;
  --bg: #f2f4f7; --ok: #1f8a4c; --ok-soft: #e6f5ec; --wait: #b26a00; --wait-soft: #fff3df;
  --run: #2f6fd6; --run-soft: #e8f0fd; --warn: #c2410c; --r: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink);
  background: #dfe4ea; display: flex; gap: 32px; justify-content: center; padding: 24px; flex-wrap: wrap; }
.panel { width: 320px; background: #fff; padding: 20px; border-radius: var(--r); align-self: flex-start; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.panel h1 { font-size: 18px; margin: 0 0 8px; }
.panel select, .panel > button { width: 100%; padding: 9px 10px; margin: 6px 0; font: inherit; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; }
.panel > button { cursor: pointer; background: var(--brand-soft); color: var(--brand); font-weight: 600; border: 0; }
.panel details { margin: 10px 0; } .panel summary { cursor: pointer; font-weight: 600; }
.muted { color: var(--sub); }
.small { font-size: 12px; }
.mode { padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.mode.on { background: var(--ok-soft); } .mode.off { background: var(--wait-soft); }

/* Phone frame */
.phone { position: relative; width: 390px; height: 800px; background: var(--bg); border-radius: 44px;
  border: 10px solid #111; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.statusbar { display: flex; justify-content: space-between; padding: 12px 26px 0; font-weight: 600; font-size: 13px; background: var(--bg); }
.topbar { padding: 8px 18px 6px; background: var(--bg); }
.topbar small { display: block; color: var(--sub); font-size: 12px; }
.topbar span { font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
.screen { flex: 1; overflow-y: auto; padding: 8px 14px 90px; }
.screen h3 { margin: 18px 4px 8px; font-size: 13px; color: var(--sub); font-weight: 600; }
.intro { margin: 0 4px 12px; font-size: 13px; }

/* Tab bar */
.tabs { display: flex; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 6px 4px 14px; }
.tabs button { flex: 1; border: 0; background: none; font: inherit; font-size: 11px; color: #8a949e; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tabs svg { width: 22px; height: 22px; }
.tabs button.active { color: var(--brand); font-weight: 600; }

/* Cards */
.card { background: #fff; border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.card[data-go] { cursor: pointer; }
.card p { margin: 6px 0; }
.card-title { font-weight: 650; font-size: 15px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chev { color: #b0b8c0; font-size: 18px; }
.list .card { display: flex; justify-content: space-between; align-items: center; }

.hero { background: linear-gradient(135deg, #0a6aa8, #0b8bb8); color: #fff; }
.hero .muted, .hero .link { color: #d6ecf8; }
.hero .big { font-size: 30px; font-weight: 700; line-height: 1.1; margin: 6px 0 2px; }
.hero .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); margin: 10px 0 6px; overflow: hidden; }
.hero .bar i { display: block; height: 100%; background: #fff; border-radius: 3px; }

.notice { border: 1px solid #f3d9a6; background: #fffaf0; }
.notice .icon { width: 36px; height: 36px; border-radius: 50%; background: var(--wait-soft); color: var(--wait);
  display: grid; place-items: center; font-weight: 700; flex: 0 0 36px; }
.notice .head { display: flex; gap: 12px; align-items: center; }
.ok-card { display: flex; gap: 10px; align-items: center; }
.ok-card::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok);
  display: grid; place-items: center; font-weight: 700; }

/* Service grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.tile { background: #fff; border-radius: 14px; padding: 14px 6px 12px; text-align: center; font-size: 12px; min-height: 86px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--sub); }
.tile .ic { width: 38px; height: 38px; border-radius: 12px; background: #f1f3f5; display: grid; place-items: center; color: #7b8691; }
.tile .ic svg { width: 20px; height: 20px; }
.tile[data-go] { cursor: pointer; color: var(--ink); font-weight: 600; }
.tile[data-go] .ic { background: var(--brand-soft); color: var(--brand); }

/* Result card: status pill, ETA headline, dotted tracker */
.result { border-left: 4px solid var(--line); }
.result.da_co { border-left-color: var(--ok); }
.result.cho_bac_si_duyet { border-left-color: var(--wait); }
.result.dang_xu_ly { border-left-color: var(--run); }
.result .date { font-size: 12px; color: var(--sub); }
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.da_co { background: var(--ok-soft); color: var(--ok); }
.pill.cho_bac_si_duyet { background: var(--wait-soft); color: var(--wait); }
.pill.dang_xu_ly { background: var(--run-soft); color: var(--run); }
.eta { margin: 10px 0 0; font-size: 12px; color: var(--sub); }
.eta b { display: block; font-size: 17px; color: var(--ink); }
.track { display: flex; margin: 14px 0 2px; }
.track div { flex: 1; position: relative; text-align: center; font-size: 10.5px; color: #9aa4ad; padding-top: 18px; }
.track div::before { content: ""; position: absolute; top: 4px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: #d5dbe0; z-index: 1; }
.track div::after { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: #d5dbe0; }
.track div:first-child::after { display: none; }
.track div.on { color: var(--ink); }
.track div.on::before, .track div.on::after { background: var(--brand); }
.track div.now::before { width: 14px; height: 14px; margin-left: -7px; top: 2px; box-shadow: 0 0 0 4px var(--brand-soft); }
.track div.now { font-weight: 650; color: var(--brand); }

.file { display: flex; gap: 12px; align-items: center; margin: 14px 0 4px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.file .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 38px; }
.file svg { width: 20px; height: 20px; }

/* Buttons and forms */
button.primary { width: 100%; background: var(--brand); color: #fff; border: 0; padding: 12px 14px; border-radius: 12px;
  font: inherit; font-weight: 600; cursor: pointer; margin-top: 8px; }
button.ghost { width: 100%; background: var(--brand-soft); color: var(--brand); border: 0; padding: 11px 14px; border-radius: 12px;
  font: inherit; font-weight: 600; cursor: pointer; margin-top: 10px; }
button.link, .link { background: none; border: 0; color: var(--brand); padding: 4px 0; font: inherit; font-weight: 600; cursor: pointer;
  display: inline-block; text-decoration: none; }
label { display: block; margin: 12px 0 0; font-size: 13px; font-weight: 600; }
input { width: 100%; padding: 11px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fafbfc; }
input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.hint { font-size: 12px; background: var(--wait-soft); color: #6b4a00; padding: 8px 10px; border-radius: 10px; margin: 8px 0 0; }

/* Assistant */
.fab { position: absolute; right: 16px; bottom: 82px; background: var(--brand); color: #fff; border: 0; display: flex; gap: 6px; align-items: center;
  border-radius: 999px; padding: 11px 16px; font: inherit; font-weight: 600; box-shadow: 0 6px 18px rgba(10,106,168,.35); cursor: pointer; }
.fab svg { width: 18px; height: 18px; }
.chat { position: absolute; inset: 70px 0 0 0; background: #fff; display: flex; flex-direction: column; border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,.15); }
.chat.hidden { display: none; }
.chat::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: #d5dbe0; margin: 8px auto 0; }
.chat-head { padding: 10px 16px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-head button { border: 0; background: #f1f3f5; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--sub); }
.chat-note { margin: 0 14px; padding: 9px 12px; font-size: 12px; background: var(--wait-soft); color: #6b4a00; border-radius: 12px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 16px; margin-bottom: 8px; white-space: pre-wrap; }
.msg.user { margin-left: auto; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: #f1f3f5; border-bottom-left-radius: 4px; }
.msg .link { display: block; margin-top: 6px; background: #fff; border-radius: 10px; padding: 7px 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.chips button { border: 1px solid #cfe0ee; background: #fff; color: var(--brand); border-radius: 999px; padding: 6px 11px; font-size: 12px; cursor: pointer; }
#ask { display: flex; gap: 8px; padding: 10px 14px 18px; border-top: 1px solid var(--line); }
#ask input { margin: 0; border-radius: 999px; }
#ask button { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 0 16px; cursor: pointer; font-weight: 600; }
