/* LoopGiGi A10 切片 1 — 帳戶版面樣式 (mobile-first)
   換皮批 (2026-11-11)：跟已批准嘅 redesign mock 視覺系統 — 暖紙底
   #FAF7F1、白卡、Archivo 字標；品牌粉紅 #D62598 不變。單欄、㩒掣
   最少 48px 高、字體不細過 16px（避免 iOS 自動放大）等 A14 合約
   尺寸一律保留。桌面只係置中放大，唔轉版（刻意唔用任何斷點）。 */
:root {
  --brand: #d62598;
  --brand-dark: #b1187c;
  --brand-soft: #fbe3f1;
  --ink: #26221f;
  --muted: #857c74;
  --line: #eae2d8;
  --bg: #faf7f1;
  --card: #fff;
  --danger: #c0392b;
  --ok: #1e8449;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Archivo", "Noto Sans TC", -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.wrap { max-width: 480px; margin: 0 auto; padding: 16px 16px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 4px; }
.logo { font-size: 25px; font-weight: 800; letter-spacing: -0.5px; }
.logo .lg-loop { color: var(--ink); }
.logo .lg-gigi { color: var(--brand); }
.logo .lg-com { color: var(--muted); font-size: 13px; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.badge {
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.langs { display: flex; gap: 6px; }
.langs button {
  min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 14px; cursor: pointer;
}
.langs button[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 18px; margin-top: 14px;
  box-shadow: 0 6px 24px rgba(38, 34, 31, 0.05);
}
h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 6px; }
p { line-height: 1.55; }
.hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type="email"], input[type="password"], input[type="text"], input[type="date"] {
  width: 100%; min-height: 48px; font-size: 16px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.btn {
  display: block; width: 100%; min-height: 52px; margin-top: 20px;
  border: 0; border-radius: 14px; background: var(--brand); color: #fff;
  font-size: 17px; font-weight: 700; cursor: pointer;
}
.btn:active { background: var(--brand-dark); }
.btn[disabled] { opacity: .55; cursor: not-allowed; } /* 未開通／倒數中嘅掣（SMS 佔位、重發倒數） */
.btn.secondary { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost { background: transparent; color: var(--muted); border: 0; font-weight: 600; min-height: 44px; }
.btn.google { background: #fff; color: #26221f; border: 1.5px solid var(--line); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 20px 0 0; font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.switchline { text-align: center; margin-top: 18px; color: var(--muted); }
.switchline button { background: none; border: 0; color: var(--brand); font-weight: 700; font-size: 16px; cursor: pointer; padding: 6px; }
.error { color: var(--danger); font-size: 15px; margin-top: 12px; min-height: 1.2em; }
.notice { background: #fdf0f7; border: 1px solid var(--brand); border-radius: 12px; padding: 14px; line-height: 1.6; }
.meter { display: flex; gap: 4px; margin-top: 8px; }
.meter span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.meter span.on1 { background: #e74c3c; }
.meter span.on2 { background: #e67e22; }
.meter span.on3 { background: #2ecc71; }
.meter span.on4 { background: var(--ok); }
.meterlabel { font-size: 14px; color: var(--muted); margin-top: 4px; min-height: 1.2em; }
.radio-row { display: flex; gap: 10px; margin-top: 6px; }
.radio-row label {
  flex: 1; margin: 0; font-weight: 600; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px; display: flex; gap: 8px; align-items: center; cursor: pointer; min-height: 48px;
}
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 400; line-height: 1.5; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.qr { display: block; width: 180px; height: 180px; margin: 12px auto; }
.secret { font-family: monospace; word-break: break-all; background: #faf6f0; border-radius: 8px; padding: 10px; font-size: 14px; }
.codes { font-family: monospace; font-size: 16px; line-height: 1.9; background: #faf6f0; border-radius: 10px; padding: 12px 16px; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.pill.ok { background: #e8f8f0; color: var(--ok); }
.pill.warn { background: #fdf3e3; color: #b9770e; }
/* 帳戶主頁導航掣（改版第一批第 2 件）：a.btn 要似掣 — 置中、冇底線 */
a.btn { text-align: center; text-decoration: none; box-sizing: border-box; }
.home-nav .btn:first-child { margin-top: 8px; }
/* 帳戶保安摺疊區（改版第一批第 4 件）：預設收起，㩒先展開 */
details.security { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
details.security > summary {
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--brand);
  min-height: 44px; display: flex; align-items: center; list-style: none;
}
details.security > summary::-webkit-details-marker { display: none; }
details.security > summary::after { content: "▾"; margin-left: auto; }
details.security[open] > summary::after { content: "▴"; }
[hidden] { display: none !important; }
