:root {
  --blue-deep: #04259c;
  --blue-royal: #0a42d8;
  --blue-bright: #1660f4;
  --blue-stats: #042181;
  --cyan-glow: #38bdf8;
  --cyan-soft: #bae6fd;
  --text-white: #ffffff;
  --text-soft: rgba(224, 242, 254, 0.88);
  --text-muted: rgba(219, 234, 254, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(147, 197, 253, 0.34);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html,
body {
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text-white);
  background-color: #0631b3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(64% 60% at 32% 18%, rgba(44, 134, 255, 0.42) 0%, rgba(11, 66, 216, 0) 70%),
    radial-gradient(50% 52% at 80% 42%, rgba(56, 189, 248, 0.28) 0%, rgba(4, 37, 156, 0) 68%),
    linear-gradient(135deg, #0b48de 0%, #0738c4 48%, #04269e 100%);
  overflow: hidden;
}

/* ==================== Ambient Background & 3D Orbs ==================== */
.bg-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
}

.bg-glow--top {
  width: 520px;
  height: 520px;
  top: -180px;
  left: 16%;
  background: rgba(56, 189, 248, 0.24);
}

.bg-glow--right {
  width: 560px;
  height: 560px;
  top: 6%;
  right: -120px;
  background: rgba(96, 165, 250, 0.26);
}

.bg-glow--bottom {
  width: 440px;
  height: 260px;
  bottom: 90px;
  left: 24%;
  background: rgba(34, 211, 238, 0.16);
}

/* Left Vertical Dotted Rail */
.left-rail {
  position: absolute;
  left: 42px;
  top: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  opacity: 0.72;
}

.rail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(191, 219, 254, 0.6);
}

.rail-dot--bright {
  width: 9px;
  height: 9px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.rail-dot--mid {
  width: 7px;
  height: 7px;
  background: #bae6fd;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.8);
}

.rail-line {
  width: 1.5px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(147, 197, 253, 0.15));
}

.rail-line--short {
  height: 28px;
}

/* 3D Glossy Spheres */
.orb {
  position: absolute;
  border-radius: 50%;
}

.orb--white-tl {
  width: 50px;
  height: 50px;
  top: 46px;
  left: 44px;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #dbeafe 42%, #93c5fd 76%, #3b82f6 100%);
  box-shadow:
    inset -6px -8px 14px rgba(30, 64, 175, 0.35),
    0 14px 28px rgba(4, 25, 102, 0.35);
}

.orb--cyan-bl {
  width: 146px;
  height: 146px;
  bottom: 112px;
  left: -26px;
  background: radial-gradient(circle at 32% 26%, #e0f2fe 0%, #38bdf8 34%, #0284c7 68%, #1e40af 100%);
  box-shadow:
    inset -14px -18px 28px rgba(7, 29, 112, 0.55),
    0 18px 42px rgba(3, 21, 92, 0.45),
    0 0 36px rgba(56, 189, 248, 0.25);
}

.orb--blue-mr {
  width: 62px;
  height: 62px;
  top: 22%;
  right: 20px;
  background: radial-gradient(circle at 32% 28%, #bae6fd 0%, #38bdf8 38%, #1d4ed8 80%, #1e3a8a 100%);
  box-shadow:
    inset -8px -10px 18px rgba(7, 29, 112, 0.48),
    0 12px 28px rgba(4, 25, 102, 0.4);
}

.orb--silver-br {
  width: 138px;
  height: 138px;
  bottom: 102px;
  right: 26px;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #f1f5f9 36%, #cbd5e1 68%, #64748b 100%);
  box-shadow:
    inset -14px -18px 30px rgba(30, 58, 138, 0.36),
    0 22px 44px rgba(3, 18, 82, 0.45);
}

/* ==================== Hero Layout ==================== */
.hero {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: 28px 48px 36px;
}

.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.86fr);
  gap: 36px;
  align-items: center;
}

/* Left Copy Column */
.hero-copy {
  padding-left: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f8fafc;
}

.hero-title {
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(4, 24, 102, 0.32);
}

.hero-subtitle {
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 600;
  color: #e0f2fe;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.52;
  color: rgba(240, 249, 255, 0.94);
}

.check-badge {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  display: inline-flex;
}

.check-badge svg {
  width: 100%;
  height: 100%;
}

/* 3 Feature Glass Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.info-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.07) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 14px 18px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 26px rgba(4, 24, 102, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.info-card--interactive {
  cursor: pointer;
}

.info-card:hover,
.info-card--interactive:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(186, 230, 253, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  outline: none;
}

.info-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
}

.info-card__icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(4, 29, 120, 0.35));
}

.info-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 7px;
}

.info-card__desc {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(224, 242, 254, 0.84);
}

/* CTA Row & Platform Icons */
.cta-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-claim {
  min-width: 184px;
  height: 52px;
  padding: 0 32px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: #0b46da;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 12px 26px rgba(4, 24, 102, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-claim:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(4, 24, 102, 0.44),
    0 0 22px rgba(186, 230, 253, 0.55);
}

.btn-claim:active {
  transform: translateY(0);
}

.qr-wrap {
  position: relative;
}

.btn-qr {
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1px solid rgba(186, 230, 253, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-qr:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(224, 242, 254, 0.72);
  transform: translateY(-1px);
}

.btn-qr svg {
  width: 36px;
  height: 36px;
}

.qr-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: 230px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(6, 37, 138, 0.96);
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 18px 36px rgba(3, 18, 82, 0.5);
  backdrop-filter: blur(12px);
  z-index: 15;
}

.qr-popover__title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.qr-popover__desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.qr-popover__action {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  color: #0b46da;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.platform-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 2px;
}

.platform-icon {
  width: 26px;
  height: 26px;
  padding: 2px;
  border: none;
  background: transparent;
  color: rgba(240, 249, 255, 0.88);
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.platform-icon:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

/* ==================== Right Device Mockups ==================== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-stage {
  position: relative;
  width: 430px;
  height: 515px;
  display: flex;
  align-items: center;
}

/* Chrome Extension Card (behind right) */
.ext-card {
  position: absolute;
  right: 0;
  top: 44px;
  width: 205px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow:
    0 24px 50px rgba(3, 18, 82, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.65);
  overflow: hidden;
  z-index: 1;
}

.ext-topbar {
  height: 30px;
  padding: 0 10px;
  background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ext-dots {
  display: flex;
  gap: 4px;
}

.ext-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
}

.ext-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #1e3a8a;
}

.ext-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #1d4ed8;
  transform: rotate(45deg);
}

.ext-body {
  padding: 10px 10px 12px;
}

.ext-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
}

.ext-acc-name {
  font-weight: 700;
  color: #1e293b;
}

.ext-net-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 9px;
  font-weight: 600;
}

.ext-balance-box {
  border-radius: 10px;
  padding: 10px 10px 8px;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #ffffff;
  margin-bottom: 9px;
}

.ext-balance-val {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ext-balance-val small {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.9;
}

.ext-balance-usd {
  font-size: 9.5px;
  opacity: 0.88;
  margin-top: 2px;
}

.ext-balance-bar {
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  opacity: 0.92;
}

.ext-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 9px;
}

.ext-actions div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ext-actions span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ext-actions em {
  font-style: normal;
  font-size: 8.5px;
  color: #475569;
}

.ext-tabs {
  display: flex;
  gap: 10px;
  font-size: 9.5px;
  color: #64748b;
  padding-bottom: 5px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 6px;
}

.ext-tabs .is-active {
  color: #0f172a;
  font-weight: 700;
}

.ext-tokens {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ext-token {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}

.ext-token .tok-name {
  font-weight: 700;
  color: #1e293b;
}

.ext-token .tok-amt {
  margin-left: auto;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* Primary iPhone Mockup */
.phone-frame {
  position: relative;
  z-index: 2;
  width: 258px;
  height: 504px;
  margin-left: 16px;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(145deg, #1e293b 0%, #090d16 55%, #1e293b 100%);
  box-shadow:
    0 28px 60px rgba(2, 14, 66, 0.56),
    inset 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.phone-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: #090d16;
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 12px 0;
}

.ios-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  padding: 2px 4px 6px;
}

.ios-indicators {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sig-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}

.sig-bars i {
  display: block;
  width: 2px;
  background: #0f172a;
  border-radius: 1px;
}

.sig-bars i:nth-child(1) { height: 3px; }
.sig-bars i:nth-child(2) { height: 5px; }
.sig-bars i:nth-child(3) { height: 6.5px; }
.sig-bars i:nth-child(4) { height: 8px; }

.wifi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid #0f172a;
}

.battery {
  width: 15px;
  height: 8px;
  border: 1.2px solid #0f172a;
  border-radius: 2px;
  padding: 1px;
  display: inline-flex;
}

.battery i {
  display: block;
  width: 85%;
  height: 100%;
  background: #0f172a;
  border-radius: 1px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.app-wallet-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.app-header-icons {
  display: flex;
  gap: 6px;
}

.mini-icon {
  font-size: 11px;
  color: #475569;
}

.wallet-card {
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 58%, #1d4ed8 100%);
  color: #ffffff;
  margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.wallet-card__top {
  padding: 10px 11px 4px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wallet-balance {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wallet-balance small {
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.9;
}

.wallet-fiat {
  font-size: 9.5px;
  opacity: 0.88;
  margin-top: 2px;
}

.wallet-chip {
  font-size: 8.5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.wallet-addr {
  padding: 2px 11px 7px;
  font-size: 8.5px;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.wallet-res-bar {
  background: rgba(15, 23, 42, 0.72);
  padding: 5px 11px;
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #cbd5e1;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 10px;
}

.w-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.w-act-ico {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.w-act em {
  font-style: normal;
  font-size: 9px;
  color: #334155;
  font-weight: 600;
}

.asset-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
  font-size: 10px;
}

.asset-tabs__left {
  display: flex;
  gap: 10px;
  color: #64748b;
}

.asset-tabs__left .is-active {
  color: #0f172a;
  font-weight: 800;
}

.asset-tabs__right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.tool-pill {
  padding: 1px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  font-size: 8.5px;
  font-weight: 700;
}

.asset-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tok-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
}

.tok-trx { background: #ef4444; }
.tok-usdt { background: #10b981; }
.tok-nft { background: #1e293b; }
.tok-bttc { background: #3b82f6; }
.tok-btt { background: #0f172a; }
.tok-jst { background: #dc2626; }
.tok-usdd { background: #059669; }
.tok-eth { background: #6366f1; }
.tok-btc { background: #f59e0b; }

.asset-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.asset-meta strong {
  font-size: 10.5px;
  font-weight: 800;
  color: #0f172a;
}

.asset-meta small {
  font-size: 8.5px;
  color: #94a3b8;
}

.asset-val {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.asset-val strong {
  font-size: 10.5px;
  font-weight: 800;
  color: #0f172a;
}

.asset-val small {
  font-size: 8.5px;
  color: #94a3b8;
}

.app-tabbar {
  margin: 6px -12px 0;
  padding: 6px 8px 8px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  background: #ffffff;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #94a3b8;
}

.tab-item span {
  font-size: 11px;
}

.tab-item em {
  font-style: normal;
  font-size: 8.5px;
}

.tab-item.is-active {
  color: #1d4ed8;
  font-weight: 700;
}

/* ==================== Bottom Stats Bar ==================== */
.stats-bar {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 31, 124, 0.88) 0%, rgba(3, 25, 102, 0.96) 100%);
  border-top: 1px solid rgba(147, 197, 253, 0.22);
  padding: 22px 32px 24px;
}

.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 4px 12px;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 16%;
  height: 68%;
  width: 1px;
  background: rgba(147, 197, 253, 0.2);
}

.stat-value {
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: rgba(219, 234, 254, 0.86);
  font-weight: 500;
}

/* ==================== Modal: TRX 奖励 · 领取登记 (Image 1 Replica) ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 16, 68, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 22px;
  padding: 22px 26px 118px;
  background:
    radial-gradient(85% 45% at 50% 6%, rgba(56, 189, 248, 0.32) 0%, rgba(4, 57, 204, 0) 70%),
    radial-gradient(90% 42% at 50% 100%, rgba(14, 165, 233, 0.4) 0%, rgba(3, 46, 184, 0) 72%),
    linear-gradient(180deg, #0638c7 0%, #0535c2 54%, #0341d6 100%);
  border: 1.5px solid rgba(110, 195, 255, 0.62);
  box-shadow:
    0 28px 70px rgba(2, 12, 54, 0.68),
    0 0 32px rgba(56, 189, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  animation: modalPop 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modal-badge__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  filter: drop-shadow(0 0 10px rgba(186, 230, 253, 0.55));
}

.modal-badge__icon svg {
  width: 100%;
  height: 100%;
}

.modal-badge__text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(186, 230, 253, 0.42);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(224, 242, 254, 0.8);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.laurel-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.laurel {
  width: 34px;
  height: 48px;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.55));
}

.modal-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(125, 211, 252, 0.45);
}

.title-flare {
  width: 76%;
  height: 2px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, #38bdf8 26%, #ffffff 50%, #38bdf8 74%, rgba(56, 189, 248, 0) 100%);
  box-shadow: 0 0 14px 2px rgba(125, 211, 252, 0.85);
}

.modal-form {
  margin-bottom: 26px;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 11px;
}

.field-label svg {
  width: 21px;
  height: 17px;
}

.input-wrap {
  margin-bottom: 8px;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(110, 195, 255, 0.86);
  background: rgba(5, 34, 132, 0.64);
  color: #ffffff;
  font-size: 16px;
  outline: none;
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.34),
    inset 0 1px 6px rgba(2, 16, 68, 0.42);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap input::placeholder {
  color: rgba(219, 234, 254, 0.72);
}

.input-wrap input:focus {
  border-color: #e0f2fe;
  box-shadow:
    0 0 22px rgba(125, 211, 252, 0.6),
    inset 0 1px 6px rgba(2, 16, 68, 0.36);
}

.input-wrap input.is-invalid {
  border-color: #fda4af;
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.45);
}

.field-error {
  min-height: 20px;
  font-size: 13px;
  color: #fecdd3;
  margin-bottom: 10px;
}

.btn-submit {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #ebf6ff 68%, #bfe4ff 100%);
  color: #0538c7;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(56, 189, 248, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(125, 211, 252, 0.56),
    0 2px 0 rgba(255, 255, 255, 0.95) inset;
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit svg {
  width: 21px;
  height: 21px;
}

/* Client-Side Success State */
.success-panel {
  text-align: center;
  padding: 12px 10px 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 20px;
  word-break: break-all;
}

.success-desc strong {
  color: #ffffff;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-submit--compact {
  height: 48px;
  font-size: 17px;
}

.btn-ghost {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(186, 230, 253, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Two Disclosure Notice Cards */
.notice-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.notice-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.09) 100%);
  border: 1px solid rgba(147, 197, 253, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.notice-box__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notice-box__icon svg {
  width: 30px;
  height: 30px;
}

.notice-box__divider {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 36px;
  background: rgba(255, 255, 255, 0.3);
}

.notice-box__text {
  font-size: 13.5px;
  line-height: 1.58;
  color: rgba(240, 249, 255, 0.94);
}

.notice-box__text p + p {
  margin-top: 2px;
}

/* Bottom Cyan Luminous Wave Ribbons */
.modal-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 102px;
  pointer-events: none;
  z-index: 1;
}

.modal-waves svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 1120px) {
  .hero {
    padding: 28px 28px 34px;
  }

  .hero-copy {
    padding-left: 16px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .left-rail {
    display: none;
  }

  .device-stage {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 24px 18px 30px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-wrap: wrap;
  }

  .btn-claim {
    flex: 1 1 180px;
  }

  .device-stage {
    width: 100%;
    max-width: 340px;
    height: 496px;
    justify-content: center;
  }

  .ext-card {
    display: none;
  }

  .phone-frame {
    margin-left: 0;
  }

  .orb--white-tl {
    width: 34px;
    height: 34px;
    top: 16px;
    left: auto;
    right: 20px;
  }

  .orb--cyan-bl,
  .orb--silver-br {
    width: 96px;
    height: 96px;
    opacity: 0.72;
  }

  .stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .modal-card {
    padding: 20px 18px 106px;
  }

  .modal-title {
    font-size: 28px;
  }
}

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