/* ==========================================================================
   earn — stylesheet
   Brand: deep navy #13284A + gold #C68A2E on a cool neutral.
   Layout: single phone column, mobile-first, app-shell.
   Signature: the gold "road home" motif (active nav + section rules) and the
   concentric-ring locator radar (house at the centre).
   ========================================================================== */

:root {
  --ink: #13284a;
  --ink-2: #23406f;
  --ink-soft: #34507f;
  --gold: #c68a2e;
  --gold-2: #e2a53c;
  --gold-soft: #f4e7cf;
  --bg: #e9edf3;
  --panel: #f4f6fa;
  --surface: #ffffff;
  --muted: #62708a;
  --muted-2: #93 9fb4;
  --muted-2: #939fb4;
  --line: #e4e8ef;
  --line-2: #eef1f6;
  --ok: #1c7a57;
  --danger: #b4471f;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(19, 40, 74, .06), 0 1px 3px rgba(19, 40, 74, .05);
  --shadow-md: 0 6px 20px rgba(19, 40, 74, .10);
  --shadow-lg: 0 18px 50px rgba(19, 40, 74, .22);
  --col: 480px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Noto Sans Thai", "Sukhumvit Set", "Noto Sans", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #f2f5fa 0%, var(--bg) 60%) fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- App column ---------------------------------------------------------- */
.app {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--panel);
  position: relative;
  box-shadow: 0 0 0 1px rgba(19, 40, 74, .05), 0 30px 80px rgba(19, 40, 74, .12);
  overflow: clip;
}
@media (min-width: 520px) {
  body { padding: 0; }
  .app { min-height: 100dvh; }
}

.screen {
  padding: 16px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
  animation: rise .28s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .screen, .sheet, .toast, .card { animation: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Type helpers -------------------------------------------------------- */
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 100%);
  transform: skewX(-18deg);
}
.h1 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 22px 2px 12px;
}
.section-head .h2 { line-height: 1.1; }
.link {
  color: var(--ink-2); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 3px;
}
.link:hover { color: var(--gold); }

/* ---- Top bar ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 12px) 14px 12px;
  background: linear-gradient(180deg, var(--panel) 72%, rgba(244, 246, 250, 0));
  backdrop-filter: blur(6px);
}
.topbar .back {
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.topbar .title { font-weight: 800; font-size: 17px; letter-spacing: -.01em; flex: 1; }
.topbar .spacer { flex: 1; }

.brandmark { display: inline-flex; align-items: baseline; gap: 0; font-weight: 800; letter-spacing: -.03em; }
.brandmark .w { font-size: 22px; color: var(--ink); }
.brandmark .dot { color: var(--gold); }
.wordmark-line { position: relative; }
.wordmark-line::after {
  content: ""; position: absolute; left: 1px; right: 38%; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 100%);
  border-radius: 3px; transform: skewX(-18deg);
}

/* ---- Buttons & chips ----------------------------------------------------- */
.btn {
  appearance: none; border: 0; border-radius: 13px;
  padding: 13px 18px; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .05s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 18px rgba(19,40,74,.22); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%); color: #2a1c00; box-shadow: 0 8px 18px rgba(198,138,46,.32); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-soft { background: #e9eef6; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 20px; font-size: 16px; }

.chip {
  appearance: none; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 700;
  white-space: nowrap; transition: all .12s ease;
}
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }

.seg {
  display: inline-flex; background: #e7ecf4; border-radius: 12px; padding: 4px; gap: 4px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 9px;
}
.seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
}
.pill-verified { background: var(--gold-soft); color: #7a5410; }
.pill-rent { background: #e3f0ea; color: #19694b; }
.pill-buy { background: #e6ecf7; color: #284f93; }
.pill-deal { background: var(--ink); color: #fff; }
.pill-ghost { background: #eef1f6; color: var(--muted); }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-pad { padding: 14px; }
.stack > * + * { margin-top: 12px; }

/* cover art block */
.cover {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  display: grid; place-items: center; overflow: hidden;
}
.cover svg { width: 56%; height: 56%; opacity: .92; }
.cover .cover-tags {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.cover .price-tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(19,40,74,.92); color: #fff; backdrop-filter: blur(2px);
  padding: 6px 11px; border-radius: 10px; font-weight: 800; font-size: 15px;
}
.cover .price-tag small { font-weight: 600; opacity: .8; font-size: 11px; }
.fav {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  box-shadow: var(--shadow-md); color: var(--ink);
}
.fav.is-on { color: var(--gold); }

/* list-card layout (compact horizontal) */
.lc { display: flex; gap: 12px; padding: 12px; align-items: stretch; }
.lc .lc-art {
  width: 104px; min-width: 104px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; aspect-ratio: 1 / 1;
}
.lc .lc-art svg { width: 54%; height: 54%; }
.lc .lc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc .lc-title { font-weight: 700; font-size: 15px; line-height: 1.25; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc .lc-meta { color: var(--muted); font-size: 12.5px; margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.lc .lc-price { font-weight: 800; color: var(--ink); font-size: 15px; }
.lc .lc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }

.facts { display: flex; gap: 6px; flex-wrap: wrap; }
.fact {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-2); background: #f0f3f8;
  padding: 4px 9px; border-radius: 8px; font-weight: 600;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-list { display: grid; gap: 12px; }

/* ---- Rating stars -------------------------------------------------------- */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.stars .off { color: #d8dee8; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.rating-line b { color: var(--ink); }
.rating-line .count { color: var(--muted); font-weight: 500; }

/* avatar */
.avatar {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
}
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }

/* ---- Onboarding / hub intent tiles -------------------------------------- */
.hero {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(226,165,60,.16) 0%, rgba(226,165,60,0) 45%),
    linear-gradient(160deg, #16294b 0%, #1d3866 100%);
  color: #fff; padding: 20px 18px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero .eyebrow { color: #d9c49b; }
.hero .eyebrow::before { background: linear-gradient(90deg, var(--gold-2), #f0d49a); }
.hero h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 6px; line-height: 1.15; }
.hero p { color: #c5d1e6; font-size: 14px; margin: 0; max-width: 30ch; }
.hero .road {
  position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px;
  background: conic-gradient(from 200deg at 50% 50%, rgba(226,165,60,.0), rgba(226,165,60,.28), rgba(226,165,60,0));
  border-radius: 50%; filter: blur(2px);
}

.intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.intent {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px; min-height: 112px;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s;
}
.intent:hover { box-shadow: var(--shadow-md); border-color: #d7deea; transform: translateY(-1px); }
.intent:active { transform: translateY(0); }
.intent .ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: #eef2f8; color: var(--ink);
}
.intent.gold .ic { background: var(--gold-soft); color: #7a5410; }
.intent .t { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.intent .d { font-size: 12px; color: var(--muted); line-height: 1.35; }
.intent .count { margin-top: auto; font-size: 11.5px; font-weight: 800; color: var(--ink-2); }

.intent-wide {
  grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; gap: 12px;
}
.intent-wide .d { margin: 2px 0 0; }
.intent-wide .body { flex: 1; }
.intent-wide .chev { color: var(--muted); }

/* ---- Locator radar (signature) ------------------------------------------ */
.radar-card { padding: 14px; }
.radar-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 320px; margin: 6px auto 2px; }
.radar {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #f3f6fb 70%, #eef2f8 100%);
  border: 1px solid var(--line);
}
.ring { position: absolute; border: 1px dashed #cbd5e6; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.ring-label {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; font-weight: 800; color: var(--muted-2); letter-spacing: .04em;
  background: var(--surface); padding: 0 4px;
}
.radar .cross-h, .radar .cross-v { position: absolute; background: #e2e8f2; }
.radar .cross-h { left: 6%; right: 6%; top: 50%; height: 1px; }
.radar .cross-v { top: 6%; bottom: 6%; left: 50%; width: 1px; }
.home-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: grid; place-items: center; color: #2a1c00; z-index: 5;
  box-shadow: 0 0 0 6px rgba(226,165,60,.18), var(--shadow-md);
}
.home-pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(226,165,60,.35); animation: ping 2.6s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .home-pin::after { animation: none; } }
.pin {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%,-50%);
  display: grid; place-items: center; color: #fff; border: 2px solid #fff;
  box-shadow: var(--shadow-sm); z-index: 4; font-size: 0;
}
.pin svg { width: 12px; height: 12px; }
.pin.home { background: #2b67c9; }
.pin.jobs { background: var(--gold); color: #2a1c00; }
.pin.people { background: #6b53b4; }
.pin.market { background: #1c7a57; }
.pin.places { background: #c2541f; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* area selector bar */
.area-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; box-shadow: var(--shadow-sm); margin-top: 14px;
}
.area-bar .loc { width: 34px; height: 34px; border-radius: 10px; background: #eef2f8; display: grid; place-items: center; color: var(--ink); }
.area-bar .ab-body { flex: 1; min-width: 0; }
.area-bar .ab-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.area-bar .ab-v { font-weight: 800; font-size: 15px; }

/* ---- Detail screens ------------------------------------------------------ */
.detail-cover { aspect-ratio: 16 / 11; }
.detail-cover svg { width: 46%; height: 46%; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.kv .v { font-weight: 700; font-size: 15px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.fact-grid .fg { background: #f1f4f9; border-radius: 12px; padding: 10px 4px; }
.fact-grid .fg .n { font-weight: 800; font-size: 17px; }
.fact-grid .fg .l { font-size: 11px; color: var(--muted); }

.note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #f6f4ee; border: 1px solid #ece4d2; color: #6b5a32;
  padding: 12px; border-radius: 12px; font-size: 13px; line-height: 1.45;
}
.note .ic { color: var(--gold); margin-top: 1px; }
.note.info { background: #eef3fb; border-color: #dde7f6; color: #2f4b78; }
.note.info .ic { color: var(--ink-2); }

.owner-card { display: flex; gap: 12px; align-items: center; }
.owner-card .oc-body { flex: 1; min-width: 0; }
.owner-card .oc-name { font-weight: 800; font-size: 16px; }
.reciprocal {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2);
  background: #eef2f8; padding: 7px 11px; border-radius: 10px; font-weight: 600; line-height: 1.3;
}
.reciprocal .swap { color: var(--gold); }

.review { padding: 12px 0; border-top: 1px solid var(--line-2); }
.review:first-of-type { border-top: 0; }
.review .rv-head { display: flex; align-items: center; gap: 10px; }
.review .rv-who { font-weight: 700; font-size: 14px; }
.review .rv-role { font-size: 11px; color: var(--muted); }
.review .rv-date { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.review .rv-text { font-size: 13.5px; color: #3a465c; margin: 7px 0 0; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 12px; font-weight: 600; color: var(--ink-2); background: #eef2f8; padding: 5px 10px; border-radius: 999px; }

/* sticky action bar at the bottom of detail */
.action-bar {
  position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  margin-top: 16px;
  background: linear-gradient(0deg, var(--panel) 70%, rgba(244,246,250,0));
}

/* ---- Bottom navigation --------------------------------------------------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: var(--col); z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.tab {
  border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; height: var(--nav-h); position: relative;
}
.tab svg { width: 23px; height: 23px; }
.tab.is-active { color: var(--ink); }
.tab.is-active::before {
  content: ""; position: absolute; top: 8px; width: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: skewX(-18deg);
}
.tab-fab {
  align-self: center; justify-self: center;
  width: 54px; height: 54px; border-radius: 50%; margin-top: -18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1c00;
  display: grid; place-items: center; border: 4px solid var(--panel);
  box-shadow: 0 10px 22px rgba(198,138,46,.4);
}
.tab-fab svg { width: 26px; height: 26px; }

/* ---- Sheets / modals ----------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(13,24,44,.5);
  backdrop-filter: blur(2px); display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: var(--col); background: var(--panel);
  border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 88dvh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: sheetUp .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: #d4dbe6; margin: 6px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head .h2 { font-size: 18px; }
.sheet .x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #e9eef5; display: grid; place-items: center; color: var(--ink); }

.dialog {
  margin: auto; border-radius: 20px; max-width: 360px; width: calc(100% - 40px);
  background: var(--surface); padding: 22px; box-shadow: var(--shadow-lg); text-align: center;
  animation: pop .26s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.dialog .big-ic {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--gold-soft); display: grid; place-items: center; color: #7a5410;
}
.dialog h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.dialog p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* ---- Forms --------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input, .textarea, select.input {
  width: 100%; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 12px 13px; font-size: 15px; color: var(--ink);
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, select.input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,165,60,.18); outline: none;
}
.textarea { min-height: 96px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer;
}
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold); }
.check span { font-size: 14px; font-weight: 600; }

/* fee table */
.fee-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line-2); }
.fee-row:first-child { border-top: 0; }
.fee-row .fk { font-size: 14px; }
.fee-row .fk small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.fee-row .fv { font-weight: 800; }
.fee-row .fv.free { color: var(--ok); }
.fee-total { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--line); }
.fee-total .ft-k { font-weight: 700; }
.fee-total .ft-v { font-weight: 800; font-size: 20px; color: var(--ink); }

/* ---- Toast --------------------------------------------------------------- */
.toast-wrap {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); z-index: 80;
  width: max-content; max-width: 90%;
}
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .25s ease both;
}
.toast .ic { color: var(--gold-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* empty state */
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty .ic { width: 56px; height: 56px; border-radius: 16px; background: #eef2f8; display: grid; place-items: center; margin: 0 auto 12px; color: var(--ink-2); }

/* lang switch row */
.lang-row { display: flex; gap: 8px; }
.lang-row .chip { flex: 1; justify-content: center; }

/* small util */
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.center { text-align: center; }
.hide { display: none !important; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }

/* ---- first-paint splash (replaced by app.js) ---- */
.boot {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.boot-mark { position: relative; }
.boot-word {
  font-size: 44px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink);
}
.boot-mark::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 4px; height: 5px;
  border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.boot-sub {
  font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted);
}
