/* =========================================================
   玄封電競俱樂部 — UI clone
   design tokens mirrored from reference stylesheet
   ========================================================= */
:root {
  --bk: #0D0D0D;           /* header / deep black */
  --dk: #1A1A2E;           /* primary text */
  --nv: #0F3460;           /* navy accent */
  --gd: #D4AF37;           /* gold primary */
  --gl: #F5D76E;           /* gold light */
  --gb: rgba(212,175,55,.12);
  --wh: #FFFFFF;
  --sf: #F5F5F7;           /* page surface */
  --bd: #E2E8F0;           /* border */
  --t2: #475569;           /* secondary text */
  --t3: #94A3B8;           /* tertiary text */
  --su: #22C55E;
  --er: #EF4444;
  --wa: #F59E0B;          /* 警示／附註 */
  --r:  16px;
  --rs: 10px;
  --hh: 52px;
  --th: 58px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 必須壓過元件自己的 display:flex，否則 [hidden] 無效 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  overscroll-behavior: none;
}

body {
  /* 繁中優先用 Noto Sans TC（字重齊、筆畫清楚），離線自動退回系統字型 */
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC",
               system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--sf);
  color: var(--dk);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* =========================================================
   SHELL
   ========================================================= */
.pf {
  width: 100%; height: 100%;
  margin: 0 auto;
  background: var(--sf);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  max-width: 520px;                 /* keep phone proportions on desktop */
  box-shadow: 0 0 0 1px var(--bd);
}

.hd {
  flex-shrink: 0;
  height: var(--hh);
  background: var(--bk);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 200;
  gap: 10px;
}
.hd-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hd-logo {
  height: 28px; width: 28px; flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--nv), #1B4F8F);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(212,175,55,.5);
}
.hd-brand { font-size: 15px; font-weight: 700; color: var(--gd); letter-spacing: .03em; white-space: nowrap; }

.hd-back {
  width: 34px; height: 34px; flex-shrink: 0;
  margin-left: -6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 50%;
  transition: background .2s;
}
.hd-back:active { background: rgba(255,255,255,.12); }
.hd-back svg { width: 22px; height: 22px; }

.hd-page-title { font-size: 15px; font-weight: 700; color: #fff; }

.hd-btn {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk);
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(212,175,55,.25);
}
.hd-btn:active { transform: scale(.95); }

.hd-action { font-size: 13px; font-weight: 600; color: var(--t3); padding: 6px 4px; }
.hd-action:active { opacity: .7; }

.ct {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ct::-webkit-scrollbar { display: none; }

/* =========================================================
   BOTTOM TAB BAR
   ========================================================= */
.tb {
  flex-shrink: 0;
  height: var(--th);
  background: var(--wh);
  border-top: 1px solid var(--bd);
  display: flex;
  z-index: 200;
  padding: 4px 0 env(safe-area-inset-bottom, 6px);
}
.tb-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  color: var(--t3);
  font-size: 9px; font-weight: 500;
  border-top: 2px solid transparent;
  padding-top: 3px;
  transition: all .2s;
  text-decoration: none;
}
.tb-item .ti { font-size: 20px; line-height: 1; display: flex; }
.tb-item svg { width: 20px; height: 20px; }
.tb-item.on { color: var(--bk); border-top-color: var(--gd); }

/* =========================================================
   BANNER CAROUSEL
   ========================================================= */
.banner-carousel {
  margin: 10px 14px;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  background: var(--wh);
  min-height: 40px;
}
.carousel-track-wrap { overflow: hidden; width: 100%; }
.carousel-track { display: flex; transition: transform .4s ease; will-change: transform; }
.carousel-slide { flex: 0 0 100%; }
.carousel-art { display: block; width: 100%; aspect-ratio: 16/7; }
.carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px;
  pointer-events: none;
}
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; padding: 0;
  transition: background .2s, width .2s;
  pointer-events: auto;
}
.carousel-dot.active { background: #fff; width: 18px; border-radius: 3px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.3); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
}
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }

/* =========================================================
   CHIPS (game category)
   ========================================================= */
.chip-row {
  display: flex; gap: 8px;
  padding: 0 14px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0; transition: all .2s;
}
.chip.on  { background: var(--bk); color: var(--gd); border: 1px solid var(--gd); }
.chip.off { background: var(--wh); border: 1px solid var(--bd); color: var(--t2); }
.chip:active { transform: scale(.95); }

/* =========================================================
   SECTION TITLE
   ========================================================= */
.sec-title {
  font-size: 14px; font-weight: 700;
  padding: 14px 14px 8px;
  display: flex; align-items: center; gap: 6px;
  color: var(--dk);
}
.sec-title .more {
  font-size: 10px; font-weight: 500; color: var(--t3);
  margin-left: auto; cursor: pointer;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px;
}
.prod-card {
  background: var(--wh);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
  padding: 0;
  text-align: left;
}
.prod-card:active { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.prod-card .p-art {
  width: 100%; aspect-ratio: 1/1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  color: #fff;
  text-align: center;
  padding: 4px;
}
.prod-card .p-art .big { font-size: 15px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.prod-card .p-art .small { font-size: 8px; opacity: .85; font-weight: 600; }
.prod-card h4 {
  font-size: 10px; font-weight: 600; line-height: 1.3; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 24px;
  padding: 6px 6px 0;
  margin: 0;
  color: var(--dk);
}
.prod-card .p-sub { font-size: 8px; color: var(--t3); text-align: center; padding: 2px 6px; }
.prod-card .p-price { font-size: 14px; font-weight: 800; color: var(--gd); text-align: center; padding: 4px 6px 10px; }
.prod-card .p-tag {
  font-size: 7px; background: var(--gb); color: var(--gd);
  padding: 1px 8px; border-radius: 4px;
  display: block; width: fit-content; margin: 2px auto 8px;
  font-weight: 600; text-align: center;
}

/* =========================================================
   CARD / BUTTON
   ========================================================= */
.card { background: var(--wh); border: 1px solid var(--bd); border-radius: var(--rs); overflow: hidden; }
.card-pad { padding: 14px; }

.btn-gold {
  width: 100%; padding: 13px;
  border-radius: 8px; border: none;
  font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk);
  transition: all .2s;
  display: block; text-align: center;
}
.btn-gold:active { transform: scale(.98); filter: brightness(.95); }
.btn-ghost {
  width: 100%; padding: 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  background: var(--sf); color: var(--t2);
  border: 1px solid var(--bd);
  display: block; text-align: center;
}
.btn-ghost:active { background: var(--bd); }

.badge {
  padding: 2px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 600; display: inline-block;
}
.badge-pending { background: var(--gb); color: var(--gd); }
.badge-active  { background: rgba(34,197,94,.12); color: var(--su); }
.badge-error   { background: rgba(239,68,68,.12); color: var(--er); }
.badge-muted   { background: var(--sf); color: var(--t3); border: 1px solid var(--bd); }
.badge-navy    { background: rgba(15,52,96,.12); color: var(--nv); }

.empty-state { padding: 48px 24px; text-align: center; color: var(--t3); font-size: 13px; }

/* =========================================================
   AUTH PAGES (login / register) — navy stage
   ========================================================= */
.auth {
  min-height: 100%;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 70% at 50% 0%, #173E70 0%, var(--nv) 45%, #0A2547 100%);
  padding-bottom: 28px;
}
.auth-brand {
  padding: 26px 0 22px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.auth-logo {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--nv), #1B4F8F);
  box-shadow: 0 0 0 1.5px rgba(212,175,55,.55), 0 10px 26px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
}
.auth-brand h1 { margin: 0; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .04em; }
.auth-brand .en { font-size: 9px; letter-spacing: .22em; color: rgba(255,255,255,.55); font-weight: 600; }
.auth-card {
  margin: 0 16px;
  background: var(--wh);
  border-radius: var(--r);
  padding: 20px 18px 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.auth-card h2 { margin: 0 0 16px; font-size: 16px; font-weight: 800; text-align: center; color: var(--dk); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; font-weight: 700; color: var(--t2); margin-bottom: 5px; }
.field label em { color: var(--er); font-style: normal; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--bd);
  background: var(--sf);
  font-size: 13px;
  color: var(--dk);
  outline: none;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--gd); background: var(--wh); }
.field input::placeholder { color: var(--t3); }
.field .hint { font-size: 10px; color: var(--t3); margin-top: 4px; }

.auth-alt { margin: 16px 16px 0; text-align: center; font-size: 12px; color: var(--t3); }
.auth-alt a { color: var(--or, #E07A2F); font-weight: 700; text-decoration: none; }
.auth-alt .l2 { margin-top: 8px; color: var(--t2); }

/* =========================================================
   MINE (profile)
   ========================================================= */
.me-hero {
  background: linear-gradient(160deg, var(--bk) 0%, #16233A 100%);
  padding: 20px 16px 22px;
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--gd);
}
.me-id h3 { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.me-id .uid { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 3px; }
.me-id .vip {
  display: inline-block; margin-top: 6px;
  font-size: 9px; font-weight: 700; color: var(--bk);
  background: linear-gradient(135deg, var(--gd), var(--gl));
  padding: 2px 9px; border-radius: 10px;
}
.me-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--wh);
  border-bottom: 1px solid var(--bd);
}
.me-stats div { padding: 14px 0; text-align: center; border-right: 1px solid var(--bd); }
.me-stats div:last-child { border-right: none; }
.me-stats b { display: block; font-size: 17px; font-weight: 800; color: var(--gd); }
.me-stats span { font-size: 10px; color: var(--t3); }

.list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--bd);
  font-size: 13px; font-weight: 600; color: var(--dk);
  cursor: pointer;
}
.list-row:last-child { border-bottom: none; }
.list-row .ic {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  background: var(--gb); color: var(--gd);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.list-row .arrow { margin-left: auto; color: var(--t3); font-size: 15px; }

/* order card */
.order-card {
  background: var(--wh); border: 1px solid var(--bd);
  border-radius: var(--rs); padding: 12px;
  margin: 0 14px 8px;
  font-size: 11px;
}
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.order-name { font-size: 12px; font-weight: 700; color: var(--dk); }
.order-meta { display: flex; justify-content: space-between; color: var(--t3); font-size: 10px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.order-foot .amt { font-size: 15px; font-weight: 800; color: var(--gd); }
.mini-btn {
  padding: 6px 14px; border-radius: 16px;
  font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--gd), var(--gl)); color: var(--bk);
}

/* =========================================================
   SUPPORT (chat)
   ========================================================= */
.sp-head-info { flex: 1; min-width: 0; padding-left: 4px; }
.sp-head-sub { font-size: 10px; color: var(--t3); display: block; margin-top: 2px; font-weight: 500; }
.sp-human-btn {
  padding: 6px 14px; border-radius: 16px;
  font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--gd), var(--gl)); color: var(--bk);
  flex-shrink: 0;
}
.sp-list { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 76%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px; line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.bubble.them { align-self: flex-start; background: var(--wh); border: 1px solid var(--bd); color: var(--dk); border-bottom-left-radius: 4px; }
.bubble.me   { align-self: flex-end; background: linear-gradient(135deg, var(--gd), var(--gl)); color: var(--bk); font-weight: 500; border-bottom-right-radius: 4px; }
.bubble .t { display: block; font-size: 9px; opacity: .55; margin-top: 4px; }
.bubble.sys { align-self: center; background: none; color: var(--t3); font-size: 10.5px; text-align: center; }

.quick-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.quick {
  padding: 7px 12px; border-radius: 16px;
  font-size: 11px; font-weight: 600;
  background: var(--wh); border: 1px solid var(--bd); color: var(--t2);
}
.quick:active { background: var(--gb); border-color: var(--gd); color: var(--gd); }

.sp-compose { flex-shrink: 0; background: var(--wh); border-top: 1px solid var(--bd); }
.sp-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 6px)); }
.sp-input-row textarea {
  flex: 1;
  resize: none;
  max-height: 96px;
  padding: 9px 12px;
  border-radius: 18px;
  border: 1px solid var(--bd);
  background: var(--sf);
  font-size: 13px; color: var(--dk);
  outline: none;
  line-height: 1.4;
}
.sp-input-row textarea:focus { border-color: var(--gd); background: var(--wh); }
.sp-send {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk); font-size: 17px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.sp-send:active { transform: scale(.92); }

/* =========================================================
   SHEET (product detail)
   ========================================================= */
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 900; animation: fade .22s ease; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 520px;
  background: var(--sf);
  border-radius: 18px 18px 0 0;
  z-index: 901;
  animation: up .26s cubic-bezier(.2,.8,.3,1);
  max-height: 86vh;
  display: flex; flex-direction: column;
}
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translate(-50%, 100%) } }
.sheet-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--bd); margin: 9px auto 4px; flex-shrink: 0; }
.sheet-body { overflow-y: auto; padding: 8px 0 18px; }
.sheet-body::-webkit-scrollbar { display: none; }

.sheet-art { aspect-ratio: 16/10; margin: 0 14px; border-radius: var(--rs); }
.sheet-name { font-size: 16px; font-weight: 800; padding: 14px 16px 4px; }
.sheet-price { font-size: 24px; font-weight: 800; color: var(--gd); padding: 0 16px; }
.sheet-price small { font-size: 11px; color: var(--t3); font-weight: 600; margin-left: 8px; }
.kv { padding: 6px 16px; }
.kv div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--bd); font-size: 12px; }
.kv span:first-child { color: var(--t3); }
.sheet-actions { display: flex; gap: 10px; padding: 16px 16px 0; }
.sheet-actions > * { flex: 1; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 90px;
  transform: translate(-50%, 12px);
  background: rgba(13,13,13,.92); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 10px 18px; border-radius: 22px;
  z-index: 950;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* skeleton */
.skel {
  background: linear-gradient(90deg, var(--sf) 25%, #fff 37%, var(--sf) 63%);
  background-size: 400% 100%;
  animation: sh 1.2s ease infinite;
  border-radius: 6px;
}
@keyframes sh { from { background-position: 100% 50% } to { background-position: 0 50% } }
/* =========================================================
   ICON — 線條圓潤（全站統一）
   ========================================================= */
.ic {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.7;
}
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 26px; height: 26px; }
.ic-xl { width: 34px; height: 34px; }

/* =========================================================
   STAT STRIP (打手首頁統計)
   ========================================================= */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--wh);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  overflow: hidden;
  margin: 10px 14px 0;
}
.stat-strip > div { padding: 12px 6px; text-align: center; border-right: 1px solid var(--bd); }
.stat-strip > div:last-child { border-right: none; }
.stat-strip b { display: block; font-size: 17px; font-weight: 800; color: var(--dk); line-height: 1.25; }
.stat-strip b.gold { color: var(--gd); }
.stat-strip span { font-size: 10px; color: var(--t3); }
.stat-strip .ic { display: block; margin: 0 auto 3px; width: 16px; height: 16px; color: var(--t3); }

/* =========================================================
   JOB CARD (接單)
   ========================================================= */
.job-card {
  background: var(--wh);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  padding: 12px;
  margin: 0 14px 8px;
}
.job-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.job-name { font-size: 13px; font-weight: 700; color: var(--dk); line-height: 1.35; }
.job-code { font-size: 10px; color: var(--t3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.job-amt { margin-left: auto; text-align: right; flex-shrink: 0; }
.job-amt .full { font-size: 15px; font-weight: 800; color: var(--t3); text-decoration: line-through; }
.job-amt .net { font-size: 16px; font-weight: 800; color: var(--gd); line-height: 1.2; }
.job-amt .lbl { font-size: 9px; color: var(--t3); }
.job-meta { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--t3); flex-wrap: wrap; }
.job-meta .row { display: inline-flex; align-items: center; gap: 3px; }
.job-meta .ic { width: 13px; height: 13px; }
.job-actions { display: flex; gap: 8px; margin-top: 10px; }
.job-actions button { flex: 1; }

/* =========================================================
   BALANCE CARD
   ========================================================= */
.balance-card {
  margin: 12px 14px 0;
  border-radius: var(--rs);
  padding: 15px 16px;
  background: linear-gradient(140deg, var(--bk) 0%, #1B2A44 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.balance-card .ic { position: absolute; right: 12px; top: 12px; color: rgba(212,175,55,.45); width: 40px; height: 40px; }
.balance-card .lbl { font-size: 10px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 5px; }
.balance-card .val { font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.balance-card .sub { font-size: 10px; color: rgba(255,255,255,.5); }

/* =========================================================
   LEDGER / TRANSFER LIST
   ========================================================= */
.led-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--bd);
}
.led-row:last-child { border-bottom: none; }
.led-ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.led-ic.in  { background: rgba(34,197,94,.12);  color: #16A34A; }
.led-ic.out { background: rgba(239,68,68,.12);  color: var(--er); }
.led-ic.adj { background: var(--gb); color: var(--gd); }
.led-main { flex: 1; min-width: 0; }
.led-main .t { font-size: 12.5px; font-weight: 600; color: var(--dk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.led-main .s { font-size: 10px; color: var(--t3); margin-top: 2px; }
.led-amt { font-size: 14px; font-weight: 800; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.led-amt.in { color: #16A34A; }
.led-amt.out { color: var(--er); }

/* =========================================================
   APPLY (成為打手)
   ========================================================= */
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pick {
  padding: 8px 16px; border-radius: 18px;
  font-size: 12px; font-weight: 600;
  background: var(--sf); border: 1px solid var(--bd); color: var(--t2);
}
.pick.on { background: var(--bk); border-color: var(--gd); color: var(--gd); }

/* =========================================================
   SEG / filter pills
   ========================================================= */
.seg {
  display: flex; gap: 6px; padding: 10px 14px;
  overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  padding: 6px 14px; border-radius: 16px; flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  background: var(--wh); border: 1px solid var(--bd); color: var(--t2);
}
.seg button.on { background: var(--bk); border-color: var(--gd); color: var(--gd); }

/* notice bar */
.notice {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 14px 0; padding: 10px 12px;
  border-radius: var(--rs);
  background: var(--gb); color: #8A6D1F;
  font-size: 11px; line-height: 1.5;
}
.notice .ic { width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; }
.notice.gray { background: var(--sf); color: var(--t2); }

/* link row */
.link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-bottom: 1px solid var(--bd);
  font-size: 13px; font-weight: 600; color: var(--dk); cursor: pointer;
  text-decoration: none;
}
.link-row:last-child { border-bottom: none; }
.link-row .ic { color: var(--t3); }
.link-row .txt { flex: 1; }
.link-row .val { font-size: 11px; color: var(--t3); font-weight: 500; }

/* =========================================================
   ORDER GROUP — 訂單列表收進「一個」圓角框
   ========================================================= */
.ogrp {
  margin: 0 14px;
  background: var(--wh);
  border: 1px solid var(--bd);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.ogrp-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bd);
}
.ogrp-row:last-child { border-bottom: none; }
.ogrp-row:active { background: var(--sf); }

.ogrp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ogrp-name { font-size: 13px; font-weight: 700; color: var(--dk); line-height: 1.35; flex: 1; min-width: 0; }
.ogrp-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; color: var(--t3); flex-wrap: wrap; margin-bottom: 9px;
}
.ogrp-meta .row { display: inline-flex; align-items: center; gap: 3px; }
.ogrp-meta .ic { width: 12px; height: 12px; }
.ogrp-ft {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 9px; border-top: 1px dashed var(--bd);
}
.ogrp-amt { font-size: 16px; font-weight: 800; color: var(--gd); font-variant-numeric: tabular-nums; line-height: 1; }
.ogrp-amt small { font-size: 10px; color: var(--t3); font-weight: 600; margin-left: 6px; }
.ogrp-note { font-size: 10.5px; color: var(--t3); }

/* 框內空狀態 */
.ogrp-empty { padding: 34px 20px; text-align: center; color: var(--t3); font-size: 12.5px; }

/* 頭像（可點上傳） */
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-btn { cursor: pointer; border-radius: 50%; display: block; }
.avatar-btn:active { transform: scale(.94); }
.avatar-cam {
  position: absolute; right: -1px; bottom: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--wh);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.avatar-cam .ic { width: 10px; height: 10px; stroke-width: 2.2; }
.avatar-big { width: 56px; height: 56px; font-size: 22px; }
.avatar-big .ic { width: 20px; height: 20px; }

/* 圖示選擇器 */
.emoji-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.emoji-pick button {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--sf); border: 1.5px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); transition: all .15s;
}
.emoji-pick button.on { border-color: var(--gd); background: var(--gb); color: #8A6D1F; }

/* 訂單框底部的「查看全部」按鈕 */
.ogrp-more {
  width: 100%;
  padding: 12px;
  border-top: 1px solid var(--bd);
  background: var(--wh);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--t2);
  transition: background .15s;
}
.ogrp-more:active { background: var(--sf); }
.ogrp-more .ic { width: 14px; height: 14px; color: var(--gd); }
.sec-title .more { font-size: 10px; font-weight: 500; color: var(--t3); margin-left: auto; }

/* =========================================================
   客服頁：輸入列釘在底部，訊息區自己捲動
   （原本輸入列放在捲動容器 #ct 裡，會浮在畫面中間）
   ========================================================= */
.ct.ct-chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.ct-chat .sp-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ct-chat .sp-list::-webkit-scrollbar { display: none; }
.ct-chat .sp-compose {
  flex-shrink: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,.04);
}

/* =========================================================
   服務條款
   ========================================================= */
.terms-box {
  margin: 12px 14px 0;
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  overflow: hidden;
  background: var(--wh);
}
.terms-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  background: var(--sf);
  border-bottom: 1px solid var(--bd);
  font-size: 12.5px; font-weight: 700; color: var(--dk);
}
.terms-hd .ver {
  margin-left: auto; font-size: 10px; font-weight: 600; color: var(--t3);
  background: var(--wh); border: 1px solid var(--bd);
  padding: 1px 8px; border-radius: 8px;
}
.terms-hd .more {
  font-size: 11px; font-weight: 700; color: var(--gd);
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 8px;
}
.terms-body {
  padding: 12px 13px;
  max-height: 116px;
  overflow-y: auto;
  font-size: 11.5px; line-height: 1.75; color: var(--t2);
  white-space: pre-wrap; word-break: break-word;
}
.terms-body::-webkit-scrollbar { width: 5px; }
.terms-body::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 3px; }
.terms-fade {
  position: relative; margin-top: -34px; height: 34px;
  background: linear-gradient(transparent, var(--wh));
  pointer-events: none;
}

/* 同意列 */
.agree-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 10px 14px 0;
  padding: 11px 13px;
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  background: var(--wh);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.agree-row.on { border-color: var(--gd); background: var(--gb); }
.agree-box {
  width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px;
  border: 1.5px solid var(--bd); border-radius: 5px;
  background: var(--wh);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: all .15s;
}
.agree-row.on .agree-box { background: var(--gd); border-color: var(--gd); color: #fff; }
.agree-box .ic { width: 12px; height: 12px; stroke-width: 3; }
.agree-txt { font-size: 11.5px; line-height: 1.6; color: var(--dk); font-weight: 600; }
.agree-txt .sub { display: block; font-weight: 500; color: var(--t3); font-size: 10.5px; margin-top: 2px; }

/* 條款全文頁 */
.terms-full {
  white-space: pre-wrap; word-break: break-word;
  font-size: 13px; line-height: 1.9; color: var(--dk);
}

/* =========================================================
   結帳流程
   ========================================================= */
.co-hero { padding: 14px 14px 16px; }
.co-prod {
  display: flex; gap: 12px; align-items: center;
  background: var(--wh); border: 1px solid var(--bd);
  border-radius: var(--rs); padding: 12px;
}
.co-art {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #fff;
}
.co-art .big { font-size: 17px; font-weight: 800; }
.co-art .small { font-size: 9px; opacity: .85; font-weight: 600; }
.co-info { flex: 1; min-width: 0; }
.co-info h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--dk); }
.co-info .sub { font-size: 11px; color: var(--t3); }
.co-info .price { font-size: 19px; font-weight: 800; color: var(--gd); margin-top: 6px; }
.co-badge {
  display: inline-block; font-size: 10px; font-weight: 700; color: var(--t3);
  border: 1px solid var(--bd); border-radius: 6px; padding: 1px 7px; margin-top: 6px;
}

.blk {
  margin: 0 14px 12px;
  background: var(--wh); border: 1px solid var(--bd); border-radius: var(--rs);
  overflow: hidden;
}
.blk-hd {
  padding: 11px 13px; border-bottom: 1px solid var(--bd);
  font-size: 12.5px; font-weight: 800; color: var(--dk);
  display: flex; align-items: center; gap: 6px;
}
.blk-hd .hint { margin-left: auto; font-size: 10px; font-weight: 500; color: var(--t3); }
.blk-bd { padding: 13px; }
.blk-bd .field { margin-bottom: 12px; }
.blk-bd .field:last-child { margin-bottom: 0; }

/* 付款方式 */
.pay-pick { display: flex; flex-direction: column; }
.pay-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; border-bottom: 1px solid var(--bd);
  cursor: pointer; transition: background .15s;
}
.pay-opt:last-child { border-bottom: none; }
.pay-opt.on { background: var(--gb); }
.pay-radio {
  width: 19px; height: 19px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--bd); background: var(--wh);
  display: flex; align-items: center; justify-content: center;
}
.pay-opt.on .pay-radio { border-color: var(--gd); }
.pay-radio i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--gd);
  transform: scale(0); transition: transform .15s;
}
.pay-opt.on .pay-radio i { transform: scale(1); }
.pay-label { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--dk); }
.pay-label small { display: block; font-weight: 500; font-size: 10.5px; color: var(--t3); margin-top: 2px; }
.pay-lock { font-size: 10px; color: var(--t3); font-weight: 600; }

/* 費用明細 */
.sum-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; font-size: 12.5px; color: var(--t2);
}
.sum-row.pay { color: var(--er); font-weight: 700; }
.sum-row.total {
  border-top: 1px solid var(--bd); margin-top: 4px; padding-top: 11px;
  font-size: 15px; font-weight: 800; color: var(--dk);
}
.sum-row.total b { font-size: 20px; color: var(--gd); font-weight: 800; }

.co-cta {
  position: sticky; bottom: 0;
  margin: 4px 14px 0; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, var(--sf) 22%);
  padding-top: 8px;
}
.btn-red {
  width: 100%; padding: 15px; border-radius: 10px; border: none;
  font-size: 17px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(135deg, #D93025, #B71C1C);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 48, 37, .3);
}
.btn-red:active { transform: scale(.98); filter: brightness(.95); }

/* 沙盒警示 */
.sandbox {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 14px 12px; padding: 10px 12px;
  border-radius: var(--rs);
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  font-size: 11px; line-height: 1.6; color: #991B1B;
}
.sandbox .ic { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

/* 完成頁 */
.done-wrap { padding: 20px 14px 30px; text-align: center; }
.done-ic {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(212, 175, 55, .35);
}
.done-ic .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.done-kv {
  text-align: left; margin: 18px 0;
  background: var(--wh); border: 1px solid var(--bd); border-radius: var(--rs); padding: 4px 13px;
}
.done-kv .r { display: flex; justify-content: space-between; padding: 11px 0;
               border-bottom: 1px solid var(--bd); font-size: 12.5px; color: var(--t2); }
.done-kv .r:last-child { border-bottom: none; }
.done-kv .r b { color: var(--dk); font-weight: 800; }
.done-kv .r b.big { color: var(--gd); font-size: 16px; }

.code-box {
  margin: 14px 0; padding: 16px;
  background: linear-gradient(140deg, var(--bk), #1B2A44);
  border-radius: var(--r); color: #fff;
}
.code-box .lbl { font-size: 11px; color: rgba(255,255,255,.6); }
.code-box .code {
  font-size: 34px; font-weight: 800; letter-spacing: 7px;
  color: var(--gl); margin: 6px 0 4px; font-family: ui-monospace, Menlo, monospace;
}
.code-box .warn { font-size: 10.5px; color: rgba(255,255,255,.55); line-height: 1.6; margin-top: 8px; }

.link-box {
  display: flex; gap: 8px; align-items: center;
  background: var(--sf); border: 1px solid var(--bd); border-radius: var(--rs);
  padding: 10px 12px; margin-bottom: 12px;
}
.link-box .u {
  flex: 1; min-width: 0; font-size: 10.5px; color: var(--t2);
  font-family: ui-monospace, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 付款資訊 */
.payinfo { background: var(--sf); border: 1px dashed var(--bd); border-radius: var(--rs);
           padding: 12px 13px; margin-top: 4px; }
.payinfo .k { font-size: 10.5px; color: var(--t3); }
.payinfo .v { font-size: 16px; font-weight: 800; color: var(--dk);
               font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; margin: 2px 0 9px; word-break: break-all; }

/* 代幣 */
.token-hero {
  margin: 12px 14px 0; padding: 17px;
  border-radius: var(--r);
  background: linear-gradient(140deg, #4A3A10, #141004);
  color: #fff; position: relative; overflow: hidden;
}
.token-hero .ic { position: absolute; right: 10px; top: 10px; color: rgba(212,175,55,.4); width: 44px; height: 44px; }
.token-hero .lbl { font-size: 11px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 5px; }
.token-hero .val { font-size: 30px; font-weight: 800; margin-top: 5px; font-variant-numeric: tabular-nums; }
.token-hero .sub { font-size: 10.5px; color: rgba(255,255,255,.5); margin-top: 3px; }

.tk-formula { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 11px; }
.tk-amt {
  padding: 10px 0; border-radius: var(--rs); border: 1.5px solid var(--bd);
  background: var(--wh); font-size: 12.5px; font-weight: 700; color: var(--t2);
}
.tk-amt.on { border-color: var(--gd); background: var(--gb); color: #8A6D1F; }

.code-in {
  width: 100%; text-align: center; letter-spacing: 8px; font-size: 20px; font-weight: 800;
  padding: 13px; border-radius: var(--rs); border: 1.5px solid var(--bd);
  background: var(--sf); outline: none; font-family: ui-monospace, Menlo, monospace;
}
.code-in:focus { border-color: var(--gd); background: var(--wh); }

/* 底部確認列 */
.co-bar {
  position: sticky; bottom: 0;
  display: flex; gap: 10px; align-items: center;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
  background: var(--wh); border-top: 1px solid var(--bd);
}
.co-bar .amt { font-size: 17px; font-weight: 800; color: var(--gd); }
.co-bar .amt small { display: block; font-size: 9.5px; color: var(--t3); font-weight: 600; }
.co-bar .btn-gold { flex: 1; padding: 13px; }

/* AI 打字指示 */
.dots { display: inline-flex; gap: 4px; align-items: center; padding: 3px 0; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--t3);
  display: block; animation: dotpulse 1.2s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: .18s; }
.dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dotpulse {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.bubble.them.streaming::after {
  content: ''; display: inline-block; width: 2px; height: 13px;
  background: var(--t3); margin-left: 2px; vertical-align: -2px;
  animation: caret .8s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* =========================================================
   「我的」頁的玄封代幣小卡（放在訂單上方）
   ========================================================= */
.tk-mini {
  position: relative;
  margin: 12px 14px 0;
  padding: 15px 16px 16px;
  border-radius: var(--r);
  background: linear-gradient(140deg, #4A3A10 0%, #141004 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(20, 16, 4, .18);
}
.tk-mini .lbl {
  font-size: 11px; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 5px;
}
.tk-mini .lbl .ic { width: 13px; height: 13px; }
.tk-mini .val {
  font-size: 27px; font-weight: 800; margin-top: 4px;
  font-variant-numeric: tabular-nums; line-height: 1.1;
  padding-right: 82px;
}
.tk-mini .sub { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 4px; padding-right: 82px; }

/* 圓角方形充值鈕：靠右下，顯示「充值」文字 */
.tk-plus {
  position: absolute; right: 13px; bottom: 13px;
  min-width: 46px; height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 14px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, .38);
  transition: transform .15s;
  white-space: nowrap;
}
.tk-plus:active { transform: scale(.94); filter: brightness(.95); }
.tk-plus .ic { width: 16px; height: 16px; stroke-width: 2.6; }

/* 未登入／代幣為 0 時的樣子 */
.tk-mini.dim { background: linear-gradient(140deg, #2A2E38 0%, #14161C 100%); }
.tk-mini.dim .tk-plus { box-shadow: none; }

/* =========================================================
   設定頁
   ========================================================= */
.set-group { margin: 14px 14px 0; }
.set-group .gt {
  font-size: 10.5px; font-weight: 700; color: var(--t3);
  letter-spacing: .06em; padding: 0 4px 7px;
}
.set-card {
  background: var(--wh); border: 1px solid var(--bd);
  border-radius: var(--rs); overflow: hidden;
}

.set-row {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border-bottom: 1px solid var(--bd);
  cursor: pointer; background: var(--wh);
}
.set-row:last-child { border-bottom: none; }
.set-row:active { background: var(--sf); }
.set-row .ic-box {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  background: var(--gb); color: #8A6D1F;
  display: flex; align-items: center; justify-content: center;
}
.set-row .ic-box.plain { background: var(--sf); color: var(--t3); }
.set-row .txt { flex: 1; min-width: 0; }
.set-row .txt b { display: block; font-size: 12.5px; font-weight: 700; color: var(--dk); }
.set-row .txt span { display: block; font-size: 10.5px; color: var(--t3); margin-top: 2px; line-height: 1.5; }
.set-row .val { font-size: 11.5px; color: var(--t3); flex-shrink: 0; max-width: 42%;
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-row .arrow { color: var(--t3); flex-shrink: 0; }
.set-row.danger .ic-box { background: rgba(239,68,68,.12); color: var(--er); }
.set-row.danger .txt b { color: var(--er); }

/* 開關 */
.sw {
  width: 44px; height: 26px; border-radius: 13px; flex-shrink: 0;
  background: var(--bd); position: relative; transition: background .2s;
}
.sw.on { background: var(--gd); }
.sw i {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.sw.on i { transform: translateX(18px); }

/* 設定彈窗表單 */
.set-form .field { margin-bottom: 13px; }
.set-form .field:last-child { margin-bottom: 0; }

/* =========================================================
   第三方登入
   ========================================================= */
.oauth-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 16px 14px; color: var(--t3); font-size: 10.5px; font-weight: 600;
}
.oauth-sep::before, .oauth-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--bd);
}
.oauth-row { display: flex; gap: 9px; padding: 0 16px; }
.oauth-btn {
  flex: 1; padding: 11px 0; border-radius: var(--rs);
  border: 1px solid var(--bd); background: var(--wh);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--t2);
  transition: all .15s;
}
.oauth-btn:active { transform: scale(.96); background: var(--sf); }
.oauth-btn.off { opacity: .45; }
.oauth-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.oauth-btn.google { color: #4285F4; }
.oauth-btn.line   { color: #06C755; }
.oauth-btn.fb     { color: #1877F2; }
.oauth-note {
  padding: 9px 16px 0; font-size: 10px; color: var(--t3);
  text-align: center; line-height: 1.6;
}

/* 超商附註列 */
.sum-row.note {
  font-size: 11px; color: var(--wa); font-weight: 600;
  padding-top: 2px; padding-bottom: 0;
}

/* =========================================================
   字體細節：讓繁中看起來更俐落
   ========================================================= */
.hd-brand      { font-weight: 900; letter-spacing: .01em; }
.hd-page-title { font-weight: 900; }
.co-info h3,
.sheet-name,
.done-wrap > div  { font-weight: 900; letter-spacing: -.01em; }
.tk-mini .val,
.token-hero .val,
.balance-card .val { font-weight: 900; letter-spacing: -.015em; }
.prod-card .p-price,
.ogrp-amt,
.sum-row.total b,
.mini-btn { font-weight: 900; }
.sec-title, .blk-hd, .cardx-hd { font-weight: 900; }
.btn-gold, .btn-red, .mini-btn, .pay-label { font-weight: 900; }
.co-badge { font-weight: 900; }

/* 數字用等寬，避免金額跳動 */
.prod-card .p-price, .ogrp-amt, .sum-row.total b, .tk-mini .val,
.balance-card .val, .token-hero .val {
  font-feature-settings: "tnum";
}

/* =========================================================
   付款結果頁
   ========================================================= */
.pay-res { padding: 26px 20px 30px; text-align: center; }
.pay-res .ic-box {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pay-res.ok   .ic-box { background: rgba(34,197,94,.14); color: #16A34A; }
.pay-res.fail .ic-box { background: rgba(239,68,68,.13); color: var(--er); }
.pay-res .ic-box .ic { width: 36px; height: 36px; stroke-width: 2.2; }
.pay-res h2 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.pay-res p { margin: 0 0 4px; font-size: 12.5px; color: var(--t2); line-height: 1.8; }
.pay-res .code { font-family: ui-monospace, Menlo, monospace; color: var(--t3); font-size: 11px; }

/* 付款方式選擇（完成頁／訂單頁） */
.paytype-row { display: flex; gap: 8px; margin-top: 12px; }
.paytype-row .pick { flex: 1; text-align: center; }

/* 首頁底部小字 */
.site-foot {
  padding: 26px 14px 22px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--t3);
  opacity: .75;
}
.hd-logo img { display: block; }

/* 後台上傳的橫幅：跟其他輪播圖同樣 16:7，用 cover 填滿避免撐高版面 */
.carousel-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  object-position: center;
}

/* ═══════════════════════════════════════════════════
   防下載 / 防拖曳 / 防複製
   這是「降低 casual 拿圖」的阻礙，不是加密；
   認真要拿檔的人永遠擋不住（開發者工具、直接抓 API）。
   ═══════════════════════════════════════════════════ */

/* 文字不能選取 */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;   /* iOS 長按不跳「呼叫」選單 */
}

/* 圖片不能拖曳 */
img, svg, video, canvas {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  pointer-events: none;          /* 讓 dragstart 落在容器而不是圖片上 */
}

/* 輸入框要能正常選取與編輯 */
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  pointer-events: auto;
}

/* 背景圖也不能拖 */
* { -webkit-user-drag: none; }

/* 有圖片的商品卡：圖片鋪滿，取代原本的漸層色塊 */
.p-art-img { aspect-ratio: 16/10; padding: 0; overflow: hidden; }
.p-art-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
