/* ==========================================================================
   會員專區（App 型介面）樣式 — 僅 /app/ 各頁載入（規格：md/MEMBER_APP_SPEC.md）
   與官網 style.css 並存：沿用其 :root tokens（--gold / --ivory …），
   本檔一律以 .app- 前綴，不覆寫官網既有 class。
   行動優先：以手機視窗為準；桌機僅單欄置中（§7 行動優先守則）。
   ========================================================================== */

:root {
  --app-tabbar-h: 64px;
  --app-header-h: 56px;
  --app-shell-w: 480px;
  --app-line: rgba(239, 189, 108, 0.18);
  --app-card-line: rgba(239, 189, 108, 0.14);
  --app-card-bg: rgba(255, 255, 255, 0.04);
  --app-dim: rgba(231, 241, 227, 0.55);
}

.app-body {
  min-height: 100dvh;
  background: #080707;
}

/* hidden 屬性優先權保險（.app-form 等 display 規則不得蓋過） */
[hidden] {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: var(--app-shell-w);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   精簡 header（返回 ＋ 頁標題 ＋ 品牌）— 固定頂部
   -------------------------------------------------------------------------- */

.app-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(8, 7, 7, 0.92);
  border-bottom: 1px solid var(--app-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-top: env(safe-area-inset-top, 0px);
}

.app-header__inner {
  width: min(var(--app-shell-w), 100%);
  height: var(--app-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
}

.app-header__back {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: rgba(239, 189, 108, 0.92);
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}

.app-header__title {
  flex: 1;
  margin: 0;
  /* 對齊官網 .site-header__brand-main：金色調＋寬間距，避免純白粗體突兀 */
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(239, 189, 108, 0.94);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.app-header__brand img {
  display: block;
  width: 76px;
  max-height: calc(var(--app-header-h) - 16px);
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   主內容 — 預留上下固定元素空間
   -------------------------------------------------------------------------- */

.app-main {
  padding-top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px) + 16px);
  padding-inline: 16px;
  padding-bottom: calc(var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px) + 28px);
}

/* --------------------------------------------------------------------------
   底部 Tab Bar（§3.3）— 固定底部、safe-area、48px 點擊區
   -------------------------------------------------------------------------- */

.app-tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(8, 7, 7, 0.92);
  border-top: 1px solid var(--app-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-tabbar__list {
  width: min(var(--app-shell-w), 100%);
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-tabbar__item {
  flex: 1;
}

.app-tabbar__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--app-tabbar-h);
  min-width: 48px;
  color: var(--app-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.app-tabbar__link svg {
  width: 24px;
  height: 24px;
}

.app-tabbar__link[aria-current="page"] {
  color: var(--gold);
}

.app-tabbar__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  background: var(--gold);
}

.app-tabbar__badge {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(5px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   骨架佔位卡（空殼頁用；之後由各頁實際元件取代）
   -------------------------------------------------------------------------- */

.app-placeholder {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  padding: 32px 20px;
  text-align: center;
  color: rgba(231, 241, 227, 0.78);
  font-size: 16px;
  line-height: 1.85;
}

.app-placeholder__kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.app-placeholder p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   最新名單（§4.1）— 資訊列 ＋ 名單卡
   -------------------------------------------------------------------------- */

.app-lead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2px 2px 14px;
  color: var(--app-dim);
  font-size: 15px;
}

.app-lead strong {
  color: var(--gold);
  font-weight: 600;
}

.app-card {
  display: block;
  margin-bottom: 18px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  text-decoration: none;
  color: var(--ivory);
}

.app-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.app-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 上下漸層遮罩：讓契合指數與姓名疊在照片上仍保持對比（§7） */
.app-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0) 34%);
  pointer-events: none;
}

.app-card__score {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
}

/* 有左上緞帶時，契合指數往下讓位（§4.1 v0.4） */
.app-card--ribbon .app-card__score {
  top: 66px;
}

.app-card__name {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.app-card__name strong {
  font-size: 18px;
  font-weight: 600;
}

.app-card__name span {
  font-size: 14px;
  color: rgba(231, 241, 227, 0.82);
}

.app-card__chip-new {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border: 1px solid rgba(239, 189, 108, 0.6);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  background: rgba(8, 7, 7, 0.35);
}

/* 右上狀態 badge＝我的狀態（金）；左上緞帶＝對方的狀態（暗紅）（§4.1） */
.app-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* 剩餘時間框（心動兩子頁的照片右上；最新名單不放） */
.app-card__timeleft {
  padding: 4px 10px;
  background: rgba(231, 241, 227, 0.92);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.app-card__timeleft--corner {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* 五顆星評分（PM 需求 1）：底星灰、覆蓋層金，寬度＝分數% */
.app-stars {
  position: relative;
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 2px;
  color: rgba(231, 241, 227, 0.22);
}

.app-stars__base {
  white-space: nowrap;
}

.app-stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

.app-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-stars__num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.app-stars__label {
  font-size: 14px;
  color: rgba(231, 241, 227, 0.7);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.app-stars--lg .app-stars__label {
  font-size: 16px;
}

.app-stars--lg .app-stars {
  font-size: 26px;
  letter-spacing: 4px;
}

.app-stars--lg .app-stars__num {
  font-size: 25px;
}

/* 照片內的連結（心動頁等）：不掉回瀏覽器預設藍色 */
.app-card__media,
.app-card__media:visited {
  color: var(--ivory);
  text-decoration: none;
}

/* 狀態 Tag 疊在照片左上（橫向排列；右側留空給倒數框） */
.app-card__phototags {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 110px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-card__phototags .app-tag {
  background: rgba(8, 7, 7, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.app-card__phototags .app-tag--sent {
  border-color: rgba(239, 189, 108, 0.7);
}

.app-card__phototags .app-tag--read {
  background: rgba(96, 17, 22, 0.82);
  color: #eeb3b3;
}

/* 照片下方的評分列（PM 需求 1） */
.app-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px 0;
}

.app-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.app-tag {
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.app-tag--new {
  border-color: rgba(239, 189, 108, 0.55);
  color: var(--gold);
}

.app-tag--sent {
  background: rgba(239, 189, 108, 0.16);
  border-color: rgba(239, 189, 108, 0.4);
  color: var(--gold);
}

.app-tag--read {
  background: rgba(139, 30, 36, 0.28);
  border-color: rgba(139, 30, 36, 0.75);
  color: #e0a1a1;
}

.app-tag--off {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--app-dim);
}

/* 綜合評價（詳情頁）：細項長條不再顯示數字。
   雙類名提高優先權——基礎 .app-meter 的三欄規則寫在檔案較後處，單類名會被蓋掉 */
.app-meter.app-meter--plain {
  grid-template-columns: 76px 1fr;
}

/* 會員中心大卡片選單（PM 需求 6：滿版大區塊取代小方格） */
.app-bigmenu {
  display: grid;
  gap: 12px;
}

.app-bigmenu a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  color: var(--ivory);
  text-decoration: none;
}

.app-bigmenu svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.app-bigmenu strong {
  display: block;
  font-size: 17px;
}

.app-bigmenu p {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--app-dim);
}

.app-bigmenu__arrow {
  margin-left: auto;
  color: rgba(239, 189, 108, 0.6);
  font-size: 22px;
}

/* 會員登入（假頁面，PM 需求 7） */

.app-login {
  max-width: 380px;
  margin-inline: auto;
  padding-top: 10px;
  text-align: center;
}

.app-login__logo {
  display: block;
  width: 132px;
  margin: 8px auto 4px;
}

.app-login__slogan {
  margin: 0 0 24px;
  color: var(--app-dim);
  font-size: 14px;
  letter-spacing: 0.22em;
}

.app-login__form {
  display: grid;
  gap: 14px;
  text-align: left;
  margin-bottom: 6px;
}

.app-login__form label {
  font-size: 14px;
  color: rgba(239, 189, 108, 0.8);
}

/* 註冊頁（2026-08-04）也用這組表單樣式，故 select 一併納入——
   漏掉會變成瀏覽器預設白底下拉，在黑金介面上非常突兀 */
.app-login__form input,
.app-login__form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
}

.app-login__form select { appearance: none; }
/* 展開的原生選單由系統繪製，深底白字在部分瀏覽器不套用 → option 明確給亮底深字 */
.app-login__form option { color: #111; background: #fff; }

/* 註冊頁簡訊驗證列（2026-08-06）：驗證碼輸入＋發送鈕並排 */
.app-otp-row {
  display: flex;
  gap: 10px;
}
.app-otp-row input {
  flex: 1;
  min-width: 0;
}
.app-otp-row .app-btn {
  flex: 0 0 auto;
  width: auto;
  padding-inline: 14px;
  white-space: nowrap;
}

.app-login__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
  color: var(--app-dim);
  font-size: 13px;
}

.app-login__divider::before,
.app-login__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.app-login .app-btn--ghost {
  text-decoration: none;
}

/*
 * LINE 登入鈕（2026-07-30）。
 * #06c755 是 LINE 官方品牌綠，屬外部品牌規範要求——本專案「不新增色票」原則的唯一例外，
 * 只准用在這顆按鈕，不得擴散到其他元件。
 */
.app-login .app-btn--line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
}

.app-login .app-btn--line:hover,
.app-login .app-btn--line:focus-visible {
  background: #05b34c;
}

.app-btn--line svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

/* 會員中心可操作表單（PM 缺口②） */

.app-form {
  display: block;
  text-align: left;
}

.app-form label {
  display: block;
  font-size: 14px;
  color: rgba(239, 189, 108, 0.8);
}

.app-form input,
.app-form select,
.app-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
}

.app-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(239, 189, 108, 0.7) 50%), linear-gradient(135deg, rgba(239, 189, 108, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.app-form select option {
  background: #16120d;
  color: var(--ivory);
}

.app-form textarea {
  resize: vertical;
  line-height: 1.8;
}

.app-form .app-btn {
  margin-top: 16px;
}

.app-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.app-fieldset {
  margin-top: 18px;
}

.app-fieldset > p {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(239, 189, 108, 0.8);
}

/* 勾選／單選膠囊（大點擊區，適齡設計） */
.app-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-check {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory) !important;
  font-size: 15px !important;
  cursor: pointer;
}

.app-check input {
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--gold);
}

.app-check:has(input:checked) {
  border-color: rgba(239, 189, 108, 0.6);
  background: rgba(239, 189, 108, 0.12);
}

.app-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 112px;
  overflow: hidden;
  pointer-events: none;
}

.app-ribbon span {
  position: absolute;
  top: 26px;
  left: -36px;
  width: 152px;
  transform: rotate(-45deg);
  background: var(--red);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 5px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.app-card__info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: rgba(231, 241, 227, 0.82);
  border-top: 1px solid var(--app-card-line);
}

/* --------------------------------------------------------------------------
   對象詳細頁（§4.2）
   -------------------------------------------------------------------------- */

.app-gallery {
  position: relative;
  border: 1px solid var(--app-card-line);
}

.app-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.app-gallery__track figure {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
}

.app-gallery__track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0) 34%);
  pointer-events: none;
}

.app-gallery .app-card__score,
.app-gallery .app-card__name {
  z-index: 2;
}

.app-album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.app-album__slot {
  position: relative; /* C1：刪除鈕定位 */
  aspect-ratio: 1;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  display: grid;
  place-items: center;
  color: rgba(239, 189, 108, 0.4);
  overflow: hidden;
}

/* C1 相簿真上傳：已上傳格右上角的刪除鈕 */
.app-album__del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 7, 7, 0.72);
  color: var(--ivory);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.app-album__slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-album__slot svg {
  width: 28px;
  height: 28px;
}

.app-btn {
  display: block;
  width: 100%;
  padding: 15px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  border: 0;
  cursor: pointer;
}

.app-btn--primary {
  background: var(--gold);
  color: var(--black);
}

.app-btn--primary[disabled] {
  background: rgba(231, 241, 227, 0.16);
  color: rgba(231, 241, 227, 0.62);
  cursor: default;
}

.app-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.app-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(231, 241, 227, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  font-size: 15px;
}

.app-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--app-dim);
  font-size: 14px;
  line-height: 1.8;
}

.app-section {
  margin-top: 26px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  padding: 22px 16px;
}

.app-section__title {
  margin: 0 0 18px;
  text-align: center;
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

/* 見面聊的偏好 */

.app-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: center;
}

.app-slot {
  border: 1px solid var(--app-card-line);
  padding: 14px 8px;
}

.app-slot h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ivory);
}

.app-slot p {
  margin: 0;
  font-size: 15px;
  color: var(--app-dim);
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.app-chip {
  padding: 6px 14px;
  border: 1px solid rgba(239, 189, 108, 0.45);
  color: var(--gold);
  font-size: 14px;
}

/* 卡片上的加分特質小標籤 */
.app-chip--sm {
  padding: 4px 10px;
  font-size: 13px;
}

.app-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-top: 18px;
}

.app-fact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--ivory);
}

.app-fact svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.app-style-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
  color: var(--app-dim);
}

.app-style-row b {
  color: var(--ivory);
  font-weight: 500;
}

/* 約會風格四項版（時間觀念／儀態氣質／舉止風度／交談氛圍） */
.app-style-row--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  text-align: center;
}

/* 初見約會小建議 */
.app-tips {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border: 1px solid var(--app-card-line);
  background: rgba(239, 189, 108, 0.05);
}

.app-tips__title {
  margin: 0 0 10px;
  text-align: center;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.app-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-tips li {
  font-size: 15px;
  line-height: 2;
  color: rgba(231, 241, 227, 0.88);
}

.app-tips li b {
  color: var(--gold);
  font-weight: 600;
}

/* 契合指數 */

.app-compat__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.app-compat__total .app-rating {
  flex: 0 0 auto;
}

.app-compat__num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.app-compat__cap {
  font-size: 15px;
  color: var(--app-dim);
}

.app-meter {
  display: grid;
  grid-template-columns: 66px 32px 1fr;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 14px;
}

.app-meter__label {
  color: rgba(231, 241, 227, 0.82);
}

.app-meter__val {
  color: var(--gold);
  text-align: right;
}

.app-meter__track {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(239, 189, 108, 0.22);
}

.app-meter__fill {
  display: block;
  height: 100%;
  background: var(--gold);
}

/* 個人摘要 */

.app-table {
  margin: 0;
}

.app-table > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.app-table dt {
  color: rgba(239, 189, 108, 0.78);
  font-size: 15px;
}

.app-table dd {
  margin: 0;
  color: var(--ivory);
  font-size: 16px;
}

.app-wt__title {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(239, 189, 108, 0.8);
  letter-spacing: 0.16em;
}

.app-wt {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
}

.app-wt__group {
  text-align: center;
  font-size: 13px;
  color: var(--app-dim);
}

.app-wt__boxes {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.app-wt__box {
  min-width: 36px;
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  text-align: center;
  color: var(--app-dim);
}

.app-wt__box--on {
  background: rgba(239, 189, 108, 0.22);
  border-color: rgba(239, 189, 108, 0.5);
  color: var(--ivory);
}

/* 關於我 */

.app-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ivory);
}

.app-qa dt {
  margin-top: 18px;
  color: rgba(239, 189, 108, 0.8);
  font-size: 15px;
}

.app-qa dd {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ivory);
}

/* 空狀態（§4.7）：說明＋行動指引 */

.app-empty {
  text-align: center;
  padding: 26px 12px;
  color: var(--app-dim);
  font-size: 15px;
  line-height: 1.9;
}

.app-empty svg {
  width: 34px;
  height: 34px;
  color: rgba(239, 189, 108, 0.45);
  margin-bottom: 8px;
}

/* 詳細頁固定底部動作列（取代 Tab Bar，§4.2） */

.app-actionbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(8, 7, 7, 0.92);
  border-top: 1px solid var(--app-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.app-actionbar .app-btn {
  max-width: calc(var(--app-shell-w) - 32px);
}

.app-actionbar .app-btn--primary {
  text-decoration: none; /* 進入聊天為 <a> */
}

.app-actionbar__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  width: min(calc(var(--app-shell-w) - 32px), 100%);
}

.app-header__title a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   想見（§4.3）— 子頁切換 ＋ 想見卡
   -------------------------------------------------------------------------- */

.app-subtabs {
  display: flex;
  margin: -4px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-subtabs a {
  position: relative;
  flex: 1;
  padding: 13px 0;
  text-align: center;
  font-size: 16px;
  color: var(--app-dim);
  text-decoration: none;
}

.app-subtabs a[aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}

.app-subtabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
}

.app-subtabs__badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 2px;
}

.app-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--app-card-line);
  background: rgba(239, 189, 108, 0.06);
  color: rgba(231, 241, 227, 0.8);
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
}

.app-card__actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  padding: 12px 16px 16px;
}

.app-card--expired {
  filter: grayscale(1);
  opacity: 0.7;
}

.app-card__state {
  padding: 0 16px 14px;
  text-align: center;
  color: var(--app-dim);
  font-size: 14px;
}

.app-card__state--ok {
  color: var(--gold);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   我的朋友（§4.4）
   -------------------------------------------------------------------------- */

.app-friend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: var(--ivory);
}

.app-friend__avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--app-card-line);
}

.app-friend__main {
  flex: 1;
  min-width: 0;
}

.app-friend__name {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.app-friend__last {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--app-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-friend__side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 13px;
  color: var(--app-dim);
}

.app-friend__dot {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--red);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.app-friend__lock {
  font-size: 12px;
  color: rgba(239, 189, 108, 0.75);
}

.app-friend__date {
  color: rgba(239, 189, 108, 0.85);
}

/* 約會分頁（我的朋友 › 約會）：彙總面板 */

.app-datehead {
  margin: 20px 2px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(239, 189, 108, 0.8);
}

.app-datecard {
  margin-bottom: 14px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  padding: 16px;
}

.app-datecard--done {
  opacity: 0.75;
}

.app-datecard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.app-datecard__head strong {
  font-size: 17px;
}

.app-datecard__tag {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--app-card-line);
  font-size: 12px;
  color: var(--app-dim);
  white-space: nowrap;
}

.app-datecard__pair {
  margin: 14px 0 6px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

.app-datecard__when {
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--ivory);
  line-height: 1.8;
}

.app-datecard__cancel {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--app-dim);
  text-decoration: underline;
  cursor: pointer;
}

.app-datecard__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.app-datecard__actions .app-btn {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  text-decoration: none;
}

.app-datecard__status {
  margin: 14px -16px -16px;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--app-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-datecard__status--ok {
  background: rgba(239, 189, 108, 0.1);
  color: rgba(239, 189, 108, 0.9);
}

.app-datecard__status--cancelled {
  background: rgba(139, 30, 36, 0.16);
  color: #dd8b8b;
}

/* 原因選單 Bottom Sheet（取消約會／檢舉會員共用，沿用 .app-sheet 骨架）
   ——不掛 class 的裸 button 會吃到瀏覽器預設白底，看起來像破版 */

.app-sheet__panel button[data-cancel-reason],
.app-sheet__panel button[data-report-reason] {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: none;
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.app-sheet__panel button[data-cancel-reason]:active,
.app-sheet__panel button[data-report-reason]:active {
  background: rgba(139, 30, 36, 0.18);
}

/* 檢舉最後一項不留懸空分隔線（下方緊接說明文字，非另一個可點項目）；
   取消 sheet 不套用——它最後一項下面還接「其他原因」輸入框，線要留著分段 */
.app-sheet__panel button[data-report-reason]:last-of-type {
  border-bottom: 0;
}

.app-sheet__form {
  display: flex;
  gap: 10px;
  padding: 14px 18px 6px;
}

.app-sheet__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
}

.app-sheet__form .app-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 12px 16px;
  font-size: 15px;
}

.app-sheet__note {
  margin: 0;
  padding: 10px 18px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--app-dim);
}

/* 發起約會 sheet（C3）：直向堆疊表單 */
.app-sheet__stack {
  display: grid;
  gap: 12px;
  padding: 14px 18px 8px;
  text-align: left;
}

.app-sheet__stack label {
  font-size: 14px;
  color: rgba(239, 189, 108, 0.8);
}

.app-sheet__stack input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
  color-scheme: dark; /* 原生日期/時間選擇器用深色 */
}

/* 聊天室頂條的「發起約會」為正向動作 → 金色（蓋過預設暗紅） */
.app-chat__notice button[data-date-open] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 600;
}

/* 對方邀約待確認：同意（金）＋婉拒（灰）並排 */
.app-chat__notice--propose { flex-wrap: wrap; }
.app-chat__notice-actions { display: flex; gap: 8px; }
.app-chat__notice button[data-date-accept] {
  background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600;
}
.app-chat__notice button[data-date-decline],
.app-chat__notice button[data-date-withdraw] {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--app-dim);
}

.app-datecard.app-chat__notice--cancelled {
  text-align: center;
  color: rgba(231, 241, 227, 0.65);
  border-color: rgba(139, 30, 36, 0.6);
  background: rgba(139, 30, 36, 0.12);
}

/* --------------------------------------------------------------------------
   聊天室（§4.5）
   -------------------------------------------------------------------------- */

.app-chat__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--app-card-line);
  background: rgba(239, 189, 108, 0.06);
  color: rgba(231, 241, 227, 0.85);
  font-size: 14px;
  text-align: left;
  line-height: 1.6;
}

.app-chat__notice button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid rgba(139, 30, 36, 0.85);
  background: rgba(139, 30, 36, 0.18);
  color: rgba(231, 241, 227, 0.9);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.app-chat__notice button[data-confirming] {
  background: var(--red);
  font-weight: 600;
}

.app-chat__notice--cancelled {
  justify-content: center;
  border-color: rgba(139, 30, 36, 0.6);
  background: rgba(139, 30, 36, 0.12);
  color: rgba(231, 241, 227, 0.65);
}

.app-chat__unlock {
  margin: 0 0 14px;
  text-align: center;
  color: rgba(239, 189, 108, 0.85);
  font-size: 14px;
}

.app-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 12px 0;
}

.app-msg--me {
  justify-content: flex-end;
}

.app-msg__bubble {
  max-width: 76%;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

.app-msg--them .app-msg__bubble {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ivory);
}

.app-msg--me .app-msg__bubble {
  background: var(--gold);
  color: var(--black);
}

.app-msg__meta {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.5;
  color: var(--app-dim);
  text-align: right;
}

/* 底部輸入列（聊天室取代 Tab Bar） */

.app-chatbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(8, 7, 7, 0.92);
  border-top: 1px solid var(--app-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}

.app-chatbar form,
.app-chatbar__inner {
  display: flex;
  gap: 10px;
  width: min(calc(var(--app-shell-w) - 32px), 100%);
}

.app-chatbar input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
}

.app-chatbar input::placeholder {
  color: var(--app-dim);
}

.app-chatbar input[readonly] {
  cursor: pointer;
}

.app-chatbar__send {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  cursor: pointer;
}

.app-chatbar__send svg {
  width: 22px;
  height: 22px;
}

/* 罐頭訊息 Bottom Sheet */

.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.app-sheet--open {
  display: block;
}

.app-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.app-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--app-shell-w);
  margin-inline: auto;
  max-height: 62dvh;
  overflow-y: auto;
  background: #16120d;
  border: 1px solid var(--app-line);
  border-bottom: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}

.app-sheet__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #16120d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.app-sheet__close {
  border: 0;
  background: none;
  color: var(--app-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

/* 罐頭訊息選單：分類標題＋自動換行標籤（短句一排多顆、長句佔整行，減少下滑） */
.app-sheet__group {
  margin: 0;
  padding: 14px 16px 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(239, 189, 108, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sheet__group:first-child {
  border-top: 0;
}

.app-sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 8px;
}

.app-sheet__chips button[data-canned] {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ivory);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
}

.app-sheet__chips button[data-canned]:active {
  background: rgba(239, 189, 108, 0.14);
  border-color: rgba(239, 189, 108, 0.5);
}

/* --------------------------------------------------------------------------
   「我的」選單（§4.6）
   -------------------------------------------------------------------------- */

.app-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.app-menu a {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px 8px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  color: var(--ivory);
  font-size: 15px;
  text-decoration: none;
}

.app-menu a svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

/* ── C7 通知鈴鐺（header；PM 表五：通知不佔 Tab）──────────── */
.app-bell {
  position: relative;
  flex: 0 0 auto;
}

.app-bell__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: rgba(239, 189, 108, 0.92);
  cursor: pointer;
}

.app-bell__btn svg {
  width: 24px;
  height: 24px;
}

.app-bell__badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.app-bell__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  width: min(300px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: rgba(14, 12, 11, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  z-index: 40;
}

.app-bell__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ivory);
  font-size: 16px;
  text-decoration: none;
}

.app-bell__item:hover {
  background: rgba(239, 189, 108, 0.08);
}

.app-bell__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--red);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.app-bell__empty {
  margin: 0;
  padding: 16px 14px;
  color: rgba(231, 241, 227, 0.55);
  font-size: 15px;
}

/* ==========================================================================
   動效系統（v0.25, 2026-07-30）— 入場動畫 ＋ 觸控回饋
   --------------------------------------------------------------------------
   目的：介面「按下去沒感覺」→ 補上克制、有質感的回饋。設計約束：
     · 只用 opacity / transform（合成層屬性），不動 layout，手機不掉幀
     · 慢起快收的緩出曲線，位移幅度小（≤18px）、縮放幅度小（≥0.975）
     · 不新增色票：光暈一律用既有 --gold / 黑，靠透明度做層次
     · 全站啟用：head.php 預設輸出 <body class="app-body app-motion">；
       個別頁要關掉就在 require head 之前設 $appMotion = false
     · 無障礙：prefers-reduced-motion: reduce 一律關閉（見本區塊末）
   JS 增強（app.js「動效」段）為選配：沒有 JS 也會走 CSS-only stagger 進場，
   內容絕不會因為腳本沒載入而卡在透明狀態。
   ========================================================================== */

.app-motion {
  /* 緩出曲線：慢起快收，收尾長 —— 高單價品牌慣用的「穩重」感 */
  --app-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --app-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --app-t-press: 130ms; /* 觸壓：要跟得上手指 */
  --app-t-state: 260ms; /* 狀態轉換 */
  --app-t-enter: 620ms; /* 入場 */
}

@keyframes app-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes app-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes app-fade-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes app-bar-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 目前頁底線由中央展開，取代「唰」地出現 */
@keyframes app-underline {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes app-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   入場：固定框架（header / tabbar）→ 資訊列 → 內容，依序浮現
   -------------------------------------------------------------------------- */

.app-motion .app-header {
  animation: app-fade-down 420ms var(--app-ease) both;
}

.app-motion .app-tabbar {
  animation: app-bar-in 420ms var(--app-ease) both;
  animation-delay: 60ms;
}

.app-motion .app-lead {
  animation: app-fade-up 520ms var(--app-ease) both;
  animation-delay: 90ms;
}

/* 各頁的「內容主體」— 一律依序浮現。清單刻意逐項列出而非通配，
   聊天泡泡（.app-msg）等會被 JS 動態重繪的元素不列入，免得每次輪詢都閃。 */
.app-motion .app-card,
.app-motion .app-friend,
.app-motion .app-datecard,
.app-motion .app-datehead,
.app-motion .app-bigmenu a,
.app-motion .app-section,
.app-motion .app-fieldset,
.app-motion .app-album,
.app-motion .app-gallery,
.app-motion .app-empty,
.app-motion .app-placeholder,
.app-motion .app-login {
  animation: app-enter var(--app-t-enter) var(--app-ease) both;
  animation-delay: 140ms;
}

/* 保底（無 JS）：同型元素依序疊延遲，最多到第 5 個，之後不再累加 */
.app-motion .app-card:nth-of-type(2),
.app-motion .app-friend:nth-of-type(2),
.app-motion .app-datecard:nth-of-type(2),
.app-motion .app-bigmenu a:nth-of-type(2),
.app-motion .app-section:nth-of-type(2),
.app-motion .app-fieldset:nth-of-type(2) { animation-delay: 200ms; }

.app-motion .app-card:nth-of-type(3),
.app-motion .app-friend:nth-of-type(3),
.app-motion .app-datecard:nth-of-type(3),
.app-motion .app-bigmenu a:nth-of-type(3),
.app-motion .app-section:nth-of-type(3),
.app-motion .app-fieldset:nth-of-type(3) { animation-delay: 260ms; }

.app-motion .app-card:nth-of-type(4),
.app-motion .app-friend:nth-of-type(4),
.app-motion .app-datecard:nth-of-type(4),
.app-motion .app-bigmenu a:nth-of-type(4),
.app-motion .app-section:nth-of-type(4),
.app-motion .app-fieldset:nth-of-type(4) { animation-delay: 320ms; }

.app-motion .app-card:nth-of-type(n + 5),
.app-motion .app-friend:nth-of-type(n + 5),
.app-motion .app-datecard:nth-of-type(n + 5),
.app-motion .app-bigmenu a:nth-of-type(n + 5),
.app-motion .app-section:nth-of-type(n + 5),
.app-motion .app-fieldset:nth-of-type(n + 5) { animation-delay: 380ms; }

/* 頁內小構件：子分頁列、提示句，跟著資訊列一起淡上來。
   聊天室只讓頂部通知條／解鎖提示淡入，訊息泡泡（.app-msg）一律不動——
   輪詢每 5 秒可能重繪，會讓對話整片閃。 */
.app-motion .app-subtabs,
.app-motion .app-hint,
.app-motion .app-intro,
.app-motion .app-chat__notice,
.app-motion .app-chat__unlock {
  animation: app-fade-up 520ms var(--app-ease) both;
  animation-delay: 90ms;
}

/* 固定底部的操作列（詳情頁 CTA、聊天輸入列）：與 Tab Bar 同步淡入 */
.app-motion .app-actionbar,
.app-motion .app-chatbar {
  animation: app-bar-in 420ms var(--app-ease) both;
  animation-delay: 60ms;
}

/* JS 增強：首屏以外的內容先掛 .is-pending 壓住（使用者還看不到，不會察覺），
   捲到時才加 .is-in 播放 —— 下方內容不再「在看不見的地方播完」。
   只標記視窗外的元素，首屏維持上面的 CSS stagger，因此不會有隱藏閃爍。 */
.app-motion .is-pending {
  animation: none;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
}

.app-motion .is-pending.is-in {
  animation: app-enter var(--app-t-enter) var(--app-ease) both;
  animation-delay: 0ms;
}

/* 巢狀時只讓外層播（例：編輯表單 form.app-section 內的 .app-fieldset），
   免得父子位移疊加。這裡一併寫死 opacity/transform —— 內層即使被誤標
   .is-pending 也保證看得見，動畫可以不播，內容不能不見。 */
.app-motion .app-section .app-fieldset,
.app-motion .app-section .app-album,
.app-motion .app-section .app-gallery,
.app-motion .app-section .app-card,
.app-motion .app-section .app-friend,
.app-motion .app-section .app-empty {
  animation: none;
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   觸控回饋：按下＝縮一點點 ＋ 金色微光；放開自然彈回
   -------------------------------------------------------------------------- */

/* 按壓態一律「:active ＋ .is-pressed」雙寫：
   iOS Safari 的 :active 只有在元素/祖先綁了 touch 監聽時才會觸發，加上這裡把
   -webkit-tap-highlight 關掉（免得跳出系統灰框），手機上光靠 :active 會完全沒反應。
   .is-pressed 由 app.js 於 pointerdown 掛上、放開即移除 —— 手機與桌機表現一致。 */

.app-motion .app-card {
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    border-color var(--app-t-state) var(--app-ease-soft),
    box-shadow var(--app-t-state) var(--app-ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.app-motion .app-card:active,
.app-motion .app-card.is-pressed {
  transform: scale(0.985);
  border-color: rgba(239, 189, 108, 0.4);
  box-shadow: 0 12px 34px -14px rgba(239, 189, 108, 0.34);
}

/* 卡片按下時照片極輕微推近，帶出「往裡走一層」的層次 */
.app-motion .app-card__media img {
  transition: transform 420ms var(--app-ease);
}

.app-motion .app-card:active .app-card__media img,
.app-motion .app-card.is-pressed .app-card__media img {
  transform: scale(1.018);
}

.app-motion .app-btn {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    filter var(--app-t-press) var(--app-ease-soft),
    box-shadow var(--app-t-state) var(--app-ease-soft);
}

.app-motion .app-btn:active,
.app-motion .app-btn.is-pressed {
  transform: scale(0.975);
}

.app-motion .app-btn--primary:active,
.app-motion .app-btn--primary.is-pressed {
  filter: brightness(0.94);
  box-shadow: 0 8px 26px -10px rgba(239, 189, 108, 0.6);
}

.app-motion .app-btn--ghost:active,
.app-motion .app-btn--ghost.is-pressed {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(239, 189, 108, 0.32);
}

/* 停用中的按鈕不給任何回饋（回饋＝「有反應」的承諾） */
.app-motion .app-btn[disabled] {
  transform: none;
  filter: none;
  box-shadow: none;
}

/* 圖示鍵（返回、鈴鐺）：縮＋淡＋一圈淡金底，48px 點擊區內看得出被按到 */
.app-motion .app-header__back,
.app-motion .app-bell__btn {
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-press) var(--app-ease-soft),
    opacity var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-header__back:active,
.app-motion .app-header__back.is-pressed,
.app-motion .app-bell__btn:active,
.app-motion .app-bell__btn.is-pressed {
  transform: scale(0.88);
  background: rgba(239, 189, 108, 0.14);
  opacity: 0.86;
}

.app-motion .app-bell__panel:not([hidden]) {
  transform-origin: top right;
  animation: app-pop 220ms var(--app-ease) both;
}

.app-motion .app-bell__item {
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-bell__item:active,
.app-motion .app-bell__item.is-pressed {
  background: rgba(239, 189, 108, 0.12);
}

/* Tab Bar：整格亮起（底部一層淡金光暈）＋ icon 縮 ＋ 文字轉金。
   只縮 icon 在手機上幾乎看不出來，故連整格底色一起給。 */
.app-motion .app-tabbar__link {
  transition:
    color var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-tabbar__link svg {
  transition: transform var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-tabbar__link:active,
.app-motion .app-tabbar__link.is-pressed {
  color: var(--gold);
  background: radial-gradient(120% 90% at 50% 100%, rgba(239, 189, 108, 0.16), rgba(239, 189, 108, 0) 70%);
}

.app-motion .app-tabbar__link:active svg,
.app-motion .app-tabbar__link.is-pressed svg {
  transform: scale(0.86);
}

.app-motion .app-tabbar__link[aria-current="page"]::before {
  transform-origin: center;
  animation: app-underline 460ms var(--app-ease) both;
  animation-delay: 220ms;
}

/* 列表列（訊息／朋友）與會員中心大選單：整列亮起 ＋ 微縮，跟名單卡同一套語彙 */
.app-motion .app-friend,
.app-motion .app-bigmenu a {
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    border-color var(--app-t-state) var(--app-ease-soft),
    background-color var(--app-t-state) var(--app-ease-soft);
}

.app-motion .app-friend:active,
.app-motion .app-friend.is-pressed,
.app-motion .app-bigmenu a:active,
.app-motion .app-bigmenu a.is-pressed {
  transform: scale(0.985);
  border-color: rgba(239, 189, 108, 0.36);
  background: rgba(239, 189, 108, 0.07);
}

/* 大選單右側箭頭：按下時往前推一點，暗示「要前往」 */
.app-motion .app-bigmenu__arrow {
  transition: transform var(--app-t-state) var(--app-ease);
}

.app-motion .app-bigmenu a:active .app-bigmenu__arrow,
.app-motion .app-bigmenu a.is-pressed .app-bigmenu__arrow,
.app-motion .app-bigmenu a.is-navigating .app-bigmenu__arrow {
  transform: translateX(3px);
}

/* 子分頁（心動／我的朋友上方的切換） */
.app-motion .app-subtabs a {
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-subtabs a:active,
.app-motion .app-subtabs a.is-pressed {
  color: var(--gold);
  background: rgba(239, 189, 108, 0.1);
}

/* 可點的小元件（罐頭訊息、取消原因、檢舉原因、chip、相簿、送出鍵、關閉鍵） */
.app-motion a.app-chip,
.app-motion button.app-chip,
.app-motion .app-datecard__cancel,
.app-motion .app-chatbar__send,
.app-motion .app-sheet__close,
.app-motion .app-album__slot,
.app-motion .app-album__del,
.app-motion .app-sheet__chips button[data-canned],
.app-motion .app-sheet__panel button[data-cancel-reason],
.app-motion .app-sheet__panel button[data-report-reason] {
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-press) var(--app-ease-soft);
}

.app-motion a.app-chip:active,
.app-motion a.app-chip.is-pressed,
.app-motion button.app-chip:active,
.app-motion button.app-chip.is-pressed,
.app-motion .app-datecard__cancel:active,
.app-motion .app-datecard__cancel.is-pressed,
.app-motion .app-chatbar__send:active,
.app-motion .app-chatbar__send.is-pressed,
.app-motion .app-sheet__close:active,
.app-motion .app-sheet__close.is-pressed,
.app-motion .app-album__slot:active,
.app-motion .app-album__slot.is-pressed,
.app-motion .app-album__del:active,
.app-motion .app-album__del.is-pressed,
.app-motion .app-sheet__chips button[data-canned]:active,
.app-motion .app-sheet__chips button[data-canned].is-pressed,
.app-motion .app-sheet__panel button[data-cancel-reason]:active,
.app-motion .app-sheet__panel button[data-cancel-reason].is-pressed,
.app-motion .app-sheet__panel button[data-report-reason]:active,
.app-motion .app-sheet__panel button[data-report-reason].is-pressed {
  transform: scale(0.96);
}

/* 罐頭訊息／原因清單是長條列，光靠縮放看不出來 → 按下時整條底色轉金 */
.app-motion .app-sheet__chips button[data-canned].is-pressed,
.app-motion .app-sheet__panel button[data-cancel-reason].is-pressed,
.app-motion .app-sheet__panel button[data-report-reason].is-pressed {
  background: rgba(239, 189, 108, 0.14);
}

/* 底部彈出面板（罐頭訊息、取消原因、檢舉原因）：從下方滑上來，不是瞬間出現 */
.app-motion .app-sheet--open .app-sheet__panel {
  animation: app-sheet-up 320ms var(--app-ease) both;
}

.app-motion .app-sheet--open .app-sheet__backdrop {
  animation: app-fade 220ms var(--app-ease-soft) both;
}

@keyframes app-sheet-up {
  from {
    transform: translateY(14%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes app-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   導航中回饋：點下到新頁畫出來之間有數百毫秒空窗（PHP 頁還要 loopback 打 API），
   這段若毫無交代，使用者會覺得「按了沒反應」而重複點。
   → 被點的目標保持高亮，另在 header 下緣跑一條極細金線交代「正在前往」。
   -------------------------------------------------------------------------- */

.app-motion .app-tabbar__link.is-navigating {
  color: var(--gold);
  background: radial-gradient(120% 90% at 50% 100%, rgba(239, 189, 108, 0.14), rgba(239, 189, 108, 0) 70%);
}

.app-motion .app-tabbar__link.is-navigating svg {
  transform: translateY(-1px);
}

/* 維持一點壓下感，避免放開瞬間彈回、下一刻又整頁換掉的跳動 */
.app-motion .app-card.is-navigating {
  transform: scale(0.994);
  border-color: rgba(239, 189, 108, 0.4);
  box-shadow: 0 12px 34px -14px rgba(239, 189, 108, 0.34);
  opacity: 0.88;
}

.app-motion .app-bell__item.is-navigating {
  background: rgba(239, 189, 108, 0.12);
}

.app-motion .app-friend.is-navigating,
.app-motion .app-bigmenu a.is-navigating {
  border-color: rgba(239, 189, 108, 0.36);
  background: rgba(239, 189, 108, 0.07);
}

.app-motion .app-subtabs a.is-navigating {
  color: var(--gold);
}

.app-progress {
  position: fixed;
  top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  height: 2px;
  z-index: 45;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(239, 189, 108, 0.35), var(--gold));
  animation: app-progress 8s cubic-bezier(0.12, 0.72, 0.2, 1) forwards;
  pointer-events: none;
}

/* 前段跑得快、後段趨緩且永遠不到底 —— 沒有假裝「快好了」的進度條 */
@keyframes app-progress {
  from {
    transform: scaleX(0);
    opacity: 1;
  }
  35% {
    transform: scaleX(0.55);
  }
  to {
    transform: scaleX(0.94);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   漣漪：按鈕觸點擴散一圈微光（由 app.js 插入 .app-ripple）
   金底鍵用暗色、深底鍵用金色 —— 都壓在極低透明度，只留「觸到了」的餘韻
   -------------------------------------------------------------------------- */

.app-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(239, 189, 108, 0.4), rgba(239, 189, 108, 0) 68%);
  animation: app-ripple 620ms var(--app-ease, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}

.app-btn--primary .app-ripple {
  background: radial-gradient(circle, rgba(8, 7, 7, 0.26), rgba(8, 7, 7, 0) 68%);
}

@keyframes app-ripple {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(34);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   無障礙：使用者在系統關掉動態效果時，一律不動
   （回饋改用不位移的色彩變化保留，仍看得出「按到了」）
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .app-motion *,
  .app-motion *::before,
  .app-motion *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }

  .app-motion .app-card.is-pending {
    opacity: 1;
    transform: none;
  }

  .app-motion .app-card:active,
  .app-motion .app-card.is-pressed,
  .app-motion .app-btn:active,
  .app-motion .app-btn.is-pressed,
  .app-motion .app-header__back:active,
  .app-motion .app-header__back.is-pressed,
  .app-motion .app-bell__btn:active,
  .app-motion .app-bell__btn.is-pressed,
  .app-motion .app-tabbar__link:active svg,
  .app-motion .app-tabbar__link.is-pressed svg,
  .app-motion .app-card:active .app-card__media img,
  .app-motion .app-card.is-pressed .app-card__media img {
    transform: none;
  }

  /* 按壓的顏色變化保留（仍看得出按到了），只是不位移 */

  .app-ripple {
    display: none;
  }
}

/* ── 金流頁（方案與付款，2026-08-03）：價格表卡片／付款方式／付款紀錄 ── */

.app-banner {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ivory);
  margin-bottom: 14px;
}

.app-banner--ok {
  border-color: rgba(239, 189, 108, 0.45);
}

.app-banner--warn {
  border-color: rgba(221, 139, 139, 0.5);
  color: #dd8b8b;
}

.app-plan {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  border-radius: 16px;
  padding: 20px;
  margin-top: 14px;
}

.app-plan--picked {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

.app-plan__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.app-plan__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.app-plan__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ivory);
  white-space: nowrap;
}

/* 高端系列說明（2026-08-06）：年薪門檻、區塊小標、A/B/C 方案標籤 */
.app-plan__threshold {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gold);
}
.app-plan__blocktitle {
  margin: 16px 0 0;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--ivory);
  opacity: .85;
}
/* A/B/C 方案標籤行：不吃清單的 ✦ 前綴（2026-08-06 使用者回饋「每行都有亮點很怪」），
   改為金色小標，與其下條件行做出層級 */
.app-plan__features li.app-plan__sublabel {
  padding-left: 0;
  margin-top: 12px;
  color: var(--gold);
  letter-spacing: 1px;
}
.app-plan__features li.app-plan__sublabel::before {
  content: none;
}

.app-plan__summary {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--app-dim);
}

.app-plan__features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.app-plan__features li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory);
}

.app-plan__features li::before {
  content: "✦";
  position: absolute;
  left: 2px;
  top: 2px;
  font-size: 12px;
  color: var(--gold);
}

.app-plan .app-btn {
  margin-top: 16px;
}

/* 轉帳帳戶資訊框（後台系統設定原文顯示） */
.app-paybox {
  border: 1px dashed rgba(239, 189, 108, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ivory);
}

.app-order {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
}

.app-order__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
}

.app-order__meta {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--app-dim);
}

.app-order__status {
  color: #dd8b8b;
  font-weight: 600;
  white-space: nowrap;
}

.app-order__status.is-paid {
  color: var(--gold);
}

.app-order__status.is-reported {
  color: var(--ivory);
}

.app-order__no {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--app-dim);
}

/* 轉帳後五碼回報（輸入＋按鈕一列） */
.app-last5 {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.app-last5 input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--app-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ivory);
}

.app-last5 .app-btn {
  width: auto;
  margin: 0;
  padding: 12px 20px;
}

/* --------------------------------------------------------------------------
   推薦對象（talent）的狀態摘要 — 心動頁與會員中心頁首
   她開 App 的頻率遠低於付費會員，主畫面要先答「現在有什麼事等我」，
   而不是給一個可以逛的清單。色票沿用官網 tokens，未新增。
   -------------------------------------------------------------------------- */

.app-status {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: var(--app-card-bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-status__head {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  color: var(--ivory);
}

.app-status__badge {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gold);
}

.app-status__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
}

.app-status__grid li {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid var(--app-card-line);
  border-radius: 4px;
  text-align: center;
}

.app-status__grid strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.app-status__grid span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--app-dim);
}

.app-status__date {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--app-card-line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
}

.app-status__date > span {
  font-size: 13px;
  color: var(--app-dim);
}

.app-status__date strong {
  color: var(--ivory);
  font-weight: 500;
}

.app-status__date a {
  align-self: flex-start;
  margin-top: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  text-decoration: none;
}

.app-status__date a:hover,
.app-status__date a:focus-visible {
  text-decoration: underline;
}

.app-status__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--app-dim);
}

.app-status--slim {
  gap: 10px;
}

/* ── 入會資料與驗證文件（報價 5，2026-09-03）─────────────────
   只用既有 tokens（--gold／--app-dim／--red 的既有 rgba 寫法），不新增色票。 */
.app-verify__status {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(239, 189, 108, 0.22);
  background: rgba(239, 189, 108, 0.06);
}

.app-verify__status--returned {
  border-color: rgba(139, 30, 36, 0.45);
  background: rgba(139, 30, 36, 0.12);
}

.app-verify__stage {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
}

.app-verify__status--returned .app-verify__stage {
  color: #dd8b8b;
}

.app-verify__msg {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(231, 241, 227, 0.82);
}

.app-verify__bar {
  margin-top: 14px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.app-verify__bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 0.3s;
}

.app-verify__pct {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--app-dim);
}

.app-verify__doc {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.app-verify__doclabel {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.app-verify__files {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.app-verify__file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.app-verify__file--rejected {
  background: rgba(139, 30, 36, 0.14);
}

.app-verify__file--approved {
  background: rgba(239, 189, 108, 0.1);
}

.app-verify__filename {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
}

.app-verify__filename small {
  color: var(--app-dim);
  font-size: 13px;
}

/* 點擊區 ≥48px（適齡設計：客群偏長，小按鈕按不到） */
.app-verify__del {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--app-dim);
  text-decoration: underline;
  cursor: pointer;
}

.app-verify__upload {
  display: block;
  cursor: pointer;
}

.app-verify__progress {
  margin: 10px 0 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.app-verify__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.2s;
}

.app-verify__err {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #dd8b8b;
}
