/* ============================================================
   HARAKA — Design System (self-contained; Plus Jakarta Sans w/ system fallback)
   Owner reference (2026-10-26): MILKY cream glass, pastel blobs,
   per-category color-mix cards, static TENGO AEGIS footer.
   ============================================================ */

:root {
  --bg: #FBF7EE;
  --bg-2: #FAF5E9;
  --text: #0A1A2C;
  --ink: #0A1A2C;
  --ink-soft: #1C3A5A;
  --muted: #34506B;
  --card: rgba(255, 255, 255, .72);
  --card-solid: #FFFFFF;
  --line: rgba(15, 60, 100, .16);
  --line-soft: rgba(15, 60, 100, .09);
  --primary: #0A7FAE;
  --brand: #0A7FAE;
  --brand2: #2656E0;
  --cyan: #0AA6D6;
  --green: #13B388;
  --amber: #E8A200;
  --danger: #D64550;
  --ok: #12B886;
  --info: #2656E0;
  --blob1: rgba(255, 226, 170, .55);
  --blob2: rgba(255, 192, 200, .3);
  --blob3: rgba(190, 236, 200, .4);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow: 0 8px 22px rgba(30, 70, 110, .13);
  --shadow-sm: 0 2px 10px rgba(30, 70, 110, .09);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFFCF5, #FAF5E9 60%, #F5EEDD);
}
.bgfx { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bgfx i { position: absolute; border-radius: 50%; filter: blur(70px); }
.bgfx i:nth-child(1) { width: 380px; height: 380px; left: -120px; top: -100px; background: var(--blob1); }
.bgfx i:nth-child(2) { width: 360px; height: 360px; right: -140px; bottom: -60px; background: var(--blob2); }
.bgfx i:nth-child(3) { width: 300px; height: 300px; right: -80px; top: 35%; background: var(--blob3); }
#app { position: relative; z-index: 1; }

img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.main-view { flex: 1; padding-top: 20px; padding-bottom: 96px; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-2 { margin-bottom: 12px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }

/* ===== Marquee ===== */
.marquee {
  background: rgba(19, 179, 136, .12);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft); font-size: 12.5px; font-weight: 600;
  overflow: hidden; white-space: nowrap; padding: 6px 0;
}
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 26s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ===== Floating glass pill header ===== */
.topbar { position: sticky; top: 0; z-index: 50; padding: 12px 16px 4px; }
.topbar-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(19, 179, 136, .16), rgba(255, 255, 255, .72) 70%, rgba(10, 166, 214, .14));
  border: 1px solid rgba(19, 179, 136, .38);
  border-radius: 999px;
  padding: 9px 14px 9px 18px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.brand-swoosh { width: 42px; height: 42px; filter: drop-shadow(0 3px 8px rgba(10, 127, 174, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-weight: 800; letter-spacing: .14em; font-size: 20px; line-height: 1;
  background: linear-gradient(90deg, var(--text), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-tag { font-size: 7.5px; letter-spacing: .24em; color: var(--muted); font-weight: 700; text-transform: uppercase; white-space: nowrap; margin-top: 3px; }

.h-search {
  flex: 1; min-width: 120px; max-width: 640px; margin: 0 auto;
  padding: 11px 18px; font-family: inherit; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, .8); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.h-search::placeholder { color: var(--muted); }
.h-search:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 127, 174, .14);
}
.h-search::-webkit-search-cancel-button { -webkit-appearance: none; }

.topbar-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 3px;
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.lang-pill span { padding: 6px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.lang-pill span.on { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
.lang-sep { display: none; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  color: var(--ink); font-size: 17px;
}
.icon-btn:hover { background: #fff; text-decoration: none; }
.icon-svg { width: 20px; height: 20px; }
.badge {
  position: absolute; top: -3px; right: -3px;
  background: #FF5A7A; color: #fff; border-radius: 99px;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  display: grid; place-items: center; padding: 0 4px;
  box-shadow: 0 0 0 2px #fff;
}
#authArea { display: flex; align-items: center; gap: 8px; }

/* ===== Shell: sidebar + content ===== */
.shell {
  max-width: 1440px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 225px minmax(0, 1fr);
  gap: 20px; padding: 14px 16px 0;
}
.sidebar { min-width: 0; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar .side-nav {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  position: sticky; top: 86px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm);
}
.side-nav a {
  position: relative;
  color: var(--ink-soft); font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; text-align: center;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.side-nav a:hover { background: rgba(255, 255, 255, .9); color: var(--brand); text-decoration: none; }
.side-nav a.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 127, 174, .3);
}

/* ===== Mobile bottom tab bar ===== */
.tabbar { display: none; }

/* ===== Home: CHAGUA HUDUMA wide cards + map ===== */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.choose-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 4px 0 12px;
}
.choose-head b { color: var(--brand); }
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-bar {
  display: flex; align-items: center; gap: 13px;
  padding: 10px 16px 10px 10px; border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ac) 17%, rgba(255, 255, 255, .72)), color-mix(in srgb, var(--green) 7%, rgba(255, 255, 255, .75)) 85%);
  border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent);
  color: var(--ink); font-weight: 700; font-size: 14px;
  text-decoration: none !important;
  transition: transform .12s, box-shadow .18s;
  box-shadow: var(--shadow-sm);
  animation: rise .5s both;
}
.cat-bar:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.cat-bar:active { transform: scale(.985); }
.cat-ico {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--ink);
  background: color-mix(in srgb, var(--ac) 55%, #fff);
  border: 1px solid color-mix(in srgb, var(--ac) 70%, transparent);
}
.cat-bar .grow { min-width: 0; }
.cat-bar .grow small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.cat-chev { color: var(--muted); display: grid; place-items: center; }
.free-flag {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: #C2188F; color: #fff; flex-shrink: 0;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.map-panel {
  position: relative; min-height: 560px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--muted); font-size: 14px; text-align: center; padding: 18px;
}
.map-panel .map-title {
  position: absolute; left: 14px; top: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.map-grid {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(15, 60, 100, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 60, 100, .06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.map-dot {
  position: absolute; width: 15px; height: 15px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 40, 70, .35);
  cursor: pointer;
}
.map-dot.me {
  width: 19px; height: 19px;
  background: var(--brand2);
  border-width: 3px;
  box-shadow: 0 0 0 6px rgba(38, 86, 224, .18), 0 2px 8px rgba(15, 40, 70, .35);
  z-index: 2;
}
.map-line { position: absolute; height: 0; border-top: 2px dashed rgba(38, 86, 224, .5); transform-origin: 0 0; z-index: 1; }
.map-km {
  position: absolute; z-index: 3;
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: var(--brand2); border-radius: 999px; padding: 2px 8px;
  transform: translate(-50%, -50%); white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  border-radius: 999px; padding: 10px 20px; font-size: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  transition: filter .15s, transform .05s;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(10, 127, 174, .25);
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-amber { background: linear-gradient(135deg, #FFB13D, #F08A00); color: #3A2400; box-shadow: 0 4px 14px rgba(240, 138, 0, .25); }
.btn-amber:hover { filter: brightness(1.05); }
.btn-outline { background: rgba(255, 255, 255, .7); color: var(--brand); border: 1.5px solid rgba(10, 127, 174, .45); box-shadow: none; }
.btn-outline:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .8); color: var(--brand); }
.btn-danger { background: linear-gradient(135deg, #E9606B, #D64550); color: #fff; box-shadow: 0 4px 14px rgba(214, 69, 80, .25); }
.btn-danger:hover { filter: brightness(1.05); }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ===== Cards / grids ===== */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm);
}
.card-pad-sm { padding: 14px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== Hero (onboarding strips) ===== */
.hero {
  background: linear-gradient(135deg, rgba(10, 166, 214, .16), rgba(19, 179, 136, .14) 50%, rgba(38, 86, 224, .12));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); color: var(--ink); padding: 26px 24px;
  position: relative; overflow: hidden; margin-bottom: 18px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; border: 1px solid var(--line);
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .3), 0 0 0 48px rgba(255, 255, 255, .18);
}
.hero h1 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.hero p { color: var(--muted); max-width: 560px; font-size: 13.5px; }
.hero .btn { margin-top: 14px; }
@media (max-width: 620px) { .hero { padding: 22px 18px; } .hero h1 { font-size: 20px; } }

/* ===== Forms ===== */
label.f-label { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 5px; color: var(--ink-soft); }
.f-input, .f-select, .f-textarea {
  width: 100%; padding: 11px 15px; font-family: inherit; font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .85); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.f-input::placeholder, .f-textarea::placeholder { color: var(--muted); font-weight: 500; }
.f-input:focus, .f-select:focus, .f-textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 127, 174, .14);
}
.f-select option { background: #fff; color: var(--ink); }
.f-textarea { min-height: 90px; resize: vertical; }
.f-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 620px) { .f-row { grid-template-columns: 1fr; } }
.f-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13.5px; color: var(--ink-soft); }
.f-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

/* ===== Chips / pills / tags ===== */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(10, 127, 174, .1); color: var(--brand);
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px;
}
.chip-amber { background: rgba(232, 162, 0, .13); color: #9A6B00; }
.chip-ok { background: rgba(18, 184, 134, .13); color: var(--ok); }
.chip-danger { background: rgba(214, 69, 80, .12); color: var(--danger); }
.chip-info { background: rgba(38, 86, 224, .1); color: var(--info); }
.chip-gray { background: rgba(15, 60, 100, .08); color: var(--ink-soft); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Category tiles (legacy grid tiles) ===== */
.cat-tile {
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: border-color .15s, transform .1s, box-shadow .15s;
  text-decoration: none !important; color: inherit;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}
.cat-tile:hover { border-color: rgba(10, 127, 174, .5); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-emoji { font-size: 30px; line-height: 1; }
.cat-name { font-weight: 700; font-size: 14.5px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* ===== List rows ===== */
.item-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 4px; border-bottom: 1px solid var(--line-soft);
}
.item-row:last-child { border-bottom: none; }

/* ===== Tables ===== */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 9px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl-wrap { overflow-x: auto; }

/* ===== Empty / loading ===== */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .big { color: var(--brand); opacity: .7; margin-bottom: 8px; }
.loading-block { text-align: center; padding: 60px 20px; color: var(--muted); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 12px;
  border: 3.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, rgba(15,60,100,.07) 25%, rgba(15,60,100,.13) 50%, rgba(15,60,100,.07) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; min-height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== Toasts ===== */
.toasts { position: fixed; bottom: 120px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 9px; max-width: 380px; }
.toast {
  background: rgba(10, 26, 44, .94); color: #fff; padding: 12px 17px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow);
  animation: toastIn .22s ease-out; display: flex; gap: 9px; align-items: flex-start;
}
.toast-ok { background: rgba(11, 82, 62, .95); }
.toast-err { background: rgba(122, 30, 38, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 26, 44, .45); z-index: 200;
  display: grid; place-items: center; padding: 18px; animation: fadeIn .15s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal {
  background: #FDFBF6; border: 1px solid var(--line); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%;
  max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow);
  animation: modalIn .18s ease-out;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 21px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-size: 16.5px; }
.modal-x { background: none; border: none; font-size: 21px; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.modal-x:hover { background: rgba(15, 60, 100, .07); }
.modal-body { padding: 20px 21px; overflow-y: auto; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ===== Legal doc ===== */
.legal-body { white-space: pre-wrap; font-size: 13.5px; color: var(--ink-soft); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-height: 300px; overflow-y: auto; }

/* ===== Page head ===== */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 24px; }
.page-head .crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.page-head .crumbs a { color: var(--muted); }

/* ===== Filter bar ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .f-input, .filter-bar .f-select { width: auto; min-width: 150px; flex: 1; }

/* ===== Stars ===== */
.stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }

/* ===== Stat blocks ===== */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; }
.stat .v { font-size: 24px; font-weight: 800; color: var(--ink); }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ===== Cart ===== */
.cart-fixed {
  position: sticky; bottom: 96px; z-index: 40;
  background: rgba(10, 26, 44, .92); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  box-shadow: var(--shadow); margin-top: 18px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ===== Admin ===== */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: thin; }
.admin-tabs button {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--ink-soft);
  font-family: inherit; font-weight: 700; font-size: 12.5px; padding: 8px 14px;
  border-radius: 99px; cursor: pointer; white-space: nowrap;
}
.admin-tabs button.active { background: linear-gradient(135deg, var(--brand), var(--brand2)); border-color: transparent; color: #fff; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 7px 14px; font-size: 13.5px; }
.kv .k { color: var(--muted); font-weight: 600; }

/* ===== Footer — STATIC (fixed), mandated TENGO AEGIS line ===== */
.footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 7px 16px calc(7px + env(safe-area-inset-bottom, 0px));
  color: var(--muted); font-size: 11px; font-weight: 600; text-align: center;
  letter-spacing: .02em;
  background: linear-gradient(transparent, var(--bg-2) 55%);
  pointer-events: none;
}
.footer a { pointer-events: auto; color: var(--ink-soft); }
.footer-brand { display: none; }
.footer-content a { color: var(--ink-soft); }
.footer-content .f-sep { opacity: .5; margin: 0 6px; }
@media (max-width: 720px) {
  .footer-content .f-sep { display: none; }
  .footer-content a, .footer-content .f-mob, .footer-content .f-sep { display: none; }
  .footer { font-size: 10px; padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Misc ===== */
.divider { border: none; border-top: 1px solid var(--line-soft); margin: 18px 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.price { font-weight: 800; color: var(--brand2); }
.banner-warn { background: rgba(232, 162, 0, .1); border: 1px solid rgba(232, 162, 0, .35); color: #7A5800; border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 600; }
.note-box { background: rgba(19, 179, 136, .09); border: 1px solid rgba(19, 179, 136, .35); color: var(--ink-soft); border-radius: 12px; padding: 11px 14px; font-size: 13px; }

/* ===== Responsive shell ===== */
@media (max-width: 1023px) {
  .shell { grid-template-columns: 1fr; padding: 8px 12px 0; }
  .sidebar { display: none; }
  .tabbar {
    display: flex; flex-direction: row; align-items: center;
    position: fixed; left: 50%; transform: translateX(-50%);
    width: min(calc(100% - 24px), 430px);
    bottom: calc(34px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line); border-radius: 24px;
    padding: 6px;
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--shadow);
  }
  .tabbar a { flex: 1; padding: 8px 6px; font-size: 11px; border-radius: 18px; }
  .tabbar a.active { box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .95); }
  .main-view { padding-bottom: 150px; }
  .toasts { bottom: 130px; }
  .home-grid { grid-template-columns: 1fr; }
  .map-panel { min-height: 300px; }
  .topbar { padding: 8px 10px 2px; }
  .topbar-inner { flex-wrap: wrap; border-radius: 22px; padding: 8px 12px; row-gap: 8px; }
  .h-search { order: 3; flex-basis: 100%; max-width: none; padding: 9px 16px; }
}
@media (min-width: 1024px) {
  .tabbar { display: none; }
}

@media print { .topbar, .footer, .toasts, .admin-tabs, .sidebar, .tabbar { display: none !important; } }
