:root {
  --brand: #0ea574;
  --brand-dark: #07835b;
  --brand-soft: #e8f8f1;
  --accent: #f59e0b;
  --danger: #ef4444;
  --info: #2563eb;
  --bg: #f4f7f6;
  --card: #ffffff;
  --text: #111827;
  --text-sub: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: #e9efec;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.hidden { display: none !important; }
.flex-1 { flex: 1; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.muted { color: var(--text-sub); font-size: 12px; font-weight: 400; }

.app-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 36px rgba(15, 23, 42, 0.08);
}

/* Auth View */
.auth-view {
  min-height: 100vh;
  background: linear-gradient(165deg, #067a54 0%, #0ea574 40%, var(--bg) 40.2%);
  padding: 44px 18px 32px;
}
.auth-hero { color: #fff; margin-bottom: 24px; padding: 0 4px; }
.brand-badge {
  display: inline-block; background: rgba(255,255,255,.22);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
.auth-hero h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.28; }
.auth-hero p { margin: 0; font-size: 13px; opacity: .94; }

.auth-card {
  background: var(--card); border-radius: 20px; padding: 20px;
  box-shadow: 0 12px 32px rgba(6, 122, 84, 0.14);
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; background: #f3f4f6;
  border-radius: 12px; padding: 4px; margin-bottom: 18px;
}
.auth-tab {
  border: 0; background: transparent; padding: 10px; border-radius: 10px;
  font-weight: 600; color: var(--text-sub); cursor: pointer;
}
.auth-tab.active { background: #fff; color: var(--brand-dark); box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.auth-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); text-align: center;
}
.auth-highlights strong { display: block; color: var(--brand-dark); font-size: 16px; }
.auth-highlights span { font-size: 11px; color: var(--text-sub); }

/* Topbar & Layout */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-logo {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #059669);
  color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.topbar-title { font-weight: 700; font-size: 16px; }
.btn-ai-top {
  border: 0; background: linear-gradient(135deg, #2563eb, #0ea574); color: #fff;
  border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700; cursor: pointer;
}

.page-container { padding: 12px 14px calc(86px + env(safe-area-inset-bottom)); }
.tab-page { display: none; }
.tab-page.active { display: block; animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

/* 滚动公告栏（无缝横向跑马灯） */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  padding: 7px 10px; border-radius: 12px; font-size: 12px; margin-bottom: 12px; overflow: hidden;
}
.notice-tag {
  background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 6px; flex-shrink: 0;
}
.notice-marquee { flex: 1; overflow: hidden; white-space: nowrap; position: relative; }
.notice-track {
  display: inline-block; padding-left: 100%; white-space: nowrap;
  animation: sphMarquee 16s linear infinite;
}
.notice-marquee:hover .notice-track { animation-play-state: paused; }
@keyframes sphMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Hero Balance Card */
.hero-card {
  background: linear-gradient(135deg, #067a54 0%, #0ea574 60%, #10b981 100%);
  color: #fff; border-radius: 20px; padding: 18px;
  box-shadow: 0 10px 24px rgba(14, 165, 116, 0.25);
  margin-bottom: 12px;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-label { font-size: 12px; opacity: .88; }
.hero-money { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; }
.hero-withdraw-btn {
  border: 0; background: rgba(255,255,255,.24); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 12px; cursor: pointer;
}
.hero-tri {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.22);
}
.tri-item { cursor: pointer; }
.tri-name { display: block; font-size: 11px; opacity: .85; }
.tri-item strong { font-size: 16px; font-weight: 700; }

/* 单步新手引导轻卡（简洁1行不占屏） */
.step-guide-card {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a; border-radius: 16px; padding: 12px 14px;
  margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.step-guide-badge {
  display: inline-block; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; margin-bottom: 4px;
}
.step-guide-title { font-size: 14px; font-weight: 700; color: #78350f; }
.step-guide-sub { font-size: 11px; color: #92400e; margin-top: 2px; }

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-title { font-size: 15px; font-weight: 700; }
.card-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin: 12px 2px 8px; }
.section-title { font-size: 15px; font-weight: 700; }

/* 平台分配资料小条（名称+签名一键复制） */
.assign-box {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 12px; font-size: 12px;
}
.assign-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; }
.assign-row:last-child { margin-bottom: 0; }
.assign-label { color: #166534; font-weight: 600; flex-shrink: 0; }
.assign-val { flex: 1; color: #14532d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-mini {
  border: 0; background: #fff; color: var(--brand-dark); border: 1px solid #86efac;
  border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}

/* Account Pills */
.account-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.acc-pill {
  flex-shrink: 0; border: 1px solid var(--border); background: #fff;
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.acc-pill.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.dot.ok { background: #10b981; }
.dot.warn { background: #f59e0b; }
.dot.err { background: #ef4444; }

/* Claim Panel */
.claim-card { padding: 16px; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill-brand { background: var(--brand-soft); color: var(--brand-dark); }
.pill-warn { background: #fef3c7; color: #b45309; }
.pill-danger { background: #fee2e2; color: #b91c1c; }
.pill-info { background: #dbeafe; color: #1d4ed8; }
.pill-gray { background: #f3f4f6; color: #4b5563; }

.alert-box { padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; font-size: 13px; }
.alert-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.metric-box { background: #f8fafc; border-radius: 12px; padding: 10px 6px; text-align: center; }
.metric-box strong { display: block; font-size: 18px; color: var(--text); }
.metric-box span { font-size: 11px; color: var(--text-sub); }

.streak-box {
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  border-radius: 12px; padding: 9px 12px; margin-bottom: 12px;
}
.streak-head { display: flex; justify-content: space-between; font-size: 12px; color: #92400e; margin-bottom: 7px; }
.streak-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s-node { background: rgba(255,255,255,.8); border-radius: 8px; padding: 5px; text-align: center; font-size: 11px; color: #92400e; }
.s-node.reached { background: #f59e0b; color: #fff; font-weight: 700; }

.claim-cta {
  width: 100%; border: 0; border-radius: 14px; padding: 14px 16px;
  font-size: 16px; font-weight: 800; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #0ea574, #059669);
  box-shadow: 0 8px 20px rgba(14, 165, 116, 0.3);
}
.claim-cta.disabled { background: #cbd5e1; box-shadow: none; color: #475569; }
.claim-cta.claimed { background: #dcfce7; color: #166534; box-shadow: none; }

/* Buttons & Forms */
.btn {
  border: 0; border-radius: 12px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 5px;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-warn { background: var(--accent); color: #fff; }
.btn-gold { background: linear-gradient(180deg, #fff4a8, #f2c94c); color: #7c2d12; font-weight: 800; }
.btn-outline { background: #fff; border: 1px solid var(--brand); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-ghost-sm {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-sm { padding: 7px 11px; font-size: 12px; border-radius: 10px; }
.btn-lg { padding: 13px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; }
.link-btn { border: 0; background: transparent; color: var(--brand-dark); font-weight: 600; font-size: 13px; cursor: pointer; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 12px; font-size: 14px; background: #fff; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--brand); }

.banner-mini {
  background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff;
  border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.banner-mini p { margin: 3px 0 0; font-size: 11px; color: #cbd5e1; }

.chip-group-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip {
  border: 1px solid var(--border); background: #fff; padding: 9px 4px;
  border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-sub); cursor: pointer;
}
.chip.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }

.upload-box {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; border: 1.5px dashed #cbd5e1; border-radius: 14px;
  background: #f8fafc; cursor: pointer; overflow: hidden; text-align: center; padding: 10px;
}
.upload-icon { font-size: 26px; color: var(--brand); line-height: 1; }
.upload-hint { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.upload-preview { max-width: 100%; max-height: 160px; border-radius: 10px; }

/* Referral & 老平台风格排行榜 */
.ref-hero {
  background: linear-gradient(135deg, #e14938, #f97316);
  color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(225, 73, 56, 0.25);
}
.ref-hero h2 { margin: 0 0 12px; font-size: 19px; text-align: center; }
.ref-rewards {
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255,255,255,.16); border-radius: 14px; padding: 11px;
}
.ref-rewards strong { display: block; font-size: 24px; text-align: center; }
.ref-rewards span { font-size: 12px; opacity: .92; }
.ref-divider { width: 1px; height: 32px; background: rgba(255,255,255,.32); }

.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.stats-4 strong { display: block; font-size: 17px; color: var(--brand-dark); }
.stats-4 span { font-size: 11px; color: var(--text-sub); }

.rank-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: #f1f5f9; padding: 4px; border-radius: 12px; margin-bottom: 12px;
}
.rank-tab {
  border: 0; background: transparent; padding: 8px; border-radius: 9px;
  font-weight: 700; font-size: 13px; color: #64748b; cursor: pointer;
}
.rank-tab.active { background: #fff; color: #0f172a; box-shadow: 0 2px 6px rgba(0,0,0,.07); }

.champ-card {
  background: linear-gradient(135deg, #ff8a3d, #ff5a2c); color: #fff;
  border-radius: 14px; padding: 13px 15px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.champ-crown { font-size: 26px; }
.champ-money { font-size: 20px; font-weight: 800; }

.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 12px; background: #fafbfd; margin-bottom: 6px;
}
.rank-item.top { background: #fff6f2; }
.rank-no {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: #e5e7eb; color: #6b7280; flex-shrink: 0;
}
.rank-no.g1 { background: linear-gradient(135deg, #ffd54a, #f59e0b); color: #fff; }
.rank-no.g2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #fff; }
.rank-no.g3 { background: linear-gradient(135deg, #f0b384, #cd7f43); color: #fff; }
.rank-val b { color: #ea580c; font-size: 15px; }

/* 海报切换 */
.poster-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.poster-tab {
  border: 1px solid var(--border); background: #fff; border-radius: 10px;
  padding: 7px 4px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.poster-tab.active { background: #dc2626; border-color: #dc2626; color: #fff; }

/* Wallet & Pager */
.profile-row { display: flex; align-items: center; gap: 12px; }
.avatar-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 17px; font-weight: 800; display: grid; place-items: center;
}
.profile-name { font-size: 16px; font-weight: 700; }
.profile-phone { font-size: 12px; color: var(--text-sub); }
.alipay-bar {
  margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #f8fafc;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px;
}

.wallet-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.wallet-tab {
  border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 8px 4px;
  font-weight: 700; font-size: 13px; color: var(--text-sub); cursor: pointer;
}
.wallet-tab small { display: block; font-weight: 400; font-size: 10px; margin-top: 1px; }
.wallet-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.wallet-item-card {
  background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}
.wallet-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wallet-money { font-size: 24px; font-weight: 800; color: var(--brand-dark); }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tier-btn {
  border: 1.5px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 12px; padding: 10px 4px; text-align: center; cursor: pointer; font-weight: 700; font-size: 15px;
}
.tier-btn.muted-tier { border-color: #e5e7eb; background: #f8fafc; color: #94a3b8; }

.pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 12px; color: var(--text-sub);
}
.pager button {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 5px 12px; font-size: 12px; cursor: pointer; color: var(--text);
}
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* List Rows */
.list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.list-row:last-child { border-bottom: 0; }
.list-main { font-size: 13px; font-weight: 600; }
.list-sub { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.amount-pos { color: var(--brand-dark); font-weight: 700; }
.amount-neg { color: var(--danger); font-weight: 700; }
.empty-box { text-align: center; color: var(--text-sub); padding: 24px 12px; font-size: 13px; }

/* Bottom 4-Tabbar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,.06);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab-btn {
  border: 0; background: transparent; display: flex; flex-direction: column;
  align-items: center; gap: 2px; font-size: 11px; color: var(--text-sub); cursor: pointer; padding: 4px 0;
}
.tab-btn.active { color: var(--brand-dark); font-weight: 700; }
.tab-ic { font-size: 19px; line-height: 1.1; }

/* Floating AI Button */
.fab-ai {
  position: fixed; right: max(14px, calc(50% - 226px)); bottom: calc(74px + env(safe-area-inset-bottom));
  z-index: 25; border: 0; border-radius: 999px; padding: 10px 14px;
  background: linear-gradient(135deg, #2563eb, #0ea574); color: #fff;
  font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); cursor: pointer;
}

/* Modal & Drawer */
.modal-overlay, .drawer-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, 0.55); display: flex; align-items: flex-end; justify-content: center;
}
.modal-sheet, .drawer-sheet {
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 22px 22px 0 0; padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
}
.drawer-sheet { height: 84vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-head, .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-sub { font-size: 11px; color: var(--text-sub); }
.modal-close { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #f3f4f6; font-size: 14px; cursor: pointer; }

/* AI助手对话 + 窗内超链接按钮 + 点赞反馈 */
.chat-area { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 6px 2px; display: flex; flex-direction: column; gap: 10px; }
.msg-wrap { display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.msg-wrap.user { align-self: flex-end; }
.msg-wrap.ai { align-self: flex-start; }
.msg { padding: 10px 12px; border-radius: 14px; font-size: 13px; white-space: pre-wrap; }
.msg-ai { background: #f1f5f9; color: var(--text); border-bottom-left-radius: 4px; }
.msg-user { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }

.ai-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-action-link {
  border: 1px solid #93c5fd; background: #eff6ff; color: #1d4ed8;
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.ai-fb-row { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #94a3b8; }
.ai-fb-btn {
  border: 1px solid #e2e8f0; background: #fff; color: #64748b; border-radius: 999px;
  padding: 2px 8px; font-size: 11px; cursor: pointer;
}
.ai-fb-btn.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }

.quick-asks { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; }
.quick-asks button {
  flex-shrink: 0; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; padding: 5px 10px; font-size: 11px; cursor: pointer;
}
.chat-input-bar { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.chat-input-bar input { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }

.qr-box { text-align: center; padding: 12px; background: #f8fafc; border-radius: 16px; }
.qr-box img { max-width: 240px; width: 100%; border-radius: 12px; border: 1px solid var(--border); }

.milestone-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: #f8fafc; margin-bottom: 8px;
}
.milestone-item.done { background: #ecfdf5; border: 1px solid #a7f3d0; }

.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 99; background: rgba(17, 24, 39, 0.92); color: #fff;
  padding: 11px 18px; border-radius: 12px; font-size: 13px; max-width: 82vw; text-align: center;
}
