/* ============================================================
   eBay Seller Hub H5 — global styles
   Palette: eBay blue #3665F3 · ink #191919 · line #E5E5E5
   ============================================================ */

:root {
  --site-main-color: #3665f3;
  --eb-blue: #3665f3;
  --eb-blue-dark: #2b50c8;
  --eb-blue-soft: #eef3ff;
  --eb-ink: #191919;
  --eb-gray: #707070;
  --eb-gray-2: #8f8f8f;
  --eb-line: #e5e5e5;
  --eb-line-soft: #f0f0f0;
  --eb-bg: #f7f7f7;
  --eb-red: #e53238;
  --eb-yellow: #ffbd14;
  --eb-green: #2e8b0d;
  --eb-radius: 8px;
  --eb-radius-lg: 12px;
  --eb-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
  --van-primary-color: var(--eb-blue);
  --van-blue: var(--eb-blue);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Market Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #fff;
  color: var(--eb-ink);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
input, button, textarea, select { font-family: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
a { text-decoration: none; color: inherit; }
input::placeholder { color: #9a9a9a; }

#app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--eb-bg);
  position: relative;
  overflow-x: hidden;
}
@media (min-width: 601px) {
  body { background: #ececec; }
  #app { box-shadow: 0 0 0 1px var(--eb-line); }
}
@media (max-width: 600px) {
  #app { max-width: none; }
  body { background: #fff; }
}

.km-page { min-height: 100vh; background: var(--eb-bg); padding-bottom: 24px; }
.km-page--tabbar { padding-bottom: 76px; }
.km-container { padding: 0 16px; }

/* eBay wordmark */
.eb-logo { height: 28px; width: auto; display: block; }
.eb-logo--sm { height: 22px; }
.eb-logo--lg { height: 44px; }
.eb-brandline { display: flex; align-items: center; gap: 8px; }
.eb-brandline .tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: var(--eb-blue);
  background: var(--eb-blue-soft); border-radius: 4px; padding: 3px 6px;
}

/* ---------------- generic pieces ---------------- */
.km-card {
  background: #fff;
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius-lg);
}
.km-section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 16px 12px;
}
.km-section-title h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.km-section-title .more { font-size: 13px; color: var(--eb-blue); }
.km-muted { color: var(--eb-gray); }
.km-price { color: var(--eb-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.km-price small { font-size: 12px; font-weight: 600; margin-right: 1px; }
.km-empty { padding: 56px 20px; text-align: center; color: var(--eb-gray); font-size: 13px; }
.eb-empty-ico {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--eb-line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #9a9a9a;
}
.km-empty .emoji { font-size: 40px; margin-bottom: 10px; }
.km-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--eb-blue-soft); color: var(--eb-blue);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex: none;
}
.km-btn-primary {
  display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: 24px; background: var(--eb-blue); color: #fff;
  font-size: 16px; font-weight: 600; width: 100%; transition: background 0.15s;
}
.km-btn-primary:active { background: var(--eb-blue-dark); }
.km-btn-primary[disabled] { opacity: 0.45; }
.km-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--eb-blue);
  color: var(--eb-blue); font-size: 13px; font-weight: 600; background: #fff;
}
.km-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 11px; font-size: 11px; background: var(--eb-blue-soft); color: var(--eb-blue);
}
.km-skeleton { background: linear-gradient(90deg, #eee, #f7f7f7, #eee); background-size: 200% 100%; animation: kmShine 1.2s infinite; border-radius: 8px; }
@keyframes kmShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------------- auth (eBay sign in) ---------------- */
.eb-auth { min-height: 100vh; background: #fff; display: flex; flex-direction: column; }
.eb-auth-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.eb-auth-top .eb-logo { height: 30px; }
.eb-lang { display: flex; align-items: center; gap: 6px; color: var(--eb-ink); cursor: pointer; font-size: 12px; }
.eb-lang img { width: 22px; height: 22px; border-radius: 50%; display: block; object-fit: cover; }
.eb-auth-body { width: 100%; max-width: 420px; margin: 0 auto; padding: 18px 24px 40px; flex: 1; }
.eb-auth-body h1 { font-size: 27px; font-weight: 700; letter-spacing: -0.6px; }
.eb-auth-sub { margin-top: 8px; color: var(--eb-gray); font-size: 14px; line-height: 1.5; }
.eb-auth-body form { margin-top: 24px; }
.eb-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--eb-line); margin-bottom: 20px; }
.eb-tabs button {
  padding: 0 0 10px; font-size: 14px; color: var(--eb-gray); font-weight: 500; position: relative;
}
.eb-tabs button.active { color: var(--eb-ink); font-weight: 700; }
.eb-tabs button.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--eb-ink);
}
.eb-field { margin-bottom: 16px; }
.eb-field label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.eb-field label a { color: var(--eb-blue); font-weight: 500; font-size: 12.5px; }
.eb-input {
  display: flex; align-items: center; height: 48px; padding: 0 14px;
  border: 1px solid #707070; border-radius: var(--eb-radius); background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.eb-input:focus-within { border-color: transparent; box-shadow: inset 0 0 0 2px var(--eb-blue); }
.eb-input input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; background: transparent; color: var(--eb-ink); height: 100%; }
.eb-input .eye { display: flex; color: var(--eb-gray); padding-left: 10px; }
.eb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; border-radius: 24px; font-size: 16px; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.eb-btn--primary { background: var(--eb-blue); color: #fff; }
.eb-btn--primary:active { background: var(--eb-blue-dark); }
.eb-btn--primary[disabled] { opacity: 0.45; }
.eb-btn--outline { border: 1px solid var(--eb-blue); color: var(--eb-blue); background: #fff; }
.eb-btn--ghost { color: var(--eb-blue); background: transparent; height: 44px; }
.eb-divider { display: flex; align-items: center; gap: 12px; color: var(--eb-gray); font-size: 12px; margin: 20px 0; }
.eb-divider::before, .eb-divider::after { content: ""; flex: 1; height: 1px; background: var(--eb-line); }
.eb-auth-links { margin-top: 18px; font-size: 13.5px; color: var(--eb-gray); text-align: center; line-height: 1.7; }
.eb-auth-links a, .eb-link { color: var(--eb-blue); font-weight: 500; cursor: pointer; }
.eb-legal { margin-top: 26px; border-top: 1px solid var(--eb-line); padding-top: 16px; font-size: 11px; color: var(--eb-gray); line-height: 1.65; }
.eb-legal a { color: var(--eb-blue); }
.eb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--eb-gray); line-height: 1.55; margin: 2px 0 18px; }
.eb-check .box {
  width: 18px; height: 18px; border: 1.5px solid #707070; border-radius: 4px; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; cursor: pointer;
}
.eb-check .box.on { background: var(--eb-blue); border-color: var(--eb-blue); }
.eb-check a { color: var(--eb-blue); }

/* legacy login wrapper (kept for safety) */
.login-register-content { min-height: 100vh; background: #fff; padding: 24px; }

/* ---------------- app header ---------------- */
.km-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--eb-line);
}
.km-header--dark { background: #fff; color: var(--eb-ink); }
.km-header h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.1px; flex: 1; text-align: center; }
.km-header .back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; margin-left: -8px; color: var(--eb-ink); }
.km-header .right { min-width: 32px; display: flex; justify-content: flex-end; }

/* eBay style top brand bar */
.eb-topbar {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
  background: #fff; border-bottom: 1px solid var(--eb-line);
  position: sticky; top: 0; z-index: 30;
}
.eb-topbar .title { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; }
.eb-topbar .spacer { flex: 1; }
.eb-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--eb-ink); position: relative;
}
.eb-icon-btn:active { background: #f2f2f2; }
.eb-icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--eb-red); border: 1.5px solid #fff; }

/* ---------------- tabbar ---------------- */
.km-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 58px; background: #fff;
  border-top: 1px solid var(--eb-line); display: flex; z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.km-tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #767676; font-size: 10.5px; padding-top: 2px; position: relative;
}
.km-tabbar .tab.active { color: var(--eb-blue); font-weight: 600; }
.km-tabbar .tab.active::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2px; border-radius: 0 0 2px 2px; background: var(--eb-blue);
}
.km-tabbar .tab svg { width: 23px; height: 23px; }

/* ---------------- home ---------------- */
.home-hero { background: #fff; padding: 14px 16px 16px; border-bottom: 1px solid var(--eb-line); }
.home-top { display: flex; align-items: center; gap: 10px; }
.home-top .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.home-top .brand img { height: 26px; width: auto; }
.home-top .spacer { flex: 1; }
.home-top .icon-btn { position: relative; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--eb-ink); }
.home-top .icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--eb-red); }
.home-search {
  margin-top: 12px; height: 44px; border-radius: 22px; background: #fff; border: 1.5px solid var(--eb-ink);
  display: flex; align-items: center; padding: 0 14px; color: #767676; font-size: 13.5px; gap: 8px;
}
.home-cats {
  margin: 14px 12px 0; background: #fff; border-radius: var(--eb-radius-lg); padding: 16px 8px 12px;
  border: 1px solid var(--eb-line); position: relative; z-index: 2;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: 25%; gap: 14px 0; overflow-x: auto; scrollbar-width: none;
}
.home-cats::-webkit-scrollbar { display: none; }
.home-cats .cat { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: #4a4a4a; }
.home-cats .cat .bubble {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 21px; background: #f7f7f7; overflow: hidden;
}
.home-cats .cat .bubble img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.home-banner { margin: 14px 12px 0; border-radius: var(--eb-radius-lg); overflow: hidden; height: 160px; position: relative; background: #f0f0f0; border: 1px solid var(--eb-line); }
.home-banner .banner-slide { position: absolute; inset: 0; }
.home-banner img { width: 100%; height: 160px; object-fit: cover; }
.home-banner .banner-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; }
.home-banner .banner-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); transition: width 0.2s; }
.home-banner .banner-dots i.active { width: 14px; background: #fff; }
.home-notice {
  margin: 12px 12px 0; min-height: 38px; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius);
  display: flex; align-items: center; padding: 8px 12px; gap: 8px; font-size: 12px; color: var(--eb-gray); overflow: hidden;
}
.home-notice .tag { flex: none; font-size: 10px; font-weight: 700; color: var(--eb-blue); background: var(--eb-blue-soft); padding: 2px 6px; border-radius: 4px; }
.home-notice .txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px; }
.product-card { background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius-lg); overflow: hidden; }
.product-card .thumb { width: 100%; aspect-ratio: 1/1; background: #f7f7f7; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .badge { position: absolute; left: 8px; top: 8px; background: var(--eb-red); color: #fff; font-size: 10px; padding: 3px 7px; border-radius: 4px; font-weight: 600; }
.product-card .info { padding: 10px 11px 12px; }
.product-card .title { font-size: 13px; line-height: 1.42; height: 37px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--eb-ink); }
.product-card .price-row { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.product-card .price-row .old { font-size: 11px; color: #9a9a9a; text-decoration: line-through; }
.product-card .sold { font-size: 10.5px; color: #8f8f8f; margin-top: 4px; }

/* ---------------- list / detail ---------------- */
.list-header { padding: 0 16px 8px; display: flex; align-items: center; justify-content: space-between; }
.list-header h3 { font-size: 18px; font-weight: 700; }
.filter-tabs { display: flex; gap: 8px; padding: 10px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs .ft { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; background: #fff; border: 1px solid var(--eb-line); color: #4a4a4a; font-size: 12.5px; display: flex; align-items: center; }
.filter-tabs .ft.active { background: var(--eb-ink); color: #fff; border-color: var(--eb-ink); font-weight: 600; }

.pd-gallery { position: relative; background: #fff; }
.pd-gallery .van-swipe { height: 375px; }
.pd-gallery img { width: 100%; height: 375px; object-fit: cover; }
.pd-body { margin-top: -18px; border-radius: 16px 16px 0 0; background: #fff; position: relative; padding: 16px 16px 20px; }
.pd-price { display: flex; align-items: baseline; gap: 8px; }
.pd-price .now { font-size: 28px; font-weight: 700; color: var(--eb-ink); letter-spacing: -0.8px; }
.pd-price .old { font-size: 13px; color: #9a9a9a; text-decoration: line-through; }
.pd-price .off { font-size: 11px; color: #fff; background: var(--eb-red); border-radius: 4px; padding: 2px 6px; }
.pd-title { font-size: 17px; font-weight: 600; line-height: 1.45; margin-top: 10px; }
.pd-sub { font-size: 12px; color: var(--eb-gray); margin-top: 6px; }
.pd-meta { display: flex; gap: 18px; margin-top: 12px; font-size: 11.5px; color: var(--eb-gray); }
.pd-block { margin-top: 14px; padding: 14px; background: #f7f7f7; border-radius: var(--eb-radius); font-size: 13px; color: #4a4a4a; line-height: 1.7; }
.pd-block h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--eb-ink); }
.pd-block ul { list-style: disc outside; }
.pd-block ol { list-style: decimal outside; }
.pd-block ul, .pd-block ol { padding-left: 20px; margin: 6px 0; }
.pd-block li { margin: 3px 0; }
.pd-block img { border-radius: 8px; margin-top: 8px; max-width: 100%; height: auto; }
.pd-actions {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  background: #fff; border-top: 1px solid var(--eb-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; z-index: 50;
}
.pd-actions .ghost { width: 54px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--eb-gray); font-size: 10px; }
.pd-actions .km-btn-primary { flex: 1; }

/* ---------------- buyer order ---------------- */
.order-tabs { display: flex; background: #fff; padding: 0 6px; position: sticky; top: 48px; z-index: 20; border-bottom: 1px solid var(--eb-line); }
.order-tabs .ot { flex: 1; text-align: center; font-size: 13px; color: var(--eb-gray); padding: 13px 0 11px; position: relative; }
.order-tabs .ot.active { color: var(--eb-ink); font-weight: 700; }
.order-tabs .ot.active::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; height: 2px; background: var(--eb-blue); }
.order-card { margin: 12px 12px 0; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius-lg); padding: 14px; }
.order-card .head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--eb-gray); }
.order-card .head .st { font-size: 12px; font-weight: 700; color: var(--eb-blue); }
.order-card .head .st.done { color: var(--eb-gray); }
.order-card .body { display: flex; gap: 10px; margin-top: 12px; }
.order-card .body img { width: 64px; height: 64px; border-radius: var(--eb-radius); object-fit: cover; background: #f7f7f7; }
.order-card .body .t { flex: 1; font-size: 13px; line-height: 1.45; color: var(--eb-ink); }
.order-card .body .q { font-size: 11px; color: var(--eb-gray); margin-top: 4px; }
.order-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--eb-line-soft); }
.order-card .foot .total { font-size: 12px; color: var(--eb-gray); }
.order-card .foot .total b { font-size: 16px; color: var(--eb-ink); }
.order-card .acts { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.order-card .acts .km-btn-ghost { height: 32px; border-radius: 16px; font-size: 12px; padding: 0 14px; }
.order-card .acts .primary { background: var(--eb-blue); color: #fff; border-color: var(--eb-blue); }

.timeline { padding: 4px 0 0; }
.timeline .tl { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline .tl::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--eb-line); }
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .tl:last-child::before { display: none; }
.timeline .dot { width: 11px; height: 11px; border-radius: 50%; background: #dcdcdc; margin-top: 3px; flex: none; }
.timeline .tl.on .dot { background: var(--eb-blue); box-shadow: 0 0 0 3px rgba(54, 101, 243, 0.14); }
.timeline .tt { font-size: 13px; color: var(--eb-ink); font-weight: 600; }
.timeline .td { font-size: 11px; color: var(--eb-gray); margin-top: 3px; }

/* ---------------- buyer my / wallet ---------------- */
.my-hero { background: #fff; color: var(--eb-ink); padding: 18px 16px 20px; border-bottom: 1px solid var(--eb-line); }
.my-hero .row { display: flex; align-items: center; gap: 12px; }
.my-hero .km-avatar { width: 56px; height: 56px; font-size: 20px; }
.my-hero .name { font-size: 18px; font-weight: 700; }
.my-hero .code { font-size: 11.5px; color: var(--eb-gray); margin-top: 4px; }
.my-hero .gear { margin-left: auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--eb-ink); }
.wallet-card {
  margin: 12px; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius-lg); padding: 16px;
}
.wallet-card .label { font-size: 11.5px; color: var(--eb-gray); }
.wallet-card .amount { font-size: 28px; font-weight: 700; letter-spacing: -1px; margin-top: 4px; }
.wallet-card .amount small { font-size: 14px; font-weight: 600; margin-right: 2px; }
.wallet-card .acts { display: flex; gap: 10px; margin-top: 14px; }
.wallet-card .acts button { flex: 1; height: 40px; border-radius: 20px; font-size: 13.5px; font-weight: 600; }
.wallet-card .acts .fill { background: var(--eb-blue); color: #fff; }
.wallet-card .acts .line { border: 1px solid var(--eb-blue); color: var(--eb-blue); background: #fff; }
.my-mini { display: flex; margin: 12px; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius-lg); padding: 16px 0; text-align: center; }
.my-mini .m { flex: 1; position: relative; }
.my-mini .m + .m::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--eb-line); }
.my-mini .m .v { font-size: 17px; font-weight: 700; }
.my-mini .m .k { font-size: 10.5px; color: var(--eb-gray); margin-top: 4px; }
.my-menu { margin: 12px; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius-lg); overflow: hidden; }
.my-menu .item { display: flex; align-items: center; gap: 12px; padding: 15px 14px; border-bottom: 1px solid var(--eb-line-soft); font-size: 14px; }
.my-menu .item:last-child { border-bottom: 0; }
.my-menu .item .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--eb-blue-soft); color: var(--eb-blue); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.my-menu .item .chev { margin-left: auto; color: #b3b3b3; display: flex; }
.my-menu .item .badge { margin-left: auto; background: var(--eb-red); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 9px; }

.wallet-balance-card { margin: 14px; background: var(--eb-blue); color: #fff; border-radius: var(--eb-radius-lg); padding: 20px; }
.wallet-balance-card .k { font-size: 11px; opacity: 0.85; }
.wallet-balance-card .v { font-size: 32px; font-weight: 700; margin-top: 6px; letter-spacing: -1px; }
.wallet-balance-card .v small { font-size: 15px; margin-right: 3px; }
.wallet-balance-card .actions { display: flex; gap: 10px; margin-top: 18px; }
.wallet-balance-card .actions button { flex: 1; height: 38px; border-radius: 19px; background: #fff; color: var(--eb-blue); font-size: 13px; font-weight: 600; }
.tx-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--eb-line-soft); }
.tx-row .ti { flex: 1; }
.tx-row .ti .t1 { font-size: 14px; }
.tx-row .ti .t2 { font-size: 10.5px; color: var(--eb-gray); margin-top: 4px; }
.tx-row .amt { font-size: 15px; font-weight: 700; }
.tx-row .amt.plus { color: var(--eb-green); }
.tx-row .amt.minus { color: var(--eb-ink); }

.form-card { margin: 14px; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius-lg); padding: 4px 15px; }
.form-row { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--eb-line-soft); gap: 12px; }
.form-row:last-child { border-bottom: 0; }
.form-row .lbl { width: 90px; font-size: 13px; color: #4a4a4a; flex: none; }
.form-row .van-cell { padding: 0; background: transparent; }
.form-row .van-field__control { font-size: 14px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.amount-grid .am { height: 60px; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.amount-grid .am.active { border-color: var(--eb-blue); box-shadow: inset 0 0 0 1px var(--eb-blue); background: var(--eb-blue-soft); }
.amount-grid .am .v { font-size: 17px; font-weight: 700; }
.amount-grid .am .k { font-size: 10px; color: var(--eb-gray); }

.kv { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 13px; color: var(--eb-gray); }
.kv b { color: var(--eb-ink); font-weight: 600; }

.kyc-upload {
  flex: 1; min-width: 0; aspect-ratio: 1.6; border-radius: var(--eb-radius); background: #f7f7f7;
  border: 1px dashed #b3b3b3; display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 12px; color: var(--eb-gray); cursor: pointer; position: relative;
}
.kyc-upload input { display: none; }
.kyc-upload img { width: 100%; height: 100%; object-fit: cover; }
.kyc-upload span { padding: 0 6px; text-align: center; }

/* ---------------- messages ---------------- */
.msg-row { display: flex; gap: 12px; padding: 15px 16px; background: #fff; border-bottom: 1px solid var(--eb-line-soft); }
.msg-row .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--eb-blue-soft); color: var(--eb-blue); display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.msg-row .c { flex: 1; min-width: 0; }
.msg-row .c .t { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.msg-row .c .t .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--eb-red); }
.msg-row .c .d { font-size: 12px; color: var(--eb-gray); margin-top: 5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-row .c .tm { font-size: 10px; color: #9a9a9a; margin-top: 6px; }

/* ---------------- misc ---------------- */
.km-safe-bottom { height: calc(24px + env(safe-area-inset-bottom)); }
.pill-tabs { display: flex; gap: 6px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--eb-line); overflow-x: auto; }
.pill-tabs .p { flex: none; height: 30px; padding: 0 14px; border-radius: 15px; background: #fff; border: 1px solid var(--eb-line); color: #4a4a4a; font-size: 12px; display: flex; align-items: center; }
.pill-tabs .p.active { background: var(--eb-ink); border-color: var(--eb-ink); color: #fff; }

.fade-enter-active, .fade-leave-active { transition: opacity 0.18s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.slide-enter-active { transition: transform 0.24s ease; }
.slide-enter-from { transform: translateX(24px); }

.van-search { background: transparent; padding: 2px 0; }
.van-search__content { background: #fff; border: 1px solid var(--eb-line); border-radius: 20px; }
.van-toast { border-radius: 10px; }
.van-dialog { border-radius: 16px; }
.van-button--primary { background: var(--eb-blue); border-color: var(--eb-blue); }
.van-checkbox__icon--checked .van-icon { background: var(--eb-blue); border-color: var(--eb-blue); }

/* eBay pill badge for seller levels */
.eb-level-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 11px; font-size: 11px; font-weight: 600;
}
.eb-level-pill svg { width: 12px; height: 12px; }
