:root {
  color-scheme: dark;
  --bg: #050711;
  --panel: rgba(13, 18, 34, 0.92);
  --panel-strong: rgba(17, 25, 48, 0.96);
  --line: rgba(137, 168, 255, 0.22);
  --line-strong: rgba(80, 232, 255, 0.46);
  --text: #eef6ff;
  --muted: #9aaccd;
  --soft: #c9d9f4;
  --cyan: #56e8ff;
  --green: #36f3b7;
  --pink: #ff56c7;
  --amber: #ffc857;
  --danger: #ff5e7a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(150deg, rgba(9, 28, 43, 0.92) 0%, rgba(5, 7, 17, 0.7) 34%, rgba(17, 11, 33, 0.88) 100%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

[hidden] {
  display: none !important;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.2));
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(86, 232, 255, 0.1) 23%, transparent 38%),
    linear-gradient(245deg, transparent 10%, rgba(255, 86, 199, 0.08) 47%, transparent 63%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent 18%, rgba(255, 255, 255, 0.04) 100%);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -80px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(86, 232, 255, 0.08), transparent);
  animation: scan 7s linear infinite;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(112px + env(safe-area-inset-bottom));
}

.pay-shell {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.gate-shell {
  padding-top: calc(20px + env(safe-area-inset-top));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 28px;
}

.topbar.compact {
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4f9ff;
  font-size: 14px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(86, 232, 255, 0.48);
  border-radius: var(--radius);
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(86, 232, 255, 0.16), rgba(255, 86, 199, 0.12));
  box-shadow: 0 0 22px rgba(86, 232, 255, 0.15);
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(86, 232, 255, 0.48);
  border-radius: 999px;
  color: #c9fff0;
  background: rgba(54, 243, 183, 0.1);
  box-shadow: 0 0 0 1px rgba(86, 232, 255, 0.12) inset, 0 0 18px rgba(86, 232, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.gate-badge span {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: var(--green);
}

.network-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(54, 243, 183, 0.4);
  border-radius: 999px;
  color: #c7ffed;
  background: rgba(54, 243, 183, 0.1);
  font-size: 11px;
  font-weight: 850;
}

.hero {
  padding-top: 8px;
}

.gate-hero {
  padding-top: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 9px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.keep {
  white-space: nowrap;
}

.hero h1,
.payment-head h1 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 35px;
  line-height: 1.08;
  letter-spacing: 0;
}

.gate-hero h1 {
  margin-top: 14px;
  color: transparent;
  background: linear-gradient(90deg, #f6fbff 0%, #73efff 30%, #ff74d5 64%, #b8a0ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 28px rgba(86, 232, 255, 0.12);
}

.hero-copy,
.payment-head p {
  margin-bottom: 22px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.62;
}

.rate-panel,
.guide-panel,
.checkout-card,
.faq-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rate-panel::before,
.guide-panel::before,
.checkout-card::before,
.faq-panel::before,
.sheet-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), var(--green), transparent);
}

.rate-panel {
  padding: 18px;
}

.product-card {
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18, 19, 48, 0.93), rgba(9, 24, 56, 0.88));
}

.rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.rate-side {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 10px;
  border: 1px solid rgba(137, 168, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.rate-side-accent {
  border-color: rgba(54, 243, 183, 0.32);
  background: linear-gradient(180deg, rgba(54, 243, 183, 0.12), rgba(54, 243, 183, 0.045));
}

.rate-label,
.rate-unit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.rate-side strong {
  display: block;
  margin: 5px 0 3px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.rate-side-accent strong {
  color: var(--green);
  text-shadow: 0 0 18px rgba(54, 243, 183, 0.22);
}

.rate-arrow {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 24px;
}

.coverage {
  margin: 14px 0 0;
  color: #aec0df;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.product-card .coverage {
  margin-top: 13px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.trust-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(86, 232, 255, 0.22);
  border-radius: var(--radius);
  color: #d7e7ff;
  background: rgba(86, 232, 255, 0.055);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.guide-panel,
.faq-panel,
.checkout-card {
  margin-top: 14px;
  padding: 18px;
}

.gate-guide {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 16, 44, 0.9), rgba(11, 20, 51, 0.88));
}

.browser-menu-hint {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(86, 232, 255, 0.52);
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(86, 232, 255, 0.16), rgba(255, 86, 199, 0.16)),
    rgba(13, 18, 34, 0.84);
  box-shadow: 0 0 24px rgba(86, 232, 255, 0.14);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.browser-menu-hint svg {
  justify-self: end;
  width: 24px;
  height: 24px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(86, 232, 255, 0.3));
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2,
.checkout-card h2,
.sheet-card h2 {
  margin: 0;
  color: #f6fbff;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.steps-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.steps-list li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 86, 199, 0.45);
  border-radius: 50%;
  color: #ffe4f5;
  background: rgba(255, 86, 199, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.steps-list p {
  margin: 3px 0 0;
  color: #b7c9e7;
  font-size: 14px;
  line-height: 1.5;
}

.steps-list strong {
  color: #ffffff;
  font-weight: 850;
}

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(137, 168, 255, 0.2);
  background: rgba(5, 8, 20, 0.86);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.actionbar-inner {
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto;
}

.primary-btn,
.ghost-btn,
.text-btn {
  min-height: 50px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 15px;
  white-space: nowrap;
}

.primary-btn svg,
.ghost-btn svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.primary-btn {
  color: #061018;
  background: linear-gradient(90deg, var(--green), var(--cyan) 52%, #9fb7ff);
  box-shadow: 0 12px 28px rgba(86, 232, 255, 0.22);
}

.ghost-btn {
  color: #e4efff;
  border: 1px solid rgba(137, 168, 255, 0.3);
  background: rgba(255, 255, 255, 0.055);
}

.text-btn {
  width: 100%;
  color: var(--soft);
  background: transparent;
}

.primary-btn:active,
.ghost-btn:active,
.text-btn:active {
  transform: translateY(1px);
}

.payment-head {
  padding: 6px 0 2px;
}

.payment-head h1 {
  font-size: 31px;
}

.checkout-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.checkout-card h2 {
  margin-top: 10px;
  font-size: 15px;
  color: var(--soft);
}

.order-id {
  color: #7d92b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(137, 168, 255, 0.16);
  border-bottom: 1px solid rgba(137, 168, 255, 0.16);
}

.price-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.price-line strong {
  color: var(--green);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(54, 243, 183, 0.2);
}

.checkout-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-metrics > div {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(86, 232, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.checkout-metrics span,
.checkout-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.checkout-metrics strong {
  margin: 4px 0;
  color: #ffffff;
  font-size: 23px;
  line-height: 1;
}

.address-card {
  display: grid;
  gap: 14px;
}

.loading-area {
  display: grid;
  gap: 12px;
}

.loading-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loading-copy strong {
  color: #f2f8ff;
  font-size: 14px;
  line-height: 1.35;
}

.loading-copy span {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(137, 168, 255, 0.18);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink));
  transition: width 0.35s ease;
}

.address-area {
  display: grid;
  gap: 14px;
}

.address-box {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(137, 168, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.address-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.address-box strong {
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.qr {
  width: 168px;
  height: 168px;
  justify-self: center;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 0 28px rgba(86, 232, 255, 0.16);
}

.timer {
  justify-self: center;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 200, 87, 0.36);
  border-radius: 999px;
  color: #ffe4ad;
  background: rgba(255, 200, 87, 0.09);
  font-size: 12px;
  font-weight: 850;
}

.fine-print {
  margin: -2px 0 0;
  color: #879abf;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.faq-panel {
  display: grid;
  gap: 10px;
}

.faq-panel .section-heading {
  margin-bottom: 4px;
}

details {
  border: 1px solid rgba(137, 168, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

summary {
  min-height: 44px;
  padding: 12px;
  color: #f2f8ff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 12px 12px;
  color: #a7badb;
  font-size: 13px;
  line-height: 1.55;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: calc(88px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  background: rgba(2, 4, 12, 0.74);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.sheet-card {
  position: relative;
  width: min(100%, 480px);
  margin: 0 auto;
  max-height: calc(100svh - 126px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 20px 18px 18px;
  border: 1px solid rgba(137, 168, 255, 0.28);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.sheet-menu-bubble {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  z-index: 45;
  width: min(300px, calc(100vw - 20px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 5px 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(54, 243, 183, 0.76);
  border-radius: 16px;
  color: #061018;
  background: linear-gradient(135deg, #36f3b7, #56e8ff 58%, #d9fff5);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 28px rgba(86, 232, 255, 0.28);
}

.sheet-menu-bubble::after {
  content: "";
  position: absolute;
  top: -9px;
  right: 16px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(54, 243, 183, 0.76);
  border-left: 1px solid rgba(54, 243, 183, 0.76);
  background: #56e8ff;
  transform: rotate(45deg);
}

.sheet-menu-bubble span,
.sheet-menu-bubble strong {
  min-width: 0;
  grid-column: 1;
  line-height: 1.22;
}

.sheet-menu-bubble span {
  font-size: 14px;
  font-weight: 900;
}

.sheet-menu-bubble strong {
  font-size: 16px;
  font-weight: 950;
}

.sheet-menu-bubble svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  color: #061018;
}

.sheet-card h2 {
  font-size: 20px;
}

.sheet-card > p {
  margin: 8px 0 16px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.55;
}

.sheet-steps {
  margin-bottom: 14px;
}

.copied-banner {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin-bottom: 12px;
  border: 1px solid rgba(54, 243, 183, 0.42);
  border-radius: var(--radius);
  color: #d7fff2;
  background: rgba(54, 243, 183, 0.12);
  font-size: 13px;
  font-weight: 850;
}

.sheet-card .primary-btn,
.sheet-card .ghost-btn {
  width: 100%;
  margin-top: 10px;
}

.sheet-card .text-btn {
  margin-top: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  z-index: 60;
  min-height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(137, 168, 255, 0.32);
  border-radius: 999px;
  color: #f5faff;
  background: rgba(13, 18, 34, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 850;
  transform: translateX(-50%);
  white-space: nowrap;
}

.toast.show {
  display: inline-flex;
}

@keyframes scan {
  from {
    transform: translateY(-120px);
  }
  to {
    transform: translateY(calc(100vh + 160px));
  }
}

@media (min-width: 481px) {
  .app-shell {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .sheet-card {
    border-radius: var(--radius);
  }
}

@media (max-width: 335px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero h1,
  .payment-head h1 {
    font-size: 31px;
  }

  .rate-panel,
  .guide-panel,
  .checkout-card,
  .faq-panel {
    padding: 14px;
  }

  .primary-btn,
  .ghost-btn {
    gap: 6px;
    padding: 0 10px;
    font-size: 14px;
  }

  .primary-btn svg,
  .ghost-btn svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 300px) {
  .rate-row {
    grid-template-columns: 1fr;
  }

  .rate-arrow {
    min-height: 24px;
    transform: rotate(90deg);
  }

  .actionbar-inner {
    grid-template-columns: 1fr;
  }

  .ghost-btn {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
