/* ============================================================
   护航 · Mobile UI
   ============================================================ */

body.mobile-page {
  min-height: 100vh;
  background:
    radial-gradient(1000px 600px at 18% -10%, rgba(47, 107, 255, .18), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(47, 107, 255, .10), transparent 60%),
    var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px;
}
html[data-theme="light"] body.mobile-page {
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(11, 92, 255, .10), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(11, 92, 255, .06), transparent 60%),
    #eef2fa;
}

.device {
  width: 390px; height: 844px; flex: none;
  background: #05070f; border-radius: 54px; padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 40px 90px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}
html[data-theme="light"] .device {
  background: #0a0f1c;
  box-shadow: 0 0 0 1px rgba(10,15,28,.12), 0 40px 90px rgba(15,23,42,.28);
}
.device::after {
  content: ""; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 118px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.32); z-index: 60;
  pointer-events: none;
}
.screen {
  width: 100%; height: 100%; border-radius: 44px; overflow: hidden;
  background: var(--bg); position: relative; display: flex; flex-direction: column;
}
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 27px; background: #05070f; border-radius: 99px; z-index: 70; pointer-events: none;
}
.statusbar {
  height: 46px; flex: none; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 22px 6px; font-size: 12px; font-weight: 600; color: var(--text);
  position: relative; z-index: 20;
}
.statusbar .sb-r { display: flex; align-items: center; gap: 5px; }
.statusbar .ico { width: 13px; height: 13px; }
.statusbar .batt { width: 20px; height: 10px; border: 1px solid currentColor; border-radius: 3px; position: relative; opacity: .9; }
.statusbar .batt::after { content:""; position:absolute; inset: 1.5px; right: 6px; background: currentColor; border-radius: 1px; }
.statusbar.on-hero { color: #fff; }

.app {
  flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: none;
  scroll-behavior: smooth; overscroll-behavior: contain;
}
.app::-webkit-scrollbar { width: 0; }
.page { padding: 0 18px 108px; min-height: 100%; }
.page.flush { padding: 0 0 108px; }
.page.no-tab { padding-bottom: 28px; }

/* ---------- appbar ---------- */
.appbar {
  height: 52px; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
}
.appbar.scrolled { border-bottom-color: var(--line); }
.appbar .ttl { font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; }
.appbar .sub { font-size: 11px; color: var(--text-2); margin-top: 1px; }
.appbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--input); border: 1px solid var(--line); color: var(--text-2);
  transition: var(--fast); position: relative; flex: none;
}
.iconbtn .ico { width: 17px; height: 17px; }
.iconbtn:active { transform: scale(.94); }
.iconbtn .bdg {
  position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); border: 1.5px solid var(--bg);
}
.iconbtn.plain { background: transparent; border-color: transparent; }

/* ---------- tabbar ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  height: 74px; padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-start; justify-content: space-around;
  background: var(--tabbar); backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-3); font-size: 10px; padding-top: 4px; position: relative;
  transition: color var(--fast);
}
.tabbar .ico { width: 22px; height: 22px; }
.tabbar a.on { color: var(--primary); }
.tabbar a.on .ico { filter: drop-shadow(0 0 8px var(--primary-glow)); }
.tabbar a .tb-bdg {
  position: absolute; top: 0; left: 54%; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 99px; background: var(--red); color: #fff; font-size: 9px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}

/* ---------- home ---------- */
.home-top {
  padding: 4px 18px 12px; display: flex; align-items: center; gap: 10px;
}
.searchbar {
  flex: 1; height: 40px; border-radius: 99px; background: var(--input);
  border: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
  padding: 0 14px; color: var(--text-3); font-size: 12.5px;
}
.searchbar .ico { width: 15px; height: 15px; }

.banner {
  position: relative; height: 176px; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  isolation: isolate;
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .bmask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,8,22,.86) 0%, rgba(3,8,22,.5) 48%, rgba(3,8,22,.06) 100%),
              linear-gradient(0deg, rgba(3,8,22,.72), transparent 55%);
}
.banner .btxt { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; }
.banner .btxt b { font-size: 21px; font-weight: 800; letter-spacing: -.4px; display: block; }
.banner .btxt p { font-size: 11.5px; color: rgba(255,255,255,.78); margin-top: 4px; }
.banner .pill {
  position: absolute; top: 14px; left: 16px; height: 22px; padding: 0 9px;
  border-radius: 7px; background: rgba(247,185,85,.92); color: #1b1300;
  font-size: 10px; font-weight: 800; display: flex; align-items: center;
}
.banner .dots { position: absolute; right: 16px; bottom: 18px; display: flex; gap: 5px; }
.banner .dots i { width: 5px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.42); transition: var(--fast); }
.banner .dots i.on { width: 16px; background: #fff; }

.notice-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px;
  background: var(--input); border: 1px solid var(--line); border-radius: 10px;
  font-size: 11px; color: var(--text-2); margin-top: 12px;
}
.notice-bar .ico { width: 13px; height: 13px; color: var(--gold); }
.notice-bar .more { margin-left: auto; color: var(--text-3); font-size: 10px; }

.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.sec-head b { font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; }
.sec-head .more { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 2px; }
.sec-head .more .ico { width: 11px; height: 11px; }
.sec-head em { font-style: normal; font-size: 10.5px; color: var(--text-3); }

.wzone { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
.wzone::-webkit-scrollbar { display: none; }
.wcard {
  width: 104px; flex: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 10px; text-align: center; position: relative;
  transition: var(--fast);
}
.wcard:active { transform: scale(.97); }
.wcard .avatar { width: 52px; height: 52px; margin: 0 auto 8px; }
.wcard .avatar::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid rgba(47,107,255,.35); pointer-events: none;
}
.wcard .nm { font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 3px; }
.wcard .nm em { font-style: normal; font-size: 10px; color: var(--primary-2); }
.wcard .rk { font-size: 9px; letter-spacing: -.2px; color: var(--text-3); margin-top: 2px; }
.wcard .pr { font-size: 11px; margin-top: 6px; color: var(--price); font-weight: 700; }
.wcard .pr small { font-size: 8.5px; color: var(--text-3); font-weight: 400; }
.wcard .vbtn {
  position: absolute; right: 8px; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.wcard .vbtn .ico { width: 9px; height: 9px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }

.catbox {
  display: grid; grid-template-columns: 86px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-top: 12px;
}
.catnav { background: var(--surface-2); padding: 8px 0; }
.catnav button {
  display: block; width: 100%; padding: 12px 8px; font-size: 11.5px; color: var(--text-2);
  position: relative; text-align: center; line-height: 1.35;
}
.catnav button.on { color: var(--text); font-weight: 700; background: var(--surface); }
.catnav button.on::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--primary); border-radius: 0 3px 3px 0;
}
.catlist { padding: 12px; min-width: 0; }
.cathead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cathead b { font-size: 12px; }
.cathead button { font-size: 10px; color: var(--text-3); }
.prow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.pimg {
  width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: none; background: var(--surface-3);
}
.prow .ttl { font-size: 12.5px; font-weight: 600; }
.prow .meta { font-size: 9.5px; color: var(--text-3); margin-top: 3px; }
.prow .pr { font-size: 13px; }
.viewall { display: block; text-align: center; font-size: 10.5px; color: var(--primary); padding-top: 10px; }

.guar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.gitem {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 8px; text-align: center;
}
.gitem .gic {
  width: 32px; height: 32px; border-radius: 10px; margin: 0 auto 7px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.gitem .gic .ico { width: 16px; height: 16px; }
.gitem b { font-size: 10.5px; display: block; }
.gitem p { font-size: 9px; color: var(--text-3); margin-top: 3px; line-height: 1.35; }

.navrow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 8px;
}
.nitem { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; color: var(--text-2); }
.nitem .nic {
  width: 34px; height: 34px; border-radius: 12px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.nitem .nic .ico { width: 17px; height: 17px; }

/* ---------- list pages ---------- */
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }

.worker-card {
  display: flex; gap: 12px; padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; position: relative;
  overflow: hidden;
}
.worker-card .avatar { width: 58px; height: 58px; }
.worker-card .nm { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; }
.worker-card .nm .lv { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); }
.worker-card .tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.worker-card .stats { display: flex; gap: 12px; margin-top: 7px; font-size: 9.5px; color: var(--text-3); }
.worker-card .stats b { color: var(--text); font-size: 10.5px; }
.worker-card .cta { position: absolute; right: 12px; bottom: 12px; }

/* ---------- package detail ---------- */
.pkg-hero { position: relative; height: 265px; border-radius: 0 0 28px 28px; overflow: hidden; margin: 0 -18px 0; }
.pkg-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkg-hero .mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,8,22,.35) 0%, rgba(3,8,22,.1) 35%, rgba(5,9,26,.92) 100%);
}
.pkg-hero .body { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.pkg-hero h2 { font-size: 23px; font-weight: 800; letter-spacing: -.5px; margin-top: 8px; }
.pkg-hero .sub { font-size: 11.5px; color: rgba(255,255,255,.72); margin-top: 4px; }
.pkg-hero .prices { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.pkg-hero .prices b { font-size: 27px; color: #fff; font-family: var(--mono); }
.pkg-hero .prices s { font-size: 11px; color: rgba(255,255,255,.45); }
.pkg-hero .prices .tag { background: rgba(255,255,255,.16); color: #fff; }
.pkg-hero .backbtn {
  position: absolute; top: 12px; left: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(3,8,22,.5); border: 1px solid rgba(255,255,255,.18); color: #fff;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px);
}

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.spec {
  border: 1px solid var(--line); background: var(--surface); border-radius: 14px;
  padding: 12px; text-align: left; position: relative; transition: var(--fast);
}
.spec.on { border-color: var(--primary); background: var(--primary-soft); }
.spec.on::after {
  content: "✓"; position: absolute; right: 8px; top: 7px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
}
.spec b { font-size: 12.5px; display: block; }
.spec .pr { font-size: 14px; margin-top: 4px; color: var(--price); font-weight: 700; }
.spec .st { font-size: 9.5px; color: var(--text-3); margin-top: 2px; }

.stepper { display: flex; align-items: center; height: 42px; background: var(--input); border-radius: 12px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.stepper button[disabled] { opacity: .3; }
.stepper input { flex: 1; width: 100%; text-align: center; border: 0; background: transparent; outline: none; font-weight: 700; font-size: 14px; }

.fields-list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 13px; }
.frow { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow .k { font-size: 12.5px; }
.frow .v { font-size: 10px; color: var(--text-3); }

.review-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-item .stars { color: var(--gold); font-size: 10px; letter-spacing: 1px; }
.review-item p { font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.6; }

.bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  background: var(--tabbar); backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid var(--line);
}
.bottom-bar .sum { min-width: 84px; }
.bottom-bar .sum span { font-size: 9.5px; color: var(--text-3); display: block; }
.bottom-bar .sum b { font-size: 20px; color: var(--price); font-family: var(--mono); }
.bottom-bar .btn { flex: 1; height: 46px; }

/* ---------- confirm ---------- */
.city-line { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.city-line .k { font-size: 13px; color: var(--text-2); }
.city-line .v { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.agree { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 6px; font-size: 10.5px; color: var(--text-3); line-height: 1.6; }
.agree input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--primary); flex: none; }

.paylist { display: flex; flex-direction: column; gap: 9px; }
.payitem {
  display: flex; align-items: center; gap: 11px; padding: 13px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.payitem.on { border-color: var(--primary); background: var(--primary-soft); }
.payitem .pi { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.payitem .pi.wx { background: #22c55e; }
.payitem .pi.bl { background: var(--primary); }
.payitem .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.payitem .radio.on { border: 5px solid var(--primary); }

/* ---------- order ---------- */
.order-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  margin-bottom: 10px; overflow: hidden;
}
.order-card .hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.order-card .hd .no { font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.order-card .bd { display: flex; gap: 11px; padding: 13px 14px; }
.order-card .cover { width: 56px; height: 56px; border-radius: 13px; overflow: hidden; flex: none; }
.order-card .ttl { font-size: 13px; font-weight: 600; }
.order-card .meta { font-size: 10px; color: var(--text-3); margin-top: 4px; }
.order-card .ft { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--surface-2); }
.order-card .ft .amt b { font-size: 16px; }

.status-hero {
  margin: 0 -18px; padding: 22px 18px 26px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0c2a6b 0%, #0a1a44 55%, #08122e 100%);
  border-radius: 0 0 28px 28px; color: #fff;
}
.status-hero::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -90px; top: -90px; background: radial-gradient(circle, rgba(91,140,255,.5), transparent 65%);
}
.status-hero::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  left: -70px; bottom: -110px; background: radial-gradient(circle, rgba(47,107,255,.35), transparent 65%);
}
.status-hero h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.status-hero .tip { font-size: 11px; color: rgba(255,255,255,.65); margin-top: 5px; }
.ring {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(#5b8cff var(--p, 40%), rgba(255,255,255,.14) 0);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0a1836; }
.ring b { position: relative; font-size: 17px; font-family: var(--mono); }
.ring span { position: relative; font-size: 8px; color: rgba(255,255,255,.6); }

.progress-steps { display: flex; gap: 0; margin-top: 14px; }
.pstep { flex: 1; position: relative; padding-top: 14px; text-align: left; }
.pstep::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.16); }
.pstep i { position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); border: 2px solid #0a1836; }
.pstep.on i { background: #5b8cff; box-shadow: 0 0 0 3px rgba(91,140,255,.28); }
.pstep.on::before { background: rgba(91,140,255,.55); }
.pstep b { display: block; font-size: 9.5px; font-weight: 500; color: rgba(255,255,255,.68); }
.pstep span { display: block; font-size: 8px; color: rgba(255,255,255,.38); margin-top: 2px; }

.worker-mini { display: flex; align-items: center; gap: 10px; }
.worker-mini .avatar { width: 44px; height: 44px; }

.rounds { display: flex; gap: 7px; flex-wrap: wrap; }
.round {
  width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: var(--mono); background: var(--input); color: var(--text-3);
  border: 1px solid var(--line);
}
.round.win { background: rgba(52,211,153,.14); color: var(--green); border-color: rgba(52,211,153,.28); }
.round.lose { background: rgba(255,92,99,.12); color: var(--red); border-color: rgba(255,92,99,.24); }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.titem { position: relative; padding-bottom: 16px; }
.titem:last-child { padding-bottom: 0; }
.titem::before {
  content: ""; position: absolute; left: -18px; top: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong);
}
.titem.on::before { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.titem b { font-size: 12px; font-weight: 600; display: block; }
.titem p { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.titem time { position: absolute; right: 0; top: 0; font-size: 9.5px; color: var(--text-3); font-family: var(--mono); }

/* ---------- review ---------- */
.stars-input { display: flex; gap: 8px; justify-content: center; padding: 8px 0 4px; }
.stars-input button { font-size: 30px; line-height: 1; color: var(--line-strong); transition: var(--fast); }
.stars-input button.on { color: var(--gold); transform: scale(1.06); }
.tagpick { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- messages / chat ---------- */
.msg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.msg-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 8px; text-align: center; position: relative; }
.msg-tile .mic { width: 36px; height: 36px; border-radius: 12px; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.msg-tile b { font-size: 11.5px; display: block; }
.msg-tile .cnt { position: absolute; top: 8px; right: 12px; font-size: 9px; color: #fff; background: var(--red); border-radius: 99px; padding: 1px 5px; }

.conv { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.conv:last-child { border-bottom: 0; }
.conv .avatar { width: 46px; height: 46px; }
.conv .nm { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.conv .last { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.conv .time { font-size: 9px; color: var(--text-3); font-family: var(--mono); }
.conv .unread { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; }

.chat-page { display: flex; flex-direction: column; height: 100%; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 16px 14px; background: var(--bg); }
.chat-day { text-align: center; font-size: 9px; color: var(--text-3); margin: 8px 0 14px; }
.bubble-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble-row .avatar { width: 30px; height: 30px; }
.bubble {
  max-width: 72%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.55;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-top-left-radius: 4px;
}
.bubble-row.me .bubble { background: var(--primary); color: #fff; border-color: transparent; border-top-left-radius: 14px; border-top-right-radius: 4px; }
.bubble .ordercard { margin-top: 6px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.12); font-size: 10px; }
.chat-input {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg);
}
.chat-input .box { flex: 1; height: 40px; border-radius: 99px; background: var(--input); border: 1px solid var(--line); padding: 0 14px; outline: none; font-size: 12.5px; }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------- mine / wallet ---------- */
.profile-hero {
  margin: 0 -18px; padding: 8px 18px 26px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #0d2a63, #08142f 70%);
  border-radius: 0 0 28px 28px; color: #fff;
}
.profile-hero::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(91,140,255,.42), transparent 66%);
}
.profile-hero .avatar { width: 62px; height: 62px; border: 2px solid rgba(255,255,255,.2); }
.profile-hero .nm { font-size: 19px; font-weight: 800; }
.profile-hero .lv { font-size: 9.5px; color: #ffe2a8; background: rgba(247,185,85,.16); padding: 2px 7px; border-radius: 5px; }
.asset-card {
  margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 13px 0; backdrop-filter: blur(8px);
}
.asset-card div { text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.asset-card div:last-child { border-right: 0; }
.asset-card b { display: block; font-size: 17px; font-family: var(--mono); }
.asset-card span { font-size: 9px; color: rgba(255,255,255,.55); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px 0; }
.quick-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; color: var(--text-2); position: relative; }
.quick-grid .qi { width: 38px; height: 38px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.quick-grid .qi .ico { width: 18px; height: 18px; }
.quick-grid .b { position: absolute; top: -3px; right: 8px; font-size: 8.5px; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 4px; }

.menu-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 12px; }
.menu-row { display: flex; align-items: center; gap: 11px; padding: 14px; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-row .mi { width: 30px; height: 30px; border-radius: 9px; background: var(--input); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.menu-row .mi .ico { width: 15px; height: 15px; }
.menu-row b { font-size: 12.5px; font-weight: 500; }
.menu-row .arr { margin-left: auto; color: var(--text-3); }
.menu-row .arr .ico { width: 13px; height: 13px; }
.menu-row .val { margin-left: auto; font-size: 11px; color: var(--text-3); }

.wallet-hero {
  margin: 0 -18px; padding: 10px 18px 30px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1c4fd8, #0b2a76 70%);
  border-radius: 0 0 30px 30px; color: #fff;
}
.wallet-hero::before { content:""; position:absolute; width:240px; height:240px; border-radius:50%;
  right:-90px; top:-100px; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); }
.wallet-hero .lbl { font-size: 11px; color: rgba(255,255,255,.68); }
.wallet-hero .big { font-size: 34px; font-family: var(--mono); font-weight: 600; letter-spacing: -1px; margin-top: 6px; }
.wallet-hero .substats { display: flex; gap: 22px; margin-top: 14px; font-size: 10px; color: rgba(255,255,255,.62); }
.wallet-hero .substats b { display: block; color: #fff; font-size: 13px; font-family: var(--mono); margin-top: 2px; }

.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tier { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; position: relative; }
.tier.on { border-color: var(--primary); background: var(--primary-soft); }
.tier b { font-size: 13px; font-family: var(--mono); }
.tier .gift { font-size: 10px; color: var(--gold); margin-top: 3px; }
.tier .pay { font-size: 9.5px; color: var(--text-3); margin-top: 4px; }

.flow-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.flow-row:last-child { border-bottom: 0; }
.flow-row .fi { width: 32px; height: 32px; border-radius: 10px; background: var(--input); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.flow-row .fi .ico { width: 15px; height: 15px; }
.flow-row .amt { margin-left: auto; font-family: var(--mono); font-size: 13px; }
.flow-row .amt.plus { color: var(--green); }
.flow-row .amt.minus { color: var(--text); }

.amount-input { display: flex; align-items: baseline; gap: 6px; padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.amount-input span { font-size: 22px; font-family: var(--mono); }
.amount-input input { flex: 1; border: 0; background: transparent; outline: none; font-size: 34px; font-family: var(--mono); font-weight: 600; }

/* ---------- growth / points ---------- */
.level-hero {
  margin: 0 -18px; padding: 14px 18px 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3a2a12, #0e1730 60%);
  border-radius: 0 0 28px 28px;
}
.level-hero::before { content:""; position:absolute; right:-70px; top:-90px; width:230px; height:230px; border-radius:50%;
  background: radial-gradient(circle, rgba(247,185,85,.32), transparent 65%); }
.level-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(247,185,85,.16); color: #ffd88a; font-size: 10px; }
.level-hero .big { font-size: 30px; font-weight: 800; font-family: var(--mono); margin-top: 8px; }

.benefit-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.benefit-row:last-child { border-bottom: 0; }
.benefit-row .bi { width: 32px; height: 32px; border-radius: 10px; background: rgba(247,185,85,.12); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.benefit-row .bv { margin-left: auto; font-size: 11px; color: var(--text-2); }

.points-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pgood { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pgood .img { height: 96px; background: var(--surface-2); }
.pgood .bd { padding: 10px; }
.pgood b { font-size: 11.5px; display: block; }
.pgood .pt { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 5px; }
.pgood .st { font-size: 9px; color: var(--text-3); margin-top: 2px; }

/* ---------- worker side ---------- */
.online-hero {
  margin: 0 -18px; padding: 12px 18px 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b2f6b, #08142f 75%);
  border-radius: 0 0 28px 28px;
}
.online-hero::before { content:""; position:absolute; right:-60px; top:-90px; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle, rgba(52,211,153,.20), transparent 65%); }
.online-hero .status { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: rgba(255,255,255,.72); }
.online-hero .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.online-hero .kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.online-hero .kpis div { text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.online-hero .kpis div:last-child { border-right: 0; }
.online-hero .kpis b { display: block; font-size: 19px; font-family: var(--mono); }
.online-hero .kpis span { font-size: 9px; color: rgba(255,255,255,.52); }

.hall-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; margin-bottom: 10px; position: relative; overflow: hidden;
}
.hall-card::before { content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; border-radius:0 3px 3px 0; background: var(--primary); }
.hall-card .ttl { font-size: 13.5px; font-weight: 700; padding-left: 8px; }
.hall-card .meta { display: flex; gap: 10px; font-size: 10px; color: var(--text-3); margin-top: 7px; padding-left: 8px; flex-wrap: wrap; }
.hall-card .meta span { display: flex; align-items: center; gap: 3px; }
.hall-card .meta .ico { width: 11px; height: 11px; }
.hall-card .bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; padding-left: 8px; }
.hall-card .bottom .amt b { font-size: 18px; color: var(--price); font-family: var(--mono); }
.hall-card .timer { font-size: 9.5px; color: var(--gold); margin-top: 2px; }

.task-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.task-card .hd { display: flex; align-items: center; justify-content: space-between; }
.task-card .no { font-size: 9.5px; color: var(--text-3); font-family: var(--mono); }
.task-card .body { display: flex; gap: 11px; margin-top: 10px; }
.task-card .cover { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: none; }
.task-card .rows { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--text-3); }
.task-card .rows b { color: var(--text); font-size: 11px; }

.settlement { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; }
.settlement .rowx { display: flex; justify-content: space-between; padding: 10px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.settlement .rowx:last-child { border-bottom: 0; }
.settlement .rowx.total { font-weight: 700; }
.settlement .rowx.total .v { color: var(--price); font-family: var(--mono); font-size: 15px; }

.report-round { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.report-round:last-child { border-bottom: 0; }
.report-round .idx { width: 46px; font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.report-round .picks { display: flex; gap: 6px; margin-left: auto; }
.report-round .pick { width: 46px; height: 30px; border-radius: 8px; font-size: 11px; background: var(--input); color: var(--text-2); border: 1px solid var(--line); }
.report-round .pick.win.on { background: rgba(52,211,153,.16); color: var(--green); border-color: rgba(52,211,153,.4); }
.report-round .pick.lose.on { background: rgba(255,92,99,.14); color: var(--red); border-color: rgba(255,92,99,.4); }

.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.upload-item { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.upload-item .del { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.upload-add { aspect-ratio: 1; border-radius: 12px; border: 1px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text-3); font-size: 9.5px; background: var(--input); }
.upload-add .ico { width: 20px; height: 20px; }

/* ---------- steward ---------- */
.team-hero {
  margin: 0 -18px; padding: 12px 18px 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #123a8f, #08142f 75%);
  border-radius: 0 0 28px 28px;
}
.team-hero::before { content:""; position:absolute; right:-70px; top:-90px; width:230px; height:230px; border-radius:50%;
  background: radial-gradient(circle, rgba(91,140,255,.35), transparent 65%); }
.team-hero .kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.team-hero .kpis div { text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.team-hero .kpis div:last-child { border-right: 0; }
.team-hero .kpis b { display: block; font-size: 18px; font-family: var(--mono); }
.team-hero .kpis span { font-size: 9px; color: rgba(255,255,255,.52); }

.todo-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.todo-row:last-child { border-bottom: 0; }
.todo-row .go { margin-left: auto; font-size: 10px; color: var(--primary); }
.member-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-row .avatar { width: 42px; height: 42px; }
.member-row .nm { font-size: 12.5px; font-weight: 600; }

.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.summary-strip .cellx { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 8px; text-align: center; }
.summary-strip b { display: block; font-size: 16px; font-family: var(--mono); }
.summary-strip span { font-size: 9px; color: var(--text-3); }

/* ---------- login / invite ---------- */
.login-page { min-height: 100%; padding: 30px 22px 34px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-page::before { content:""; position:absolute; right:-110px; top:-80px; width:300px; height:300px; border-radius:50%;
  background: radial-gradient(circle, rgba(47,107,255,.28), transparent 65%); }
.login-brand { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--primary-2), var(--primary-3));
  box-shadow: var(--shadow-glow); color: #fff; font-weight: 800; font-size: 18px;
}
.login-brand b { font-size: 18px; letter-spacing: 1px; }
.login-title { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: 36px; line-height: 1.2; }
.login-title span { color: var(--primary-2); }
.login-sub { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.identity-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.identity {
  border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px;
  text-align: left; position: relative; transition: var(--fast);
}
.identity.on { border-color: var(--primary); background: var(--primary-soft); }
.identity b { font-size: 13px; display: block; }
.identity p { font-size: 9.5px; color: var(--text-3); margin-top: 3px; }
.identity .ico { position: absolute; right: 10px; top: 12px; width: 18px; height: 18px; color: var(--primary); }

.invite-hero { position: relative; height: 250px; margin: -46px -18px 0; }
.invite-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.invite-hero .mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,9,26,.2), #05091a 96%); }
.invite-hero .txt { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.invite-hero h1 { font-size: 26px; font-weight: 800; }
.invite-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.invite-step { text-align: center; padding: 12px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.invite-step .n { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 700; }
.invite-step b { font-size: 10.5px; }

/* ---------- mobile admin ---------- */
.mkpi { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mkpi .k { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px; }
.mkpi .k span { font-size: 9.5px; color: var(--text-3); }
.mkpi .k b { display: block; font-size: 22px; font-family: var(--mono); margin-top: 4px; }
.mkpi .k em { font-style: normal; font-size: 9px; color: var(--text-3); }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 8px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { width: 100%; max-width: 22px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--primary-2), rgba(47,107,255,.28)); }
.bars .bar span { font-size: 8px; color: var(--text-3); }

.audit-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px; margin-bottom: 10px; }
.audit-card .hd { display: flex; justify-content: space-between; align-items: center; }
.audit-card .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; font-size: 10px; color: var(--text-3); }
.audit-card .kv b { display: block; color: var(--text); font-size: 12px; margin-top: 2px; }
.audit-card .acts { display: flex; gap: 8px; margin-top: 12px; }
.audit-card .acts .btn { flex: 1; height: 36px; font-size: 12px; }

/* ---------- misc ---------- */
.role-switch-card { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.role-switch-card .ico { width: 20px; height: 20px; color: var(--primary); }
.logout-btn { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line); color: var(--red); font-size: 13px; margin-top: 16px; background: var(--surface); }

/* ---------- responsive ---------- */
@media (max-width: 520px) {
  body.mobile-page { padding: 0; display: block; background: var(--bg); }
  .device {
    width: 100%; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; background: var(--bg);
  }
  .device::after { display: none; }
  .screen { border-radius: 0; }
  .notch { display: none; }
  .statusbar { height: calc(30px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .toast-wrap { bottom: 92px; }
  .sheet { max-width: 100%; }
}

/* full-bleed hero directly inside scroll container */
.full { margin-left: 0 !important; margin-right: 0 !important; }
.backbtn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(3,8,22,.5); border: 1px solid rgba(255,255,255,.18); color: #fff;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px);
}
.outside-tools {
  position: fixed; left: 22px; top: 22px; z-index: 100; display: flex; flex-direction: column; gap: 8px;
}
.ot-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--surface-glass);
  color: var(--text-2); font-size: 11.5px; backdrop-filter: blur(12px); width: fit-content;
}
.ot-btn:hover { color: var(--text); border-color: var(--line-strong); }
@media (max-width: 900px) { .outside-tools { display: none; } }

/* embed mode for portfolio iframes */
html.embed body.mobile-page { padding: 0; display: block; background: var(--bg); }
html.embed .device { width: 390px; height: 844px; border-radius: 0; padding: 0; box-shadow: none; background: var(--bg); }
html.embed .device::after { display: none; }
html.embed .screen { border-radius: 0; }
html.embed .notch { display: none; }
html.embed .outside-tools { display: none; }
