/* styles.css — Path of Faith · vintage parchment & sepia theme */

*, *::before, *::after { box-sizing: border-box; }

.app {
  /* paper */
  --paper-a:#f7eed8; --paper-b:#ece0c0; --paper-c:#e3d4b1;
  --card:#fbf5e6; --card2:#fffaee; --line:#dac6a0; --line-soft:#e7d9bb;
  /* ink */
  --ink:#4b3826; --text:#4b3826; --muted:#8c7758; --faint:#ad9b78;
  /* metal */
  --gold:#c79a47; --gold-d:#9c722a; --gold-soft:rgba(199,154,71,.16);
  /* accents (rubber-stamp inks) */
  --accent:#b0432f; --accent-d:#8c3122; --red:#b0432f; --green:#5f7d49; --blue:#3f6a8c;
  --shadow:rgba(94,68,32,.16); --shadow-d:rgba(74,52,22,.26);
  --notch:var(--paper-b);
  --mono:'IBM Plex Mono', ui-monospace, monospace;
  --serif:'Trirong', Georgia, serif;
  font-family:'Sarabun', system-ui, sans-serif;
  height:100%; color:var(--text); position:relative; overflow:hidden;
  -webkit-font-smoothing:antialiased;
  background: url('/ICON/background.jpg') center / cover no-repeat;
  background-color: var(--paper-b);
}
.app::before {
  content:''; position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:
    radial-gradient(circle at 18% 14%, rgba(176,140,80,.12), transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(150,108,56,.10), transparent 42%),
    radial-gradient(circle at 70% 30%, rgba(120,90,50,.05), transparent 30%),
    repeating-linear-gradient(92deg, rgba(120,90,50,.025) 0 1px, transparent 1px 4px);
  mix-blend-mode:multiply; opacity:.9;
}
.app[data-theme="sepia"]{
  --paper-a:#f0e2c4; --paper-b:#e2cfa6; --paper-c:#d6bf92;
  --card:#f7eed6; --card2:#fdf6e4; --line:#cdb585; --line-soft:#ddc99e;
  --ink:#43301c; --text:#43301c; --muted:#806743; --faint:#a08a60;
  --gold:#bb8c3a; --gold-d:#90681f; --accent:#a23c26; --accent-d:#7f2c1a;
}
.app[data-theme="indigo"]{
  --paper-a:#f1ecdb; --paper-b:#e2dcc4; --paper-c:#d6cfb3;
  --card:#f9f4e6; --card2:#fffbef; --line:#d2c7a4;
  --ink:#39342a; --text:#39342a; --muted:#79715a; --faint:#a39882;
  --gold:#bf9647; --gold-d:#96702c; --accent:#3f5a86; --accent-d:#2e456a; --red:#3f5a86;
}

.scroller { position:absolute; inset:0; bottom:0; z-index:1; overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch; }
.scroller::-webkit-scrollbar { width:0; }
.screen { padding:54px 18px 108px; min-height:100%; }

/* ── buttons ── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:14px; font:inherit; font-weight:600; font-size:15px;
  padding:13px 18px; cursor:pointer; width:100%; transition:transform .12s, filter .2s, opacity .2s; text-decoration:none; }
.btn:active { transform:scale(.97); }
.btn:disabled { opacity:.5; pointer-events:none; }
.btn-gold { color:#fff; background:linear-gradient(135deg, var(--accent), var(--accent-d));
  box-shadow:0 6px 16px rgba(140,49,34,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-gold:hover { filter:brightness(1.05); }
.btn-ghost { color:var(--ink); background:var(--card); border:1px solid var(--line); box-shadow:0 3px 8px var(--shadow); }

/* a true bronze button (medallion accents) */
.btn-bronze { color:#43300f; background:linear-gradient(135deg,#f0d18c,var(--gold) 55%,var(--gold-d));
  box-shadow:0 6px 16px rgba(156,114,42,.32), inset 0 1px 0 rgba(255,255,255,.5); }

/* ── brand header (home) ── */
/* ── gold ornate plaque header (every screen) ── */
.app-header { display:flex; flex-direction:row; align-items:center; gap:8px; margin:0 -4px 14px; }
.plaque-img { flex:1; min-width:0; width:100%; height:auto; object-fit:contain;
  filter:drop-shadow(0 5px 14px rgba(58,34,8,.34)); }
.app-header-lang { flex-shrink:0; }
.app-header-lang .lang-tog { padding:3px; }
.app-header-lang .lang-tog button { padding:6px 11px; font-size:12.5px; }

/* legacy aliases */
.brand-head { display:flex; align-items:center; gap:13px; margin-bottom:18px; }
.brand-mark { width:52px; height:52px; object-fit:contain; flex-shrink:0;
  filter:drop-shadow(0 3px 7px rgba(120,78,28,.30)); }
.brand-head .lang-tog { margin-left:auto; }
.brand-name { font-family:var(--serif); font-weight:700; font-size:20px; letter-spacing:.2px; color:var(--gold-d); }
.brand-sub { font-size:11.5px; color:var(--muted); margin-top:2px; }

/* logo brand header */
.brand-head-logo { display:flex; flex-direction:column; align-items:center; margin-bottom:14px; }
.brand-toprow { display:flex; justify-content:flex-end; width:100%; }
.brand-logo { width:100%; max-width:296px; height:auto; margin-top:-6px;
  filter:drop-shadow(0 8px 20px rgba(120,78,28,.28)); }

/* lang toggle */
.lang-tog { display:flex; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:3px; gap:2px; box-shadow:0 2px 6px var(--shadow); }
.lang-tog button { border:none; background:none; color:var(--muted); font:inherit; font-size:12px; font-weight:600;
  padding:5px 11px; border-radius:999px; cursor:pointer; }
.lang-tog button.on { background:linear-gradient(135deg,var(--gold),var(--gold-d)); color:#fff; }

/* ── hero ── */
.hero-card { position:relative; background:var(--card); border:1px solid var(--line); border-radius:22px;
  padding:24px 22px 22px; display:flex; flex-direction:column; align-items:center; overflow:hidden;
  box-shadow:0 12px 30px var(--shadow), inset 0 1px 0 rgba(255,255,255,.5); }
.hero-card::after { content:''; position:absolute; inset:6px; border:1px solid var(--line-soft); border-radius:17px; pointer-events:none; }
.hero-glow { position:absolute; top:-40%; left:50%; transform:translateX(-50%); width:260px; height:260px;
  background:radial-gradient(circle, var(--gold-soft), transparent 70%); pointer-events:none; }
.ring-num { font-family:var(--serif); font-size:56px; font-weight:600; line-height:1;
  background:linear-gradient(160deg,var(--gold),var(--gold-d)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ring-den { font-size:12px; color:var(--muted); margin-top:3px; }
.ring.on-light .ring-den { color:var(--muted); }

.hero-light { background:var(--card); border-color:var(--line); }
.hero-label { margin-top:14px; font-size:11.5px; letter-spacing:2px; text-transform:uppercase; color:var(--gold-d); font-weight:700; }
.hero-hint { font-size:14px; color:var(--ink); margin:4px 0 16px; text-align:center; }
.hero-card .btn { width:auto; padding-left:22px; padding-right:22px; position:relative; z-index:1; white-space:nowrap; }

/* ── nearest ── */
.near-card { display:flex; align-items:center; gap:13px; width:100%; margin-top:14px;
  background:var(--card); border:1px solid var(--line); border-radius:16px; padding:11px 14px 11px 11px; cursor:pointer; box-shadow:0 5px 14px var(--shadow); }
.near-kicker { display:flex; align-items:center; gap:5px; font-size:10.5px; letter-spacing:.5px; text-transform:uppercase; color:var(--gold-d); margin-bottom:3px; font-weight:600; }
.near-name { font-size:14.5px; font-weight:600; }
.near-dist { font-family:var(--serif); font-size:22px; color:var(--gold-d); font-weight:600; }
.near-dist span { font-size:11px; color:var(--muted); margin-left:2px; }

/* ── section head ── */
.sec-head { display:flex; align-items:baseline; justify-content:space-between; margin:26px 2px 13px; }
.sec-head h3 { margin:0; font-family:var(--serif); font-size:18px; font-weight:700; color:var(--ink); white-space:nowrap; }
.sec-head span { font-family:var(--mono); font-size:13px; color:var(--gold-d); }
.sec-sub { display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted); margin:0 2px 11px; }

/* ── grid layout ── */
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.gcard { position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; padding:18px 12px 14px;
  background:var(--card); border:1px solid var(--line); border-radius:18px; cursor:pointer; transition:.18s; box-shadow:0 5px 13px var(--shadow); }
.gcard.on { border-color:var(--gold); }
.gcard-no { position:absolute; top:10px; left:11px; font-family:var(--mono); font-size:11px; color:var(--faint); }
.gcard-name { font-size:12.5px; font-weight:600; text-align:center; line-height:1.35; min-height:34px; text-wrap:pretty; }

/* ── list layout ── */
.list { display:flex; flex-direction:column; gap:9px; }
.lrow { display:flex; align-items:center; gap:13px; width:100%; padding:10px 12px;
  background:var(--card); border:1px solid var(--line); border-radius:14px; cursor:pointer; text-align:left; transition:.18s; box-shadow:0 4px 11px var(--shadow); }
.lrow-body { flex:1; min-width:0; }
.lrow-name { font-size:14px; font-weight:600; line-height:1.3; }
.lrow-sub { font-size:11.5px; color:var(--muted); margin-top:2px; }

/* ── feature layout ── */
.feat-list { display:flex; flex-direction:column; gap:16px; }
.fcard {
  width:100%;
  background: linear-gradient(180deg, rgba(251,245,230,.96) 0%, rgba(247,238,216,.92) 100%);
  border:1.2px solid var(--gold);
  border-radius:18px;
  overflow:hidden;
  cursor:pointer;
  text-align:left;
  transition:.18s;
  box-shadow:0 6px 16px rgba(120,90,50,.18);
}
.fcard.on { border-color:var(--gold-d); box-shadow:0 6px 18px rgba(156,114,42,.28); }
.fcard:active { transform: scale(.99); }
.fcard-no {
  position:absolute; top:10px; left:12px;
  width:36px; height:36px;
  display:grid; place-items:center;
  font-family:var(--serif); font-size:22px; font-weight:700;
  color: var(--ink);
  background: rgba(251,245,230,.92);
  border:1.2px solid var(--gold);
  border-radius:50%;
  box-shadow:0 2px 5px rgba(120,90,50,.22);
}
.fcard-glyph { position:absolute; right:16px; bottom:14px; color:rgba(255,255,255,.8); }
.fcard-badge {
  position:absolute; top:12px; right:12px;
  display:flex; align-items:center; gap:4px;
  font-size:11.5px; font-weight:700;
  color:#fff;
  background: linear-gradient(135deg, #66bb5e, #2e7d32);
  padding:5px 11px;
  border-radius:999px;
  box-shadow:0 2px 6px rgba(46,125,50,.35);
}
.fcard-body { padding:12px 15px 14px; }

/* chips */
.chip { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; padding:4px 9px; border-radius:999px; white-space:nowrap; }
.chip-on { color:#fff; background:var(--green); }
.chip-off { color:var(--muted); background:var(--paper-b); border:1px solid var(--line); }
.chip-pending { color:#43300f; background:linear-gradient(135deg, #f0d18c, var(--gold) 60%, var(--gold-d)); border:1px solid var(--gold-d); box-shadow:0 1px 3px rgba(156,114,42,.18); }
.fcard-badge-pending { color:#43300f; background:linear-gradient(135deg, #f0d18c, var(--gold) 60%, var(--gold-d)); box-shadow:0 2px 6px rgba(156,114,42,.32); }
.chip-rejected { color:#fff; background:linear-gradient(135deg, #d75a48, var(--accent), var(--accent-d)); border:1px solid var(--accent-d); box-shadow:0 1px 3px rgba(176,67,47,.28); }
.fcard-badge-rejected { color:#fff; background:linear-gradient(135deg, #d75a48, var(--accent), var(--accent-d)); box-shadow:0 2px 6px rgba(176,67,47,.42); }

/* ── image link → all sites page ── */
.sites-link { position:relative; display:block; width:100%; margin-top:16px; aspect-ratio:16/7; border-radius:20px; overflow:hidden;
  border:1px solid var(--line); cursor:pointer; padding:0; box-shadow:0 10px 26px var(--shadow); }
.sites-link img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.sites-link:hover img { transform:scale(1.05); }
.sites-link-scrim { position:absolute; inset:0; background:linear-gradient(90deg, rgba(40,24,8,.78) 0%, rgba(40,24,8,.30) 60%, transparent 100%); }
.sites-link-txt { position:absolute; left:18px; top:50%; transform:translateY(-50%); right:54px; text-align:left; }
.sites-link-t { font-family:var(--serif); font-weight:700; font-size:20px; color:#fff; line-height:1.2; text-shadow:0 1px 6px rgba(0,0,0,.6); }
.sites-link-s { font-size:11.5px; color:rgba(255,255,255,.85); margin-top:3px; text-shadow:0 1px 4px rgba(0,0,0,.6); text-wrap:pretty; }
.sites-link-go { position:absolute; right:14px; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#3a2606;
  background:linear-gradient(135deg,#fbe7a8,var(--gold)); box-shadow:0 3px 8px rgba(0,0,0,.3); }

/* back link */
.back-link { display:inline-flex; align-items:center; gap:5px; background:none; border:none; cursor:pointer;
  color:var(--gold-d); font:inherit; font-size:13px; font-weight:600; padding:2px 0; margin-bottom:6px; }
.back-link:hover { color:var(--accent); }

/* ── photo banner (real images, top of home) ── */
.photo-banner { position:relative; width:100%; aspect-ratio:16/9; margin-bottom:16px; border-radius:20px; overflow:hidden;
  border:1px solid var(--line); box-shadow:0 10px 28px var(--shadow); }
.photo-track { display:flex; height:100%; transition:transform .6s cubic-bezier(.4,0,.2,1); }
.photo-slide { position:relative; flex:0 0 100%; height:100%; }
.photo-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.photo-scrim { position:absolute; inset:0; background:linear-gradient(0deg, rgba(40,24,8,.55), transparent 42%); }
.photo-cap { position:absolute; left:14px; right:48px; bottom:24px; color:#fff; font-family:var(--serif); font-weight:600;
  font-size:14.5px; line-height:1.3; text-shadow:0 1px 6px rgba(0,0,0,.6); text-wrap:pretty; }

/* ── banner carousel (16:9) ── */
.banner { position:relative; width:100%; aspect-ratio:16/9; margin-top:16px; border-radius:18px; overflow:hidden;
  border:1px solid var(--line); box-shadow:0 9px 24px var(--shadow); }
.banner-track { display:flex; height:100%; transition:transform .55s cubic-bezier(.4,0,.2,1); }
.banner-slide { position:relative; flex:0 0 100%; height:100%; }
.banner-scrim { position:absolute; inset:0; background:linear-gradient(90deg, rgba(54,36,14,.7) 0%, rgba(54,36,14,.22) 55%, transparent 100%),
  linear-gradient(0deg, rgba(54,36,14,.55), transparent 55%); }
.banner-txt { position:absolute; left:16px; right:54px; bottom:30px; color:#fdf6e6; }
.banner-tag { display:inline-block; font-size:10px; font-weight:700; letter-spacing:.4px; color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-d)); padding:3px 9px; border-radius:999px; margin-bottom:8px; }
.banner-title { font-family:var(--serif); font-size:18px; font-weight:700; line-height:1.3; text-wrap:pretty; }
.banner-sub { font-size:11.5px; color:rgba(253,246,230,.85); margin-top:3px; text-wrap:pretty; }
.banner-arrow { position:absolute; top:50%; transform:translateY(-50%); width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff; background:rgba(54,36,14,.4); border:1px solid rgba(255,255,255,.25);
  cursor:pointer; backdrop-filter:blur(4px); opacity:0; transition:opacity .2s; }
.banner:hover .banner-arrow { opacity:1; }
.banner-arrow.left { left:8px; }
.banner-arrow.right { right:8px; }
.banner-dots { position:absolute; bottom:11px; left:0; right:0; display:flex; justify-content:center; gap:6px; }
.banner-dot { width:7px; height:7px; border-radius:999px; border:none; padding:0; cursor:pointer; background:rgba(255,255,255,.5); transition:.25s; }
.banner-dot.on { width:18px; background:var(--gold); }

.muni-foot { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:28px;
  font-size:11px; color:var(--faint); text-align:center; }

/* hover lift for tappable paper cards */
.near-card, .gcard, .lrow, .fcard { transition:transform .15s, box-shadow .2s; }
.near-card:hover, .gcard:hover, .lrow:hover, .fcard:hover { transform:translateY(-1px); box-shadow:0 10px 22px var(--shadow-d); }
.reward-locked { background:var(--card); border:1px dashed var(--line); }

/* ── about the project ── */
.about { margin-top:26px; }
.about .sec-head h3 { flex-shrink:0; }
.about-badge { display:inline-flex; align-items:center; gap:4px; flex-shrink:0; white-space:nowrap;
  font-family:inherit !important; font-size:10px !important; font-weight:600;
  color:var(--gold-d); background:var(--gold-soft); border:1px solid var(--line); padding:3px 9px; border-radius:999px; }
.about-card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px;
  box-shadow:0 7px 18px var(--shadow), inset 0 1px 0 rgba(255,255,255,.5); }
.about-intro { font-size:13.5px; line-height:1.8; color:var(--ink); margin:0; text-wrap:pretty; }
.about-intro + .about-intro { margin-top:11px; color:var(--muted); }
.about-sub { display:flex; align-items:center; gap:8px; font-family:var(--serif); font-size:15.5px; font-weight:700; color:var(--gold-d); margin:22px 2px 12px; }
.about-emoji { font-size:16px; }
.about-list { display:flex; flex-direction:column; gap:11px; }
.about-item { display:flex; gap:11px; font-size:12.5px; line-height:1.65; color:var(--muted); text-wrap:pretty; }
.about-item b { color:var(--ink); font-weight:700; }
.about-dot { flex-shrink:0; width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--gold-d); background:var(--gold-soft); border:1px solid var(--line); margin-top:1px; }
.about-steps { display:flex; flex-direction:column; gap:11px; }
.about-step { display:flex; gap:13px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:13px 15px;
  box-shadow:0 5px 14px var(--shadow), inset 0 1px 0 rgba(255,255,255,.5); }
.about-step-no { flex-shrink:0; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-size:17px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-d)); box-shadow:inset 0 1px 0 rgba(255,255,255,.25); }
.about-step-head { font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:3px; }
.about-step-text { font-size:12px; line-height:1.6; color:var(--muted); text-wrap:pretty; }

/* ── emblem disc ── */
.emblem { box-shadow:inset 0 0 0 2px rgba(255,255,255,.25), inset 0 2px 8px rgba(70,48,18,.25); transition:filter .5s, opacity .5s; }
.emblem.locked { filter:grayscale(.9) brightness(.92) sepia(.3); }

/* ── medallions (vintage wax-seal / stamp) ── */
.medal-wrap { display:flex; flex-direction:column; align-items:center; gap:7px; }
.medal-frame { position:relative; display:flex; align-items:center; justify-content:center; }
.medal-frame.medallion { border-radius:50%; padding:8px; background:linear-gradient(145deg,#f0d189,var(--gold) 45%,var(--gold-d));
  box-shadow:0 5px 13px var(--shadow-d), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 3px rgba(120,80,10,.5); }
.medal-frame.coin { border-radius:50%; padding:11px; background:radial-gradient(70% 70% at 35% 30%, #f3d896, var(--gold) 55%, var(--gold-d));
  box-shadow:0 5px 13px var(--shadow-d), inset 0 0 0 2px rgba(255,255,255,.4), inset 0 2px 4px rgba(255,255,255,.5), inset 0 -3px 5px rgba(120,80,10,.55); }
.medal-frame.coin .emblem { box-shadow:inset 0 0 0 2px rgba(120,80,10,.4), inset 0 2px 6px rgba(70,48,18,.35); }
.medal-frame.passport { border-radius:14px; padding:9px; background:var(--card);
  border:2px solid var(--gold); box-shadow:inset 0 0 0 4px var(--gold-soft), 0 4px 11px var(--shadow); }
.medal-frame.passport .emblem { border-radius:9px; box-shadow:inset 0 0 0 2px rgba(199,154,71,.5), inset 0 2px 6px rgba(70,48,18,.3); }
.medal-frame.off { filter:grayscale(.7) brightness(.96) sepia(.25); opacity:.78; }
.medal-frame.off.medallion, .medal-frame.off.coin { background:linear-gradient(145deg,#d8cbac,#b6a584 50%,#9a8862); }
.medal-frame.off.passport { border-color:var(--line); }
.medal-no { position:absolute; top:-3px; left:-3px; width:21px; height:21px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:12px; font-weight:700;
  color:#fbf3df; background:var(--accent); border:1.5px solid var(--card); z-index:2; box-shadow:0 2px 5px var(--shadow); }
.medal-frame.ink-red .medal-no { background:var(--red); }
.medal-frame.ink-green .medal-no { background:var(--green); }
.medal-frame.ink-blue .medal-no { background:var(--blue); }
.medal-check, .medal-lock { position:absolute; right:-2px; bottom:-2px; width:22px; height:22px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; z-index:2; }
.medal-check { background:var(--green); color:#fff; box-shadow:0 2px 6px var(--shadow-d); border:1.5px solid var(--card); }
.medal-lock { background:var(--paper-c); color:var(--faint); border:1px solid var(--line); }
.medal-name { font-size:11px; font-weight:600; text-align:center; line-height:1.3; max-width:96px; text-wrap:pretty; }
.medal-name.dim { color:var(--muted); }
.medal-date { font-family:var(--mono); font-size:9px; color:var(--gold-d); letter-spacing:.2px; }
.medal-date.dim2 { color:var(--faint); }

.stamp-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:18px 8px; padding:6px 4px 0; }

/* ── map ── */
.map-scene { position:relative; width:100%; height:230px; border-radius:18px; overflow:hidden;
  border:1px solid var(--line); box-shadow:inset 0 0 30px rgba(120,90,50,.18), 0 6px 16px var(--shadow); }
.map-scene-illus { aspect-ratio: 1312 / 1199; height: auto; }
.map-scene-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.map-pin { position:absolute; transform:translate(-50%,-50%); border:none; background:none; cursor:pointer; padding:0;
  transition:transform .15s; }
.map-pin-dot { display:flex; align-items:center; justify-content:center; width:28px; height:30px; border-radius:50% 50% 50% 50%/55% 55% 45% 45%;
  background:linear-gradient(150deg,#f0d189,var(--gold) 52%,var(--gold-d)); border:1.5px solid #fff7e4;
  box-shadow:0 5px 9px var(--shadow-d); font-family:var(--serif); font-size:13px; font-weight:700; color:#4a3318; line-height:1;
  clip-path:path('M14 0 A14 14 0 1 1 14 0 Z'); }
.map-pin-dot { clip-path:none; border-radius:50% 50% 50% 2px; transform:rotate(45deg); }
.map-pin-dot > * , .map-pin span { display:inline-block; transform:rotate(-45deg); }
.map-pin.got .map-pin-dot { filter:saturate(1.15) brightness(1.04); border-color:#fff; }
.map-pin.active .map-pin-dot { outline:3px solid var(--gold-soft); outline-offset:1px; }
.map-pin:hover { transform:translate(-50%,-50%) scale(1.12); }
.map-pin:active { transform:translate(-50%,-50%) scale(.92); }

/* ── contact ── */
.screen-title { font-family:var(--serif); font-size:25px; font-weight:700; color:var(--gold-d); margin-bottom:16px; }
.screen-title .lang-tog { margin-left:auto; }
.contact-card { display:flex; gap:14px; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:16px; box-shadow:0 6px 16px var(--shadow); }
.contact-icon { width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  color:#fff; background:linear-gradient(135deg,var(--accent),var(--accent-d)); flex-shrink:0; }
.contact-kicker { font-size:11px; color:var(--gold-d); font-weight:600; }
.contact-main { font-size:14px; font-weight:600; margin:2px 0 4px; line-height:1.3; }
.contact-num { font-family:var(--mono); font-size:18px; letter-spacing:1px; color:var(--ink); }
.contact-row2 { display:flex; gap:10px; margin-top:11px; align-items:stretch; }
.contact-row2 .btn { width:auto; flex-shrink:0; }
.web-inquiry { display:flex; align-items:center; gap:13px; width:100%; margin-top:11px; text-decoration:none;
  background:linear-gradient(165deg, rgba(255,255,255,.19), rgba(255,255,255,.07)); border:1px solid rgba(255,255,255,.22);
  border-radius:18px; padding:13px 15px 13px 13px; color:var(--ink);
  box-shadow:0 8px 20px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.20); transition:.18s; }
.web-inquiry:hover { background:linear-gradient(165deg, rgba(255,255,255,.26), rgba(255,255,255,.11)); }
.web-inquiry:active { transform:scale(.99); }
.web-inquiry-ic { width:44px; height:44px; border-radius:13px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  color:#fbf3df; background:linear-gradient(135deg, var(--accent), var(--accent-d)); box-shadow:0 4px 10px var(--shadow); }
.web-inquiry-t { font-size:14px; font-weight:700; color:var(--ink); }
.web-inquiry-s { font-size:11.5px; color:var(--muted); margin-top:2px; line-height:1.4; text-wrap:pretty; }
.hours-pill { flex:1; display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted);
  background:var(--card); border:1px solid var(--line); border-radius:14px; padding:0 14px; }
.redeem-card { margin-top:18px; background:var(--card); border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:0 7px 18px var(--shadow); }
.redeem-pin { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; filter:drop-shadow(0 3px 6px rgba(54,36,14,.5)); }
.redeem-body { padding:15px 16px 17px; }
.redeem-title { display:flex; align-items:center; gap:8px; font-family:var(--serif); font-size:16px; font-weight:700; color:var(--gold-d); }
.redeem-sub { font-size:12.5px; color:var(--muted); margin:6px 0 13px; line-height:1.5; }
.faq { display:flex; flex-direction:column; gap:9px; }
.faq-item { background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:0 4px 11px var(--shadow); }
.faq-item.open { border-color:var(--gold); }
.faq-q { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; text-align:left;
  border:none; background:none; color:var(--ink); font:inherit; font-size:13.5px; font-weight:600; padding:13px 15px; cursor:pointer; }
.faq-a { font-size:12.5px; color:var(--muted); line-height:1.6; padding:0 15px 14px; }
.social-row { display:flex; align-items:center; gap:10px; margin-top:24px; }
.social-b { width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  color:var(--gold-d); background:var(--card); border:1px solid var(--line); box-shadow:0 3px 9px var(--shadow); }
.social-txt { font-family:var(--mono); font-size:11px; color:var(--faint); margin-left:auto; }

/* ── profile ── */
.prof-head { display:flex; flex-direction:row; align-items:center; gap:15px; padding:4px 4px 18px; }
.prof-avatar { width:66px; height:66px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  color:var(--gold-d); background:var(--card); border:2px solid var(--gold); box-shadow:0 6px 16px var(--shadow); }
.prof-id { min-width:0; }
.prof-name { font-family:var(--serif); font-size:21px; font-weight:700; white-space:nowrap; color:var(--ink); }
.prof-member { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--gold-d); margin-top:4px; }

/* achievement card */
.achieve-card { display:block; width:100%; text-align:left; padding:16px; border-radius:18px; cursor:default;
  background:linear-gradient(165deg, rgba(255,255,255,.19), rgba(255,255,255,.07)); border:1px solid rgba(255,255,255,.22);
  box-shadow:0 8px 20px var(--shadow), inset 0 1px 0 rgba(255,255,255,.20); }
.achieve-card.done { cursor:pointer; border-color:rgba(232,196,90,.5); }
.achieve-top { display:flex; align-items:center; gap:16px; }
.achieve-num { flex-shrink:0; text-align:center; }
.achieve-big { font-family:var(--serif); font-size:42px; font-weight:700; line-height:1; color:var(--gold-d); }
.achieve-den { font-size:10.5px; color:var(--muted); margin-top:4px; }
.achieve-text { flex:1; display:flex; gap:9px; align-items:flex-start; font-size:13px; color:var(--ink); line-height:1.5; text-wrap:pretty; }
.achieve-text svg { flex-shrink:0; margin-top:2px; color:var(--gold-d); }
.achieve-bar { height:9px; border-radius:99px; margin-top:14px; overflow:hidden; background:rgba(120,78,28,.14); }
.achieve-bar span { display:block; height:100%; border-radius:99px;
  background:linear-gradient(90deg, #cda24a, #e8c45a); box-shadow:0 0 8px rgba(232,196,90,.5);
  transition:width 1s cubic-bezier(.22,1,.36,1); }

/* menu rows (travel stats / certificate) */
.menu-rows { display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.menu-row { display:flex; align-items:center; gap:13px; width:100%; text-align:left; cursor:pointer;
  padding:13px 15px; border-radius:16px;
  background:linear-gradient(165deg, rgba(255,255,255,.19), rgba(255,255,255,.07)); border:1px solid rgba(255,255,255,.22);
  box-shadow:0 8px 20px var(--shadow), inset 0 1px 0 rgba(255,255,255,.20); transition:.16s; }
.menu-row:hover { background:linear-gradient(165deg, rgba(255,255,255,.26), rgba(255,255,255,.11)); }
.menu-row span { flex:1; font-size:14.5px; font-weight:600; color:var(--ink); }
.menu-ic { width:38px; height:38px; border-radius:11px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  color:#fbf3df; background:linear-gradient(135deg, var(--accent), var(--accent-d)); box-shadow:0 3px 8px var(--shadow); }

.stat-row { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-top:14px; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 6px; text-align:center; box-shadow:0 5px 13px var(--shadow); }
.stat-n { font-family:var(--serif); font-size:26px; font-weight:700; color:var(--gold-d); }
.stat-n small { font-size:14px; color:var(--muted); }
.stat-l { font-size:10.5px; color:var(--muted); margin-top:2px; }
.reward-box { display:flex; flex-direction:column; gap:12px; }
.cert-teaser { display:flex; align-items:center; gap:13px; width:100%; cursor:pointer; text-align:left;
  background:linear-gradient(135deg, var(--gold-soft), rgba(199,154,71,.04)); border:1px solid var(--gold);
  border-radius:16px; padding:13px 15px; box-shadow:0 6px 16px var(--shadow); }
.cert-seal { flex-shrink:0; }
.cert-teaser-t { font-family:var(--serif); font-size:16px; font-weight:700; color:var(--gold-d); }
.cert-teaser-s { font-size:11.5px; color:var(--muted); margin-top:2px; }
.lucky-box { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px; text-align:center; box-shadow:0 6px 16px var(--shadow); }
.lucky-label { display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; color:var(--gold-d); font-weight:600; }
.lucky-nums { display:flex; gap:14px; justify-content:center; margin:12px 0 8px; }
.lucky-d { width:58px; height:64px; display:flex; align-items:center; justify-content:center; border-radius:13px;
  font-family:var(--serif); font-size:34px; font-weight:700; color:#43300f;
  background:linear-gradient(135deg,#f0d189,var(--gold) 55%,var(--gold-d)); box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 5px 13px var(--shadow); }
.lucky-hint { font-size:11px; color:var(--muted); }
.reward-locked { display:flex; align-items:center; gap:16px; padding:16px; border-radius:18px; }
.rl-text { flex:1; display:flex; gap:9px; align-items:flex-start; font-size:13px; color:var(--muted); line-height:1.5; }
.list2 { display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:0 6px 16px var(--shadow); }
.lrow2 { display:flex; align-items:center; gap:13px; padding:14px 16px; color:var(--ink); font-size:14px; border-bottom:1px solid var(--line-soft); }
.lrow2:last-child { border-bottom:none; }
.lrow2 span { flex:1; }
.lrow2 em { font-style:normal; color:var(--muted); font-size:13px; }
.lrow2.danger { color:var(--accent); }

/* ── bottom nav ── */
.bottom-nav { position:absolute; left:0; right:0; bottom:0; height:88px; z-index:40;
  display:flex; align-items:flex-start; justify-content:space-around; padding:10px 8px 0;
  background:linear-gradient(180deg, rgba(247,238,216,0), var(--paper-a) 40%);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-top:1px solid var(--line); }
.nav-item { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; background:none; border:none; cursor:pointer;
  color:var(--faint); font:inherit; font-size:10px; font-weight:600; padding-top:6px; transition:color .18s; }
.nav-item.active { color:var(--gold-d); }
.nav-scan { flex:0 0 auto; margin-top:-22px; }
.nav-scan button { width:62px; height:62px; border-radius:50%; border:3px solid var(--paper-a); cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  color:#43300f; background:linear-gradient(135deg,#f0d189,var(--gold) 50%,var(--gold-d));
  box-shadow:0 8px 20px rgba(156,114,42,.45), inset 0 1px 0 rgba(255,255,255,.55); }
.nav-scan button span { font-size:9px; font-weight:700; }
.nav-scan button:active { transform:scale(.94); }

/* ── overlays shared ── */
.scan-stage { position:absolute; inset:0; z-index:60; display:flex; flex-direction:column; color:#f6edd9;
  background:linear-gradient(180deg, #2c2317, #191209); }
.scan-x { position:absolute; top:52px; right:16px; z-index:5; width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#f6edd9; background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2); cursor:pointer; }

/* scan camera */
.scan-cam { position:relative; flex:1; margin:54px 0 0; overflow:hidden; }
.reticle { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:200px; height:200px; }
.reticle span { position:absolute; width:34px; height:34px; border:3px solid var(--gold); }
.reticle span:nth-child(1){ top:0; left:0; border-right:none; border-bottom:none; border-radius:10px 0 0 0; }
.reticle span:nth-child(2){ top:0; right:0; border-left:none; border-bottom:none; border-radius:0 10px 0 0; }
.reticle span:nth-child(3){ bottom:0; left:0; border-right:none; border-top:none; border-radius:0 0 0 10px; }
.reticle span:nth-child(4){ bottom:0; right:0; border-left:none; border-top:none; border-radius:0 0 10px 0; }
.scan-line { position:absolute; left:6px; right:6px; height:3px; border-radius:3px; top:6px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent); box-shadow:0 0 12px var(--gold);
  animation:scanline 1.3s ease-in-out infinite; }
@keyframes scanline { 0%{ top:6px } 50%{ top:188px } 100%{ top:6px } }
.gps-overlay { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px;
  background:rgba(20,14,6,.62); backdrop-filter:blur(3px); font-size:14px; color:#f6edd9; }
.gps-spin { width:46px; height:46px; border-radius:50%; border:4px solid rgba(255,255,255,.18); border-top-color:var(--gold); animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.scan-foot { padding:22px 22px 34px; display:flex; flex-direction:column; gap:13px; align-items:center; }
.scan-guide { font-size:13.5px; color:rgba(246,237,217,.78); text-align:center; line-height:1.5; max-width:280px; }
.scan-foot .btn { max-width:300px; }
.scan-fallback { background:none; border:none; color:var(--gold); font:inherit; font-size:12.5px; text-decoration:underline; cursor:pointer; }

/* unlock celebrate (parchment) */
.scan-stage.celebrate { align-items:center; justify-content:center; color:var(--ink);
  background:radial-gradient(120% 80% at 50% 20%, var(--paper-a), var(--paper-b) 60%, var(--paper-c)); }
.scan-stage.celebrate .scan-x { color:var(--ink); background:var(--card); border-color:var(--line); }
.unlock-card { display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 30px; z-index:2; }
.unlock-medal { position:relative; margin-bottom:22px; animation:pop .6s cubic-bezier(.2,1.3,.4,1) both; }
.unlock-ring { position:absolute; inset:-16px; border-radius:50%; border:2px solid var(--gold); opacity:.5; animation:halo 1.6s ease-out infinite; }
@keyframes pop { 0%{ transform:scale(.3); opacity:0 } 100%{ transform:scale(1); opacity:1 } }
@keyframes halo { 0%{ transform:scale(.9); opacity:.6 } 100%{ transform:scale(1.5); opacity:0 } }
.unlock-title { font-family:var(--serif); font-size:25px; font-weight:700; color:var(--gold-d); }
.unlock-name { font-family:var(--serif); font-size:19px; font-weight:700; margin:6px 0 8px; color:var(--ink); }
.unlock-sub { font-size:13px; color:var(--muted); line-height:1.5; margin-bottom:20px; }
.unlock-count { font-size:13px; color:var(--ink); margin-bottom:14px; }
.unlock-count b { color:var(--gold-d); font-family:var(--serif); font-size:18px; }
.unlock-card .btn { max-width:260px; }
.scan-done-all { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; text-align:center; padding:30px; }
.scan-done-all h2 { font-family:var(--serif); font-size:24px; color:var(--gold-d); margin:0; }
.sparkles { position:absolute; inset:0; pointer-events:none; z-index:1; }
.sparkles span { position:absolute; background:radial-gradient(circle,var(--gold),transparent 70%); border-radius:50%;
  animation:spark 1.6s ease-out infinite; }
@keyframes spark { 0%{ transform:scale(0); opacity:0 } 30%{ opacity:1 } 100%{ transform:scale(1.4) translateY(-20px); opacity:0 } }

/* upload fallback (parchment) */
.sheet-dark { color:var(--ink); background:radial-gradient(120% 80% at 50% 6%, var(--paper-a), var(--paper-b) 62%, var(--paper-c)); }
.sheet-dark .scan-x { color:var(--ink); background:var(--card); border-color:var(--line); }
.upload-wrap { padding:54px 22px 30px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; min-height:0; }
.upload-wrap h2 { font-family:var(--serif); font-size:22px; margin:0; color:var(--ink); }
.up-warn, .pending-ic { width:62px; height:62px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--gold-d); background:var(--gold-soft); border:1px solid var(--gold); }
.up-body { font-size:13.5px; color:var(--muted); line-height:1.6; margin:0; }
.up-target { display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:8px 14px 8px 8px; font-size:13px; font-weight:600; box-shadow:0 4px 11px var(--shadow); }
.dropzone { position:relative; width:100%; height:170px; border-radius:16px; border:2px dashed var(--gold);
  background:var(--card); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  color:var(--gold-d); font:inherit; font-size:13px; font-weight:600; cursor:pointer; overflow:hidden; }
.dropzone.filled { border-style:solid; }
.up-hint { font-size:11.5px; color:var(--faint); line-height:1.5; margin:0; }
.upload-wrap .btn { width:100%; margin-top:8px; flex-shrink:0; }
.upload-wrap .btn + .btn { margin-top:6px; }
.upload-wrap > .dropzone, .upload-wrap > .upload-preview { flex-shrink:0; }

.up-site-pick { width:100%; display:flex; flex-direction:column; gap:6px; text-align:left; }
.up-site-label { font-size:12px; color:var(--muted); padding-left:4px; }
.up-site-select {
  width:100%; padding:11px 14px; border-radius:12px;
  border:1px solid var(--line); background:var(--card2);
  font:inherit; font-size:14px; color:var(--ink);
  appearance:none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.up-site-select:focus { outline:none; border-color:var(--gold-d); box-shadow:0 0 0 3px var(--gold-soft); }

/* ── detail sheet ── */
.detail-sheet { position:absolute; inset:0; z-index:65; background:var(--paper-a); display:flex; flex-direction:column; overflow-y:auto; }
.detail-hero { position:relative; height:300px; flex-shrink:0; }
.detail-glyph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.7); }
.detail-scrim { position:absolute; inset:0; background:linear-gradient(180deg, rgba(54,36,14,.28) 0%, transparent 32%, rgba(40,26,10,.78) 100%); }
.detail-back { position:absolute; top:52px; left:16px; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; background:rgba(40,26,10,.4); border:1px solid rgba(255,255,255,.25); cursor:pointer; backdrop-filter:blur(6px); }
.detail-no { position:absolute; top:50px; right:18px; font-family:var(--serif); font-size:42px; font-weight:700; color:rgba(255,255,255,.6); text-shadow:0 2px 8px rgba(40,26,10,.5); }
.detail-hero-txt { position:absolute; left:20px; right:20px; bottom:20px; color:#fdf6e6; }
.detail-hero-txt h2 { font-family:var(--serif); font-size:24px; font-weight:700; margin:6px 0 2px; line-height:1.25; text-wrap:pretty; }
.detail-earned { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; color:#fff; background:var(--green); padding:4px 10px; border-radius:999px; }
.detail-en { font-size:13px; color:rgba(253,246,230,.75); }
.detail-body { padding:20px; }
.detail-seal-row { display:flex; align-items:center; gap:14px; margin:-46px 0 14px; position:relative; }
.detail-meta { display:flex; gap:16px; margin-bottom:18px; }
.detail-meta span { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); }
.detail-h4 { display:flex; align-items:center; gap:8px; font-family:var(--serif); font-size:15px; font-weight:700; color:var(--gold-d); margin:0 0 9px; }
.detail-p { font-size:14px; line-height:1.85; color:var(--ink); margin:0 0 22px; text-wrap:pretty; }
.detail-actions { display:flex; flex-direction:column; gap:11px; }

/* ── success receipt ── */
.cert-stage { position:absolute; inset:0; z-index:60; display:flex; flex-direction:column;
  background:radial-gradient(120% 80% at 50% 6%, var(--paper-a), var(--paper-b) 60%, var(--paper-c)); overflow-y:auto; }
.cert-stage::before { content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(60% 38% at 16% 8%, rgba(176,140,80,.14), transparent 70%),
    radial-gradient(50% 32% at 92% 4%, rgba(150,108,56,.12), transparent 70%); }
.receipt-scroll { position:relative; padding:70px 22px 34px; display:flex; flex-direction:column; gap:18px; min-height:100%; }
.receipt { position:relative; margin-top:18px; background:#fffdf6; color:var(--ink); border-radius:18px; padding:40px 24px 26px;
  box-shadow:0 22px 50px var(--shadow-d); text-align:center; border:1px solid var(--line); }
.receipt::after { content:''; position:absolute; inset:7px; border:1px solid var(--line-soft); border-radius:12px; pointer-events:none; }
.receipt-check { position:absolute; top:-30px; left:50%; transform:translateX(-50%); width:60px; height:60px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(145deg,#7aa85f,var(--green));
  border:5px solid #fffdf6; box-shadow:0 8px 18px rgba(95,125,73,.4); }
.receipt-title { font-family:var(--serif); font-size:24px; font-weight:700; color:var(--ink); }
.receipt-sub { font-size:12.5px; color:var(--muted); margin-top:4px; }
.receipt-muni { display:flex; align-items:center; justify-content:center; gap:7px; font-size:11px; font-weight:600; color:var(--gold-d); margin-top:12px; }
.receipt-rows { display:flex; flex-direction:column; gap:11px; margin-top:20px; text-align:left; }
.receipt-row { display:flex; align-items:baseline; justify-content:space-between; gap:14px; }
.receipt-lbl { font-size:12px; color:var(--faint); flex-shrink:0; }
.receipt-val { font-size:13.5px; font-weight:700; color:var(--ink); font-family:var(--mono); text-align:right; }
.receipt-perf { position:relative; height:1px; margin:22px -24px 20px; border-top:2px dashed var(--line); }
.receipt-perf .notch { position:absolute; top:50%; width:24px; height:24px; border-radius:50%; background:var(--notch); transform:translateY(-50%); }
.receipt-perf .notch.left { left:-12px; }
.receipt-perf .notch.right { right:-12px; }
.receipt-lucky { background:linear-gradient(135deg, #fbf0d4, #f5e7c8); border:1px solid var(--line); border-radius:14px; padding:15px; }
.receipt-lucky-label { display:flex; align-items:center; justify-content:center; gap:6px; font-size:11.5px; font-weight:600; color:var(--gold-d); }
.receipt-lucky-row { display:flex; gap:14px; justify-content:center; margin:11px 0 7px; }
.receipt-lucky-row span { width:54px; height:60px; display:flex; align-items:center; justify-content:center; border-radius:12px;
  font-family:var(--serif); font-size:32px; font-weight:700; color:#43300f;
  background:linear-gradient(135deg,#f0d189,var(--gold) 55%,var(--gold-d)); box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 5px 13px var(--shadow); }
.receipt-lucky-hint { font-size:10.5px; color:var(--faint); }
.receipt-note { display:flex; align-items:center; justify-content:center; gap:7px; font-size:13px; font-weight:700; color:var(--ink); margin-top:20px; }
.receipt-steps { list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; text-align:left; }
.receipt-steps li { display:flex; align-items:flex-start; gap:9px; font-size:12px; line-height:1.5; color:var(--muted); text-wrap:pretty; }
.receipt-steps li svg { flex-shrink:0; margin-top:2px; color:var(--green); }
.receipt-actions { display:flex; gap:11px; }
.receipt-actions .btn-ghost { background:var(--card); border:1px solid var(--line); color:var(--ink); }

/* ── install prompt ── */
.install-wrap { position:absolute; inset:0; z-index:80; display:flex; align-items:flex-end; background:rgba(40,26,10,.4); backdrop-filter:blur(2px); }
.install-card { margin:0 12px 14px; width:100%; background:var(--card);
  border:1px solid var(--line); border-radius:22px; padding:22px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px;
  box-shadow:0 -10px 40px var(--shadow-d); animation:slideup .4s cubic-bezier(.2,1,.3,1) both; }
@keyframes slideup { from { transform:translateY(40px); opacity:0 } to { transform:translateY(0); opacity:1 } }
.install-title { font-family:var(--serif); font-size:18px; font-weight:700; margin-top:4px; color:var(--ink); }
.install-body { font-size:13px; color:var(--muted); line-height:1.5; }
.install-row { display:flex; gap:10px; width:100%; margin-top:8px; }
.install-guide-icon { width:56px; height:56px; border-radius:50%; background:var(--gold-soft); border:1px solid var(--gold); display:flex; align-items:center; justify-content:center; color:var(--gold-d); }

.auth-loading-screen {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  color:#f7eed8; font-size:14px; letter-spacing:.01em;
  background:radial-gradient(circle at 50% 35%, #382447 0, #170d22 42%, #0c0716 100%);
}
.auth-loading-logo { width:86px; height:86px; object-fit:contain; border-radius:24px; filter:drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.auth-loading-spinner { width:24px; height:24px; border:3px solid rgba(247,238,216,.22); border-top-color:#e5ba62; border-radius:50%; animation:auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-loading-spinner { animation-duration:1.8s; } }

/* ─── auth screens (login / register) ─────────────────────────────── */
.auth-screen {
  position: absolute; inset: 0; z-index: 5;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #0c0716;
}
.auth-screen::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 16%, rgba(176,140,80,.10), transparent 38%),
    radial-gradient(circle at 86% 84%, rgba(150,108,56,.09), transparent 42%),
    repeating-linear-gradient(92deg, rgba(120,90,50,.022) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply; opacity: .9;
}

.auth-cover {
  position: relative;
  width: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #ede1c1, #e7d8b6);
  border-bottom: 1px solid rgba(140, 105, 60, .35);
  box-shadow: 0 6px 14px -8px rgba(74, 52, 22, .35);
  flex-shrink: 0;
}
.auth-cover-login {
  height: clamp(178px, 26svh, 224px);
  min-height: 178px;
  overflow: hidden;
  border-bottom: 0;
  background: #0c0716;
  box-shadow: none;
}
.auth-cover-login .auth-cover-img {
  position: absolute; inset: 0;
  aspect-ratio: auto;
  background:
    radial-gradient(circle at 50% 48%, rgba(222,170,73,.32), transparent 35%),
    linear-gradient(180deg, rgba(12,7,22,.18), rgba(12,7,22,.72)),
    url('/assets/hero-3.png') center 42% / cover no-repeat;
}
.auth-cover-login .auth-cover-img::before,
.auth-cover-login .auth-cover-img::after {
  content: ''; position: absolute; width: 92px; height: 92px; opacity: .22;
  border: 1px solid #d4a84f; transform: rotate(45deg); border-radius: 28px;
}
.auth-cover-login .auth-cover-img::before { left: -60px; top: -48px; }
.auth-cover-login .auth-cover-img::after { right: -60px; bottom: -52px; }
.auth-cover-login .auth-cover-img .auth-brand-mark {
  position: absolute; z-index: 2; inset: auto;
  left: 50%; top: 50%; transform: translate(-50%, -49%);
  width: clamp(128px, 39vw, 166px); height: auto;
  max-height: 84%; object-fit: contain; object-position: center;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.42)) drop-shadow(0 0 12px rgba(229,186,98,.22));
  opacity: 1; mix-blend-mode: normal;
}
.auth-cover-login .auth-cover-fade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(12,7,22,.12), rgba(12,7,22,.04) 60%, #0c0716 100%);
}
.auth-hero-lang {
  position: absolute; z-index: 4; top: max(14px, env(safe-area-inset-top)); right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(229,186,98,.72); background: rgba(12,7,22,.66);
  color: rgba(251,245,230,.64); font: 600 12px/1 var(--serif); letter-spacing: .7px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
}
.auth-hero-lang span.active { color: #f2ce78; }
.auth-hero-lang i { font-style: normal; color: rgba(229,186,98,.55); }
.auth-cover-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: linear-gradient(180deg, #d8c89e, #c9b485);
}
.auth-cover-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: sepia(.55) saturate(.7) brightness(1.04) contrast(1.04);
  opacity: .92;
  mix-blend-mode: multiply;
}
.auth-cover-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,238,216,0) 55%, rgba(237,225,193,0.85) 100%);
  pointer-events: none;
}
.auth-cover-title {
  padding: 12px 22px 16px;
  text-align: center;
  font-family: var(--serif); color: #6b4824;
  background: linear-gradient(180deg, rgba(247,238,216,0.95), rgba(247,238,216,1));
}
.auth-cover-th { font-size: 20px; font-weight: 600; letter-spacing: .4px; line-height: 1.15; color: #7a5128; }
.auth-cover-headline {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  font-size: 30px; font-weight: 700; margin: 4px 0 2px; line-height: 1; color: #6b4824;
}
.auth-cover-headline .cover-num {
  color: var(--accent); font-size: 1.35em; line-height: 1; margin-right: 6px;
  text-shadow: 0 1px 0 rgba(255, 240, 210, .5);
}
.auth-cover-sub { font-size: 14px; color: var(--gold-d); letter-spacing: .3px; margin-top: 2px; }
.auth-cover-en {
  margin-top: 6px; font-family: var(--mono);
  font-size: 10px; letter-spacing: 1.6px; color: rgba(110, 74, 29, .65);
}

.auth-card { position: relative; z-index: 2; padding: 18px 22px 28px; }

/* ════ Auth v2 — clean modern login layout ════════════════════ */
.auth-card-v2 {
  min-height: calc(100svh - clamp(178px, 26svh, 224px) + 18px);
  margin-top: -18px;
  padding: 23px 22px max(18px, env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.9), transparent 32%),
    repeating-linear-gradient(93deg, rgba(120,90,50,.018) 0 1px, transparent 1px 5px),
    #fbf5e6;
  border: 1px solid rgba(212,168,79,.72); border-bottom: 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.9);
}
.auth-login-heading {
  text-align: center; font-family: var(--serif); color: #533417;
  font-size: clamp(27px, 8vw, 34px); line-height: 1.08; font-weight: 700;
}
.auth-login-subtitle {
  text-align: center; margin-top: 3px; color: #76502b;
  font-family: var(--serif); font-size: 15px; font-weight: 500;
}
.auth-login-ornament {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 6px auto 10px; color: #c69235; font-size: 10px;
}
.auth-login-ornament span { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, #d4a84f); }
.auth-login-ornament span:last-child { transform: scaleX(-1); }
.auth-form-v2 {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 0;
}
.auth-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,252,243,.82);
  border: 1px solid rgba(190,137,48,.66);
  border-radius: 15px;
  padding: 0 15px;
  height: 48px;
  box-shadow: 0 3px 8px rgba(101,65,24,.08), inset 0 1px 0 #fff;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.auth-pill:focus-within {
  background: #fff;
  border-color: #b97c20;
  box-shadow: 0 0 0 3px rgba(212,168,79,.18);
}
.auth-pill-icon {
  display: grid; place-items: center;
  color: #a87325;
  flex-shrink: 0;
  width: 22px;
}
.auth-pill input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0; outline: 0;
  font: inherit;
  font-size: 15px;
  color: #4a321d;
  padding: 0;
}
.auth-pill input::placeholder { color: #92795e; }
.auth-pill-eye {
  background: none; border: 0;
  padding: 4px;
  color: #8c6b40;
  cursor: pointer;
  display: grid; place-items: center;
}

.auth-forgot-v2 {
  align-self: flex-end;
  background: none; border: 0;
  font: inherit;
  font-size: 13px; font-weight: 600;
  color: #81501d;
  cursor: pointer;
  padding: 2px 4px;
  margin-top: -3px;
  text-decoration: underline;
}
.auth-forgot-v2:active { opacity: .7; }

.auth-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  border-radius: 15px;
  border: 0;
  font: inherit;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, filter .15s;
  font-family: inherit;
}
.auth-btn:active { transform: scale(.98); }

.auth-btn-primary {
  background: linear-gradient(100deg, #bd8020 0%, #f0c15b 48%, #b67217 100%);
  color: #39230d;
  border: 1px solid #aa6a14;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 5px 12px rgba(128,77,17,.24);
  margin-top: 5px;
  font-family: var(--serif); font-size: 18px;
}
.auth-btn-primary:hover { filter: brightness(1.1); }

.auth-btn-line {
  background: rgba(255,255,255,.58);
  color: #039a40;
  margin-top: 0;
  border: 1.5px solid #06c755;
  box-shadow: 0 3px 9px rgba(6,199,85,.12);
}
.auth-btn-line:hover { filter: brightness(1.05); }
.auth-line-badge {
  display:grid; place-items:center; min-width:34px; height:25px; padding:0 5px;
  border-radius:8px; background:#06c755; color:#fff; font:700 9px/1 Arial,sans-serif;
}

.auth-or-v2 {
  display: flex; align-items: center;
  gap: 12px;
  margin: 12px 0 9px;
}
.auth-or-v2 span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,130,48,.6), transparent);
}
.auth-or-v2 em {
  font-style: normal;
  color: #8c6f4f;
  font-size: 13px;
}

.auth-btn-outline {
  background: transparent;
  color: #d97706;
  border: 2px solid #f59e0b;
}
.auth-btn-outline:hover {
  background: rgba(245,158,11,.06);
}
.auth-signup-prompt {
  display:flex; justify-content:center; align-items:center; gap:7px;
  margin-top:13px; color:#5d4631; font-size:13.5px;
}
.auth-signup-prompt button {
  border:0; background:none; padding:3px 0; color:#b66c16;
  font-family:inherit; font-size:13.5px; font-weight:700; line-height:1.2;
  text-decoration:underline; cursor:pointer;
}

/* Registration uses the same visual system as the compact login screen. */
.auth-card-register {
  padding-top: 18px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.auth-register-heading { font-size: clamp(25px, 7vw, 31px); }
.auth-form-register { gap: 8px; }
.auth-form-register .auth-pill { height: 44px; }
.auth-form-register .auth-agree {
  color: #70583f; font-size: 12px; line-height: 1.3; padding-top: 1px;
}
.auth-form-register .auth-agree input { accent-color: #bd8020; }
.auth-register-submit { height: 45px; margin-top: 1px; }
.auth-register-or { margin: 9px 0 7px; }
.auth-card-register .auth-btn-line { height: 44px; }
.auth-signin-prompt { margin-top: 8px; }

@media (max-height: 720px) {
  .auth-cover-login { height: 160px; min-height: 160px; }
  .auth-cover-login .auth-cover-img .auth-brand-mark { width: 122px; }
  .auth-card-v2 { min-height: calc(100svh - 142px); padding-top: 18px; }
  .auth-login-heading { font-size: 27px; }
  .auth-login-subtitle { font-size: 13.5px; }
  .auth-login-ornament { margin: 4px auto 7px; }
  .auth-pill, .auth-btn { height: 45px; }
  .auth-or-v2 { margin: 9px 0 7px; }
  .auth-signup-prompt { margin-top: 9px; }

  .auth-screen-register .auth-cover-login { height: 118px; min-height: 118px; }
  .auth-screen-register .auth-cover-login .auth-cover-img .auth-brand-mark { width: 92px; }
  .auth-card-register {
    min-height: calc(100svh - 104px); margin-top: -14px;
    padding: 13px 18px max(10px, env(safe-area-inset-bottom));
  }
  .auth-card-register .auth-register-heading { font-size: 24px; }
  .auth-card-register .auth-login-subtitle { font-size: 12.5px; }
  .auth-card-register .auth-login-ornament { margin: 3px auto 5px; }
  .auth-card-register .auth-form-register { gap: 6px; }
  .auth-card-register .auth-pill { height: 41px; }
  .auth-card-register .auth-agree { font-size: 11.5px; }
  .auth-card-register .auth-register-submit,
  .auth-card-register .auth-btn-line { height: 41px; }
  .auth-card-register .auth-register-or { margin: 6px 0 5px; }
  .auth-card-register .auth-signin-prompt { margin-top: 5px; }
}

.auth-lang-tog {
  position: absolute; top: 14px; right: 18px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 10px;
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .5px;
  color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 5px rgba(120, 90, 50, .08);
}

.auth-divider { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.auth-divider .auth-orn-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-d) 25%, var(--gold-d) 75%, transparent);
  opacity: .5;
}
.auth-divider .auth-orn-diamond { color: var(--gold-d); font-size: 10px; transform: translateY(-1px); }
.auth-divider-text {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 4.5px; font-weight: 600;
  color: var(--gold-d); white-space: nowrap;
}

.auth-welcome {
  text-align: center; margin: 10px 0 16px;
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  color: var(--ink);
}

.auth-form { display: flex; flex-direction: column; gap: 11px; margin-top: 4px; }

.auth-field {
  display: flex; align-items: center;
  background: rgba(255, 250, 238, .72);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 14px;
  box-shadow: inset 0 1px 2px rgba(120, 90, 50, .04);
  transition: border-color .15s, box-shadow .15s;
}
.auth-field:focus-within { border-color: var(--gold-d); box-shadow: 0 0 0 3px var(--gold-soft); }
.auth-field-icon { color: var(--muted); margin-right: 10px; display: inline-flex; align-items: center; }
.auth-field input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  font: inherit; font-size: 15px; color: var(--ink);
}
.auth-field input::placeholder { color: var(--faint); opacity: 1; }
.auth-eye {
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 4px; margin-left: 4px; display: inline-flex; align-items: center;
}
.auth-eye:hover { color: var(--ink); }

.auth-forgot {
  align-self: flex-end;
  background: none; border: none;
  font: inherit; font-size: 13px;
  color: var(--accent); text-decoration: underline;
  cursor: pointer; padding: 0 2px; margin-top: -2px;
}
.auth-forgot:hover { color: var(--accent-d); }

.auth-error {
  background: rgba(176, 67, 47, .10);
  border: 1px solid rgba(176, 67, 47, .30);
  color: var(--accent-d);
  padding: 9px 12px; border-radius: 10px;
  font-size: 13px; text-align: center;
}

.auth-agree {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: var(--muted); line-height: 1.4;
  padding: 2px 2px 0; cursor: pointer;
}
.auth-agree input {
  margin-top: 2px; accent-color: var(--accent);
  width: 16px; height: 16px; flex-shrink: 0;
}

.auth-submit {
  margin-top: 4px; padding: 15px 18px;
  font-size: 17px; letter-spacing: .4px; gap: 12px;
}
.auth-submit img { filter: brightness(2.6) saturate(.4) drop-shadow(0 1px 0 rgba(0,0,0,.2)); }

.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 12px; color: var(--muted);
}
.auth-or span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-soft), transparent);
}
.auth-or em {
  font-style: normal; font-family: var(--serif);
  font-size: 13px; color: var(--muted); letter-spacing: 1.5px;
}

.auth-socials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
  margin-bottom: 14px;
}
.auth-social {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--card2); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 4px 11px;
  cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: 0 2px 5px rgba(120, 90, 50, .08);
  transition: transform .12s, box-shadow .15s, background .15s;
}
.auth-social:hover { background: #fdf7e6; box-shadow: 0 4px 9px rgba(120, 90, 50, .14); }
.auth-social:active { transform: scale(.97); }
.auth-social-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  background: #fff;
}
.auth-social-line { background: #06C755; color: #fff; font-size: 10px; letter-spacing: .5px; }
.auth-social-label { font-size: 10px; line-height: 1.3; color: var(--muted); text-align: center; }
.auth-social-label b { color: var(--ink); font-weight: 600; font-size: 11px; }

.auth-register-link {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px;
  font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 6px rgba(120, 90, 50, .08);
  transition: background .15s, box-shadow .15s;
}
.auth-register-link:hover { background: var(--card2); box-shadow: 0 4px 10px rgba(120, 90, 50, .14); }
.auth-register-link:active { transform: scale(.98); }

.auth-stamps {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 2px 4px; gap: 16px;
}
.vintage-stamp {
  width: 96px; height: 96px;
  opacity: .55;
  filter: drop-shadow(0 1px 0 rgba(255, 250, 238, .5));
  color: var(--accent-d);
}
.vintage-stamp.stamp-ship { transform: rotate(-8deg); }
.vintage-stamp.stamp-temple { transform: rotate(7deg); }

/* ── Redeem QR (user-facing prize redemption) ─────────────────── */
.redeem-card { padding-bottom: 22px; }
.redeem-locked {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 18px;
  color: var(--muted);
}
.redeem-locked-text { font-size: 13.5px; text-align: center; line-height: 1.45; max-width: 280px; }
.redeem-progress {
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--accent-d);
  background: rgba(176, 67, 47, .08);
  padding: 8px 22px; border-radius: 999px;
  border: 1px solid rgba(176, 67, 47, .25);
}
.redeem-qr {
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  background: #fbf5e6;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 6px 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 2px 8px rgba(120, 90, 50, .12);
}
.redeem-qr img { display: block; width: 240px; height: 240px; }
.redeem-info { text-align: center; margin: 0 12px 14px; }
.redeem-name {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  color: var(--ink);
}
.redeem-lucky {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-d);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px; color: var(--ink);
}
.redeem-lucky b {
  font-family: var(--mono); font-weight: 700;
  color: var(--accent-d); margin-left: 2px;
}
.redeem-code-block {
  margin: 12px 16px 0;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.redeem-code-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted);
  margin-bottom: 6px;
}
.redeem-code-value {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--card);
  padding: 8px 10px;
  border-radius: 6px;
  word-break: break-all;
  line-height: 1.4;
  border: 1px solid var(--line-soft);
  user-select: all;
  -webkit-user-select: all;
}
.redeem-code-copy {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  background: none; border: none;
  font: inherit; font-size: 12px; color: var(--accent);
  cursor: pointer; padding: 4px 6px;
}
.redeem-code-copy:hover { color: var(--accent-d); }

.redeem-steps {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px 6px;
  margin: 0 6px;
  border-top: 1px dashed var(--line);
}
.redeem-step {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--muted); line-height: 1.4;
}
.redeem-step span {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-soft); border: 1px solid var(--gold-d);
  color: var(--accent-d); font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.redeem-done {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 20px 16px 8px;
}
.redeem-done-info { text-align: center; font-size: 13px; color: var(--ink); }
.redeem-done-line { margin: 4px 0; }
.redeem-done-line b { color: var(--accent-d); font-family: var(--mono); }

/* profile menu row that's locked (not yet complete) */
.menu-row.menu-row-locked { opacity: .55; }
.menu-row.menu-row-locked:active { opacity: .55; transform: none; }

/* detail gallery (admin-uploaded extra images) */
.detail-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin: 14px 0 8px;
}
.detail-gallery-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 5px rgba(120, 90, 50, .12);
}

/* ─── Home V2 (new design) ───────────────────────────────────── */
.home2 {
  padding: 0 0 110px;
  min-height: 100%;
  background-image: url('/ICON/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: local;
  background-repeat: no-repeat;
}
.home2-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #d8c89e, #c9b485);
}
.home2-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.4) saturate(.7) brightness(1.05);
  opacity: .95;
}
.home2-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(247,238,216,0) 35%, rgba(247,238,216,.78) 100%),
    linear-gradient(90deg, rgba(247,238,216,.45) 0%, rgba(247,238,216,0) 38%);
}
.home2-hero-text {
  position: absolute; top: 22px; left: 18px;
  max-width: 64%;
  color: var(--ink);
  font-family: var(--serif);
}
.home2-hero-num {
  font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1;
  color: var(--gold-d);
  margin-bottom: 4px;
  text-shadow: 0 1px 0 rgba(255,240,210,.5);
}
.home2-hero-l1 { font-size: 19px; font-weight: 600; color: #7a5128; }
.home2-hero-l2 { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.05; margin: 2px 0; }
.home2-hero-l3 { font-size: 14px; color: var(--gold-d); margin-bottom: 6px; }
.home2-hero-desc {
  font-family: 'Sarabun', sans-serif;
  font-size: 11.5px; line-height: 1.5;
  color: var(--text);
  margin-top: 6px;
  text-shadow: 0 1px 0 rgba(255,250,238,.6);
}

.home2-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px 14px 0;
  margin-top: -36px;
  position: relative; z-index: 2;
}
.home2-feature {
  width: 100%;
  aspect-ratio: 229 / 107;
  max-width: 229px; max-height: 107px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-end;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 5px 18px rgba(120,90,50,.18);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .12s, box-shadow .15s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home2-feature.is-passport { background-image: url('/ICON/card-passport.png'); }
.home2-feature.is-sites    { background-image: url('/ICON/card-scooter.png'); }

/* Profile body — horizontal padding for content under hero/features */
.prof-body { padding: 4px 18px 24px; }

/* Home-style sub-screen — content area padding */
.home-style-content { padding: 8px 16px 24px; }
.home-style-sub .sub-screen-body { padding: 0 !important; }

/* Sacred sites — full-bleed random top banner (no header bar) */
.sacred-body { padding: 0 0 100px !important; }
.sacred-banner {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  margin: 0 0 14px;
}
.sacred-back {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--gold);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.sacred-back:active { transform: scale(.95); }

/* ════ Passport grid ════════════════════════════════════════ */
.passport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 12px 24px;
}
.passport-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform .15s;
  text-align: center;
}
.passport-card:active { transform: scale(.97); }
.passport-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}
.passport-card-img-bw,
.passport-card-img-color {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.passport-card-img-color {
  opacity: 0;
  transition: opacity .9s ease-in-out;
}
.passport-card-img-color.on { opacity: 1; }
.passport-card-img-wrap.just-unlocked .passport-card-img-color.on {
  animation: passport-pop 1.5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes passport-pop {
  0%   { opacity: 0; transform: scale(.6) rotate(-6deg); }
  35%  { opacity: 1; transform: scale(1.15) rotate(3deg); }
  60%  { opacity: 1; transform: scale(.95) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.passport-card-img-wrap.just-unlocked::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255,215,90,.5) 0%, transparent 70%);
  animation: passport-glow 1.5s ease-out;
  pointer-events: none;
}
@keyframes passport-glow {
  0%   { opacity: 0; transform: scale(.5); }
  50%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.5); }
}
.passport-card-name {
  margin-top: 2px;
  padding: 0 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  font-family: var(--serif);
}
.home2-feature:active { transform: scale(.97); }
.home2-feature-body {
  margin: 0 0 12px 0;
  text-align: left;
  background: rgba(251, 245, 230, .82);
  border-radius: 0 10px 10px 0;
  padding: 6px 12px 6px 14px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  max-width: calc(100% - 12px);
}
.home2-feature-title {
  font-family: var(--serif);
  font-size: 14px; font-weight: 700;
  line-height: 1.15;
  text-align: left;
  color: var(--ink);
}
.home2-feature-sub {
  font-size: 11px; color: var(--muted); margin-top: 1px;
  text-align: left;
}
.home2-feature-sub b { color: var(--accent-d); font-weight: 700; }
.home2-feature > svg:last-child {
  position: absolute; top: 10px; right: 10px;
  color: var(--gold-d);
  background: rgba(255, 250, 238, .85);
  border-radius: 50%;
  padding: 3px;
  width: 22px; height: 22px;
}

.home2-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 6px;
  padding: 18px 14px 14px;
}
.home2-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent;
  border: none;
  padding: 10px 4px 12px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform .12s;
}
.home2-grid-item:active { transform: scale(.94); }
.home2-grid-item img {
  width: 80px; height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(120,90,50,.2));
}
.home2-grid-item span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--ink);
}

/* ════ Promo carousel — swipeable banner ════════════════════ */
.promo-carousel {
  position: relative;
  margin: 6px 14px 16px;
  width: calc(100% - 28px);
  aspect-ratio: 799 / 195;
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(120,90,50,.18);
  overflow: hidden;
  background: linear-gradient(135deg, #fbf5e6 0%, #f0e2c1 100%);
}
.promo-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.4,.0,.2,1);
  touch-action: pan-y;
}
.promo-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: block;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
}
.promo-slide:active { transform: scale(.995); }
.promo-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--gold);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  z-index: 2;
}
.promo-arrow:hover { opacity: 1; }
.promo-arrow-left { left: 6px; }
.promo-arrow-right { right: 6px; }

.promo-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.promo-dot {
  pointer-events: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(156,114,42,.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all .25s;
}
.promo-dot.on {
  background: var(--accent-d);
  width: 18px;
  border-radius: 999px;
}

/* ─── Sub-screen (full page like notif) ──────────────────────── */
.sub-screen {
  position: absolute; top: 0; left: 0; right: 0; bottom: 88px; z-index: 35;
  display: flex; flex-direction: column;
  background: url('/ICON/background.jpg') center / cover no-repeat;
  background-color: var(--paper-b);
  animation: notif-slide-in .25s cubic-bezier(.22, 1, .36, 1);
}
.sub-screen-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--card2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sub-screen-back {
  background: var(--card); border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sub-screen-back:hover { background: var(--paper); }
.sub-screen-back:active { transform: scale(.95); }
.sub-screen-title {
  font-family: var(--serif);
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  flex: 1;
}
.sub-screen-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 100px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sub-screen-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sub-hero-img {
  display: block;
  width: 100px; height: 100px;
  margin: 6px auto 4px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(120,90,50,.25));
}
.sub-h2 {
  font-family: var(--serif);
  font-size: 19px; font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin: 8px 0 14px;
}
.sub-p {
  font-size: 14px; line-height: 1.7;
  color: var(--text);
  margin: 10px 0;
}
.sub-bullet {
  display: flex; gap: 12px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.sub-bullet-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d18c, var(--gold), var(--gold-d));
  color: #43300f;
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.sub-bullet-t {
  font-weight: 700; color: var(--accent-d);
  font-size: 14.5px;
}
.sub-bullet-d {
  font-size: 13px; color: var(--muted);
  margin-top: 2px; line-height: 1.5;
}
.sub-ol {
  counter-reset: ol-counter;
  list-style: none; padding: 0; margin: 0;
}
.sub-ol li {
  counter-increment: ol-counter;
  position: relative;
  padding: 10px 14px 10px 48px;
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink);
}
.sub-ol li::before {
  content: counter(ol-counter);
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d18c, var(--gold), var(--gold-d));
  color: #43300f;
  font-family: var(--serif); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* Fortune */
.fortune-locked {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 14px;
  text-align: center;
  color: var(--muted);
  gap: 14px;
}
.fortune-result {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 20px 18px;
  margin-top: 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(156,114,42,.25);
}
.fortune-num-label {
  font-size: 12.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 2px;
}
.fortune-num {
  font-family: var(--serif);
  font-size: 72px; font-weight: 700;
  color: var(--accent-d);
  line-height: 1;
  margin: 6px 0;
  text-shadow: 0 2px 4px rgba(176,67,47,.2);
}
.fortune-divider {
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 12px; letter-spacing: 3px;
}
.fortune-text {
  font-size: 14.5px; line-height: 1.7;
  color: var(--ink);
}

/* Video */
.video-frame {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Bottom nav bell badge */
.nav-bell-wrap {
  position: relative;
  display: inline-flex;
}
.nav-bell-dot {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px; font-weight: 700; line-height: 17px;
  text-align: center;
  border: 1.5px solid var(--card);
  box-shadow: 0 1px 3px rgba(176,67,47,.4);
}

/* ─── Notifications ──────────────────────────────────────────── */
/* Hide bell when any full-page overlay sibling is rendered (CSS safety net) */
.scan-stage ~ .notif-bell,
.detail-sheet ~ .notif-bell,
.cert-stage ~ .notif-bell,
.notif-screen ~ .notif-bell,
.stats-screen ~ .notif-bell,
.install-wrap ~ .notif-bell,
.forgot-backdrop ~ .notif-bell { display: none !important; }

.notif-bell {
  position: absolute; top: 14px; right: 14px; z-index: 70;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 250, 238, .92);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(120, 90, 50, .18);
  transition: transform .15s, box-shadow .2s, background .15s;
}
.notif-bell:hover { background: var(--card); box-shadow: 0 4px 12px rgba(120, 90, 50, .25); }
.notif-bell:active { transform: scale(.95); }
.notif-bell.has-unread { color: var(--accent-d); }
.notif-bell.has-unread svg {
  animation: bell-shake 1.4s ease-in-out infinite;
  transform-origin: 50% 4px;
}
@keyframes bell-shake {
  0%, 100% { transform: rotate(0); }
  6%, 14% { transform: rotate(-10deg); }
  10%, 18% { transform: rotate(10deg); }
  22% { transform: rotate(0); }
}
.notif-dot {
  position: absolute; top: 3px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; line-height: 18px;
  text-align: center;
  border: 2px solid var(--card);
  box-shadow: 0 2px 6px rgba(176, 67, 47, .5);
}

/* Notification screen — full page, behaves like DetailSheet */
.notif-screen {
  position: absolute; inset: 0; z-index: 65;
  display: flex; flex-direction: column;
  background: url('/ICON/background.jpg') center / cover no-repeat;
  background-color: var(--paper-b);
  animation: notif-slide-in .25s cubic-bezier(.22, 1, .36, 1);
}
@keyframes notif-slide-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.notif-screen-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--card2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.notif-back {
  background: var(--card); border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.notif-back:hover { background: var(--paper); }
.notif-back:active { transform: scale(.95); }
.notif-screen-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  flex: 1;
}
.notif-screen-title svg { color: var(--gold-d); }
.notif-screen-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 80px;
}
.notif-empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--faint);
  font-size: 14px;
}
.notif-empty svg { color: var(--faint); opacity: .5; }

.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  cursor: default;
  transition: background .15s;
  position: relative;
}
.notif-item:hover { background: var(--paper); }
.notif-item.unread { background: rgba(199, 154, 71, .08); }
.notif-item-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-d);
}
.notif-approval_approved .notif-item-icon {
  background: linear-gradient(135deg, #d6e8c2, #a3c47a);
  color: #2d4015;
}
.notif-approval_rejected .notif-item-icon {
  background: rgba(176, 67, 47, .12);
  color: var(--accent-d);
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-weight: 700; font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
}
.notif-item-msg {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}
.notif-item-time {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
}
.notif-item-dot {
  position: absolute; top: 18px; right: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Travel stats screen (full page) ────────────────────────── */
.stats-screen {
  position: absolute; top: 0; left: 0; right: 0; bottom: 88px; z-index: 35;
  display: flex; flex-direction: column;
  background: url('/ICON/background.jpg') center / cover no-repeat;
  background-color: var(--paper-b);
  animation: notif-slide-in .25s cubic-bezier(.22, 1, .36, 1);
}
.stats-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--card2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.stats-back {
  background: var(--card); border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.stats-back:hover { background: var(--paper); }
.stats-back:active { transform: scale(.95); }
.stats-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  flex: 1;
}
.stats-title svg { color: var(--accent); }
.stats-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 100px;
}

.stats-grid {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 6px;
}
.stats-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(120,90,50,.06);
  position: relative;
  overflow: hidden;
}
.stats-card-ic {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-d);
  margin-bottom: 8px;
}
.stats-card-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  border-color: var(--accent-d);
  color: #fff;
}
.stats-card-primary .stats-card-ic {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.stats-card-n {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.stats-card-primary .stats-card-n { color: #fff; }
.stats-card-n small { font-size: 16px; color: var(--muted); font-weight: 600; }
.stats-card-primary .stats-card-n small { color: rgba(255,255,255,.7); }
.stats-card-l {
  font-size: 12px; color: var(--muted);
  margin-top: 4px;
}
.stats-card-primary .stats-card-l { color: rgba(255,255,255,.82); }

.stats-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--faint);
}
.stats-empty svg { color: var(--faint); opacity: .55; }

.stats-timeline {
  position: relative;
  padding-left: 0;
}
.stats-tl-item {
  display: flex; gap: 14px;
  padding: 0 0 16px;
  position: relative;
}
.stats-tl-item:not(.is-last)::before {
  content: '';
  position: absolute;
  left: 16px; top: 36px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-d) 50%, var(--line));
  opacity: .5;
}
.stats-tl-marker {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d18c, var(--gold) 55%, var(--gold-d));
  color: #43300f;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 6px rgba(156, 114, 42, .35);
  z-index: 1;
}
.stats-tl-body {
  flex: 1; min-width: 0;
  padding-top: 2px;
}
.stats-tl-name {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  color: var(--ink);
}
.stats-tl-area {
  font-size: 12.5px; color: var(--muted);
  margin-top: 2px;
}
.stats-tl-date {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--accent-d);
  margin-top: 4px;
}

.stats-pending-list {
  display: flex; flex-direction: column; gap: 8px;
}
.stats-pending-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stats-pending-name {
  flex: 1; min-width: 0;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
}

/* ─── Inquiry form (Profile → ติดต่อสอบถาม) ───────────────────── */
.inquiry-form {
  margin-top: 14px;
  padding: 14px 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 8px var(--shadow);
}
.inquiry-title {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.inquiry-label {
  display: block;
  font-size: 12.5px; color: var(--muted);
  margin-bottom: 6px;
}
.inquiry-textarea {
  display: block; width: 100%;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit; font-size: 14px;
  color: var(--ink);
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.inquiry-textarea::placeholder { color: var(--faint); }
.inquiry-textarea:focus {
  outline: none;
  border-color: var(--gold-d);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.inquiry-err {
  background: rgba(176, 67, 47, 0.1);
  border: 1px solid rgba(176, 67, 47, 0.3);
  color: var(--accent-d);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-top: 8px;
}
.inquiry-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #fff;
  border: none; border-radius: 12px;
  padding: 12px 16px;
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(140, 49, 34, 0.28);
  transition: filter 0.15s, transform 0.08s;
}
.inquiry-submit:hover:not(:disabled) { filter: brightness(1.05); }
.inquiry-submit:active:not(:disabled) { transform: scale(0.98); }
.inquiry-submit:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}
.inquiry-done {
  text-align: center;
  padding: 22px 14px;
}
.inquiry-done-ic {
  width: 52px; height: 52px; margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d6e8c2, #a3c47a);
  color: #2d4015;
  display: flex; align-items: center; justify-content: center;
}
.inquiry-done-title {
  font-family: var(--serif);
  font-size: 16px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.inquiry-done-sub {
  font-size: 13px; color: var(--muted);
  line-height: 1.5; margin-bottom: 12px;
}

/* ─── Forgot password modal ─────────────────────────────────────── */
.forgot-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 14, 8, 0.55);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  font-family: 'Sarabun', system-ui, sans-serif;
  animation: forgot-fade 0.18s ease-out;
}
@keyframes forgot-fade { from { opacity: 0; } to { opacity: 1; } }
.forgot-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: forgot-pop 0.22s cubic-bezier(0.22, 1.2, 0.36, 1);
  color: #1f2937;
}
@keyframes forgot-pop {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.forgot-close {
  position: absolute; top: 14px; right: 14px;
  background: #f1f5f9; border: none;
  width: 32px; height: 32px; border-radius: 50%;
  color: #64748b; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.forgot-close:hover { background: #e2e8f0; color: #1e293b; }

.forgot-title {
  font-size: 22px; font-weight: 700;
  color: #111827; margin-bottom: 8px;
  padding-right: 32px;
  display: flex; align-items: center; gap: 6px;
}
.forgot-emoji { font-size: 26px; }
.forgot-sub {
  font-size: 14px; color: #64748b;
  line-height: 1.5; margin: 0 0 18px;
}

.forgot-method {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  border: none; border-radius: 12px;
  padding: 14px 18px;
  font: inherit; font-size: 16px; font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 12px;
  transition: filter 0.15s, transform 0.08s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.forgot-method:hover { filter: brightness(1.05); }
.forgot-method:active { transform: scale(0.98); }
.forgot-method-email {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}
.forgot-method-line {
  background: linear-gradient(135deg, #06C755, #04a347);
}
.forgot-method-icon { font-size: 18px; }

.forgot-help {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13px; line-height: 1.5;
  color: #713f12;
}
.forgot-help-icon { font-size: 18px; flex-shrink: 0; }
.forgot-help b { color: #92400e; font-weight: 700; }

.forgot-input {
  display: block; width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit; font-size: 16px;
  color: #1f2937;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.forgot-input:focus {
  outline: none;
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}

.forgot-submit {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: #ffffff;
  border: none; border-radius: 12px;
  padding: 14px 18px;
  font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.28);
  transition: filter 0.15s, transform 0.08s;
}
.forgot-submit:hover:not(:disabled) { filter: brightness(1.08); }
.forgot-submit:active:not(:disabled) { transform: scale(0.98); }
.forgot-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.forgot-submit-line {
  background: linear-gradient(135deg, #06C755, #04a347);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.32);
}

.forgot-back {
  display: block; width: 100%;
  background: none; border: none;
  font: inherit; font-size: 14px; color: #64748b;
  cursor: pointer;
  padding: 12px 0 0;
  text-align: center;
}
.forgot-back:hover { color: #0891b2; }

.forgot-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

.profile-logout {
  margin: 16px auto 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); padding: 8px 14px;
  border-radius: 999px; font: inherit; font-size: 13px;
  cursor: pointer;
}
.profile-logout:hover { color: var(--accent-d); border-color: var(--accent); }
