@charset "UTF-8";

:root {
  --red: #E8211A;
  --red-dark: #C01A14;
  --red-light: #FF3B34;
  --gold: #F5A623;
  --gold-light: #FFD166;
  --bg: #FFF8F7;
  --card: #FFFFFF;
  --text: #1A0A00;
  --text-muted: #8C7B75;
  --border: #F0E4E2;
  --green: #18B566;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
}

/* ── HEADER ── */
.header {
  background: linear-gradient(160deg, #C8120B 0%, #E8211A 45%, #FF4D2E 100%);
  padding: 0 0 28px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 210, 80, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #FFD166, #F5A623);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.nav-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
}

/* hero amount */
.hero {
  padding: 14px 20px 0;
  position: relative;
  z-index: 1;
}

.hero-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-amount {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 6px;
}

.hero-amount .unit {
  color: #FFD166;
  font-size: 22px;
  font-weight: 700;
  padding-bottom: 6px;
}

.hero-amount .number {
  color: #fff;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
}

.hero-amount .wan {
  color: #FFD166;
  font-size: 22px;
  font-weight: 700;
  padding-bottom: 6px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-bottom: 16px;
}

/* badges row */
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  background: var(--gold-light);
  border-radius: 50%;
  flex-shrink: 0;
}

/* trust strip */
.trust-strip {
  margin: 14px 16px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 9px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trust-item {
  text-align: center;
  flex: 1;
}

.trust-num {
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 700;
}

.trust-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  margin-top: 1px;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
}

/* ── FORM CARD ── */
.form-card {
  background: var(--card);
  margin: -2px 12px 0;
  border-radius: 20px 20px 16px 16px;
  box-shadow: 0 8px 40px rgba(232, 33, 26, 0.12), 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px 20px 20px;
  position: relative;
  z-index: 10;
}

.form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, var(--red), var(--gold));
  border-radius: 2px;
}

/* phone input */
.input-group {
  margin-bottom: 14px;
}

.input-label {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 7px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.input-label::before {
  content: '';
  width: 3px;
  height: 13px;
  background: linear-gradient(to bottom, var(--red), var(--gold));
  border-radius: 2px;
  display: inline-block;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #EDD8D5;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(232, 33, 26, 0.05);
}

.input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 33, 26, 0.1), 0 2px 8px rgba(232, 33, 26, 0.08);
  background: #fff;
}

.input-prefix {
  padding: 0 14px;
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
  border-right: 1.5px solid #EDD8D5;
  height: 52px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FFF5F4, #FFE8E5);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.input-wrap input {
  flex: 1;
  height: 52px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 0 16px;
  font-family: inherit;
  letter-spacing: 1.5px;
}

.input-wrap input::placeholder {
  color: #D4B8B4;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 14px;
}

/* code row */
.code-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-wrap .input-wrap {
  flex: 1;
}

.code-wrap .input-wrap input {
  letter-spacing: 5px;
  font-size: 20px;
  font-weight: 700;
}

.btn-code {
  flex-shrink: 0;
  height: 52px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-code:active {
  background: #FFF0EE;
}

.btn-code.counting {
  color: var(--text-muted);
  border-color: var(--border);
  background: #F5F5F5;
  box-shadow: none;
  cursor: not-allowed;
}

/* ── SUBMIT BTN ── */
.btn-submit {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, var(--red) 0%, #FF4D2E 100%);
  border: none;
  border-radius: 27px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  box-shadow: 0 6px 20px rgba(232, 33, 26, 0.4), 0 2px 6px rgba(232, 33, 26, 0.2);
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2.4s infinite;
}

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

.btn-submit:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(232, 33, 26, 0.3);
}

.btn-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.7;
}

/* amount quick select */
.amount-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.amount-chip {
  flex: 1;
  height: 36px;
  border: 1.5px solid var(--border);
  background: #FBF5F4;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  font-weight: 500;
}

.amount-chip.active {
  border-color: var(--red);
  background: #FFF0EE;
  color: var(--red);
  font-weight: 700;
}

/* ── AGREEMENT ── */
.agreement {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--red);
  border-radius: 4px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 1px;
}

.check-box svg {
  width: 11px;
  height: 11px;
}

.check-box.unchecked {
  background: #fff;
}

.agree-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.agree-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}

/* ── FEATURES ── */
.features {
  margin: 16px 12px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feat-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 10px 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.feat-icon {
  font-size: 26px;
  margin-bottom: 6px;
  display: block;
}

.feat-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.feat-desc {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ── HOW IT WORKS ── */
.section {
  margin: 16px 12px 0;
  background: var(--card);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(to bottom, var(--red), var(--gold));
  border-radius: 2px;
}

.steps {
  display: flex;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(10% + 15px);
  right: calc(10% + 15px);
  height: 2px;
  background: linear-gradient(to right, var(--red), var(--gold), var(--red));
  opacity: 0.3;
}

.step {
  flex: 1;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #F5A623, #E8211A);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 8px;
  box-shadow: 0 3px 10px rgba(232, 33, 26, 0.25);
}

.step-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.step-hint {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── MARQUEE ── */
.marquee-wrap {
  margin: 16px 12px 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

.marquee-inner {
  display: flex;
  gap: 0;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.marquee-item .dot {
  color: var(--green);
  font-size: 14px;
}

.marquee-item .amount-tag {
  color: var(--red);
  font-weight: 600;
}

/* ── DISCLAIMER ── */
.disclaimer {
  margin: 16px 12px 20px;
  padding: 12px 14px;
  background: #FFFBF0;
  border: 1px solid #FFE8A3;
  border-radius: 10px;
  font-size: 10.5px;
  color: #A08040;
  line-height: 1.7;
}

.disclaimer strong {
  color: #7A5F20;
}

/* ── STICKY BOTTOM ── */
.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 100;
  display: none;
}

.sticky-bottom .btn-submit {
  margin-top: 0;
}

/* scroll animation */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* pulse badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(24, 181, 102, 0.12);
  color: var(--green);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* agreement fold */
.agree-extra {
  display: none;
}

.agree-more {
  color: var(--red);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.rate-bar {
  margin: 14px 0 0;
  display: flex;
  gap: 8px;
}

.rate-item {
  flex: 1;
  background: linear-gradient(135deg, #FFF5F4 0%, #FFF0EE 100%);
  border: 1px solid #FFD8D4;
  border-radius: 12px;
  padding: 10px 6px 9px;
  text-align: center;
}

.rate-val {
  font-size: 15px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.2;
  white-space: nowrap;
}

.rate-val .small {
  font-size: 11px;
  font-weight: 600;
}

.rate-key {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

.rate-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.toast {
  display: block;
  position: fixed;
  top: 40%;
  left: 50%;
  z-index: 10000;
  transform: translate(-50%, -50%);
  max-width: 80%;
  padding: 5px 12px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
}

