* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: #eef2f8;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #070b12;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.orb-a {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(212, 175, 95, 0.45), transparent 70%);
}
.orb-b {
  width: 320px;
  height: 320px;
  top: 18%;
  right: -120px;
  background: radial-gradient(circle, rgba(88, 140, 255, 0.35), transparent 70%);
}
.orb-c {
  width: 260px;
  height: 260px;
  bottom: 8%;
  left: 10%;
  background: radial-gradient(circle, rgba(72, 210, 170, 0.22), transparent 70%);
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
}
.panel { display: block; }
.panel[hidden] { display: none !important; }

.glass-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.brand-wrap { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #d4af5f, #8c7349);
  box-shadow: 0 4px 16px rgba(212, 175, 95, 0.35);
}
.brand {
  font-family: Didot, "Bodoni MT", "Songti SC", "STSong", "Noto Serif SC", Palatino, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.1;
}
.brand-sub {
  margin-top: 2px;
  color: rgba(238, 242, 248, 0.55);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lang button {
  border: 0;
  background: transparent;
  color: rgba(238, 242, 248, 0.5);
  height: 30px;
  min-width: 46px;
  border-radius: 999px;
  font-size: 12px;
}
.lang button.active {
  background: linear-gradient(180deg, #f0d89a, #c9a962);
  color: #1a1408;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201, 169, 98, 0.4);
}

.banner {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(180, 70, 55, 0.18);
  border: 1px solid rgba(255, 140, 120, 0.25);
  color: #ffc9be;
  font-size: 13px;
  line-height: 1.55;
}

.hero-card {
  position: relative;
  margin-top: 16px;
  padding: 28px 20px 32px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hero-ring {
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 95, 0.15);
  pointer-events: none;
}
.eyebrow {
  position: relative;
  color: #d4af5f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.price {
  position: relative;
  margin-top: 10px;
  font-family: Didot, "Bodoni MT", "Songti SC", "STSong", "Noto Serif SC", Palatino, serif;
  font-size: clamp(72px, 24vw, 96px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.03em;
  word-break: break-all;
  background: linear-gradient(180deg, #fff8e8 0%, #d4af5f 55%, #a8883f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(212, 175, 95, 0.25));
}
.unit {
  position: relative;
  margin-top: 8px;
  color: rgba(238, 242, 248, 0.65);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.card {
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-gold { background: #d4af5f; box-shadow: 0 0 10px rgba(212, 175, 95, 0.6); }
.dot-mint { background: #5ee4b8; box-shadow: 0 0 10px rgba(94, 228, 184, 0.5); }
.dot-amber { background: #ffb347; box-shadow: 0 0 10px rgba(255, 179, 71, 0.5); }
.dot-slate { background: #8ba3c7; box-shadow: 0 0 10px rgba(139, 163, 199, 0.4); }
.card-title {
  color: rgba(238, 242, 248, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.tick {
  text-align: center;
  padding: 12px 4px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tick b {
  display: block;
  font-family: Didot, "Bodoni MT", "Songti SC", "STSong", "Noto Serif SC", Palatino, serif;
  font-size: 26px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: #f4f7fb;
}
.tick span {
  display: block;
  margin-top: 4px;
  color: rgba(238, 242, 248, 0.45);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tick-live {
  border-color: rgba(212, 175, 95, 0.35);
  box-shadow: inset 0 0 20px rgba(212, 175, 95, 0.08);
}
.tick-live b { color: #f0d89a; }

.amount {
  margin-top: 8px;
  text-align: center;
  font-family: Didot, "Bodoni MT", "Songti SC", "STSong", "Noto Serif SC", Palatino, serif;
  font-size: clamp(44px, 14vw, 58px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  word-break: break-all;
}
.mint-card {
  background: linear-gradient(160deg, rgba(46, 120, 95, 0.22), rgba(255, 255, 255, 0.04));
  border-color: rgba(94, 228, 184, 0.22);
}
.mint-card .amount {
  color: #7dffc3;
  text-shadow: 0 0 30px rgba(125, 255, 195, 0.25);
}
.mint-card em {
  font-style: normal;
  font-family: inherit;
  font-size: 0.38em;
  margin-left: 6px;
  color: rgba(125, 255, 195, 0.75);
  letter-spacing: 0.08em;
}
.warn-card {
  background: linear-gradient(160deg, rgba(120, 85, 30, 0.25), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 179, 71, 0.28);
}
.warn-card .amount {
  color: #ffd699;
  text-shadow: 0 0 24px rgba(255, 214, 153, 0.2);
}
.need {
  margin: 10px 0 0;
  text-align: center;
  color: rgba(238, 242, 248, 0.78);
  font-size: 13px;
  line-height: 1.55;
}
.warn-text {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid #ffb347;
  color: rgba(255, 230, 190, 0.92);
  font-size: 13px;
  line-height: 1.65;
}
.note, .hint {
  color: rgba(238, 242, 248, 0.55);
  font-size: 13px;
  line-height: 1.65;
}
.note { margin: 12px 0 0; text-align: center; }
.warn-inline { color: rgba(255, 214, 153, 0.85); }
.ref-alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.25);
}

.field-label, label {
  display: block;
  margin: 14px 0 6px;
  color: rgba(238, 242, 248, 0.65);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  outline: none;
  border-color: rgba(212, 175, 95, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 95, 0.12);
}
input[readonly] { color: rgba(238, 242, 248, 0.72); }
::placeholder { color: rgba(238, 242, 248, 0.28); }

.primary, .invite-row button {
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0d89a, #c9a962 45%, #a8883f);
  color: #1a1408;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
}
.primary { width: 100%; margin-top: 18px; }
.primary:active, .invite-row button:active { transform: scale(0.98); }
.primary:disabled, .ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ghost {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 242, 248, 0.9);
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tabs button {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(238, 242, 248, 0.45);
  font-weight: 600;
  font-size: 14px;
}
.tabs button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.tabs button:disabled { opacity: 0.35; }

.form-msg {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(180, 70, 55, 0.2);
  border: 1px solid rgba(255, 140, 120, 0.2);
  color: #ffc9be;
  font-size: 13px;
  line-height: 1.5;
}

.invite-row { display: flex; gap: 8px; margin-top: 4px; }
.invite-row input { flex: 1; min-width: 0; font-size: 13px; }
.invite-row button { flex: 0 0 auto; padding: 0 16px; font-size: 13px; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}
.kv span {
  color: rgba(238, 242, 248, 0.5);
  flex: 0 0 auto;
  font-size: 12px;
}
.kv b { font-weight: 600; text-align: right; font-size: 13px; }
.break { word-break: break-all; }

.notice {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(238, 242, 248, 0.78);
}

.reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.reward-item {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.reward-item span {
  display: block;
  color: rgba(238, 242, 248, 0.5);
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.reward-item b { font-weight: 600; }
.reward-item em {
  font-style: normal;
  font-family: Didot, "Bodoni MT", "Songti SC", "STSong", "Noto Serif SC", Palatino, serif;
  font-size: 28px;
  color: #7dffc3;
}
.reward-item i {
  font-style: normal;
  font-size: 12px;
  color: rgba(125, 255, 195, 0.75);
  margin-left: 4px;
}
.home-pending-card { margin-top: 14px; }
.usdt-line {
  margin: 10px 0 0;
  text-align: center;
  color: #f0d89a;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.home-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.menu-btn {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #eef2f8;
  font-weight: 600;
  font-size: 14px;
}
.menu-btn.primary {
  border: 0;
  background: linear-gradient(135deg, #f0d89a, #c9a962 45%, #a8883f);
  color: #1a1408;
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
}
.menu-btn.ghost { grid-column: 1 / -1; }
.menu-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.back-link {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(238, 242, 248, 0.65);
  font-size: 13px;
}
.panel-sub { min-height: calc(100vh - 120px); }
.panel-notice {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 100px);
}
.notice-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 0 16px;
}
.notice-full {
  flex: 1;
  max-height: none;
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pending-amount { color: #7dffc3; }
.ref-count { font-size: clamp(36px, 12vw, 48px); color: #ffd699; }

@media (min-width: 520px) {
  .page { padding-top: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .orb-a { animation: drift-a 18s ease-in-out infinite alternate; }
  .orb-b { animation: drift-b 22s ease-in-out infinite alternate; }
  .tick-live b { animation: pulse-sec 1s ease-in-out infinite; }
}
@keyframes drift-a {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, 18px); }
}
@keyframes drift-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-20px, 12px); }
}
@keyframes pulse-sec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
