/* MetaHash AI — Vercel 設計語言（單色精準、Geist、0.5rem 圓角、高密度） */
:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #161616;
  --elevated: #1a1a1a;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #6e6e6e;
  --blue: #0070f3;
  --blue-2: #3291ff;
  --cyan: #00d4ff;
  --green: #0cce6b;
  --red: #f5384e;
  --amber: #f5a623;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --unit: 0.25rem;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.5);
  --font: 'Geist','Inter','Noto Sans TC',system-ui,-apple-system,sans-serif;
  --mono: 'Geist Mono','SF Mono',ui-monospace,monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.006em;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(0,112,243,.35); }

/* 細捲軸 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ===== App Shell ===== */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 18px rgba(0,112,243,.4);
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.brand-name small { display: block; font-size: 10px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 12px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius);
  color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; }
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--elevated); color: var(--text); }
.nav-item.active i { color: var(--blue-2); }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; height: 56px;
  background: rgba(10,10,10,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.balance-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border); font-size: 13px;
}
.balance-chip .v { font-family: var(--mono); font-weight: 600; }
.balance-chip .green { color: var(--green); }
.avatar {
  width: 30px; height: 30px; border-radius: 999px; background: var(--elevated);
  border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.content { padding: 24px; max-width: 1200px; width: 100%; }

/* ===== 元件 ===== */
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.page-head p { margin: 0; color: var(--text-2); font-size: 13.5px; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.card.hover { transition: border-color .15s, transform .15s; }
.card.hover:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.stat-label { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.stat-label i { color: var(--text-3); }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-top: 8px; font-family: var(--mono); }
.stat-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-value.live { color: var(--green); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.section-head a { font-size: 12.5px; color: var(--text-2); }
.section-head a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .15s; font-family: var(--font);
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: #0a0a0a; }
.btn-primary:hover { background: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--panel-2); border-color: #555; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--text-2);
}
.badge.blue { background: rgba(0,112,243,.12); color: var(--blue-2); border-color: rgba(0,112,243,.3); }
.badge.green { background: rgba(12,206,107,.12); color: var(--green); border-color: rgba(12,206,107,.3); }
.badge.amber { background: rgba(245,166,35,.12); color: var(--amber); border-color: rgba(245,166,35,.3); }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 10px 12px; color: var(--text-3); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--panel-2); }
.mono { font-family: var(--mono); }
.green { color: var(--green); }
.red { color: var(--red); }
.muted { color: var(--text-2); }

/* Product card */
.product { display: flex; flex-direction: column; gap: 14px; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.product-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.product-rate { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-family: var(--mono); color: var(--green); }
.product-rate small { font-size: 13px; color: var(--text-2); font-weight: 500; }
.product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product-meta .k { font-size: 11px; color: var(--text-3); }
.product-meta .v { font-size: 14px; font-weight: 600; margin-top: 2px; font-family: var(--mono); }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.input {
  width: 100%; padding: 10px 12px; border-radius: var(--radius); font-size: 14px;
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--text); font-family: var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,112,243,.2); }

.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; }
.alert.err { background: rgba(245,56,78,.12); color: #ff8a96; border: 1px solid rgba(245,56,78,.3); }
.alert.ok { background: rgba(12,206,107,.12); color: #5ee6a0; border: 1px solid rgba(12,206,107,.3); }

/* Mobile bottom nav */
.mnav { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { padding: 12px 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .mnav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(10,10,10,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 8px 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .mnav a {
    display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--text-3);
  }
  .mnav a i { font-size: 17px; }
  .mnav a.active { color: var(--text); }
  .mnav a.active i { color: var(--blue-2); }
  .balance-chip .lbl { display: none; }
  .product-rate { font-size: 26px; }
}

/* select / textarea 沿用 input 樣式 */
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--text-3) 50%),linear-gradient(135deg,var(--text-3) 50%,transparent 50%); background-position: calc(100% - 18px) 18px,calc(100% - 13px) 18px; background-size: 5px 5px,5px 5px; background-repeat: no-repeat; padding-right: 32px; }
textarea.input { resize: vertical; min-height: 64px; font-family: var(--font); }

/* ===== Admin Shell ===== */
body.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
body.admin .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
body.admin .brand { display: flex; align-items: center; gap: 10px; padding: 18px; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; border-bottom: 1px solid var(--border); }
.brand-sub { font-size: 10px; color: var(--blue-2); font-weight: 700; padding: 2px 6px; border: 1px solid rgba(0,112,243,.3); border-radius: 5px; background: rgba(0,112,243,.1); }
body.admin .app-main { display: flex; flex-direction: column; min-width: 0; }
body.admin .topbar-title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
body.admin .topbar-actions { display: flex; align-items: center; gap: 12px; }

@media (max-width: 860px) {
  body.admin { grid-template-columns: 1fr; }
  body.admin .sidebar { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; border-right: none; border-top: 1px solid var(--border); overflow-x: auto; z-index: 40; }
  body.admin .brand, body.admin .nav-label, body.admin .sidebar-foot { display: none; }
  body.admin .nav { flex-direction: row; padding: 6px; }
  body.admin .nav-item { flex-direction: column; gap: 2px; font-size: 10px; padding: 6px 8px; white-space: nowrap; }
  body.admin .content { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Phase 3：積分 / 裂變 / 生態 ===== */
.announce { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg,rgba(245,166,35,.12),rgba(245,166,35,.02)); border: 1px solid rgba(245,166,35,.28); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: 13px; color: #f7c668; }
.announce i { color: var(--amber); font-size: 15px; }

/* 簽到 */
.checkin-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.checkin-cell { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 4px; text-align: center; }
.checkin-cell .cd { font-size: 11px; color: var(--text-3); }
.checkin-cell .ci { font-size: 18px; margin: 7px 0; color: var(--text-3); }
.checkin-cell .cp { font-size: 12px; font-weight: 700; color: var(--text-2); }
.checkin-cell.done { border-color: rgba(12,206,107,.4); background: rgba(12,206,107,.08); }
.checkin-cell.done .ci, .checkin-cell.done .cp { color: var(--green); }
.checkin-cell.next { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.checkin-cell.next .ci, .checkin-cell.next .cp { color: var(--blue-2); }

/* 積分商城 */
.point-prod { text-align: center; }
.point-prod .pp-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--cyan); background: rgba(0,212,255,.1); }
.point-prod .pp-name { font-weight: 700; font-size: 14.5px; }
.point-prod .pp-sub { font-size: 12px; color: var(--text-2); margin: 5px 0 12px; min-height: 32px; line-height: 1.5; }
.point-prod .pp-cost { font-family: var(--mono); font-weight: 700; margin-bottom: 12px; }
.point-prod .pp-cost small { font-family: var(--font); font-weight: 400; color: var(--text-3); font-size: 11px; }

/* 等級卡 */
.tier-card { border-color: color-mix(in srgb, var(--tier-color) 30%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--tier-color) 12%, transparent), transparent); }
.tier-head { display: flex; align-items: center; gap: 14px; }
.tier-badge { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: var(--tier-color); background: color-mix(in srgb, var(--tier-color) 16%, transparent); }
.tier-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.tier-rate { margin-left: auto; text-align: right; }
.tier-prog { margin-top: 16px; }
.tier-prog-bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.tier-prog-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,var(--blue),var(--cyan)); transition: width .4s; }

/* 任務 */
.mission-card .tier-prog-bar span { background: linear-gradient(90deg,var(--amber),#f7c668); }

/* 排名獎牌 */
.rank-medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #000; }
.rank-medal.rank-1 { background: linear-gradient(135deg,#ffd700,#ffb300); }
.rank-medal.rank-2 { background: linear-gradient(135deg,#e0e0e0,#a8a8a8); }
.rank-medal.rank-3 { background: linear-gradient(135deg,#e8a06a,#cd7f32); }

/* 團隊樹 */
.tree { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; overflow-x: auto; }
.tree-root { padding-left: 6px; }
.tree-branch { padding-left: 22px; border-left: 2px solid var(--border); margin-left: 22px; padding-top: 8px; }
.tree-children { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 22px; border-left: 2px dashed var(--border); margin: 8px 0 0 14px; padding-top: 8px; }
.node { display: inline-flex; align-items: center; gap: 9px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.node-av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(0,112,243,.14); color: var(--blue-2); }
.node-av.sm { width: 26px; height: 26px; font-size: 12px; }
.node-me .node-av { background: linear-gradient(135deg,var(--blue),var(--cyan)); color: #fff; }
.node-name { font-size: 13px; font-weight: 600; }
.node-meta { font-size: 11px; color: var(--text-3); font-family: var(--mono); }

/* 生態 */
.eco-mod .eco-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.roadmap { display: flex; flex-direction: column; gap: 0; }
.rm-item { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.rm-item:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.rm-dot { flex-shrink: 0; width: 28px; height: 28px; border-radius: 99px; background: var(--panel-2); border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 11px; color: var(--text-3); z-index: 1; }
.rm-done .rm-dot { background: rgba(12,206,107,.15); border-color: var(--green); color: var(--green); }
.rm-active .rm-dot { background: rgba(0,112,243,.15); border-color: var(--blue); color: var(--blue-2); }
.rm-time { font-family: var(--mono); font-size: 12px; color: var(--text-2); margin-bottom: 3px; }
.rm-title { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }

@media (max-width: 860px) {
  .checkin-row { grid-template-columns: repeat(4,1fr); }
  .tier-head { flex-wrap: wrap; } .tier-rate { margin-left: 0; }
}

/* ===== Phase 4：UI 精煉升級 ===== */

/* Tab 分頁籤 */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab { flex: 1; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; border: none; background: transparent; white-space: nowrap; transition: color .15s, background .15s; position: relative; }
.tab i { font-size: 14px; opacity: .85; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: var(--elevated); box-shadow: var(--shadow); }
.tab .tab-count { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: rgba(0,112,243,.18); color: var(--blue-2); font-family: var(--mono); }
.tab-panel { display: none; animation: fadeUp .35s ease both; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 緊湊簽到（橫向膠囊條） */
.checkin-strip { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
.checkin-pill { flex: 1; min-width: 56px; text-align: center; padding: 8px 4px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border); position: relative; transition: transform .15s; }
.checkin-pill .cd { font-size: 10px; color: var(--text-3); }
.checkin-pill .cp { font-size: 12px; font-weight: 800; font-family: var(--mono); margin-top: 3px; color: var(--text-2); }
.checkin-pill.done { background: rgba(12,206,107,.1); border-color: rgba(12,206,107,.35); }
.checkin-pill.done .cp { color: var(--green); }
.checkin-pill.done::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 2px; right: 4px; font-size: 8px; color: var(--green); }
.checkin-pill.next { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.checkin-pill.next .cp { color: var(--blue-2); }

/* 即時動態跑馬燈 */
.ticker { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; margin-bottom: 18px; overflow: hidden; height: 42px; }
.ticker-tag { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 100%; font-size: 12px; font-weight: 700; color: var(--green); background: rgba(12,206,107,.08); border-right: 1px solid var(--border); }
.ticker-tag .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 0 rgba(12,206,107,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(12,206,107,.6); } 70% { box-shadow: 0 0 0 6px rgba(12,206,107,0); } 100% { box-shadow: 0 0 0 0 rgba(12,206,107,0); } }
.ticker-track { display: flex; align-items: center; gap: 38px; white-space: nowrap; animation: scrollX 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.ticker-item b { color: var(--text); font-family: var(--mono); }
.ticker-item i { font-size: 12px; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 成就徽章 */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.ach { text-align: center; padding: 18px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); transition: transform .18s, border-color .18s; }
.ach.unlocked { border-color: color-mix(in srgb, var(--amber) 35%, var(--border)); background: linear-gradient(160deg, rgba(245,166,35,.1), transparent); }
.ach.unlocked:hover { transform: translateY(-3px); }
.ach-ico { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--bg); color: var(--text-3); position: relative; }
.ach.unlocked .ach-ico { background: rgba(245,166,35,.16); color: var(--amber); }
.ach.locked .ach-ico::after { content: '\f023'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; bottom: -3px; right: -3px; font-size: 11px; width: 20px; height: 20px; border-radius: 99px; background: var(--elevated); display: grid; place-items: center; color: var(--text-3); border: 2px solid var(--panel-2); }
.ach-name { font-size: 13.5px; font-weight: 700; }
.ach-desc { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.45; }
.ach.unlocked .ach-name { color: var(--text); }

/* 緊湊水平路線圖 */
.roadmap-h { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px,1fr); gap: 0; overflow-x: auto; padding-bottom: 6px; }
.rmh-item { position: relative; padding: 28px 14px 4px; }
.rmh-item::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--border); }
.rmh-item:first-child::before { left: 50%; }
.rmh-item:last-child::before { right: 50%; }
.rmh-dot { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 99px; background: var(--panel-2); border: 2px solid var(--border-strong); z-index: 1; }
.rmh-done .rmh-dot { background: var(--green); border-color: var(--green); }
.rmh-active .rmh-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,112,243,.18); }
.rmh-time { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.rmh-title { font-size: 13px; font-weight: 700; margin: 2px 0; }
.rmh-active .rmh-title { color: var(--blue-2); }
.rmh-desc { font-size: 11px; color: var(--text-3); line-height: 1.45; }

/* 載入交錯顯現 */
.reveal { animation: fadeUp .45s ease both; }
.reveal:nth-child(1){animation-delay:.02s}.reveal:nth-child(2){animation-delay:.06s}.reveal:nth-child(3){animation-delay:.10s}.reveal:nth-child(4){animation-delay:.14s}.reveal:nth-child(5){animation-delay:.18s}.reveal:nth-child(6){animation-delay:.22s}

/* 卡片微互動強化 */
.card.hover { transition: transform .18s, border-color .18s, box-shadow .18s; }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* 幫助/活動中心 */
.acc { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; cursor: pointer; font-weight: 600; font-size: 14px; background: var(--panel-2); }
.acc-q i { transition: transform .2s; color: var(--text-3); }
.acc.open .acc-q i { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc.open .acc-a { max-height: 320px; }
.acc-a-inner { padding: 0 16px 16px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.event-card { display: flex; gap: 14px; align-items: center; }
.event-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(0,112,243,.12); color: var(--blue-2); }

@media (max-width: 860px) {
  .tab { padding: 8px 12px; font-size: 12.5px; }
  .badge-grid { grid-template-columns: repeat(2,1fr); }
}
