:root {
  --ink: #0b1f3a;
  --ink-2: #1f3350;
  --sub: #64748b;
  --muted: #94a3b8;
  --line: #e9eef6;
  --bg: #f4f7fc;
  --card: #fff;
  --brand: #2f6bff;
  --brand-2: #1b4ed8;
  --brand-soft: #eef3ff;
  --gold: #ffb020;
  --gold-deep: #c98a00;
  --gold-soft: #fff7e6;
  --green: #10b981;
  --green-soft: #e9fbf3;
  --red: #ef4444;
  --red-soft: #fef1f1;
  --purple: #8b5cf6;
  --r: 18px;
  --shadow: 0 2px 6px rgba(15, 34, 64, .04), 0 10px 30px rgba(15, 34, 64, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--ink); background: #0b1f3a;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font-family: inherit; font-size: 14px; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
svg { display: block; }

.app {
  position: relative; max-width: 480px; margin: 0 auto; min-height: 100dvh;
  background: var(--bg); overflow-x: hidden;
}
@media (min-width: 560px) {
  body { background: radial-gradient(1200px 700px at 20% 0%, #16376b, #081426 70%); }
  .app { min-height: 100vh; box-shadow: 0 0 90px rgba(0, 0, 0, .45); }
}

/* ---------------- login ---------------- */
.login {
  position: relative; min-height: 100dvh; padding: 26px 24px calc(20px + env(safe-area-inset-bottom));
  color: #fff; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(165deg, #071426 0%, #0b1f3a 45%, #123063 100%);
}
.login-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(58, 122, 255, .5), transparent 65%),
    radial-gradient(500px 380px at -10% 100%, rgba(255, 176, 32, .14), transparent 65%);
}
.login-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(75% 60% at 55% 35%, #000 10%, transparent 100%);
}
.login-back {
  position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 20px; z-index: 5;
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 8px;
  border-radius: 999px; color: #dce8fb; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); font-size: 12px;
}
.login-back svg { width: 17px; height: 17px; }
.login-back:active { background: rgba(255,255,255,.16); }
.login-top { position: relative; display: flex; align-items: center; gap: 11px; }
.login-logo {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4d86ff, #1b4ed8); box-shadow: 0 8px 24px rgba(47, 107, 255, .45);
}
.login-logo svg { width: 24px; height: 24px; }
.login-brand { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.login-brand span { font-size: 10px; font-weight: 500; letter-spacing: 2px; opacity: .65; margin-left: 4px; }
.login-brand-sub { font-size: 8.5px; letter-spacing: 3px; color: #7f93b2; margin-top: 1px; }
.login-hero { position: relative; margin-top: auto; padding-top: 40px; }
.login-hero h1 { font-size: 30px; line-height: 1.35; margin: 0; letter-spacing: .5px; font-weight: 700; }
.login-hero h1 span { color: var(--gold); }
.login-hero p { color: #93a6c2; font-size: 13px; line-height: 1.8; margin: 14px 0 0; }
.login-card {
  position: relative; margin-top: 30px; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 18px;
  backdrop-filter: blur(14px);
}
.login-card-title { font-size: 13px; font-weight: 600; color: #dbe6f7; margin-bottom: 12px; }
.lg-field { display: block; margin-bottom: 12px; }
.lg-field span { display: block; font-size: 11px; color: #91a4c1; margin-bottom: 6px; }
.lg-field input {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08); color: #fff; padding: 0 14px; outline: none; font-size: 15px;
}
.lg-field input::placeholder { color: #6f84a3; }
.lg-field input:focus { border-color: rgba(110, 160, 255, .8); background: rgba(255,255,255,.12); }
.lg-btn {
  width: 100%; height: 50px; margin-top: 6px; border-radius: 13px; color: #fff; font-size: 15.5px; font-weight: 600;
  background: linear-gradient(135deg, #4d86ff, #1b4ed8); box-shadow: 0 12px 28px rgba(47, 107, 255, .4);
}
.lg-btn:disabled { opacity: .6; }
.login-demo { margin-top: 12px; text-align: center; }
.login-demo button { font-size: 11px; color: #8fa4c4; border-bottom: 1px dashed rgba(143,164,196,.4); padding-bottom: 2px; }
.login-foot {
  position: relative; margin-top: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: #6f84a3;
}
.login-foot a { color: #93b4ef; }

/* ---------------- shell ---------------- */
.shell { min-height: 100dvh; padding-bottom: 0; }
.view { padding: 0 16px 100px; }
body.has-detail-cta .view { padding-bottom: 172px; }
.topbar {
  position: sticky; top: 0; z-index: 25; height: 52px; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; background: rgba(244, 247, 252, .92); backdrop-filter: blur(16px);
}
.topbar .tb-back {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2);
}
.topbar .tb-back:active { background: #e8eef8; }
.topbar .tb-title { font-size: 15.5px; font-weight: 650; letter-spacing: -.2px; flex: 1; text-align: center; padding-right: 34px; }
.topbar .tb-title.left { text-align: left; padding-right: 0; }
.topbar .tb-action { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(20px); border-top: 1px solid rgba(226,234,246,.9);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9aa8bd; padding: 4px 0 2px; }
.tab svg { width: 23px; height: 23px; }
.tab span { font-size: 10px; letter-spacing: .3px; }
.tab.active { color: var(--brand); }
.tab.active svg { filter: drop-shadow(0 4px 8px rgba(47,107,255,.25)); }

/* ---------------- shared ---------------- */
.page-head { padding: 10px 2px 16px; }
.page-head h1 { font-size: 23px; margin: 0; letter-spacing: -.4px; font-weight: 700; }
.page-head p { margin: 6px 0 0; font-size: 12px; color: var(--sub); line-height: 1.6; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 12px; }
.sec-head h2 { font-size: 15.5px; margin: 0; letter-spacing: -.2px; }
.sec-head .more { font-size: 11.5px; color: var(--sub); display: inline-flex; align-items: center; gap: 2px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.sub { color: var(--sub); }
.small { font-size: 11.5px; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; }
.link { color: var(--brand); }
.divider { height: 1px; background: var(--line); }
.hint { font-size: 10.5px; color: var(--muted); line-height: 1.6; }

.badge { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 10.5px; font-weight: 550; white-space: nowrap; }
.badge.pending { background: var(--gold-soft); color: #a86b00; }
.badge.contacted { background: var(--brand-soft); color: #2b5ac9; }
.badge.quoted { background: #f3edff; color: #6d3fc4; }
.badge.won, .badge.settled { background: var(--green-soft); color: #0f8a5f; }
.badge.lost { background: #f3f5f9; color: #7c8798; }
.badge.soft { background: #f2f5fa; color: var(--sub); }
.badge.gold { background: var(--gold-soft); color: var(--gold-deep); }
.avatar {
  border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600;
  flex: 0 0 auto; letter-spacing: .5px; background: linear-gradient(135deg, #4f8bff, #1b4ed8);
}
.avatar.sm { width: 34px; height: 34px; font-size: 11px; }
.avatar.md { width: 44px; height: 44px; font-size: 13px; }
.avatar.lg { width: 62px; height: 62px; font-size: 18px; }
.icon-tile { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; }
.icon-tile.blue { background: #eef3ff; color: #2f6bff; }
.icon-tile.gold { background: #fff7e6; color: #c98a00; }
.icon-tile.green { background: #e9fbf3; color: #0f8a5f; }
.icon-tile.purple { background: #f4efff; color: #7c4ddb; }
.icon-tile.red { background: #fef1f1; color: #d64545; }
.icon-tile.gray { background: #f2f5fa; color: #64748b; }
.icon-tile svg { width: 20px; height: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 13px; font-size: 14.5px; font-weight: 600; }
.btn.primary { background: linear-gradient(135deg, #4d86ff, #1b4ed8); color: #fff; box-shadow: 0 10px 24px rgba(47,107,255,.3); }
.btn.gold { background: linear-gradient(135deg, #ffc247, #ff9f0a); color: #3d2600; box-shadow: 0 10px 24px rgba(255,176,32,.28); }
.btn.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 32px; padding: 0 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--sub); font-size: 12px; display: inline-flex; align-items: center;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.field { display: block; margin-bottom: 12px; }
.field > label { display: block; font-size: 11.5px; color: var(--sub); margin-bottom: 6px; font-weight: 550; }
.control {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #f7f9fd;
  padding: 0 13px; outline: none; font-size: 14px; transition: .16s;
}
.control:focus { border-color: #a8c2ff; background: #fff; box-shadow: 0 0 0 3px rgba(47,107,255,.08); }
textarea.control { height: auto; padding: 12px 13px; resize: none; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.empty svg { width: 42px; height: 42px; margin: 0 auto 10px; opacity: .45; }

.skeleton { background: linear-gradient(100deg, #eef2f8 20%, #f7f9fc 40%, #eef2f8 60%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-view { padding: 14px 2px; display: flex; flex-direction: column; gap: 12px; }

/* ---------------- toast / sheet ---------------- */
.toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: 88vw; }
.toast {
  background: rgba(11, 31, 58, .92); color: #fff; border-radius: 12px; padding: 10px 15px; font-size: 12.5px;
  display: flex; align-items: center; gap: 7px; box-shadow: 0 12px 30px rgba(9, 20, 38, .3);
  animation: toastIn .22s ease-out; backdrop-filter: blur(10px); line-height: 1.5;
}
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } }
.scrim { position: fixed; inset: 0; background: rgba(7, 17, 32, .5); z-index: 90; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 100;
  width: 100%; max-width: 480px; max-height: 90dvh; background: #fff; border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column; animation: slideUp .28s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes slideUp { from { transform: translate(-50%, 100%); } }
.sheet-head { padding: 18px 20px 8px; display: flex; align-items: flex-start; gap: 10px; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-head .sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.sheet-head .x { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; background: #f2f5fa; display: grid; place-items: center; color: var(--sub); }
.sheet-body { padding: 10px 20px 20px; overflow-y: auto; }
.sheet-foot { padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-grab { width: 36px; height: 4px; border-radius: 4px; background: #e2e8f2; margin: 8px auto 0; }

/* ---------------- home ---------------- */
.home-top { display: flex; align-items: center; gap: 10px; padding: 12px 2px 6px; }
.home-top .hello { font-size: 11.5px; color: var(--sub); }
.home-top .name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; margin-top: 1px; }
.home-top .home-sub { font-size: 10.5px; color: var(--muted); margin-top: 3px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-bell { position: relative; width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.home-bell .dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #ff5a5a; border: 1.5px solid #fff; }
.hero {
  position: relative; border-radius: 22px; padding: 18px 18px 16px; color: #fff; overflow: hidden;
  background: linear-gradient(145deg, #0b1f3a, #143a76 70%, #1b4ed8);
  box-shadow: 0 16px 40px rgba(11, 31, 58, .25);
}
.hero::after {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -70px; top: -80px;
  background: radial-gradient(circle, rgba(90, 140, 255, .55), transparent 65%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(120deg, #000, transparent 70%);
}
.hero-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hero-head .t { font-size: 12px; color: #a9bcd8; letter-spacing: .5px; }
.hero-head .invite { height: 30px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.hero-num { position: relative; display: flex; align-items: baseline; gap: 6px; }
.hero-num b { font-size: 34px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.hero-num span { font-size: 11px; color: #9fb4d3; }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 13px; }
.hero-stat b { font-size: 16px; font-variant-numeric: tabular-nums; }
.hero-stat span { display: block; font-size: 10px; color: #93a9c9; margin-top: 2px; }
.notice { display: flex; align-items: center; gap: 8px; margin-top: 12px; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 11.5px; color: #8a5a00; border: 1px solid #ffe8b8; }
.notice svg { width: 15px; height: 15px; flex: 0 0 15px; }
.notice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.quick { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 4px 11px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.quick span { font-size: 10.5px; color: var(--ink-2); }
.quick .icon-tile { width: 38px; height: 38px; border-radius: 12px; }
.quick .icon-tile svg { width: 19px; height: 19px; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.p-card { flex: 0 0 206px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.p-card .cover { height: 104px; background-size: cover; background-position: center; position: relative; }
.p-card .cover .tag { position: absolute; left: 8px; top: 8px; }
.p-card .body { padding: 10px 12px 12px; }
.p-card .n { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card .d { font-size: 10.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card .pr { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.p-card .pr small { font-size: 9.5px; color: var(--muted); font-weight: 400; }

.proj-card { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; }
.proj-card .cover { width: 92px; height: 76px; border-radius: 11px; background-size: cover; background-position: center; flex: 0 0 92px; }
.proj-card .body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.proj-card .n { font-size: 13.5px; font-weight: 650; }
.proj-card .d { font-size: 10.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.proj-card .amt { font-size: 11px; color: var(--gold-deep); font-weight: 600; }

.recent-intent { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.recent-intent .cover { width: 44px; height: 44px; border-radius: 11px; background-size: cover; background-position: center; flex: 0 0 44px; }

/* ---------------- catalog ---------------- */
.searchbar { display: flex; align-items: center; gap: 8px; height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 0 12px; color: var(--muted); }
.searchbar svg { width: 17px; height: 17px; flex: 0 0 17px; }
.searchbar input { flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13.5px; }
.searchbar input::placeholder { color: var(--muted); }
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.item-row { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 10px; box-shadow: var(--shadow); }
.item-row .cover { width: 100px; height: 100px; border-radius: 13px; background-size: cover; background-position: center; flex: 0 0 100px; position: relative; }
.item-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-row .n { font-size: 14px; font-weight: 650; letter-spacing: -.1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .d { font-size: 10.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .model { font-size: 9.5px; color: #64748b; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .pr { margin-top: auto; font-size: 15px; font-weight: 700; }
.item-row .pr small { font-size: 9.5px; color: var(--muted); font-weight: 400; }
.item-row .meta { display: flex; gap: 10px; font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.item-row .meta span { display: inline-flex; align-items: center; gap: 3px; }
.item-row .meta svg { width: 11px; height: 11px; }
.catalog-group-title { display: flex; align-items: center; gap: 8px; margin: 20px 2px 2px; font-size: 13px; font-weight: 700; color: #334155; }
.catalog-group-title span { margin-left: auto; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 9.5px; background: #f2f5fa; color: var(--sub); }
.tag.blue { background: var(--brand-soft); color: var(--brand-2); }
.tag.gold { background: var(--gold-soft); color: var(--gold-deep); }
.tag.green { background: var(--green-soft); color: #0f8a5f; }
.tag.on-cover { position: absolute; left: 8px; top: 8px; background: rgba(11,31,58,.55); color: #fff; backdrop-filter: blur(6px); }

/* ---------------- detail ---------------- */
.detail-hero { margin: 0 -16px; height: 236px; background-size: cover; background-position: center; position: relative; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,32,.02) 30%, rgba(6,16,32,.55)); }
.detail-hero .badge { position: absolute; left: 16px; bottom: 14px; z-index: 1; background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(8px); }
.detail-title { font-size: 21px; font-weight: 700; letter-spacing: -.3px; margin: 14px 2px 0; }
.detail-tagline { font-size: 12.5px; color: var(--sub); margin: 6px 2px 0; line-height: 1.6; }
.detail-price { font-size: 24px; font-weight: 700; margin: 12px 2px 0; letter-spacing: -.4px; }
.detail-price small { font-size: 11px; color: var(--muted); font-weight: 400; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 2px 0; }
.detail-meta .tag { height: 23px; padding: 0 9px; font-size: 10px; }
.section { margin-top: 20px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; margin-bottom: 10px; }
.section-title::before { content: ""; width: 3px; height: 14px; border-radius: 3px; background: var(--brand); }
.section-title.gold::before { background: var(--gold); }
.prose { font-size: 13px; line-height: 1.85; color: #3c4f68; white-space: pre-wrap; }
.feature-list { display: grid; gap: 8px; }
.feature { display: flex; gap: 9px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: #3c4f68; line-height: 1.6; }
.feature svg { width: 15px; height: 15px; color: var(--green); flex: 0 0 15px; margin-top: 2px; }
.asset-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.asset-row:last-child { border-bottom: 0; }
.asset-row .fi { width: 38px; height: 38px; border-radius: 10px; background: #eef3ff; color: #2f6bff; display: grid; place-items: center; flex: 0 0 38px; }
.asset-row .fi svg { width: 18px; height: 18px; }
.asset-row .nm { font-size: 12.5px; font-weight: 550; }
.asset-row .sz { font-size: 10px; color: var(--muted); margin-top: 2px; }
.dl-btn { width: 34px; height: 34px; border-radius: 10px; background: #f2f5fa; color: var(--ink-2); display: grid; place-items: center; }
.dl-btn svg { width: 16px; height: 16px; }
.detail-cta {
  position: fixed; bottom: calc(62px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 35;
  width: 100%; max-width: 480px; padding: 10px 16px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(18px); border-top: 1px solid rgba(226,234,246,.9);
  display: flex; align-items: center; gap: 12px;
}
.detail-cta .pr small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 400; }
.detail-cta .btn { flex: 1; }

/* ---------------- me ---------------- */
.me-hero { margin: 0 -16px; padding: 18px 18px 64px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(150deg, #0b1f3a, #14376d 75%, #1b4ed8); }
.me-hero::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -90px; top: -90px; background: radial-gradient(circle, rgba(90,140,255,.5), transparent 65%); }
.me-profile { position: relative; display: flex; align-items: center; gap: 12px; }
.me-profile .avatar { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.me-name { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.me-role { display: inline-block; vertical-align: 2px; margin-left: 7px; padding: 1px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 500; letter-spacing: 0; color: #dce8fb; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.me-sub { font-size: 11px; color: #a9bcd8; margin-top: 3px; }
.me-gear { position: absolute; right: 0; top: 0; width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #dbe6f7; }
.me-code { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 10.5px; color: #cddcf3; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px 10px; }
.me-code svg { width: 12px; height: 12px; }
.me-wallet { margin: -50px 2px 0; position: relative; z-index: 2; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(15,34,64,.12); padding: 16px; border: 1px solid var(--line); }
.wallet-label { font-size: 11px; color: var(--sub); }
.wallet-num { font-size: 27px; font-weight: 700; letter-spacing: -.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wallet-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.wallet-split b { font-size: 15px; font-variant-numeric: tabular-nums; }
.wallet-split span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.me-stat { text-align: center; padding: 4px 0; }
.me-stat + .me-stat { border-left: 1px solid var(--line); }
.me-stat b { font-size: 17px; font-variant-numeric: tabular-nums; }
.me-stat span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.menu { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 14px; box-shadow: var(--shadow); }
.menu-row { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-row .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.menu-row .icon-tile svg { width: 17px; height: 17px; }
.menu-row .t { flex: 1; font-size: 13.5px; }
.menu-row .v { font-size: 11px; color: var(--muted); }
.menu-row .chev { color: #c3cede; }
.menu-row .chev svg { width: 15px; height: 15px; }
.menu-row .badge { margin-right: 2px; }

/* ---------------- team ---------------- */
.team-hero { margin: 0 -16px; padding: 16px 18px 58px; color: #fff; background: linear-gradient(150deg, #0b1f3a, #163c78); position: relative; overflow: hidden; }
.team-hero.tight { padding-bottom: 16px; }
.team-hero::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -80px; top: -100px; background: radial-gradient(circle, rgba(90,140,255,.45), transparent 65%); }
.team-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.team-stats b { font-size: 22px; letter-spacing: -.3px; }
.team-stats span { display: block; font-size: 10px; color: #9fb4d3; margin-top: 2px; }
.invite-mini { margin: -42px 2px 0; position: relative; z-index: 2; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 13px 14px; display: flex; align-items: center; gap: 12px; }
.invite-mini img { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--line); }
.invite-mini .t { font-size: 12.5px; font-weight: 600; }
.invite-mini .s { font-size: 10px; color: var(--muted); margin-top: 2px; }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.level { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 8px 4px; text-align: center; }
.level b { font-size: 13px; color: var(--brand-2); display: block; }
.level span { font-size: 9px; color: var(--muted); }
.tree { padding: 2px 2px 0; }
.tree-node { position: relative; }
.tree-row { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 11px; margin-top: 8px; }
.tree-row .avatar { width: 36px; height: 36px; font-size: 11px; }
.tree-row .nm { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.tree-row .co { font-size: 9.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.tree-row .sales { margin-left: auto; text-align: right; }
.tree-row .sales b { font-size: 12px; font-variant-numeric: tabular-nums; }
.tree-row .sales span { display: block; font-size: 9px; color: var(--muted); }
.tree-children { margin-left: 16px; padding-left: 10px; border-left: 1px dashed #d8e2f1; }
.tree-caret { width: 18px; height: 18px; color: #a9b6c9; display: grid; place-items: center; flex: 0 0 18px; }
.tree-caret svg { width: 13px; height: 13px; transition: transform .18s; }
.tree-caret.open svg { transform: rotate(90deg); }
.tree-caret.leaf { opacity: 0; }
.lv-tag { font-size: 8.5px; color: var(--brand-2); background: var(--brand-soft); border-radius: 4px; padding: 1px 4px; }

/* ---------------- intents ---------------- */
.seg { display: flex; background: #e9eff8; border-radius: 12px; padding: 3px; margin-top: 12px; }
.seg button { flex: 1; height: 34px; border-radius: 9px; font-size: 12px; color: var(--sub); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(15,34,64,.1); }
.intent-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px; margin-top: 10px; box-shadow: var(--shadow); }
.intent-card .top { display: flex; align-items: flex-start; gap: 10px; }
.intent-card .cover { width: 46px; height: 46px; border-radius: 11px; background-size: cover; background-position: center; flex: 0 0 46px; }
.intent-card .n { font-size: 13px; font-weight: 650; line-height: 1.45; }
.intent-card .c { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.intent-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.intent-card .amt { font-size: 14px; font-weight: 700; }
.intent-card .amt small { font-size: 9.5px; color: var(--muted); font-weight: 400; }
.timeline { padding-left: 6px; }
.tl-item { position: relative; padding: 0 0 16px 20px; border-left: 1px solid var(--line); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -4.5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #dbe4f2; border: 2px solid #fff; }
.tl-item.now::before { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tl-item .t { font-size: 12.5px; font-weight: 600; }
.tl-item .d { font-size: 10px; color: var(--muted); margin-top: 3px; }
.tl-item .n { font-size: 11.5px; color: var(--sub); line-height: 1.7; margin-top: 5px; background: #f7f9fd; border-radius: 8px; padding: 7px 9px; }
.kv { display: grid; grid-template-columns: 86px 1fr; gap: 9px 10px; font-size: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-all; }

/* ---------------- commissions ---------------- */
.comm-hero { margin: 0 -16px; padding: 20px 18px 22px; color: #fff; background: linear-gradient(140deg, #0b1f3a 10%, #1d4180 65%, #2f6bff); position: relative; overflow: hidden; }
.comm-hero::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -70px; bottom: -110px; background: radial-gradient(circle, rgba(255,176,32,.35), transparent 65%); }
.comm-hero .lb { font-size: 11px; color: #b9cbe5; }
.comm-hero .num { font-size: 34px; font-weight: 700; letter-spacing: -.8px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.comm-hero .split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.comm-hero .split b { font-size: 15px; font-variant-numeric: tabular-nums; }
.comm-hero .split span { display: block; font-size: 10px; color: #a9bcd8; margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 6px 2px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bar-col i { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #6fa0ff, #2f6bff); min-height: 3px; }
.bar-col span { font-size: 8.5px; color: var(--muted); }
.comm-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comm-row:last-child { border-bottom: 0; }
.comm-row .m { flex: 1; min-width: 0; }
.comm-row .m b { font-size: 12.5px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-row .m span { font-size: 9.5px; color: var(--muted); display: block; margin-top: 2px; }
.comm-row .amt { font-size: 14px; font-weight: 700; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.rule-card { background: linear-gradient(150deg, #fffdf7, #fff7e6); border: 1px solid #ffe8b8; border-radius: 16px; padding: 14px; }

/* ---------------- invite ---------------- */
.invite-page { margin: 0 -16px; min-height: calc(100dvh - 52px); padding: 20px 20px 40px; color: #fff; background: linear-gradient(160deg, #071426, #0b1f3a 45%, #173e7c); position: relative; overflow: hidden; }
.invite-page::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 100%); pointer-events: none; }
.invite-page .head { position: relative; text-align: center; padding: 8px 0 18px; }
.invite-page .head h1 { font-size: 24px; margin: 0; letter-spacing: -.4px; }
.invite-page .head p { font-size: 11.5px; color: #9fb4d3; margin: 8px 0 0; line-height: 1.7; }
.qr-card { position: relative; background: #fff; color: var(--ink); border-radius: 24px; padding: 20px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.qr-card img { width: 100%; max-width: 250px; margin: 0 auto; border-radius: 12px; }
.qr-card .who { font-size: 16px; font-weight: 700; margin-top: 14px; }
.qr-card .co { font-size: 11px; color: var(--sub); margin-top: 3px; }
.qr-card .code { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--sub); background: #f4f7fc; border-radius: 8px; padding: 5px 10px; }
.qr-card .code b { color: var(--ink); letter-spacing: 1.5px; }
.invite-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.invite-actions .btn { height: 48px; font-size: 13.5px; }
.invite-actions .btn.light { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; box-shadow: none; }
.steps { position: relative; margin-top: 26px; }
.step { display: flex; gap: 11px; margin-bottom: 14px; }
.step .no { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.14); color: #ffd479; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: 0 0 22px; }
.step .t { font-size: 12px; font-weight: 600; }
.step .d { font-size: 10.5px; color: #93a9c9; margin-top: 3px; line-height: 1.6; }
.rule-note { position: relative; margin-top: 18px; font-size: 10.5px; color: #93a9c9; line-height: 1.8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 11px 12px; }

/* ---------------- messages ---------------- */
.msg { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 36px; }
.msg .ic svg { width: 18px; height: 18px; }
.msg .t { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.msg .dot { width: 6px; height: 6px; border-radius: 50%; background: #ff5a5a; }
.msg .b { font-size: 11px; color: var(--sub); line-height: 1.7; margin-top: 3px; }
.msg .d { font-size: 9.5px; color: var(--muted); margin-top: 4px; }

/* ---------------- desktop demo ---------------- */
@media (min-width: 560px) {
  .login { min-height: 100vh; }
}

/* ---------- team (paged / drill-down) ---------- */
.team-crumb { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 2px 2px 8px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.team-crumb a { color: var(--muted); }
.team-crumb .sep { color: #c4d0e2; }
.team-crumb .cur { color: var(--ink); font-weight: 600; }
.team-focus { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.team-focus .avatar { width: 44px; height: 44px; font-size: 13px; }
.team-focus .n { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.team-focus .co { font-size: 10px; color: var(--muted); margin-top: 2px; }
.team-focus .m { font-size: 9.5px; color: var(--muted-2); margin-top: 4px; }
.team-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 42px; margin-top: 10px; }
.team-search svg { color: var(--muted-2); }
.team-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; color: var(--ink); }
.team-search input::placeholder { color: var(--muted-2); }
.team-search .clr { font-size: 10px; color: var(--brand-2); background: none; border: 0; padding: 2px; }
.member-row { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 11px; margin-top: 8px; }
.member-row .avatar { width: 38px; height: 38px; font-size: 11.5px; }
.member-row .m-body { flex: 1; min-width: 0; }
.member-row .nm { font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 5px; }
.member-row .co { font-size: 9.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row .m-path { font-size: 9px; color: var(--muted-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row .mstats { text-align: right; flex: 0 0 auto; }
.member-row .mstats b { font-size: 12px; font-variant-numeric: tabular-nums; display: block; }
.member-row .mstats span { font-size: 8.5px; color: var(--muted); }
.member-row .marrow { width: 20px; flex: 0 0 20px; display: grid; place-items: center; color: #a9b6c9; }
.member-row .marrow svg { width: 15px; height: 15px; }
.dist { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; margin-top: 8px; }
.dist-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 10px; color: var(--muted); }
.dist-row:first-child { margin-top: 0; }
.dist-row .l { width: 28px; }
.dist-row .bar { flex: 1; height: 6px; border-radius: 99px; background: #eef3fb; overflow: hidden; }
.dist-row .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f6bff, #7aa2ff); }
.dist-row .n { width: 56px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 9.5px; }
.pager-mini { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 10.5px; color: var(--muted); }
.pager-mini button { height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 11px; color: var(--sub); }
.pager-mini button:disabled { opacity: .4; }

/* commission chain */
.comm-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comm-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.comm-item:first-child { padding-top: 2px; }
.cc-head { display: flex; align-items: flex-start; gap: 10px; }
.cc-head .m { flex: 1; min-width: 0; }
.cc-head .m b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-head .m span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.cc-head .amt { font-size: 15px; font-weight: 700; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.chain { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; background: #f6f8fc; border-radius: 10px; padding: 8px 9px; margin: 9px 0 7px; }
.chain::-webkit-scrollbar { display: none; }
.chain-node { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #334155; background: #fff; border: 1px solid #e5ebf5; border-radius: 7px; padding: 4px 7px; line-height: 1; }
.chain-node em { font-style: normal; font-size: 8px; color: #8a9bb4; background: #f1f5fb; border-radius: 4px; padding: 2px 3px; }
.chain-node.buyer { border-color: #ffe2b0; background: #fffaf0; }
.chain-node.buyer em { color: #a86b00; background: #fff2d6; }
.chain-node.me { background: #2f6bff; border-color: #2f6bff; color: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(47, 107, 255, .22); }
.chain-node.me em { color: #dbe7ff; background: rgba(255, 255, 255, .18); }
.chain-arrow { flex: 0 0 auto; color: #a9b7cc; font-size: 11px; }
.cc-foot { font-size: 10px; color: var(--muted); line-height: 1.6; }
.cc-foot b { color: #0b1f3a; font-weight: 600; }

/* ---------------- share QR ---------------- */
.share-qr-row { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); text-align: left; }
.share-qr-row .qr-tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #2f6bff; background: linear-gradient(145deg, #eef4ff, #dfeaff); flex: 0 0 auto; }
.share-qr-row .qr-tile svg { width: 23px; height: 23px; }
.share-qr-row .sq-txt { flex: 1; min-width: 0; }
.share-qr-row .sq-txt b { display: block; font-size: 14px; font-weight: 600; }
.share-qr-row .sq-txt small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.share-qr-row .chev { color: #c3cede; display: flex; }
.qr-sheet { text-align: center; padding: 4px 0 6px; }
.qr-sheet img { display: block; margin: 0 auto; width: 232px; height: 232px; max-width: 72vw; max-height: 72vw; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.qr-sheet-name { margin-top: 12px; font-size: 14px; font-weight: 600; }
.qr-sheet-code { margin-top: 5px; font-size: 11px; color: var(--muted); }
.qr-sheet-code b { letter-spacing: 1.4px; color: var(--ink-2); }
.qr-sheet-tip { margin-top: 12px; font-size: 11px; line-height: 1.75; color: var(--muted); }
.qr-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-sheet-actions .btn { width: 100%; }

/* ---------------- 登录 / 注册切换 ---------------- */
.login-switch {
  display: flex; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 3px; margin-bottom: 16px;
}
.login-switch button {
  flex: 1; height: 34px; border-radius: 9px; color: #8fa4c4; font-size: 12.5px; font-weight: 600;
}
.login-switch button.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.reg-tip { margin-top: 10px; text-align: center; font-size: 10px; color: #7f93b2; line-height: 1.6; }
.link-btn { font-size: 10.5px; color: #93b4ef; padding: 0; }
.login-foot { gap: 12px; }

/* ---------------- 未登录浏览 ---------------- */
.price-login {
  display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 12px; font-weight: 600;
  border-bottom: 1px dashed rgba(47,107,255,.35); padding-bottom: 1px;
}
.detail-price .price-login { font-size: 15px; }
.guest-hero {
  margin: 0 -16px 14px; padding: 46px 24px 34px; color: #fff;
  background: linear-gradient(160deg, #0b1f3a, #16376b);
}
.guest-logo {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4d86ff, #1b4ed8); box-shadow: 0 10px 26px rgba(47,107,255,.4);
}
.guest-hero h1 { font-size: 23px; margin: 18px 0 8px; letter-spacing: .3px; }
.guest-hero p { color: #a9bcd8; font-size: 12.5px; line-height: 1.8; margin: 0; }
.guest-actions { display: flex; gap: 10px; margin-top: 20px; }
.guest-actions .btn { flex: 1; height: 44px; }
.guest-features { margin-top: 14px; }
.guest-feature {
  display: flex; gap: 11px; align-items: flex-start; padding: 14px 15px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; margin-bottom: 9px;
}
.guest-feature .icon-tile { flex: 0 0 auto; }
.guest-feature b { display: block; font-size: 13px; margin-bottom: 3px; }
.guest-feature span { color: var(--sub); font-size: 11.5px; line-height: 1.6; }
.guest-note { text-align: center; color: #94a3b8; font-size: 10.5px; line-height: 1.8; margin: 18px 0 4px; }

/* 分享二维码主入口 */
.share-invite {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  margin: 14px 0 10px; padding: 16px 16px 16px 15px; border-radius: 18px; border: 0;
  background: linear-gradient(135deg, #2F6BFF 0%, #1B4BE0 52%, #0B1F3A 100%);
  color: #fff; box-shadow: 0 14px 30px rgba(47, 107, 255, .28);
  position: relative; overflow: hidden; cursor: pointer;
}
.share-invite::after {
  content: ""; position: absolute; right: -28px; top: -36px; width: 140px; height: 140px;
  border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: 0 0 0 22px rgba(255,255,255,.035);
}
.share-invite .si-icon {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; position: relative; z-index: 1;
}
.share-invite .si-icon svg { width: 26px; height: 26px; }
.share-invite .si-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.share-invite b { display: block; font-size: 15.5px; letter-spacing: .3px; margin-bottom: 4px; }
.share-invite small { display: block; font-size: 10.5px; color: #D6E4FF; opacity: .92; }
.share-invite .si-arrow { position: relative; z-index: 1; display: grid; place-items: center; color: #fff; opacity: .9; }
.share-invite .si-arrow svg { width: 17px; height: 17px; }
.share-invite:active { transform: scale(.99); }

.source-preview { margin-top:12px; min-height:48px; border:1px dashed #dbe4f2; border-radius:12px; padding:10px 12px; color:#7b8da8; font-size:12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.source-preview.filled { border-style:solid; background:#f7faff; color:#1d2c42; }
.source-preview b { font-size:13px; }
.source-preview span { color:#6b7f9b; }
