:root {
  --primary: #f4b647;
  --primary-dark: #d9a03c;
  --ink: #0c1016;
  --ink-light: #767d87;
  --bg: #ffffff;
  --bg-soft: #fff9eb;
  /* kamika hp- 地色：冷灰做底，白卡片浮喺上面 */
  --ground: #eef2f4;
  --ground2: #e7edef;
  --card-dark: #23272e;
  --card-darker: #0d1014;
  --border: #dde4e7;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(12,16,22,.1);
  --shadow-lg: 0 14px 30px rgba(12,16,22,.12);
  --shadow-xl: 0 30px 70px rgba(12,16,22,.18);
  --tr-bn-h: 72px;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0; color: var(--ink); background: var(--ground);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR",
    "Noto Sans Thai", "Noto Sans Arabic", sans-serif;
  line-height: 1.6;
}
img, canvas { max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; }

.btn { text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0.72rem 1.6rem; font-weight: 600; background: var(--primary);
  color: #3b2f10;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(244,182,71,.35); }
.btn:active { transform: translateY(0); box-shadow: none; }
/* kamika 藥丸掣：深色主掣 + 淺灰次掣 */
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #1e232c; box-shadow: 0 14px 30px rgba(12,16,22,.25); }
.btn.secondary { background: var(--ground2); color: var(--ink); }
.btn.secondary:hover { background: #d2dadd; box-shadow: none; }
/* Google Play CTA — Play-ish green, white label */
.btn.play { background: #01875f; color: #fff; }
.btn.play:hover { background: #016b4c; box-shadow: 0 14px 30px rgba(1, 135, 95, .35); }
.btn.danger { background: #fee2e2; color: var(--red); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.small { padding: 0.3rem 0.8rem; font-size: 0.85rem; }

/* ThatVoice-style marketing header */
header {
  position: sticky; top: 0; z-index: 40;
  background: transparent; border-bottom: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 18px 0;
}
.hp-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
}
.logo-mark {
  height: 40px; width: 40px; border-radius: 10px; display: block; flex-shrink: 0;
}
.logo-word { line-height: 1; }
.logo-gold { color: var(--primary-dark); }
.hp-nav-right { display: flex; align-items: center; gap: 12px; }
select#lang, select#currency {
  border: 1px solid var(--border); border-radius: 8px; padding: 0.3rem 0.5rem;
  background: var(--bg); color: var(--ink); font-size: 0.85rem;
}
.userchip { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.userchip img { width: 28px; height: 28px; border-radius: 50%; }

main { max-width: 860px; margin: 0 auto; padding: 1rem; }
.hidden { display: none !important; }

/* landing：內容欄闊 1120（同 kamika 1200 級數），app 版面維持 860 唔郁 */
#landing {
  width: min(1120px, calc(100vw - 2rem));
  position: relative; left: 50%; transform: translateX(-50%);
}
[dir="rtl"] #landing { left: auto; right: 50%; transform: translateX(50%); }
.hero { text-align: left; padding: 0; }
/* kamika hp-hero：灰地全寬，左文右圖 */
.hero-top {
  width: 100vw; margin-left: calc(50% - 50vw); background: var(--ground);
  /* 左右至少 1.5rem；闊芒用 calc 收成 ~1120 內容欄 */
  padding: 3.6rem max(1.5rem, calc(50vw - 560px)) 3.6rem;
  box-sizing: border-box;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  max-width: 1120px; margin: 0 auto;
  padding: 0 0.5rem;
  box-sizing: border-box;
}
.hero-copy { min-width: 0; padding-inline: 0.25rem; }
.hero h1, .hero h2.hero-h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.045em; margin: 1.1rem 0 0; }
.hero p.sub { color: var(--ink-light); max-width: 500px; margin: 1.4rem 0 0; font-size: 1.15rem; line-height: 1.6; }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 1.5rem 0 0; max-width: 34rem;
}
.hero-ctas .btn { text-decoration: none; }
.hero-ctas .hero-cta-soon {
  cursor: default; opacity: 0.72; pointer-events: none;
  user-select: none;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 0.75rem; }
  .hero, .hero-top { text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero-top { padding-left: max(1.5rem, env(safe-area-inset-left)); padding-right: max(1.5rem, env(safe-area-inset-right)); }
}
/* 價錢牌改做 kamika eyebrow 藥丸（CJK 唔用全大階／字距）*/
.price-banner {
  display: inline-block; background: rgba(244,182,71,.16); border: none;
  border-radius: 999px; padding: 0.44rem 1rem; font-weight: 700;
  font-size: 0.9rem; color: var(--primary-dark); margin: 0;
}
.price-banner small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--ink-light); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.3rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary); }
.feature h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.feature p { margin: 0; font-size: 0.95rem; color: var(--ink-light); }

/* sticky feature stack */
.feat-stack-band { padding-bottom: 5rem; }
.feat-stack-wrap {
  max-width: 720px; margin: 0 auto; padding: 0 1rem;
  overflow-x: clip;
}
.feat-stack {
  display: flex; flex-direction: column; gap: 1.25rem;
  margin: 0; grid-template-columns: unset;
}
.feat-stack-card {
  position: sticky;
  min-height: 9.5rem;
  box-shadow: var(--shadow-xl);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .55s ease;
}
.feat-stack-card:nth-child(1) { top: 72px; z-index: 1; }
.feat-stack-card:nth-child(2) { top: 88px; z-index: 2; }
.feat-stack-card:nth-child(3) { top: 104px; z-index: 3; }
.feat-stack-card:nth-child(4) { top: 120px; z-index: 4; }
.feat-stack-card:nth-child(5) { top: 136px; z-index: 5; }
.feat-stack-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feat-stack-card.feat-appear-ready { opacity: 0; transform: translateY(18px); }
.feat-stack-card.feat-appear-in { opacity: 1; transform: translateY(0); }
@media (max-width: 920px) {
  .feat-stack-card {
    position: relative; top: auto !important; z-index: auto;
    min-height: 0;
  }
  .feat-stack-card:hover { transform: none; }
}

/* app */
.card {
  border: 1px solid var(--border); border-radius: 18px;
  padding: 1.2rem; margin-bottom: 1rem; background: var(--bg);
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 0.8rem; font-size: 1.1rem; }
.balancebar {
  /* 帳戶頁：餘額／月費／試用／儲值各一列（唔再橫排 stat） */
  display: block;
  background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow);
  border-radius: 14px; padding: 0.2rem 1.2rem 0.9rem; margin-bottom: 1rem;
}
.balancebar .bal-meta {
  margin: -0.15rem 0 0.35rem;
  padding-left: 0;
}
.balancebar .bal-meta:empty { display: none; }

/* 試用到期倒數橫額（v1.65.0）。平時金色提示，剩返一日轉紅。 */
.trial-warn {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center;
  background: #fff6e2; border: 1px solid var(--primary); color: var(--ink);
  border-radius: var(--radius); padding: 0.8rem 1.2rem; margin-bottom: 1rem;
  font-size: 0.9rem;
}
.trial-warn .btn { margin-left: auto; }
.trial-warn.urgent { background: #fdecec; border-color: #d94a4a; }

.dropzone {
  border: 2px dashed var(--primary); border-radius: var(--radius);
  padding: 2rem 1rem; text-align: center; color: var(--ink-light); cursor: pointer;
  background: var(--bg-soft);
}
.dropzone.small { padding: 0.8rem; }
#preview-wrap { text-align: center; margin-top: 1rem; }
#preview-wrap img { max-height: 320px; border-radius: 8px; border: 1px solid var(--border); }

.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.formgrid label { display: block; font-size: 0.8rem; color: var(--ink-light); margin-bottom: 0.2rem; }
.formgrid input, .formgrid select, .formgrid textarea {
  width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; color: var(--ink); background: var(--bg);
}
.formgrid .full { grid-column: 1 / -1; }
.checkline { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }

/* records */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); }
th { background: var(--ground2); cursor: pointer; white-space: nowrap; user-select: none; }
td.num, th.num { text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; }
.filters select { padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.stats-grid-top { grid-template-columns: 1fr 1fr; margin-bottom: 0.75rem; }
.stats-grid-cats:has(.stat-tile.hidden:only-child),
.stats-grid-cats:not(:has(.stat-tile:not(.hidden))) { display: none; margin: 0; }
.stat-tile { background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 14px; padding: 0.8rem 0.9rem; }
.stat-tile .v { font-size: 1.25rem; font-weight: 600; }
.stat-tile .l { font-size: 0.75rem; color: var(--ink-light); }
.stat-tile-wide { grid-column: span 2; }
.catbar { margin: 0.15rem 0; font-size: 0.8rem; }
.catbar .bar { height: 8px; border-radius: 4px; background: var(--primary); display: inline-block; vertical-align: middle; margin-right: 0.5rem; }

/* 收據紀錄：篩選＋「更多」；Cap／窄芒用卡列表 */
.rec-page.card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.rec-page > h2 {
  margin: 0.25rem 0 0.85rem;
  font-weight: 500;
}
.rec-filters-wrap {
  padding-top: 0.65rem;
  padding-bottom: 0.75rem;
}
.rec-more {
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
  padding-top: 0.45rem;
}
.rec-more > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-light);
  padding: 0.35rem 0;
  user-select: none;
}
.rec-more > summary::-webkit-details-marker { display: none; }
.rec-more > summary::after { content: " ›"; }
.rec-more[open] > summary::after { content: " ˅"; }
.rec-more-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem 0 0.2rem;
}
.rec-more-menu .btn { flex: 1 1 auto; min-width: calc(50% - 0.3rem); }
.rec-submit {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.rec-submit-period { font-weight: 500; }
.rec-cards { display: none; flex-direction: column; gap: 0.65rem; margin-bottom: 1rem; }
.rec-empty { margin: 0.5rem 0; }
.rec-card {
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}
.rec-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.rec-card-merchant {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.rec-card-amt {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}
.rec-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-light);
  align-items: center;
}
.rec-card-notes {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-light);
}
.rec-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.rec-card-actions .btn { flex: 1 1 auto; }
.rec-card.dupe-row { box-shadow: inset 3px 0 0 #dc2626; background: #fff1f0; }
.rec-card.maybe-dupe-row { box-shadow: inset 3px 0 0 #d97706; background: #fffbeb; }
.stmt-page > .acct-sec-h:first-child { margin-top: 0.25rem; }
.stmt-intro { margin: 0.55rem 0 0.75rem; }
.stmt-privacy { margin: 0.75rem 0 0.35rem; }
.stmt-matched-details { margin-top: 1.2rem; }
.stmt-cards { margin-top: 0.5rem; }

@media (max-width: 900px) {
  .rec-cards,
  .stmt-cards { display: flex; }
  .rec-table-wrap { display: none; }
}

.badge { display: inline-block; border-radius: 6px; padding: 0.05rem 0.45rem; font-size: 0.75rem; }
.badge.yes { background: #dcfce7; color: var(--green); }
.badge.no { background: #f3f4f6; color: var(--ink-light); }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal {
  background: var(--bg); border-radius: var(--radius); max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 1.4rem;
}
.modal h3 { margin-top: 0; }
.ios-share { margin: 0.2rem 0 0.4rem; color: var(--primary-dark); line-height: 0; }

/* v1.62.0: Login popup modal (CAPTCHA alternative + abuse prevention) */
.modal-close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: transparent; border: none; color: var(--ink-light);
  font-size: 1.6rem; line-height: 1; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.login-popup { position: relative; text-align: center; padding: 1.6rem 1.4rem 1.2rem; }
.login-popup-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; margin: 0 auto 0.9rem;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}
.login-popup h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.login-popup-msg { color: var(--ink-light); font-size: 0.92rem; margin: 0 0 1rem; line-height: 1.45; }
.login-popup-benefits {
  list-style: none; padding: 0; margin: 0 0 1.1rem;
  text-align: left;
}
.login-popup-benefits li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  padding: 0.32rem 0; font-size: 0.9rem;
}
.lp-bullet {
  color: var(--primary); font-weight: 700; flex-shrink: 0;
  width: 1.1rem; text-align: center;
}
.login-popup-cta { margin: 0.5rem 0 0.7rem; display: flex; justify-content: center; }
.login-popup-cta > div { width: 100%; }
.login-popup-cta .gsi-btn { width: 100%; max-width: 280px; }
.cap-gsi-btn {
  width: 100%; max-width: 280px; margin: 0 auto; display: inline-flex;
  align-items: center; justify-content: center; min-height: 44px;
  font-weight: 600; border-radius: 999px;
}
.login-popup-note {
  font-size: 0.78rem; color: var(--ink-light); margin: 0.4rem 0 0; line-height: 1.4;
}
@media (max-width: 480px) {
  .login-popup { padding: 1.3rem 1rem 1rem; }
  .login-popup h3 { font-size: 1.05rem; }
}

.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 0.5rem 1.2rem;
  font-size: 0.9rem; z-index: 99; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  max-width: 90vw;
}
.toast.show { opacity: 1; }

.esim-promo {
  position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 2rem)); width: 100%;
  background: var(--bg); color: var(--ink); border: 1px solid var(--border);
  border-radius: 16px; padding: 0.85rem 2.4rem 0.85rem 1rem;
  box-shadow: var(--shadow-xl); z-index: 98; font-size: 0.9rem; line-height: 1.45;
}
.esim-promo.hidden { display: none; }
.esim-promo strong { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.esim-promo p { margin: 0 0 0.55rem; color: var(--ink-light); font-size: 0.85rem; }
.esim-promo a.esim-promo-cta {
  font-weight: 700; color: var(--primary-dark); text-decoration: none;
}
.esim-promo a.esim-promo-cta:hover { text-decoration: underline; }
.esim-promo-x {
  position: absolute; top: 0.35rem; right: 0.45rem;
  border: none; background: transparent; color: var(--ink-light);
  font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.35rem;
}

footer {
  border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 1rem;
  text-align: center; font-size: 0.8rem; color: var(--ink-light);
}
footer a { margin: 0 0.5rem; }

@media (max-width: 640px) {
  .hero h1, .hero h2.hero-h1 { font-size: 2rem; }
  main { padding: 0.7rem; }
  input, select, textarea { font-size: 16px !important; }
}
@media print {
  header, footer, .no-print { display: none !important; }
  .rec-cards, .stmt-cards { display: none !important; }
  .rec-table-wrap { display: block !important; }
}

.approx { font-size: 0.78rem; color: var(--ink-light); min-height: 1em; }

/* ThatVoice header pills + dropdown */
.pill, select.pill {
  appearance: none; -webkit-appearance: none;
  border: none; border-radius: 999px;
  background: #e7edef url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230c1016' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  color: var(--ink); font-weight: 600; font-size: 0.85rem;
  padding: 0.55rem 1.9rem 0.55rem 1.1rem; cursor: pointer;
}
.pill:hover { background-color: #d2dadd; }
.hp-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 10px 9px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; border: none; font-family: inherit;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hp-pill-soft { background: #dde4e7; color: var(--ink); }
.hp-pill-soft:hover { background: #d2dadd; transform: translateY(-1px); }
.hp-pill-dark { background: #0c1016; color: #fff; }
.hp-pill-dark:hover { box-shadow: 0 10px 24px rgba(12,16,22,.3); transform: translateY(-1px); }
.hp-pill-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
}
.hp-pill-soft .hp-pill-icon { background: #fff; color: var(--ink); }
.hp-pill-dark .hp-pill-icon { background: rgba(255,255,255,.18); color: #fff; }
#menu-panel {
  position: fixed; top: 76px; right: 28px;
  width: min(380px, calc(100vw - 36px));
  background: #e7edef; border: none; border-radius: 28px;
  box-shadow: 0 30px 70px rgba(12,16,22,.22); padding: 14px; z-index: 1002;
}
#menu-panel nav { display: flex; flex-direction: column; }
#menu-panel nav a {
  padding: 11px 18px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  letter-spacing: -0.02em; border-radius: 16px;
  transition: background .15s ease, color .15s ease;
}
#menu-panel nav a:hover { background: rgba(12,16,22,.06); color: var(--primary-dark); }
/* ThatVoice hp-menu-langs：語言／貨幣喺黑掣選單底部 */
.menu-prefs {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-top: 8px; padding: 14px 18px 6px;
  border-top: 1px solid #d4dbde;
}
.menu-prefs select.pill { width: 100%; box-sizing: border-box; }
.menu-user { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem 0.7rem;
  margin-bottom: 0.35rem; border-bottom: 1px solid #d4dbde; font-size: 0.85rem;
  overflow-wrap: anywhere; }
.menu-login { padding: 0.35rem 0.6rem 0.7rem; margin-bottom: 0.35rem; border-bottom: 1px solid #d4dbde; }
@media (max-width: 560px) {
  .hp-header-inner { padding: 0 18px; }
  .hp-pill-text { display: none; }
  .hp-pill { padding: 8px; gap: 0; }
  .logo-word { font-size: 1.1rem; }
  #menu-panel { top: 70px; right: 18px; }
  .pill, select.pill { padding: 0.45rem 1.6rem 0.45rem 0.8rem; font-size: 0.78rem; background-position: right 0.7rem center; }
}

/* hero visual + feature icons */
.hero-visual { max-width: 680px; margin: 1.4rem auto 0.6rem; }
/* 只有 landing 兩欄 hero 先撐滿右欄；presskit 亦用 .hero-visual，唔可以夾埋一齊 */
.hero-grid .hero-visual { position: relative; max-width: 100%; margin: 0; }
.hero-glow {
  position: absolute; inset: -12%; pointer-events: none; filter: blur(6px);
  background: radial-gradient(closest-side, rgba(244,182,71,.34), rgba(244,182,71,0) 72%);
}
@media (max-width: 920px) { .hero-grid .hero-visual { max-width: 620px; margin: 0 auto; } }
.hero-visual svg { width: 100%; height: auto; display: block; }
/* 掃描光帶：由收據頂掃到落底，clip 喺手機螢幕入面 */
.hero-scan { animation: heroScan 2.8s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes heroScan {
  0%   { transform: translateY(-58px); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(76px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-scan { animation: none; } }
.feat-icon { margin-bottom: 0.5rem; }
.feat-icon svg { width: 38px; height: 38px; display: block; }

/* kamika-style footer */
#site-footer {
  background: #171b21; color: #cfd4da; border: none; margin: 3rem 0.8rem 0.8rem;
  border-radius: 26px; padding: 2.2rem 1.6rem 1.6rem; text-align: left;
}
.foot-inner { max-width: 860px; margin: 0 auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; }
.foot-pills { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1.2rem; margin-bottom: 0.6rem; }
.foot-base .foot-copy, .foot-base .foot-links { margin: 0; }
.foot-pill {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: #edf0f3; color: #171b21; border: none; cursor: pointer;
  border-radius: 999px; padding: 0.7rem 0.8rem 0.7rem 1.4rem;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em;
  text-decoration: none; text-transform: uppercase;
}
.foot-pill .arr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: #171b21; color: #fff; font-weight: 700;
}
.foot-pill:hover { background: #f4b647; }
.foot-pill.ghost { background: #262c34; color: #fff; margin-left: auto; }
.foot-pill.ghost .arr { background: #3a414b; }
.foot-pill.ghost:hover { background: #323a44; }
.foot-family { margin: 1.4rem 0 0; }
.foot-family-label {
  display: block; margin-bottom: 0.85rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #f4b647;
}
.foot-family-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.foot-family-btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: rgba(255,255,255,.06); color: #f4f1ea;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 1rem; font-weight: 700; font-size: 0.86rem;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.foot-family-btn:hover {
  transform: translateY(-2px);
  background: rgba(244,182,71,.14);
  border-color: rgba(244,182,71,.45);
}
.foot-family-btn strong { color: #f4b647; font-weight: 800; }
.foot-family-btn span { color: #c8cdd3; font-weight: 600; font-size: 0.8rem; }
.foot-family-btn::after {
  content: "→"; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #f4b647; color: #171b21; font-size: 0.85rem; flex-shrink: 0;
}
.foot-hr { border: none; border-top: 1px solid #2c333c; margin: 1.6rem 0 1.2rem; }
.foot-copy { margin: 0 0 0.6rem; font-size: 0.9rem; }
.foot-links { margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-links a { color: #9aa2ab; text-decoration: none; font-size: 0.88rem; }
.foot-links a:hover { color: #f4b647; }
.foot-ver { margin: 0; color: #5f6771; font-size: 0.78rem; }
@media (max-width: 640px) {
  #site-footer { margin: 2rem 0.5rem 0.5rem; padding: 1.6rem 1.1rem 1.2rem; }
  .foot-pill { font-size: 0.82rem; padding: 0.55rem 0.6rem 0.55rem 1.1rem; }
}

/* RTL (Arabic) */
[dir="rtl"] .pill, [dir="rtl"] select.pill {
  background-position: left 0.9rem center;
  padding: 0.55rem 1.1rem 0.55rem 1.9rem;
}
[dir="rtl"] #menu-panel { right: auto; left: 1rem; }
[dir="rtl"] .foot-pill.ghost { margin-left: 0; margin-right: auto; }

/* how-it-works + why-cheap */
.how { text-align: center; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; max-width: 720px; margin: 0 auto 1rem; }
.how-step { background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 18px; padding: 0.9rem 1rem; font-weight: 600; display: flex; align-items: center; gap: 0.7rem; text-align: left; }
.how-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #3b2f10; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.why-cheap { background: var(--bg); border: 1px solid var(--primary); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 1.6rem 1.8rem; margin: 3.5rem 0; }
.why-cheap h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.why-cheap p { margin: 0 0 0.5rem; color: var(--ink-light); font-size: 1rem; }
.why-cheap a { font-weight: 700; }

/* trust stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.8rem; margin: 2.6rem auto 3.2rem; }
.tstat { text-align: center; }
.tstat b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; color: var(--primary-dark); font-weight: 800; }
.tstat span { display: block; margin-top: 0.7rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-light); }

/* 掃描頁：影相／Drive 直向一欄（細屏唔並排擠） */
.scan-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.scan-actions .btn { width: 100%; box-sizing: border-box; }

.mailin {
  margin-top: 0.9rem; padding: 0.7rem 0.9rem; background: var(--ground2); border-radius: 14px;
  font-size: 0.85rem; display: flex; flex-direction: column; align-items: stretch; gap: 0.45rem;
  min-width: 0;
}
.mailin code {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.45rem 0.55rem; user-select: all;
  font-size: 0.78rem; line-height: 1.35;
  overflow-wrap: anywhere; word-break: break-all; white-space: normal;
}
.mailin #mailin-copy { align-self: flex-start; }

/* big free-to-use google CTA */
.cta-wrap { position: relative; display: inline-block; margin-top: 0.6rem; }
.cta-fake {
  background: var(--primary); color: #3b2f10; font-weight: 800;
  font-size: clamp(1.3rem, 3.5vw, 1.55rem);
  border-radius: 999px; padding: 1.25rem clamp(3rem, 12vw, 5.5rem);
  box-shadow: 0 6px 18px rgba(217,160,60,0.35);
}
.cta-wrap:hover .cta-fake { background: var(--primary-dark); }
.cta-fake { border: none; cursor: pointer; display: inline-block; }
.cta-wrap { display: flex; flex-direction: column; align-items: center; }

/* Marketing header：icon＋字；Cap／app 掃描頁改用舊 logo 圖 */
.logo img.logo-desktop,
.logo img.logo-mobile { display: none; }

/* two-line hero + bigger trial line */
.hero-h1 span { display: block; }
.hero-h1 .hero-line2 { color: var(--primary-dark); }
.free-trial-line { font-size: clamp(1.5rem, 4.5vw, 1.9rem); font-weight: 800; margin: 3.5rem 0 0.9rem; }

/* photo strip + page hero */
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.photo-strip img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 640px) { .photo-strip { grid-template-columns: 1fr; } .photo-strip img { height: 180px; } }
.page-hero { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); margin: 0.6rem 0 1.2rem; }

/* full-bleed bands: background spans the viewport, content stays at main width (860px) */
.band {
  width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0;
  padding-left: max(1.2rem, calc(50vw - 560px));
  padding-right: max(1.2rem, calc(50vw - 560px));
}
.band.pl-incl { max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; }
.band.pl-incl > * { max-width: 720px; margin-left: auto; margin-right: auto; }

/* dark sections (pain/solution + personas) */
/* kamika .hp-card：深色卡片浮喺灰地上，唔再係全寬橫幅 */
.dark-sec {
  width: min(1120px, calc(100vw - 2rem));
  position: relative; left: 50%; transform: translateX(-50%);
  background: var(--card-dark); color: #cfd3da;
  border-radius: 38px; box-shadow: var(--shadow-xl);
  padding: 3.6rem clamp(1.6rem, 4vw, 3.4rem);
  margin: 26px 0;
}
[dir="rtl"] .dark-sec { left: auto; right: 50%; transform: translateX(50%); }
@media (max-width: 920px) { .dark-sec { border-radius: 26px; padding: 2.4rem 1.5rem; } }
.dark-sec h2 { text-align: center; color: #fff; margin: 0 0 1.4rem; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; overflow: hidden; }
.ps-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ps-body { padding: 1.1rem 1.3rem 1.3rem; }
.ps-body h3 { margin: 0 0 0.7rem; color: #fff; }
.ps-list { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.ps-list li { padding: 0.32rem 0 0.32rem 1.9rem; position: relative; color: #c3c9d1; }
.ps-list li::before { position: absolute; left: 0; top: 0.32rem; width: 1.3rem; text-align: center; font-weight: 800; }
.ps-list.bad li::before { content: "✕"; color: #f87171; }
.ps-list.good li::before { content: "✓"; color: #4ade80; }
[dir="rtl"] .ps-list li { padding: 0.32rem 1.9rem 0.32rem 0; }
[dir="rtl"] .ps-list li::before { left: auto; right: 0; }

/* comparison table */
.cmp-wrap { margin: 1rem 0 0.4rem; }
.cmp-table { min-width: 560px; }
.cmp-table th:nth-child(2) { color: var(--primary-dark); }
.cmp-table td.us { font-weight: 700; background: rgba(244,182,71,.16); }
.cmp-table td.us::before { content: "✓ "; color: var(--green); font-weight: 800; }
.cmp-table td:first-child { color: var(--ink-light); }

/* persona cards */
.per-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.per-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 1.2rem 1.3rem; }
.per-card h3 { margin: 0 0 0.5rem; color: var(--primary); }
.per-card p { margin: 0; font-size: 1rem; color: #c3c9d1; }

/* coloured bands */
.band { padding-top: 4rem; padding-bottom: 4rem; margin-top: 0; margin-bottom: 0; }
.band.cream { background: var(--ground2); }
.band.grey { background: var(--ground2); }
.band.blue { background: var(--ground); }
.band.blue .features { margin: 0; }
.band.grey .cmp-table th { background: #dde4e7; }

/* comparison security row */
.cmp-sec td { border-top: 2px solid var(--primary); border-bottom: 2px solid var(--primary); }
.cmp-sec td:first-child { font-weight: 800; color: var(--ink); }

/* shared plan features */
.pl-incl { max-width: 720px; margin-left: auto; margin-right: auto; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1.4rem; font-size: 0.98rem; }
@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }
.check-list li { padding: 0.28rem 0 0.28rem 1.7rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
[dir="rtl"] .check-list li { padding: 0.28rem 1.7rem 0.28rem 0; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }

/* FAQ + founder */
.faq-sec { margin-top: 2rem; margin-bottom: 2rem; }
details.faq { border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1.2rem; margin-bottom: 0.6rem; background: var(--bg); }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 0.7rem 0 0; color: var(--ink-light); font-size: 0.95rem; }
.founder { border: 1px solid var(--primary); border-radius: 26px; background: var(--bg); box-shadow: var(--shadow-lg); padding: 1.8rem 2rem; margin: 2rem 0; }
.founder h2 { margin: 0 0 0.7rem; }
.founder p { color: var(--ink); font-size: 0.98rem; margin: 0 0 0.6rem; }
.founder-sign { text-align: right; color: var(--ink-light); font-weight: 700; }
[dir="rtl"] .founder-sign { text-align: left; }

/* v1.10 pricing + layout */
.route-hidden { display: none !important; }
.plan-cta { margin-top: 0.6rem; width: 100%; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary-dark); color: #fff; border-radius: 999px; padding: 0.15rem 0.9rem;
  font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.per-card { padding: 0; overflow: hidden; }
.per-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.per-body { padding: 1rem 1.3rem 1.2rem; }
.foot-note { color: #5f6771; font-size: 0.72rem; margin: 0 0 0.5rem; }

/* ---- kamika-style building blocks (v1.13.0) ---- */
.hp-label {
  display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-light); margin-bottom: 14px;
}
.hp-big {
  font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em;
  font-weight: 800; color: var(--ink); margin: 0 0 0.4rem;
}

/* how it works: 2-col grid, phone mockup + timeline steps */
.how-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.how-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; max-width: 900px; margin: 0 auto; }
.how-visual { display: flex; justify-content: center; }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; gap: 44px; } }
.tr-phone {
  position: relative; width: 250px; padding: 14px; border-radius: 40px;
  background: linear-gradient(160deg, #2a2725, #0e0d0c);
  box-shadow: 0 40px 80px rgba(12,16,22,0.3), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.tr-phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px; background: #000; border-radius: 999px; z-index: 2;
}
.tr-phone-screen {
  position: relative; border-radius: 28px; padding: 38px 18px 20px; overflow: hidden;
  background: linear-gradient(180deg, #1f1d1b, #141210); text-align: center;
}
.tr-ps-top { display: flex; justify-content: space-between; font-size: 0.72rem; font-weight: 600; margin-bottom: 12px; color: #b8b2a6; }
.tr-ps-title { color: #fff; font-weight: 700; font-size: 0.95rem; margin: 12px 0 10px; }
.tr-ps-receipt { width: 170px; margin: 0 auto; }
.tr-ps-receipt svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45)); }
.tr-ps-sub { color: var(--primary); font-size: 0.82rem; font-weight: 600; margin-top: 12px; }
.tr-steps { list-style: none; margin: 0; padding: 0; }
.tr-step { position: relative; margin-left: 8px; padding: 0 0 32px 34px; border-left: 1px solid var(--border); text-align: left; }
.tr-step:last-child { padding-bottom: 0; border-left-color: transparent; }
.tr-step::before {
  content: ""; position: absolute; left: -7px; top: 3px; width: 13px; height: 13px;
  background: var(--primary); border-radius: 3px; transform: rotate(45deg);
  box-shadow: 0 0 0 5px rgba(244,182,71,0.16);
}
.tr-step-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; letter-spacing: 0.14em; font-weight: 700; color: var(--primary-dark); }
.tr-step h3 { margin: 8px 0 6px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.tr-step p { margin: 0; color: var(--ink-light); line-height: 1.66; max-width: 46ch; }
[dir="rtl"] .tr-step { margin-left: 0; margin-right: 8px; padding: 0 34px 32px 0; border-left: none; border-right: 1px solid var(--border); text-align: right; }
[dir="rtl"] .tr-step::before { left: auto; right: -7px; }

/* quotes (kamika testimonial style) */
.quotes-sec { margin: 4rem 0; }
.q-head { text-align: center; margin-bottom: 1.8rem; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  background: var(--bg); border: 1px solid var(--border); border-radius: 26px;
  padding: 28px; margin: 0; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 20px; font-size: 1.08rem; line-height: 1.7; color: var(--ink); }
.quote blockquote::before {
  content: "\201C"; display: block; font-family: Georgia, serif; font-size: 3rem;
  line-height: 0.5; color: var(--primary); margin-bottom: 14px;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.q-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; font-weight: 800; color: #1a160c;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.q-name { display: block; font-weight: 700; font-size: 0.95rem; }

/* FAQ kamika style */
.band.grey2 { background: var(--ground2); }
.faq-sec { margin-top: 2rem; margin-bottom: 2rem; }
.faq-sec .q-head { margin-bottom: 1.6rem; }
details.faq {
  border: 1px solid var(--border); border-radius: 18px; padding: 0; margin-bottom: 12px;
  background: var(--bg); overflow: hidden; transition: border-color 0.2s ease;
}
details.faq[open] { border-color: rgba(244,182,71,0.6); }
details.faq summary {
  padding: 20px 24px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.08rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--primary-dark); transition: transform 0.25s ease; flex-shrink: 0; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0; padding: 0 24px 22px; color: var(--ink-light); line-height: 1.75; font-size: 1rem; }

/* 地色轉冷灰之後，透明表格會透出灰底，同金色重點欄撈埋一齊好濁 —— 表要自己白底 */
.cmp-table, .plans-table { background: var(--bg); }

/* multi-column comparison */
.cmp-table.cmp-multi { min-width: 820px; }
.cmp-table.cmp-multi td:not(.us):not(:first-child) { color: var(--ink-light); font-size: 0.93rem; }
.cmp-table td.no::before { content: "\2717 "; color: var(--red); font-weight: 800; }

/* v1.14.0: gold stars on plan-specific lines, quote roles, footer selects */
.q-role { display: block; font-size: 0.8rem; color: var(--ink-light); font-weight: 400; }
.q-note { text-align: center; font-size: 0.75rem; color: var(--ink-light); margin: 1rem 0 0; }
.foot-selects { display: flex; gap: 0.6rem; margin-top: 1rem; }

.cta-wrap { margin-bottom: 3.5rem; }
.founder { margin-top: 3.5rem; margin-bottom: 3.5rem; }

/* 帳戶列表：標籤淺色、數值正規字重（唔再用整頁 <b>） */
.acct-page.card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.acct-page-footer {
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.5rem;
}
.acct-sec-h {
  margin: 1.25rem 0 0.45rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.acct-sec-h:first-of-type { margin-top: 0.35rem; }
.acct-inset {
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 0.15rem 1rem 0.35rem;
  margin-bottom: 0.85rem;
}
.acct-inset-settings { margin-top: 0.85rem; }
.acct-status {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}
.acct-cta { margin: 0.55rem 0 0.75rem; }
.acct-cta .btn { width: 100%; }
.acct-cta .approx { margin-top: 0.4rem; }
.acct-logout {
  display: block;
  width: 100%;
  margin-top: 1rem;
}
.acct-page > h2 { margin-bottom: 1rem; }
.acct-more-services {
  margin-top: 0;
  margin-bottom: 0.35rem;
}
.acct-more-title {
  margin: 0 0 0.4rem 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: var(--ink) !important;
  text-align: left;
}
.acct-more-hint {
  margin: 0 0 0.65rem 0;
  font-weight: 500;
  text-align: left;
}
.more-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.more-services .more-svc {
  width: 100%;
  margin: 0;
  text-align: left;
  font-weight: 800;
  border: 0;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
}
.acct-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem; min-width: 0;
}
.acct-row:last-child { border-bottom: 0; }
.acct-row > span:first-child { color: var(--ink); flex-shrink: 0; max-width: 42%; font-weight: 400; }
.acct-row .acct-val,
.acct-row b {
  text-align: right; min-width: 0; max-width: 100%;
  overflow-wrap: anywhere; word-break: break-word;
  font-weight: 400; color: var(--ink-light);
}
.acct-row .acct-val-actions {
  display: flex; gap: 0.5rem; align-items: center;
  flex-wrap: wrap; justify-content: flex-end;
}
.acct-mailin { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.acct-row-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}
.acct-row-stack > span:first-child { max-width: none; }
.acct-row-stack .acct-mailin,
.acct-row-stack .acct-val {
  text-align: left;
  width: 100%;
  color: var(--ink);
}
.acct-row-action {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-bottom: 0;
}
.acct-row-action .btn { width: 100%; }
.acct-row-action #goto-records { width: 100%; text-align: center; box-sizing: border-box; }
#acct-mailin-note { margin: 0.15rem 0 0.55rem; }
@media (max-width: 640px) {
  .acct-row select.pill,
  .acct-row input[type="text"],
  .acct-row input[type="email"] {
    max-width: none !important;
    width: 100%;
    box-sizing: border-box;
  }
}

/* export buttons: always one row (scrolls sideways on small screens) */
.export-row { display: flex; gap: 0.5rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.export-row .btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 640px) { .export-row { width: 100%; } }

/* v1.25.1: /records 兩張卡喺桌面加闊（同 #pricing-page .pricing 一樣嘅 breakout 手法，
   唔可以用 margin-left 負值——會被之後嘅 margin shorthand 蓋咗） */
@media (min-width: 980px) {
  #records-card, #stmt-card {
    width: min(1240px, calc(100vw - 2.5rem));
    position: relative; left: 50%; transform: translateX(-50%);
  }
}
.act-col { white-space: nowrap; }
/* 日期／狀態／相片欄唔好斷行（「2026-08-」換行、「未報銷」斷開兩行好核突） */
#records-card td:nth-child(1), #records-card td:nth-child(2) { white-space: nowrap; }
#records-card .badge, .no-img { white-space: nowrap; }
/* 相片欄好窄，個掣要細啲字＋唔准斷行，否則會斷做「相」「片」兩行
   （「生成收據圖」五個字更加會逐個字打直排，一樣要 nowrap） */
#records-card .rec-photo,
#records-card .rec-mkimg { font-size: 0.9rem; padding: 0.3rem 0.6rem; white-space: nowrap; }

/* /scan 手機版唔出 footer——嗰版係做嘢嘅版，唔應該有一大截導覽阻住 */
@media (max-width: 640px) {
  body.route-scan #site-footer { display: none; }
}

/* 月結單對數 (v1.24.0) */
.stmt-pickrow { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.8rem; }
#stmt-card h3 { margin-top: 1.6rem; margin-bottom: 0.3rem; font-size: 1.1rem; }
#stmt-card .table-wrap { margin-top: 0.6rem; }
/* details.faq 本身 padding:0（kamika accordion），入面要自己畀邊位 */
#stmt-card details.faq .table-wrap { margin: 0 24px 22px; }

/* 報表／紀錄／對數：手機可讀 */
@media (max-width: 640px) {
  #records-card .filters {
    flex-direction: column;
    align-items: stretch;
  }
  #records-card .filters select { width: 100%; box-sizing: border-box; }
  #records-card .stats-grid { grid-template-columns: 1fr 1fr; }
  #records-card .stats-grid .stat-tile-wide { grid-column: 1 / -1; }
  #stmt-card .stmt-pickrow {
    flex-direction: column;
    align-items: stretch;
  }
  #stmt-card .stmt-pickrow .btn { width: 100%; box-sizing: border-box; }
  #stmt-card #stmt-file { word-break: break-all; }
  .rec-more-menu .btn { min-width: 100%; }
}

/* referral (v1.23.0) */
.ref-linkbox { display: flex; gap: 0.5rem; margin: 0.6rem 0; }
.ref-linkbox input { flex: 1; min-width: 0; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-family: ui-monospace, monospace; font-size: 0.9rem; background: var(--ground2); }
.ref-share { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* 檢查重複：命中嘅行標紅（收據日期＋金額＋商戶三者相同） */
#records-body tr.dupe-row > td { background: #fff1f0; }
#records-body tr.dupe-row > td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
/* 日期金額商戶相同但單號唔同——可能係多筆真實交易，用黃色叫人手核對，唔好標紅 */
#records-body tr.maybe-dupe-row > td { background: #fffbeb; }
#records-body tr.maybe-dupe-row > td:first-child { box-shadow: inset 3px 0 0 #d97706; }

/* ---- v1.45.0 計劃對照表（取代原本四張 .plan 卡）----
   一個功能一行、一個計劃一欄。第一欄 sticky，窄螢幕橫向捲嗰陣
   功能名唔會走甩。表本身闊過 860px 主欄，所以要 breakout。
   ⚠️ .plan-badge 原本係 position:absolute; top:-12px，喺 overflow 容器
   入面會畀切走，所以喺表頭要打返做 static。 */
.plans-block {
  width: min(1120px, calc(100vw - 2rem));
  position: relative; left: 50%; transform: translateX(-50%);
  margin: 1rem 0 2rem;
}
.plans-note { font-size: 0.78rem; color: var(--ink-light); line-height: 1.6; margin: 0.9rem 0 0; }
.plans-note span { display: block; margin-bottom: 0.5rem; padding-left: 0.9em; text-indent: -0.9em; }
.plans-note span:last-child { margin-bottom: 0; }
[dir="rtl"] .plans-note span { padding-left: 0; padding-right: 0.9em; }
.plans-note span::before { content: "* "; }
.plans-table .fnm { font-style: normal; color: var(--primary-dark); font-weight: 700; }
.plans-table { min-width: 880px; font-size: 0.92rem; }
.plans-table th, .plans-table td {
  text-align: center; vertical-align: top; padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.plans-table thead th {
  vertical-align: bottom; padding-bottom: 1rem; border-bottom: 2px solid var(--border);
  background: transparent; cursor: default; white-space: normal;
}
.plans-table h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.plans-table .price { font-size: 1.5rem; font-weight: 800; margin: 0.2rem 0; white-space: nowrap; }
.plans-table .price small { font-size: 0.8rem; font-weight: 400; }
.plans-table .plan-badge { position: static; transform: none; display: inline-block; margin: 0 0 0.45rem; }
.plans-table .plan-cta { margin-top: 0.6rem; width: 100%; white-space: nowrap; }
.plans-table .rowhead {
  text-align: left; font-weight: 600; color: var(--ink); width: 32%; min-width: 230px;
  position: sticky; left: 0; background: var(--bg); z-index: 2;
  border-right: 1px solid var(--border);
}
.plans-table thead .rowhead { border-bottom: 2px solid var(--border); }
.plans-table .rowhead b { display: block; font-weight: 600; }
.plans-table .rowhead span {
  display: block; font-weight: 400; font-size: 0.8rem; line-height: 1.45;
  color: var(--ink-light); margin-top: 0.2rem;
}
.plans-table th.hot, .plans-table td.hot { background: rgba(244,182,71,.14); }
.plans-table td.y::before { content: "\2713"; color: var(--green); font-weight: 800; font-size: 1.15rem; }
.plans-table td.n::before { content: "\2013"; color: var(--ink-light); }
.plans-table td.amt { font-weight: 700; }
.plans-table td.detail { text-align: left; }
.plans-table td.detail ul { list-style: none; margin: 0; padding: 0; color: var(--ink-light); font-size: 0.88rem; }
.plans-table td.detail li { padding: 0.12rem 0 0.12rem 0.9rem; position: relative; }
.plans-table td.detail li::before { content: "\2022"; position: absolute; left: 0.1rem; color: var(--primary-dark); }
[dir="rtl"] .plans-block { left: auto; right: 50%; transform: translateX(50%); }
/* ---- 30 秒 demo 片（首頁三步之後、CTA 之前）---- */
.demo-wrap { max-width: 720px; margin: 2.2rem auto 0; text-align: center; }
.demo-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: #000; }
.demo-wrap .approx { margin: 0.6rem 0 0; }
/* ---- 價錢計數機：每月幾多張 → 最抵 plan（只係靜態計數，單價同後端 main.py 一致）---- */
.calc-card { background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); max-width: 560px; margin: 1.2rem auto 1.5rem; padding: 1.2rem 1.4rem; text-align: center; }
.calc-row { display: flex; gap: 0.6rem; justify-content: center; align-items: center; margin: 0.8rem 0; }
#calc-n { width: 7rem; font-size: 1.2rem; padding: 0.45rem 0.6rem; border: 1px solid var(--border);
  border-radius: 10px; text-align: center; background: #fff; color: var(--ink); }
.calc-out { font-size: 1.15rem; font-weight: 800; margin: 0.4rem 0; }
.calc-card .approx { margin: 0.4rem 0 0; }
[dir="rtl"] .plans-table .rowhead { text-align: right; left: auto; right: 0; }
[dir="rtl"] .plans-table td.detail { text-align: right; }
[dir="rtl"] .plans-table td.detail li { padding: 0.12rem 0.9rem 0.12rem 0; }
[dir="rtl"] .plans-table td.detail li::before { left: auto; right: 0.1rem; }
@media (max-width: 640px) {
  /* 手機：表一定要捲，所以功能名嗰欄要瘦身，唔係得返一格幾計劃位睇 */
  .plans-table { min-width: 780px; font-size: 0.85rem; }
  .plans-table th, .plans-table td { padding: 0.55rem 0.45rem; }
  .plans-table .rowhead { width: 46%; min-width: 210px; font-size: 0.82rem; }
  .plans-table .rowhead span { font-size: 0.72rem; }
  .plans-table h3 { font-size: 0.92rem; }
  .plans-table .price { font-size: 1.1rem; }
  .plans-table .plan-badge { white-space: normal; font-size: 0.65rem; padding: 0.1rem 0.5rem; }
  .plans-table td.detail ul { font-size: 0.8rem; }
}

/* —— Mobile bottom nav (ThatShort Material style: records | scan | account | eSIM) —— */
.tr-bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tr-bn-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(12, 16, 22, .08);
}
.tr-bn-item {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-width: 0; padding: 8px 4px 10px;
  color: #757575; font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tr-bn-item .tr-bn-ico {
  width: 64px; height: 32px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.tr-bn-item svg { width: 24px; height: 24px; display: block; }
.tr-bn-item.active { color: var(--primary-dark); }
.tr-bn-item.active .tr-bn-ico { background: rgba(244, 182, 71, .22); color: var(--ink); }
.tr-bn-item:active .tr-bn-ico { transform: scale(.96); }
.tr-bn-item .tr-bn-label {
  line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

#esim-panel { display: none; margin: 0; }
#esim-panel.on { display: block; }
.esim-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: .75rem 1rem; flex-wrap: wrap;
}
.esim-toolbar span { font-size: .82rem; font-weight: 700; color: var(--ink-light); letter-spacing: .04em; }
.esim-toolbar a {
  font-size: .82rem; font-weight: 600; color: var(--primary-dark); text-decoration: none;
  padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: #fff;
}
.esim-frame-wrap {
  background: #fff; overflow: hidden;
  height: calc(100vh - var(--tr-bn-h) - env(safe-area-inset-bottom, 0px) - 52px);
  min-height: 420px;
}
.esim-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
body.esim-mode header,
body.esim-mode #site-footer,
body.esim-mode #balancebar,
body.esim-mode .esim-toolbar { display: none !important; }
body.esim-mode .esim-frame-wrap {
  height: calc(100vh - var(--tr-bn-h) - env(safe-area-inset-bottom, 0px));
  min-height: 0;
}
body.esim-mode main { padding: 0; max-width: none; }
body.has-tr-bn {
  padding-bottom: calc(var(--tr-bn-h) + env(safe-area-inset-bottom, 0px));
}
/* 手機／App／PWA 有底欄＝做嘢介面：唔出網站 footer */
body.has-tr-bn #site-footer { display: none !important; }

@media (max-width: 900px) {
  body.has-tr-bn .tr-bottom-nav { display: grid; }
  body.has-tr-bn #nav-scan { display: none; }
}
@media (min-width: 901px) {
  .tr-bottom-nav { display: none !important; }
  body.has-tr-bn { padding-bottom: 0; }
}
/* Cap WebView 有時報 desktop 闊度 → 強制顯示底欄四掣 */
body.tr-cap-native.has-tr-bn .tr-bottom-nav {
  display: grid !important;
}
body.tr-cap-native.has-tr-bn {
  padding-bottom: calc(var(--tr-bn-h) + env(safe-area-inset-bottom, 0px));
}
body.tr-cap-native.has-tr-bn #nav-scan { display: none; }
/* Cap boot（head script）＋ runtime：藏網站宣傳頁，避免閃 frontpage */
html.tr-cap-boot #landing,
html.tr-cap-boot #biz-landing,
html.tr-cap-boot #site-footer,
body.tr-cap-native #landing,
body.tr-cap-native #biz-landing,
body.tr-cap-native #site-footer { display: none !important; }
html.tr-cap-boot body { background: #F2F2F7; }

/* Quickstart（網站用卡片；Cap 下面覆寫成全屏） */
.qs-modal { max-width: 400px; text-align: left; }
.qs-kicker {
  margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-dark);
}
.qs-body { color: var(--ink-light); font-size: 0.95rem; line-height: 1.5; margin: 0.4rem 0 0.8rem; }
.qs-bullets { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--ink); font-size: 0.92rem; line-height: 1.55; }
.qs-bullets li { margin: 0.25rem 0; }
.qs-dots { display: flex; gap: 6px; justify-content: center; margin: 0.4rem 0 1rem; }
.qs-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--border); display: block;
}
.qs-dots i.on { background: var(--primary-dark); }
.qs-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.qs-actions .btn { width: 100%; box-sizing: border-box; }
@media (max-width: 640px) {
  .qs-modal { margin: 0.75rem; width: calc(100% - 1.5rem); max-width: none; }
}

/* ═══════════════════════════════════════════════════════════
   Cap / App native shell（學 ThatVoice：灰底、全屏閘、pill、冇網站 chrome）
   ═══════════════════════════════════════════════════════════ */
body.tr-cap-native {
  --tr-app-bg: #F2F2F7;
  --tr-app-text: #111114;
  --tr-app-muted: #8E8E93;
  --tr-app-track: #ECECEF;
  --tr-app-card: #FFFFFF;
  --tr-app-gold: #DDA653;
  --tr-app-gold-press: #C08F3F;
  --tr-app-ink: #111114;
  background: var(--tr-app-bg) !important;
  color: var(--tr-app-text);
  font-family: system-ui, -apple-system, "Roboto", "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  /* 唔好 body { user-select:none / overscroll-behavior:none }——Android WebView 會令頁面滾唔到 */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: auto;
  min-height: 100%;
}
html.tr-cap-boot,
html:has(body.tr-cap-native) {
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* ThatVoice 正文 ~15sp；網站 html 17px 令 Cap 全面偏大 */
  font-size: 15px;
}

/* 預設藏 header；只有掃描頁先出 ThatInvoice logo-text */
body.tr-cap-native header { display: none !important; }
body.tr-cap-native.route-scan:not(.tr-cap-need-login):not(.tr-qs-open) header {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 40;
  padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 0 0.5rem;
  background: #fff;
  border-bottom: 1px solid var(--tr-app-track);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.tr-cap-native.route-scan:not(.tr-cap-need-login):not(.tr-qs-open) header .hp-header-inner {
  max-width: none; padding: 0 1rem; justify-content: flex-start;
}
body.tr-cap-native header .hp-nav-right,
body.tr-cap-native #menu-panel,
body.tr-cap-native select#lang,
body.tr-cap-native select#currency,
body.tr-cap-native .logo-mark,
body.tr-cap-native .logo-word {
  display: none !important;
}
body.tr-cap-native.route-scan header .logo {
  display: flex !important;
  align-items: center;
}
body.tr-cap-native.route-scan header .logo img.logo-desktop {
  display: block !important;
  height: 24px;
  width: auto;
}
body.tr-cap-native.route-scan header .logo img.logo-mobile {
  display: none !important;
}

@media (max-width: 900px) {
  body.has-tr-bn:not(.tr-cap-native) header { display: none !important; }
  body.has-tr-bn.route-scan:not(.tr-cap-native) header {
    display: block !important;
    padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 0 0.5rem;
    background: #fff;
    border-bottom: 1px solid #ECECEF;
  }
  body.has-tr-bn.route-scan:not(.tr-cap-native) header .hp-header-inner {
    max-width: none; padding: 0 1rem; justify-content: flex-start;
  }
  body.has-tr-bn:not(.tr-cap-native) header .hp-nav-right,
  body.has-tr-bn:not(.tr-cap-native) #menu-panel,
  body.has-tr-bn:not(.tr-cap-native) select#lang,
  body.has-tr-bn:not(.tr-cap-native) select#currency,
  body.has-tr-bn:not(.tr-cap-native) .logo-mark,
  body.has-tr-bn:not(.tr-cap-native) .logo-word {
    display: none !important;
  }
  body.has-tr-bn.route-scan:not(.tr-cap-native) .logo-desktop {
    display: block !important;
    height: 24px;
  }
  body.has-tr-bn:not(.tr-cap-native) .logo-mobile { display: none !important; }
  body.has-tr-bn {
    --tr-app-bg: #F2F2F7;
    background: var(--tr-app-bg);
    font-family: system-ui, -apple-system, "Roboto", "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
  }
  body.has-tr-bn main {
    max-width: none;
    padding: 12px 16px 16px;
  }
  body.has-tr-bn .card {
    border: 0;
    box-shadow: none;
    border-radius: 16px;
    background: #fff;
  }
  body.has-tr-bn .card > h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.032em;
    line-height: 28px;
  }
  body.has-tr-bn .btn:hover { transform: none; box-shadow: none; }
  body.has-tr-bn .btn {
    border-radius: 999px;
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  body.has-tr-bn .btn.small { min-height: 36px; font-size: 13px; }
}

body.tr-cap-native {
  font-size: 15px;
  line-height: 1.45;
}
body.tr-cap-native main {
  max-width: none;
  padding: 12px 16px 16px;
  overflow: visible;
}
body.tr-cap-native .card {
  border: 0;
  box-shadow: none;
  border-radius: 16px;
  background: var(--tr-app-card);
  padding: 1rem 1rem 1.1rem;
}
body.tr-cap-native .card > h2 {
  margin: 0 0 0.75rem;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 28px;
  color: var(--tr-app-text);
}
body.tr-cap-native .approx,
body.tr-cap-native .mailin,
body.tr-cap-native label {
  font-size: 13px;
  letter-spacing: 0.01em;
}
body.tr-cap-native input,
body.tr-cap-native select,
body.tr-cap-native textarea {
  font-size: 15px;
}
body.tr-cap-native .btn:hover { transform: none !important; box-shadow: none !important; }
body.tr-cap-native .btn {
  border-radius: 999px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.021em;
  border: 0;
  box-shadow: none;
}
body.tr-cap-native .btn.small { min-height: 36px; font-size: 13px; padding: 0.28rem 0.75rem; }
body.tr-cap-native .btn:not(.secondary) {
  background: var(--tr-app-gold);
  color: var(--tr-app-ink);
}
body.tr-cap-native .btn:not(.secondary):active { background: var(--tr-app-gold-press); }
body.tr-cap-native .btn.secondary {
  background: #E9E9EE;
  color: var(--tr-app-text);
}
body.tr-cap-native .btn.secondary:active { background: #D5D5DC; }

/* 掃描主區：相機大掣，唔似網頁 dropzone */
body.tr-cap-native #scan-card .dropzone {
  min-height: 168px;
  border: 0;
  border-radius: 20px;
  background: var(--tr-app-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.021em;
  padding: 1.25rem;
  cursor: pointer;
}
body.tr-cap-native #scan-card .dropzone::before {
  content: "";
  width: 48px; height: 48px;
  background: center / 24px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23DDA653'%3E%3Cpath d='M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4z'/%3E%3Cpath d='M9 3 7.17 5H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.17L15 3H9zm3 15a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
}
body.tr-cap-native #scan-card .dropzone:active { opacity: 0.88; }
body.tr-cap-native #camera-btn { display: none !important; } /* 主動作已係 dropzone */
body.tr-cap-native #scan-actions .btn { min-height: 44px; font-size: 15px; }
body.tr-cap-native #goto-records { display: none !important; }

/* 收據紀錄／對數：Cap 卡列表；字級對齊帳戶頁（14.5／13，統計唔好同標題 22 搶） */
body.tr-cap-native .rec-cards,
body.tr-cap-native .stmt-cards,
body.has-tr-bn .rec-cards,
body.has-tr-bn .stmt-cards { display: flex; }
body.tr-cap-native .rec-table-wrap,
body.has-tr-bn .rec-table-wrap { display: none !important; }
body.tr-cap-native #records-card.card,
body.tr-cap-native #stmt-card.card,
body.has-tr-bn #records-card.card,
body.has-tr-bn #stmt-card.card {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}
body.tr-cap-native #records-card > h2,
body.has-tr-bn #records-card > h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 28px;
}
body.tr-cap-native .rec-filters-wrap,
body.has-tr-bn .rec-filters-wrap,
body.tr-cap-native .rec-submit,
body.has-tr-bn .rec-submit,
body.tr-cap-native .stat-tile,
body.has-tr-bn .stat-tile,
body.tr-cap-native .rec-card,
body.has-tr-bn .rec-card {
  border: 0;
  box-shadow: none;
  background: var(--tr-app-card, #fff);
}
body.tr-cap-native .stat-tile,
body.has-tr-bn .stat-tile {
  padding: 0.7rem 0.85rem;
}
body.tr-cap-native .stat-tile .v,
body.has-tr-bn .stat-tile .v {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--tr-app-text, #111114);
}
body.tr-cap-native .stat-tile .l,
body.has-tr-bn .stat-tile .l {
  font-size: 12px;
  font-weight: 400;
  color: var(--tr-app-muted, #8E8E93);
}
body.tr-cap-native #records-card .catbar,
body.has-tr-bn #records-card .catbar,
body.tr-cap-native #stmt-card .catbar,
body.has-tr-bn #stmt-card .catbar {
  font-size: 13px;
  font-weight: 400;
  color: var(--tr-app-muted, #8E8E93);
  letter-spacing: 0.01em;
}
body.tr-cap-native #records-card .catbar .bar,
body.has-tr-bn #records-card .catbar .bar {
  height: 6px;
  background: var(--tr-app-gold, #DDA653);
}
body.tr-cap-native .rec-card,
body.has-tr-bn .rec-card {
  padding: 0.7rem 0.9rem;
}
body.tr-cap-native .rec-card-merchant,
body.has-tr-bn .rec-card-merchant,
body.tr-cap-native .rec-card-amt,
body.has-tr-bn .rec-card-amt {
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.021em;
  color: var(--tr-app-text, #111114);
}
body.tr-cap-native .rec-card-amt,
body.has-tr-bn .rec-card-amt {
  color: var(--tr-app-muted, #8E8E93);
}
body.tr-cap-native .rec-card-meta,
body.has-tr-bn .rec-card-meta,
body.tr-cap-native .rec-card-notes,
body.has-tr-bn .rec-card-notes {
  color: var(--tr-app-muted, #8E8E93);
  font-size: 12.5px;
  font-weight: 400;
}
body.tr-cap-native .rec-card-actions .btn,
body.has-tr-bn .rec-card-actions .btn {
  min-height: 34px;
  font-size: 12.5px;
  font-weight: 600;
}
body.tr-cap-native .rec-more > summary,
body.has-tr-bn .rec-more > summary {
  color: var(--tr-app-muted, #8E8E93);
  font-size: 13px;
  font-weight: 400;
}
body.tr-cap-native .filters select,
body.has-tr-bn .filters select {
  min-height: 40px;
  font-size: 14.5px !important; /* 蓋過 max-width 640 嘅 16px !important */
  font-weight: 400;
  border-radius: 12px;
  border-color: var(--tr-app-track, #ECECEF);
  background: #F8F8FA;
  padding: 0.4rem 0.65rem;
}
body.tr-cap-native #stmt-card .stmt-fold > summary.acct-sec-h,
body.has-tr-bn #stmt-card .stmt-fold > summary.acct-sec-h {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  list-style: none;
  cursor: pointer;
  margin: 1rem 0 0.4rem 0.5rem;
}
body.tr-cap-native #stmt-card .stmt-fold > summary::-webkit-details-marker,
body.has-tr-bn #stmt-card .stmt-fold > summary::-webkit-details-marker { display: none; }
body.tr-cap-native #stmt-card .stmt-fold > summary::after,
body.has-tr-bn #stmt-card .stmt-fold > summary::after {
  content: " ›";
  color: var(--tr-app-muted, #8E8E93);
  font-weight: 400;
}
body.tr-cap-native #stmt-card .stmt-fold[open] > summary::after,
body.has-tr-bn #stmt-card .stmt-fold[open] > summary::after { content: " ˅"; }
body.tr-cap-native #stmt-card .stmt-intro,
body.has-tr-bn #stmt-card .stmt-intro,
body.tr-cap-native #stmt-card .stmt-privacy,
body.has-tr-bn #stmt-card .stmt-privacy {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
body.tr-cap-native #stmt-card .btn,
body.has-tr-bn #stmt-card .btn {
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
}
body.tr-cap-native #stmt-card .stmt-fold:not([open]),
body.has-tr-bn #stmt-card .stmt-fold:not([open]) {
  margin-bottom: 0.5rem;
}

/* 帳戶頁：ThatVoice 式分組列表（灰底＋白 inset、少粗體） */
body.tr-cap-native #account-panel.card,
body.has-tr-bn #account-panel.card {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}
body.tr-cap-native #account-panel > h2,
body.has-tr-bn #account-panel > h2 {
  margin: 0.25rem 0 0.85rem;
  font-weight: 500;
}
body.tr-cap-native .acct-sec-h,
body.has-tr-bn .acct-sec-h {
  margin: 1.35rem 0 0.4rem 0.5rem;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0.032em;
  color: var(--tr-app-text);
}
body.tr-cap-native .acct-inset,
body.has-tr-bn .acct-inset,
body.tr-cap-native .balancebar,
body.has-tr-bn .balancebar {
  border: 0;
  box-shadow: none;
  border-radius: 16px;
  background: var(--tr-app-card, #fff);
  padding: 0.2rem 1.1rem 0.45rem;
  margin-bottom: 0.75rem;
}
body.tr-cap-native .acct-row,
body.has-tr-bn .acct-row {
  min-height: 46px;
  padding: 0.55rem 0;
  border-bottom-color: var(--tr-app-track, #ECECEF);
  font-size: 14.5px;
  letter-spacing: 0.021em;
}
body.tr-cap-native .acct-row > span:first-child,
body.has-tr-bn .acct-row > span:first-child {
  color: var(--tr-app-text, #111114);
  max-width: 48%;
}
body.tr-cap-native .acct-row .acct-val,
body.has-tr-bn .acct-row .acct-val {
  color: var(--tr-app-muted, #8E8E93);
  font-weight: 400;
}
body.tr-cap-native .acct-status,
body.has-tr-bn .acct-status {
  font-size: 15px;
  font-weight: 400;
  color: var(--tr-app-text, #111114);
}
body.tr-cap-native .acct-cta .btn,
body.has-tr-bn .acct-cta .btn {
  font-weight: 700;
}
body.tr-cap-native .acct-page-footer,
body.has-tr-bn .acct-page-footer {
  margin-top: 1.5rem;
  margin-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}
body.tr-cap-native .acct-more-title,
body.has-tr-bn .acct-more-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  color: var(--tr-app-text, #111114) !important;
}
body.tr-cap-native .acct-logout,
body.has-tr-bn .acct-logout {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: #9B1B30;
  background: #E9E9EE;
  font-weight: 600;
}
body.tr-cap-native .more-services .more-svc,
body.has-tr-bn .more-services .more-svc {
  border-radius: 12px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 800;
}
body.tr-cap-native #trial-warn,
body.has-tr-bn #trial-warn {
  border-radius: 16px;
  border: 0;
  box-shadow: none;
}
body.tr-cap-native .toast {
  bottom: calc(var(--tr-bn-h) + env(safe-area-inset-bottom, 0px) + 12px);
  border-radius: 999px;
}

/* 底欄：ThatVoice 式——白底、已選深色、冇陰影指示條 */
body.tr-cap-native .tr-bottom-nav {
  border-top: 1px solid var(--tr-app-track);
  box-shadow: none;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  --tr-bn-h: 64px;
}
body.tr-cap-native .tr-bn-item { color: #9E9EA6; font-size: 12px; font-weight: 600; }
body.tr-cap-native .tr-bn-item.active { color: var(--tr-app-text); }
body.tr-cap-native .tr-bn-item.active .tr-bn-ico {
  background: transparent;
  color: var(--tr-app-text);
}

/* ── 全屏登入閘（唔再係網頁彈窗）── */
body.tr-cap-native.tr-cap-need-login {
  padding-bottom: 0;
  background: var(--tr-app-bg) !important;
  /* 登入閘仍保留頂部 logo header；只藏 main／底欄 */
}
body.tr-cap-native.tr-cap-need-login main { display: none !important; }
body.tr-cap-native.tr-cap-need-login .tr-bottom-nav { display: none !important; }
body.tr-cap-native.tr-cap-need-login header { display: none !important; }
body.tr-cap-native.tr-cap-need-login #login-popup:not(.hidden),
body.tr-cap-native #qs-modal:not(.hidden) {
  display: flex !important;
  z-index: 80;
  background: var(--tr-app-bg) !important;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  inset: 0;
}
body.tr-cap-native.tr-cap-need-login #login-popup.hidden,
body.tr-cap-native #qs-modal.hidden { display: none !important; }
body.tr-cap-native.tr-cap-need-login #login-popup-close { display: none !important; }

body.tr-cap-native.tr-cap-need-login #login-popup .modal.login-popup,
body.tr-cap-native #qs-modal:not(.hidden) .modal.qs-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  padding: calc(48px + env(safe-area-inset-top, 0px)) 28px calc(40px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
body.tr-cap-native.tr-cap-need-login .login-popup-icon {
  width: 88px; height: 88px; margin: 0 auto 1.1rem;
  border-radius: 22px;
  background: var(--tr-app-gold);
  display: grid; place-items: center;
}
body.tr-cap-native.tr-cap-need-login .login-popup-icon svg {
  width: 44px; height: 44px; stroke: var(--tr-app-ink);
}
body.tr-cap-native.tr-cap-need-login .login-popup h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 26px;
  color: var(--tr-app-text);
  margin: 0 0 0.55rem;
}
body.tr-cap-native.tr-cap-need-login .login-popup-msg {
  font-size: 15px;
  line-height: 22px;
  color: var(--tr-app-muted);
  margin: 0 0 1.25rem;
}
body.tr-cap-native.tr-cap-need-login .login-popup-benefits {
  text-align: left;
  margin: 0 auto 1.4rem;
  max-width: 320px;
  padding: 0;
  list-style: none;
}
body.tr-cap-native.tr-cap-need-login .login-popup-benefits li {
  color: var(--tr-app-muted);
  font-size: 13px;
  letter-spacing: 0.023em;
  margin: 0.35rem 0;
}
body.tr-cap-native.tr-cap-need-login .login-popup-cta { margin: 0 0 1rem; }
body.tr-cap-native.tr-cap-need-login .cap-gsi-btn,
body.tr-cap-native #qs-primary {
  width: 100%;
  max-width: none;
  min-height: 56px;
  border-radius: 999px;
  background: var(--tr-app-gold) !important;
  color: var(--tr-app-ink) !important;
  border: 0 !important;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.021em;
}
body.tr-cap-native.tr-cap-need-login .cap-gsi-btn:active,
body.tr-cap-native #qs-primary:active { background: var(--tr-app-gold-press) !important; }
body.tr-cap-native.tr-cap-need-login .login-popup-note {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--tr-app-muted);
}
body.tr-cap-native #qs-modal .qs-kicker {
  color: var(--tr-app-gold-press);
  letter-spacing: 0.08em;
}
body.tr-cap-native #qs-modal #qs-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 28px;
  color: var(--tr-app-text);
  text-align: center;
}
body.tr-cap-native #qs-modal .qs-body,
body.tr-cap-native #qs-modal .qs-bullets {
  text-align: left;
  color: var(--tr-app-muted);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
body.tr-cap-native #qs-modal .qs-bullets { color: var(--tr-app-text); }
body.tr-cap-native #qs-skip {
  background: transparent !important;
  color: var(--tr-app-muted) !important;
  min-height: 44px;
  box-shadow: none !important;
}
body.tr-cap-native.tr-qs-open main,
body.tr-cap-native.tr-qs-open .tr-bottom-nav {
  display: none !important;
}
body.tr-cap-native.tr-qs-open header { display: none !important; }
/* Quickstart／login 全屏 modal 要自己滾（內容高過一屏時） */
body.tr-cap-native #qs-modal:not(.hidden) .modal.qs-modal,
body.tr-cap-native.tr-cap-need-login #login-popup .modal.login-popup {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media print {
  .tr-bottom-nav, #esim-panel { display: none !important; }
}

/* 公司用量橫額（#company-panel 頂）：平時白底，pct≥80 出金、100% 轉紅 */
.usage-banner {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border); color: var(--ink);
  border-radius: var(--radius); padding: 0.8rem 1.2rem; margin-bottom: 1rem;
  font-size: 0.9rem;
}
.usage-banner.warn { background: #fff6e2; border-color: var(--primary); }
.usage-banner.full { background: #fdecec; border-color: #d94a4a; }
.usage-banner .usage-cta { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }
/* 掃描政策提示：黃框，code 轉 i18n 列出 */
.policy-warn {
  background: #fffbeb; border: 1px solid #d97706; color: var(--ink);
  border-radius: var(--radius); padding: 0.7rem 1rem; margin-bottom: 0.8rem;
  font-size: 0.9rem;
}
.policy-warn div { margin: 0.15rem 0; }
/* 公司記錄行政策旗：細 badge，hover 見原因 */
.pflag {
  display: inline-block; background: #fef3c7; border: 1px solid #d97706;
  color: #92400e; border-radius: 6px; font-size: 0.7rem;
  padding: 0 0.3rem; margin-left: 0.3rem; vertical-align: middle;
}
/* 政策類別多選：手機兩欄自動換行 */
.pol-cats { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.4rem 0 0.8rem; }
.pol-cats label { display: flex; gap: 0.35rem; align-items: center; font-size: 0.9rem; }
