:root {
  --porcelain: #faf8f4;
  --surface: #ffffff;
  --stone: #f3efe8;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #a8a29e;
  --gold: #ffd100;
  --gold-deep: #f5b800;
  --emerald: #059669;
  --emerald-bright: #34d399;
  --line: rgba(28, 25, 23, 0.07);
  --shadow-soft: 0 10px 30px -10px rgba(28, 25, 23, 0.08);
  --shadow-pass: 0 18px 40px -14px rgba(28, 25, 23, 0.22);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(120% 240px at 50% 0%, #fff3c4 0%, var(--porcelain) 100%) no-repeat var(--porcelain);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100dvh;
}

.hidden { display: none !important; }

.canvas {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px calc(92px + env(safe-area-inset-bottom, 0px));
}

/* ==================== HERO STRIP ==================== */
.hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 14px;
}
.hero-brand { display: flex; align-items: center; gap: 10px; }
.hero-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(245, 184, 0, 0.22);
}
.hero-h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.hero-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.hero-tag {
  font-size: 11px;
  font-weight: 700;
  color: #78350f;
  background: rgba(255, 209, 0, 0.26);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==================== SPOTLIGHT SEARCH CAPSULE ==================== */
.spotlight-box {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid rgba(28, 25, 23, 0.06);
  box-shadow: var(--shadow-soft);
  padding: 12px 12px 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.spotlight-box:focus-within {
  border-color: rgba(245, 184, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.18), var(--shadow-soft);
}

.spot-input-wrap { position: relative; }
.spot-textarea {
  width: 100%;
  height: 54px;
  border: none;
  background: transparent;
  padding: 4px 32px 4px 4px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  resize: none;
  outline: none;
  line-height: 1.5;
}
.spot-textarea::placeholder { color: #b5afa7; }

.spot-clear {
  position: absolute;
  top: 4px;
  right: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--stone);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.spot-bar {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detect-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-dot { width: 7px; height: 7px; border-radius: 50%; background: #d6d3d1; flex-shrink: 0; }
.detect-chip.is-ok { color: var(--emerald); }
.detect-chip.is-ok .d-dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.detect-chip.is-warn { color: #b45309; }
.detect-chip.is-warn .d-dot { background: #f59e0b; }

.spot-submit {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ffd829 0%, #ffa800 100%);
  color: #2d1e0f;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(245, 158, 11, 0.45);
  transition: transform 0.12s;
}
.spot-submit:active { transform: scale(0.96); }
.spot-submit:disabled { opacity: 0.72; cursor: not-allowed; }

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(45, 30, 15, 0.22);
  border-top-color: #2d1e0f;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert-strip {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.alert-btn {
  border: none;
  background: #ea580c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==================== 3 FLOATING QUICK PILLS ==================== */
.quick-pills {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.q-pill {
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.035);
  transition: transform 0.12s, background 0.15s;
}
.q-pill:active { transform: scale(0.96); background: var(--stone); }
.qp-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-slate { background: #78716c; }
.dot-coral { background: #f43f5e; }
.dot-gold { background: #f59e0b; }

/* ==================== APPLE-WALLET / BOARDING-PASS RESULT ==================== */
.pass-wrap { margin-top: 16px; animation: passIn 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes passIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.wallet-pass {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 166, 0, 0.24);
  box-shadow: 0 14px 32px -12px rgba(180, 115, 0, 0.16);
}

.pass-top {
  background: linear-gradient(155deg, #fff9db 0%, #ffea96 100%);
  color: #2d1e0f;
  padding: 15px 16px 12px;
  position: relative;
}

.pass-shop-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pass-shop-info { min-width: 0; }
.pass-shop-name {
  font-size: 17.5px;
  font-weight: 800;
  color: #2d1e0f;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.pass-shop-meta { font-size: 11.5px; color: #8c6525; margin-top: 3px; }

.pass-fav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(180, 115, 0, 0.2);
  background: rgba(255, 255, 255, 0.65);
  color: #9a6b20;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.pass-fav.is-fav { background: #fff; border-color: #f59e0b; color: #f59e0b; }
.pass-fav.is-fav svg { fill: #f59e0b; }

.pass-metrics {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(180, 115, 0, 0.14);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pass-metrics.two-col {
  grid-template-columns: 0.9fr 1.3fr;
  gap: 0;
}
.pass-metrics.two-col .pm-cb {
  padding-left: 16px;
  border-left: 1px solid rgba(180, 115, 0, 0.14);
}

.pm-label-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pm-label { font-size: 11.5px; color: #8c6525; font-weight: 700; }
.pm-inv {
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  background: rgba(255, 255, 255, 0.72);
  padding: 1px 7px;
  border-radius: 999px;
}

.pm-val { margin-top: 5px; font-variant-numeric: tabular-nums; }
.pm-none { font-size: 15px; font-weight: 700; color: #9a7b45; }
.pm-gold-amt { font-size: 14px; font-weight: 800; color: #c2410c; }
.pm-gold-amt b { font-size: 26px; font-weight: 900; margin-left: 1px; }
.pm-gold-cond { display: block; font-size: 11.5px; color: #8c6525; margin-top: 2px; }

.pm-cb-ratio { font-size: 13.5px; font-weight: 800; color: #047857; line-height: 1.1; }
.pm-cb-ratio b { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.pm-cb-sub { font-size: 11.5px; color: #065f46; font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Authentic Notched Ticket Divider with Dashed Tear Line */
.pass-notch {
  height: 16px;
  background: linear-gradient(180deg, #ffea96 50%, #ffffff 50%);
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.pass-notch::before,
.pass-notch::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--porcelain);
  box-shadow: inset 0 0 0 1px rgba(245, 166, 0, 0.2);
}
.pass-notch::before { left: -8px; }
.pass-notch::after { right: -8px; }

/* White Action Stub */
.pass-stub {
  background: #ffffff;
  padding: 10px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.pass-stub::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 16px;
  right: 16px;
  border-top: 1.5px dashed rgba(180, 115, 0, 0.24);
  pointer-events: none;
}

.stub-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stub-btn-gold, .stub-btn-stone, .stub-btn-emerald {
  height: 40px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s;
}
.stub-btn-gold:active, .stub-btn-stone:active, .stub-btn-emerald:active { transform: scale(0.97); }
.stub-btn-gold { background: var(--gold); color: var(--ink); }
.stub-btn-stone { background: var(--stone); color: var(--ink); }
.stub-btn-emerald { background: var(--emerald); color: #fff; }

/* Skeleton Pass */
.skel-pass .pass-top { padding: 20px 18px; }
.skel-bar { height: 18px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); }
.skel-bar.w60 { width: 60%; }
.skel-bar.w100 { width: 100%; height: 42px; background: var(--stone); }
.skel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.skel-box { height: 48px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); }

/* ==================== RECENT SHOPS ==================== */
.recent-card {
  margin-top: 14px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px 15px;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.03);
}
.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.rc-clear { background: none; border: none; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.rc-empty { padding: 14px 4px 6px; text-align: center; font-size: 12px; color: var(--ink-3); }

.rc-item {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 10px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.rc-item:first-child { border-top: none; padding-top: 4px; }
.rc-item:last-child { padding-bottom: 2px; }
.rc-item-name { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-item-go { font-size: 12px; color: var(--ink-3); flex-shrink: 0; }

.chips-bar { margin-top: 14px; padding: 0 2px; }
.chips-list { display: flex; flex-wrap: wrap; gap: 7px; }
.qh-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== HOME TAB (MODULAR EMPTY) ==================== */
.home-blank {
  margin-top: 56px;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.hb-logo-wrap { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: var(--porcelain); padding: 8px; }
.hb-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.hb-title { font-size: 17px; font-weight: 800; }
.hb-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.hb-btn {
  margin-top: 20px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ffd829 0%, #ffa800 100%);
  color: #2d1e0f;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

/* ==================== MINE TAB ==================== */
.mine-hero {
  background: linear-gradient(155deg, #fff9db 0%, #ffe993 100%);
  color: #2d1e0f;
  border: 1px solid rgba(245, 166, 0, 0.24);
  border-radius: 22px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 26px -12px rgba(180, 115, 0, 0.16);
}
.mine-logo { width: 48px; height: 48px; border-radius: 14px; background: #fff; padding: 3px; object-fit: contain; flex-shrink: 0; }
.mine-meta { flex: 1; min-width: 0; }
.mine-name { font-size: 16.5px; font-weight: 800; color: #2d1e0f; }
.mine-sub { font-size: 11.5px; color: #8c6525; margin-top: 2px; }
.mine-counts { display: flex; gap: 14px; text-align: center; }
.mine-counts b { display: block; font-size: 18px; font-weight: 900; color: #b45309; line-height: 1.1; }
.mine-counts span { font-size: 10.5px; color: #8c6525; }

.mine-sec-label { font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 16px 4px 8px; }
.mine-panel {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 6px 14px;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.03);
}
.mine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.mine-row:last-child { border-bottom: none; }
.mine-row-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mini-btn { padding: 5px 11px; border-radius: 999px; border: none; background: var(--gold); color: #2d1e0f; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.mini-btn.ghost { background: var(--stone); color: var(--ink-2); }

.mine-menu { margin-top: 14px; padding: 2px 14px; }
.m-row {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.m-row:last-child { border-bottom: none; }
.m-row.danger { color: #dc2626; }
.m-row i { font-style: normal; color: var(--ink-3); font-size: 17px; }

/* ==================== FOOTER ==================== */
.site-footer {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
}
.icp-line { margin-top: 3px; }
.icp-line a { color: var(--ink-3); text-decoration: none; }

/* ==================== FLOATING FROSTED WHITE GLASS DOCK ==================== */
.floating-dock {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  height: 58px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(245, 166, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px -8px rgba(180, 115, 0, 0.16);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 60;
}

.dock-btn {
  border: none;
  background: transparent;
  color: #8c7b65;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.dock-btn.active {
  background: linear-gradient(135deg, #ffd829 0%, #ffc200 100%);
  color: #2d1e0f;
  box-shadow: 0 4px 10px -3px rgba(245, 158, 11, 0.4);
}

/* ==================== TOAST & MODALS ==================== */
.toast {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 90;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.56);
  backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-sheet {
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
}
.ms-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ms-head h3 { font-size: 16px; font-weight: 800; }
.ms-close { width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--stone); color: var(--ink-2); font-size: 18px; cursor: pointer; }
.tut-img-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.tut-img-box img { width: 100%; height: auto; display: block; }
.tut-steps { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; margin-bottom: 12px; }
.tut-steps li { display: flex; gap: 8px; align-items: flex-start; }
.tut-steps i { width: 20px; height: 20px; border-radius: 50%; background: #fef3c7; color: #92400e; font-style: normal; font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tut-note { padding: 9px 11px; border-radius: 10px; background: var(--porcelain); color: var(--ink-2); font-size: 11.5px; margin-bottom: 14px; }
.privacy-p { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin-bottom: 14px; }
.ms-ok { width: 100%; height: 42px; border-radius: 12px; border: none; background: linear-gradient(135deg, #ffd829 0%, #ffa800 100%); color: #2d1e0f; font-size: 14px; font-weight: 800; cursor: pointer; }
code { background: var(--stone); padding: 1px 5px; border-radius: 4px; font-size: 11px; }

/* ==================== PURE WHITE UNIFIED RESULT CARD ==================== */
.res-white-card {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid rgba(28, 25, 23, 0.06);
  box-shadow: var(--shadow-soft);
  padding: 16px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rwc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 2px;
}
.rwc-shop { min-width: 0; }
.rwc-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rwc-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.rwc-fav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--porcelain);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.rwc-fav.is-fav { background: #fffbeb; border-color: #fde68a; color: #f59e0b; }
.rwc-fav.is-fav svg { fill: #f59e0b; }

.rwc-row {
  border-radius: 15px;
  padding: 12px 13px;
}
.rwc-coupon {
  background: #faf7f0;
  border: 1px solid rgba(245, 166, 0, 0.16);
}
.rwc-cb {
  background: #f1fbf6;
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.rwc-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rwc-label { font-size: 11.5px; font-weight: 700; color: #8c6525; }
.rwc-label.cb { color: #047857; }
.rwc-val { margin-top: 3px; font-variant-numeric: tabular-nums; }
.rwc-none { font-size: 14px; font-weight: 700; color: #9a8d7a; }
.rwc-amt { font-size: 13px; font-weight: 800; color: #c2410c; }
.rwc-amt b { font-size: 22px; font-weight: 900; margin-left: 1px; }
.rwc-cond { font-size: 11.5px; color: #78716c; font-weight: 600; margin-left: 5px; }

.rwc-dual {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.rwc-btn-gold, .rwc-btn-soft, .rwc-btn-green {
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.12s;
}
.rwc-btn-gold:active, .rwc-btn-soft:active, .rwc-btn-green:active { transform: scale(0.96); }

.rwc-btn-gold {
  background: linear-gradient(135deg, #ffd829 0%, #ffb000 100%);
  color: #2d1e0f;
  box-shadow: 0 4px 10px -3px rgba(245, 158, 11, 0.42);
}
.rwc-btn-soft {
  background: #ffffff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  color: var(--ink);
}

.rwc-cb-left { min-width: 0; }
.rwc-cb-head { display: flex; align-items: center; gap: 6px; }
.rwc-inv {
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 7px;
  border-radius: 999px;
}
.rwc-cb-num { font-size: 13px; font-weight: 800; color: #047857; line-height: 1.15; }
.rwc-cb-num b { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.rwc-cb-sub { font-size: 11.5px; font-weight: 600; color: #059669; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rwc-btn-green {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 0 15px;
  box-shadow: 0 4px 12px -3px rgba(5, 150, 105, 0.36);
  flex-shrink: 0;
}

.rwc-empty {
  padding: 14px 10px 6px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

.rwc-inv.is-soldout {
  background: #fef3c7;
  color: #b45309;
}

/* Mine Modal Lists & Timestamps */
.mc-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  text-align: center;
}
.m-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.m-count {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #8c6525;
  background: #fff4cc;
  padding: 1px 8px;
  border-radius: 999px;
}
.mine-row-info { min-width: 0; flex: 1; }
.mine-row-time {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.ms-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.list-modal-body {
  max-height: 58vh;
  overflow-y: auto;
}
