/* ============================================================
   GDOS 零食許願池 · 手機版專用样式（App 式介面）
   ------------------------------------------------------------
   色彩 / 字體 / 圓角全部沿用 tokens.css 與 style.css 的變數，
   與桌面版同一套設計語言；按鈕全部加大至觸控友善（≥48px）。
   ============================================================ */

:root {
  --m-topbar-h: 56px;
  --m-tabbar-h: 60px;
  --m-safe-b: env(safe-area-inset-bottom, 0px);
  --m-sheet-ease: cubic-bezier(.2, .8, .2, 1);

  /* 語意色（與 style.css 同一套，手機頁不載入 style.css，這裡自帶一份） */
  --ink-pink: var(--color-primary-strong);      /* #c20040 */
  --ink-cyan: var(--color-accent-strong);       /* #0e7c86 */
  --ink-green: #0d7a54;
  --ink-amber: #8a5c00;
  --color-text-2: #3f3f46;

  --tint-pink: var(--color-surface);            /* #ffd7e8 */
  --tint-pink-2: #ffe6ee;
  --tint-cyan: #dbf6f8;
  --tint-green: #e2f8ef;
  --tint-amber: var(--brand-yellow);            /* #fff7c7 */
  --tint-grey: var(--color-surface-2);          /* #f4f4f5 */

  --hair: var(--color-line);                    /* #defbfb */
  --hair-2: var(--color-line-strong);
  --radius-pill: 999px;
}

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

html { height: 100%; }

body.m-app {
  margin: 0;
  background: var(--color-surface-2);   /* 淺灰底：讓白色卡片一块一块分清楚 */
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

button, a, input, select, textarea, label { touch-action: manipulation; }

/* ---------- 頂欄 ---------- */
.m-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(var(--m-topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 16px;
  padding-right: 12px;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hair);
}

.m-brand {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.m-brand .m-brand-sub { font-weight: 500; color: var(--color-muted); font-size: 14px; }

.m-topbar-actions { display: flex; align-items: center; gap: 8px; }

.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;   /* 觸控最小點擊區 */
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--tint-pink);
  color: var(--ink-pink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
a.m-chip:active { transform: scale(.96); }

.m-chip-ghost {
  background: transparent;
  border: 1px solid var(--hair-2);
  color: var(--color-text-2);
  font-weight: 500;
}

/* ---------- 主內容 ---------- */
/* 唔加 max-width：某啲瀏覽器（如 Chrome 縮放／電腦版模式）會俾更寬嘅 layout viewport，
   加咗上限會令內容縮在中間；手機／平板一律全寬 */
.m-main {
  padding: 12px 16px calc(var(--m-tabbar-h) + var(--m-safe-b) + 88px);
}

/* Flash 提示（吐司樣式） */
.m-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 500;
  border-left: 3px solid;
  animation: m-toast-in .25s var(--m-sheet-ease);
}
.m-toast-success { background: var(--tint-green); border-color: var(--ink-green); color: var(--ink-green); }
.m-toast-danger  { background: var(--tint-pink-2); border-color: var(--ink-pink); color: var(--ink-pink); }
.m-toast-warning { background: var(--tint-amber); border-color: var(--ink-amber); color: var(--ink-amber); }
.m-toast-info    { background: var(--tint-cyan); border-color: var(--ink-cyan); color: var(--ink-cyan); }
@keyframes m-toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* 總餘額條（呼應桌面版 cyber banner 的粉青漸層） */
.m-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--brand-pink) 0%, var(--brand-cyan) 100%);
  color: #fff;
}
.m-master-label { font-size: 14px; font-weight: 500; opacity: .95; display: flex; align-items: center; gap: 6px; }
.m-master-amount {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 15%);
}
.m-master-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }

/* 餘額為負的警告態（按鈕形態，點一下開充值彈層） */
button.m-master {
  width: 100%;
  border: none;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: transform .12s var(--m-sheet-ease);
}
button.m-master:active { transform: scale(.98); }
.m-master-warn {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  background: var(--tint-amber);
  color: var(--ink-amber);
}
.m-master-warn .m-master-label,
.m-master-warn .m-master-amount { color: inherit; }
.m-master-warn .m-master-amount { text-shadow: none; }
.m-master-note { font-size: 14px; font-weight: 500; opacity: .9; }

/* 身分列（主頁只顯示用戶名） */
.m-identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: var(--color-bg);
  border: 1px solid var(--hair-2);
  border-radius: var(--radius-lg);
}
.m-identity-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}
.m-identity-user i { font-size: 20px; color: var(--ink-pink); flex-shrink: 0; }
.m-identity-bar .m-wallet-switch { background: var(--tint-pink); }

/* 錢包卡 */
.m-wallet {
  padding: 18px;
  margin-bottom: 12px;
  border-radius: var(--radius-xl);
  background: var(--tint-pink);
  border: 1px solid var(--brand-pink-soft);
}
.m-wallet.is-empty { background: var(--tint-pink-2); }
.m-wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.m-wallet-name { font-size: 16px; font-weight: 700; color: var(--color-text); }
.m-wallet-switch {
  font-size: 14px; color: var(--ink-pink); text-decoration: none;
  padding: 6px 10px; border-radius: var(--radius-pill); background: rgb(255 255 255 / 70%);
}
.m-wallet-amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  line-height: 1.2;
}
.m-wallet-amount .m-cur { font-size: 20px; font-weight: 700; color: var(--color-text-2); margin-right: 4px; }
.m-wallet-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.m-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700;
}
.m-badge-warn { background: var(--tint-amber); color: var(--ink-amber); }
.m-badge-info { background: var(--tint-cyan); color: #0a6a73; }

.m-wallet-actions { display: flex; gap: 10px; margin-top: 14px; }

/* 大按鈕（觸控友善） */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s var(--m-sheet-ease), filter .12s;
}
.m-btn:active { transform: scale(.97); }
.m-btn-primary { background: var(--ink-pink); color: #fff; }
.m-btn-primary:active { filter: brightness(1.1); }
.m-btn-cyan { background: var(--ink-cyan); color: #fff; }
.m-btn-outline {
  background: transparent;
  border: 1.5px solid var(--hair-2);
  color: var(--color-text-2);
}
.m-btn-soft { background: rgb(255 255 255 / 85%); color: var(--ink-pink); border: 1px solid var(--brand-pink-soft); }
.m-btn-block { width: 100%; }
.m-btn[disabled] { opacity: .45; pointer-events: none; }
.m-btn-sm { min-height: 44px; padding: 10px 16px; font-size: 16px; }

/* 身分選擇（未登入且允許手動選） */
.m-identity-form { display: flex; flex-direction: column; gap: 10px; }
.m-identity-label { font-size: 16px; font-weight: 700; color: var(--color-text-2); }
.m-select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--hair-2);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c20040' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 4.6 8 11l6.4-6.4-1.1-1.1L8 8.8 2.7 3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.m-select:focus { outline: 2px solid var(--brand-pink); outline-offset: 1px; }
.m-hint { font-size: 14px; color: var(--color-muted); margin-top: 8px; }

.m-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--color-muted);
  font-size: 16px;
}
.m-empty-emoji { font-size: 34px; display: block; margin-bottom: 8px; }

/* 收款資訊條（點一下複製號碼） */
.m-payment {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  background: var(--tint-cyan);
  border: 1px solid transparent;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
}
.m-payment:active { transform: scale(.98); border-color: var(--ink-cyan); }
.m-payment-icon { font-size: 20px; color: var(--ink-cyan); flex-shrink: 0; }
.m-payment-body { min-width: 0; }
.m-payment-line1 { display: block; font-size: 16px; font-weight: 700; color: #0a6a73; font-variant-numeric: tabular-nums; }
.m-payment-line2 {
  display: block;
  font-size: 14px; color: var(--color-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 區塊標題 ---------- */
.m-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.m-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 零食卡片（雙欄） ---------- */
.m-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.m-card {
  background: var(--color-bg);
  border: 1px solid var(--hair-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.m-card-img {
  position: relative;
  aspect-ratio: 1 / 1;   /* 固定正方形：所有卡的圖片區同高，文字才對齊 */
  background: var(--tint-grey);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 6%);
}
.m-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.m-card-img .m-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--brand-cyan);
}
.m-card-count {
  position: absolute;
  top: 8px; right: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--ink-pink);          /* 實心底＋白字，比半透明浮標明顯 */
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgb(0 0 0 / 28%);
  white-space: nowrap;
}

.m-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.m-card-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.m-card-desc {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.m-card-actions { display: flex; gap: 8px; margin-top: auto; }
.m-btn-plus {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--ink-pink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s var(--m-sheet-ease);
}
.m-btn-plus:active { transform: scale(.95); }
.m-btn-plus[disabled] { opacity: .4; pointer-events: none; }
.m-btn-icon {
  width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--hair-2);
  background: var(--color-bg);
  color: var(--color-text-2);
  font-size: 20px;
  cursor: pointer;
  transition: transform .12s var(--m-sheet-ease);
}
.m-btn-icon:active { transform: scale(.92); background: var(--tint-grey); }
.m-btn-icon[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Floating Action Button（新增許願） ---------- */
.m-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--m-tabbar-h) + var(--m-safe-b) + 16px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--ink-pink) 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgb(194 0 64 / 35%);
  transition: transform .12s var(--m-sheet-ease);
}
.m-fab:active { transform: scale(.94); }
.m-fab i { font-size: 20px; }
.m-fab[disabled] { opacity: .45; pointer-events: none; }
/* 彈層開著時 FAB 沒有意義（也被彈層遮住），直接隱藏 */
body.sheet-open .m-fab { display: none; }

/* ---------- 底部標籤列 ---------- */
.m-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  height: calc(var(--m-tabbar-h) + var(--m-safe-b));
  padding-bottom: var(--m-safe-b);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--hair);
}
.m-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  position: relative;
  transition: color .15s;
}
.m-tab i { font-size: 20px; }
.m-tab:active { transform: scale(.94); }
.m-tab.is-active { color: var(--ink-pink); font-weight: 700; }
.m-tab-badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- 底部彈層（Bottom Sheet） ---------- */
.m-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(24 24 27 / 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--m-sheet-ease);
}
.m-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.m-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  max-height: 86vh;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: 19px 19px 0 0;
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .3s var(--m-sheet-ease), visibility 0s linear .3s;
  overscroll-behavior: contain;
}
.m-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .3s var(--m-sheet-ease), visibility 0s;
}

.m-sheet-grip {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--color-line);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.m-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px 12px;
  flex-shrink: 0;
}
.m-sheet-title { margin: 0; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.m-sheet-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--tint-grey);
  color: var(--color-text-2);
  font-size: 20px;
  cursor: pointer;
}
.m-sheet-close:active { transform: scale(.92); }
.m-sheet-body {
  padding: 0 16px calc(16px + var(--m-safe-b));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 購物車彈層 */
.m-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.m-cart-item-name { flex: 1; font-size: 16px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.m-cart-qty {
  min-width: 32px; height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--tint-pink);
  color: var(--ink-pink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
}
.m-cart-remove {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--radius-lg);
  background: none; color: var(--color-muted); font-size: 20px;
  cursor: pointer;
}
.m-cart-remove:active { background: var(--tint-pink-2); color: var(--ink-pink); }
.m-cart-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.m-cart-summary { text-align: center; font-size: 14px; color: var(--color-muted); }

/* 表單（彈層內） */
.m-field { margin-bottom: 16px; }
.m-field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-2);
  margin-bottom: 6px;
}
.m-field-label .m-optional { font-weight: 400; color: var(--color-muted); font-size: 12px; }
.m-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--hair-2);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
}
.m-input:focus { outline: 2px solid var(--brand-pink); outline-offset: 1px; border-color: var(--brand-pink); }
.m-input::placeholder { color: var(--color-muted); }
textarea.m-input { min-height: 80px; resize: vertical; }
/* 圖片上傳：拍照／選擇文件 */
.m-file-hidden {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.m-photo-actions { display: flex; gap: 10px; }
.m-photo-btn { flex: 1; }
.m-photo-btn i { font-size: 18px; }
.m-photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--hair-2);
  border-radius: var(--radius-lg);
  background: var(--tint-grey);
}
.m-photo-preview[hidden] { display: none; }
.m-photo-preview img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 6%);
  flex-shrink: 0;
}
.m-photo-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.m-photo-name {
  font-size: 14px; font-weight: 700; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-photo-size { font-size: 12px; color: var(--color-muted); }
.m-photo-clear {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  border-radius: var(--radius-lg);
  background: none;
  color: var(--color-muted);
  font-size: 20px;
  cursor: pointer;
}
.m-photo-clear:active { background: var(--tint-pink-2); color: var(--ink-pink); }

/* 充值：金額快捷 chips */
.m-amount-chips { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.m-amount-chip {
  flex: 1;
  min-width: 72px;
  min-height: 48px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--hair-2);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-2);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform .12s var(--m-sheet-ease);
}
.m-amount-chip:active { transform: scale(.95); }
.m-amount-chip.is-active {
  background: var(--tint-pink);
  border-color: var(--brand-pink);
  color: var(--ink-pink);
}
.m-amount-input-wrap { position: relative; }
.m-amount-input-wrap .m-cur-prefix {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px; font-weight: 700; color: var(--color-text-2);
  pointer-events: none;
}
.m-amount-input-wrap .m-input { padding-left: 64px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

.m-pending-box {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: var(--tint-amber);
  color: var(--ink-amber);
  margin-bottom: 16px;
}
.m-pending-box i { font-size: 34px; display: block; margin-bottom: 8px; }
.m-pending-box b { font-size: 16px; display: block; margin-bottom: 4px; }
.m-pending-box span { font-size: 14px; }

/* 頁尾 */
.m-footer {
  text-align: center;
  padding: 24px 16px 8px;
  font-size: 12px;
  color: var(--color-muted);
}

/* 桌面版連結（手機頁右上角備援） */
.m-desktop-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  font-size: 12px; color: var(--color-muted); text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .m-sheet, .m-sheet-backdrop, .m-btn, .m-fab, .m-tab, .m-btn-plus, .m-btn-icon, .m-toast {
    transition: none; animation: none;
  }
}

/* ===== 手機版後台（admin_mobile.html）===== */
.m-adm-sec { display: none; }
.m-adm-sec.is-active { display: block; }
.m-sec-title { font-size: 14px; font-weight: 800; color: var(--color-text-2); margin: 14px 0 8px; }
.m-adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.m-adm-stat { background: #fff; border: 1px solid var(--hair-2); border-radius: 12px; padding: 10px 6px; text-align: center; }
.m-adm-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--ink-pink); }
.m-adm-stat span { font-size: 12px; color: var(--color-text-2); }
.m-adm-card { background: #fff; border: 1px solid var(--hair-2); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.m-adm-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.m-adm-name { font-size: 14px; font-weight: 700; color: var(--color-text); }
.m-adm-amount { font-size: 16px; font-weight: 800; color: var(--ink-pink); white-space: nowrap; }
.m-adm-meta { font-size: 12px; color: var(--color-text-2); margin-top: 4px; line-height: 1.6; }
.m-adm-actions { display: flex; gap: 8px; margin-top: 10px; }
.m-adm-btn { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--hair-2); font-size: 14px; font-weight: 700; background: #fff; color: var(--color-text); cursor: pointer; }
.m-adm-btn-ok { background: var(--ink-green); border-color: var(--ink-green); color: #fff; }
.m-adm-btn-danger { color: var(--ink-pink); border-color: var(--ink-pink); }
.m-adm-item { display: flex; gap: 10px; align-items: center; }
.m-adm-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--tint-grey); }
.m-adm-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--tint-pink); color: var(--ink-pink); white-space: nowrap; }
.m-adm-badge-green { background: var(--tint-green); color: var(--ink-green); }
.m-adm-badge-grey { background: var(--tint-grey); color: var(--color-text-2); }
.m-adm-note { font-size: 12px; color: var(--color-text-2); margin: 4px 0 10px; line-height: 1.7; }
.m-adm-note a { color: var(--ink-cyan); font-weight: 700; }
