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

:root {
  --cyan: #5ce0f0;
  --cyan-deep: #3dd4e8;
  --cyan-glow: rgba(92, 224, 240, 0.25);
  --lime: #c8f04a;
  --ink: #0f172a;
  --ink2: #334155;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --card: #f8fafc;
  --safe: #7ec8ff;
  --bg: #f1f5f9;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --bar-h: 56px;
}

html { height: 100%; }

body {
  font-family: -apple-system, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  background: #fff;
  color: var(--ink);
  min-height: 100%;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}

button, a, input { font: inherit; }
img { display: block; }

/* ====== Full-screen layout — 去掉 phone 外壳 ====== */
.phone {
  width: 100%;
  min-height: 100dvh;
  background: #fff;
  position: relative;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--bar-h);
}

/* ====== Fixed Bottom Tab Bar ====== */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  height: var(--bar-h);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.bar-item.active {
  color: var(--cyan-deep);
  font-weight: 600;
}

.bar-item:active { opacity: 0.6; }

.bar-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar-icon svg { width: 22px; height: 22px; }

/* ====== Shared Nav ====== */
.nav {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 10px 8px 6px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.page-getgas .nav {
  background: rgba(122, 235, 245, 0.45);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  border-radius: 50%;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nav-btn:active { background: rgba(0, 0, 0, 0.06); }

.nav-btn.help {
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: all var(--transition);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: rgba(255,255,255,0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 8px 28px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  max-width: 120px;
  white-space: nowrap;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  background-size: 10px 6px;
}

.lang-select:focus {
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* ====== Page 1: GetGas ====== */
.page-getgas {
  background: linear-gradient(180deg, #7aebf5 0%, #93f2fa 32%, #c9f9fc 48%, #fff 62%);
}

.hero {
  position: relative;
  padding: 18px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticket {
  width: 100%;
  max-width: 300px;
  background: var(--lime);
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}

.ticket-top {
  padding: 28px 24px 36px;
  min-height: 160px;
  border-radius: 20px 20px 0 0;
}

.off-text {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.off-num { font-size: 60px; }

.off-side {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  line-height: 1;
}

.off-side i { font-style: normal; font-size: 22px; font-weight: 800; }
.off-side b { font-size: 26px; margin-top: 2px; font-weight: 800; }

.gas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.gas-badge:active { transform: scale(0.96); opacity: 0.85; }

.ticket-dash {
  height: 0;
  border-top: 2px dashed rgba(0, 0, 0, 0.15);
  margin: 0 12px;
  position: relative;
}

.ticket-dash::before,
.ticket-dash::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.ticket-dash::before { left: -22px; background: #7aebf5; }
.ticket-dash::after { right: -22px; background: #7aebf5; }

.ticket-bottom { height: 50px; border-radius: 0 0 20px 20px; }

/* ====== Orbit ====== */
.chains-orbit {
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  height: 70px;
  margin-top: -8px;
}

.orbit-ring { position: relative; width: 300px; height: 70px; }

.coin-img {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  background: #fff;
  object-fit: contain;
  padding: 4px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: fly-gather-release 4s ease-in-out infinite;
}

.coin-img:nth-child(1){--from-x:-160px;--from-y:-80px;--to-x:-110px;--to-y:5px;animation-delay:0s}
.coin-img:nth-child(2){--from-x:-60px;--from-y:-100px;--to-x:-70px;--to-y:-10px;animation-delay:.12s}
.coin-img:nth-child(3){--from-x:40px;--from-y:-90px;--to-x:-25px;--to-y:8px;animation-delay:.24s}
.coin-img:nth-child(4){--from-x:140px;--from-y:-70px;--to-x:25px;--to-y:-8px;animation-delay:.36s}
.coin-img:nth-child(5){--from-x:160px;--from-y:20px;--to-x:70px;--to-y:5px;animation-delay:.48s}
.coin-img:nth-child(6){--from-x:-140px;--from-y:40px;--to-x:110px;--to-y:-5px;animation-delay:.6s}
.coin-img:nth-child(7){--from-x:-80px;--from-y:60px;--to-x:-90px;--to-y:12px;animation-delay:.72s}
.coin-img:nth-child(8){--from-x:100px;--from-y:50px;--to-x:90px;--to-y:10px;animation-delay:.84s}

@keyframes fly-gather-release {
  0%   { transform: translate(calc(-50% + var(--from-x)), calc(-50% + var(--from-y))) scale(0.4); opacity: 0; }
  20%  { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  35%  { transform: translate(-50%, -50%) scale(0.75); opacity: 1; }
  55%  { transform: translate(calc(-50% + var(--to-x)), calc(-50% + var(--to-y))) scale(1.05); opacity: 1; }
  70%  { transform: translate(calc(-50% + var(--to-x)), calc(-50% + var(--to-y))) scale(1); opacity: 1; }
  85%  { transform: translate(calc(-50% + var(--to-x) * 0.5), calc(-50% + var(--to-y) * 0.5)) scale(0.8); opacity: 0.8; }
  100% { transform: translate(calc(-50% + var(--from-x)), calc(-50% + var(--from-y))) scale(0.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .coin-img, .btn.pulse { animation: none !important; }
  .coin-img { transform: translate(calc(-50% + var(--to-x)), calc(-50% + var(--to-y))) scale(1) !important; opacity: 1 !important; }
}

/* ====== Content ====== */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 28px;
  background: #fff;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.promo-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: live-dot 1.4s ease-out infinite;
}

@keyframes live-dot {
  0%  { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.headline {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 320px;
}

/* ====== Stats Bar ====== */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 18px;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px;
  background: #fff;
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.stat-num .accent { color: var(--cyan-deep); }

.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
}

.dots span.active {
  width: 20px;
  background: var(--cyan-deep);
}

.tip-banner {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
}

.tip-icon { flex: 0 0 auto; font-size: 16px; line-height: 1.4; }

.tip-banner p {
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
  font-weight: 500;
}

/* ====== Pitch Cards ====== */
.pitch {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pitch-card {
  width: 100%;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 16px;
  transition: all var(--transition);
}

.pitch-card:active { transform: scale(0.98); }

.pitch-card.hot {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #f0fdfa 100%);
  border-color: #fca5a5;
  position: relative;
  overflow: hidden;
}

.pitch-card.hot::after {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }

.pitch-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pitch-head strong { font-size: 15px; font-weight: 750; }

.pitch-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f87171);
  padding: 3px 10px;
  border-radius: 999px;
}

.pitch-chain {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.tron-dot { background: radial-gradient(circle at 30% 30%, #ff6b7a, #ef0027); }
.multi-dot { background: conic-gradient(from 180deg, #ef4444, #14f195, #627eea, #f3ba2f, #ef4444); }

.pitch-card > p { font-size: 13px; color: var(--ink2); line-height: 1.45; }

.pitch-card ul {
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pitch-card li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.pitch-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-deep);
}

/* ====== Benefit Row ====== */
.benefit-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 16px 0 14px;
}

.benefit-row span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  background: linear-gradient(135deg, #ccfbf1, #f0fdfa);
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 8px 0;
}

/* ====== Buttons ====== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.98); opacity: 0.9; }

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #0b3b42;
  box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn.pulse { animation: cta-pulse 2.4s ease-in-out infinite; }

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px var(--cyan-glow); }
  50%      { box-shadow: 0 4px 20px var(--cyan-glow), 0 0 0 8px rgba(92, 224, 240, 0); }
}

.trust {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.shield {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
}


/* ====== Page 2: Gas ====== */
.page-gas { background: var(--bg); }

.page-gas .nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.gas-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 22px 20px 26px;
  position: relative;
  overflow: hidden;
}

.gas-hero-banner::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(92, 224, 240, 0.18), transparent 70%);
  border-radius: 50%;
}

.gas-hero-banner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(200, 240, 74, 0.12), transparent 70%);
  border-radius: 50%;
}

.gas-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
}

.gas-hero-sub {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.gas-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(92, 224, 240, 0.12);
  border: 1px solid rgba(92, 224, 240, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  position: relative;
}

.gas-hero-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  animation: live-dot 1.4s ease-out infinite;
}

.network-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 0.5px solid var(--line);
}

.network-tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.tab:active { opacity: 0.6; }

.tab.active {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #0e7490;
  font-weight: 700;
  border-color: #67e8f9;
}

.tab-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  color: #fff;
}

.tab-icon.sol { background: linear-gradient(135deg, #9945ff, #14f195); }

.gas-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 24px;
  background: #fff;
  margin: 0 0;
  border-radius: 0;
}

.gas-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.gas-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.gas-cards {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gas-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}

.gas-card::after {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #e2e8f0;
  transition: all var(--transition);
}

.gas-card.selectable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gas-card.selectable:active { transform: scale(0.98); }

.gas-card.selectable.active {
  border-color: var(--cyan-deep);
  background: linear-gradient(135deg, #ecfeff, #fff);
  box-shadow: 0 0 0 3px rgba(61, 212, 232, 0.1);
}

.gas-card.selectable.active::after {
  background: var(--cyan-deep);
  width: 4px;
}

.speed { font-size: 15px; font-weight: 700; }

.price-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-block strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.price-block span { font-size: 12px; color: var(--muted); }

.cta-area { margin-top: 20px; width: 100%; }

.cta-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
}

.gas-btn {
  margin-top: 4px;
  background: var(--ink) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

/* ====== Toast ====== */
.toast {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.94);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ====== Footer ====== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 24px 20px 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0b3b42;
  font-weight: 800;
  font-size: 14px;
}

.footer-name { font-size: 15px; font-weight: 700; color: var(--ink); }

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #0e7490;
}

.footer-copy {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ====== Payment Modal ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  overflow-y: auto;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  width: min(100%, 380px);
  max-height: 85vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.22s ease;
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 { font-size: 15px; font-weight: 700; }

.modal-close {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--card);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all var(--transition);
}

.modal-close:active { background: var(--line); }

.modal-body {
  padding: 14px 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--card);
}

.pay-chain-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pay-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.pay-chain-head strong { font-size: 14px; font-weight: 700; }

.pay-amount {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 3px 10px;
  border-radius: 999px;
}

.pay-address {
  font-size: 11.5px;
  word-break: break-all;
  color: var(--ink2);
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.45;
  font-family: "SF Mono", "Menlo", monospace;
}

.pay-qr {
  display: flex;
  justify-content: center;
  margin: 10px 0 8px;
}

.pay-qr canvas { border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }

.pay-copy {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.pay-copy:active { opacity: 0.85; transform: scale(0.98); }

.wallet-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  background: var(--card);
  color: var(--ink);
  transition: all var(--transition);
}

.wallet-input::placeholder { color: #cbd5e1; }
.wallet-input:focus { border-color: var(--cyan-deep); background: #fff; box-shadow: 0 0 0 3px var(--cyan-glow); }

.field-label { font-size: 14px; font-weight: 600; color: var(--ink2); }

/* ====== Page 3: Help ====== */
.page-help {
  background: #fff;
}

.page-help .nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.help-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 32px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.help-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(92, 224, 240, 0.12), transparent 70%);
  border-radius: 50%;
}

.help-hero-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #0b3b42;
  position: relative;
}

.help-hero h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  position: relative;
}

.help-hero p {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.help-content {
  padding: 6px 16px 24px;
}

.faq-group {
  margin-top: 20px;
}

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0 2px;
}

.faq-group-icon {
  font-size: 18px;
  line-height: 1;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: #a5f3fc;
  background: #fff;
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:active {
  opacity: 0.7;
}

.faq-body {
  padding: 0 16px 16px;
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.65;
}

.faq-body p { margin-bottom: 10px; }
.faq-body p:last-child { margin-bottom: 0; }

.faq-body ul,
.faq-body ol {
  padding-left: 18px;
  margin-bottom: 10px;
}

.faq-body li {
  margin-bottom: 5px;
}

.faq-body strong {
  color: var(--ink);
  font-weight: 650;
}

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #0b3b42;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.step div strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 2px;
}

.step div p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

/* Chain grid */
.chain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Contact card */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.contact-card > p {
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.55;
  margin-bottom: 14px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-bottom: none;
}

.contact-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.contact-value {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.contact-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ===== Promo (free energy) modal ===== */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.promo-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.promo-modal {
  position: relative;
  width: min(100%, 360px);
  background: linear-gradient(160deg, #ffffff 60%, #e8fafb 100%);
  border-radius: 24px;
  padding: 36px 24px 28px;
  text-align: center;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(92, 224, 240, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.promo-overlay.open .promo-modal {
  transform: translateY(0) scale(1);
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--card);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.promo-close:active {
  background: var(--line);
}

.promo-gift-icon {
  font-size: 48px;
  margin-bottom: 8px;
  animation: promoBounce 1.8s ease-in-out infinite;
}

@keyframes promoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.promo-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--ink), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-desc {
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.55;
  margin-bottom: 20px;
}

.promo-hidden {
  display: none !important;
}

.promo-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
}

.promo-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.promo-step.active {
  background: linear-gradient(135deg, var(--cyan-deep), #0ea5e9);
  color: #fff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.promo-step.done {
  background: #22c55e;
  color: #fff;
}

.promo-step-line {
  width: 40px;
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  transition: background 0.3s ease;
}

.promo-step-line.done {
  background: #22c55e;
}

.promo-form {
  text-align: left;
  margin-bottom: 16px;
}

.promo-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.promo-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.promo-input:focus {
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.promo-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.promo-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

.promo-error.show {
  display: block;
}

.promo-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-deep), #0ea5e9);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.promo-submit:active {
  transform: scale(0.97);
}

.promo-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.promo-submit.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
  pointer-events: none;
}

/* ===== 领取问卷 ===== */
.survey-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.survey-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-deep);
  white-space: nowrap;
}

.survey-track {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.survey-track-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan-deep), #0ea5e9);
  transition: width 0.35s ease;
}

.survey-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 12px;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.survey-fade {
  animation: surveyFadeIn 0.28s ease both;
}

@keyframes surveyFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.promo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.promo-option:hover {
  border-color: var(--cyan-deep);
  background: var(--cyan-glow);
}

.promo-option:active {
  transform: scale(0.98);
}

.promo-option::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all var(--transition);
}

.promo-option.selected {
  border-color: var(--cyan-deep);
  background: var(--cyan-glow);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.promo-option.selected::before {
  border-color: var(--cyan-deep);
  background: var(--cyan-deep);
  box-shadow: inset 0 0 0 3px #fff;
}

.promo-progress-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.promo-progress-wrap.show {
  display: flex;
}

.promo-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.promo-progress-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan-deep), #0ea5e9, #22c55e);
  transition: width 0.3s ease;
}

.promo-progress-bar.running::after {
  animation: promoFill 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes promoFill {
  0% { width: 0%; }
  15% { width: 18%; }
  40% { width: 45%; }
  65% { width: 70%; }
  85% { width: 88%; }
  100% { width: 100%; }
}

.promo-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}

.promo-success-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.promo-success-wrap.show {
  display: flex;
}

.promo-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
  animation: promoPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes promoPopIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.promo-success-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.promo-tip {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
