:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0b0d19;
  --panel: rgba(25, 27, 48, 0.82);
  --panel-strong: rgba(35, 35, 62, 0.92);
  --line: rgba(153, 126, 255, 0.28);
  --line-strong: rgba(183, 159, 255, 0.48);
  --text: #f8f6ff;
  --muted: #aaa8c3;
  --purple: #9c63ff;
  --blue: #62a7ff;
  --orange: #ffad4d;
  --green: #19f0a2;
  --red: #ff4d6d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(90, 113, 255, 0.28), transparent 360px),
    radial-gradient(circle at 90% 4%, rgba(255, 154, 61, 0.16), transparent 380px),
    linear-gradient(135deg, #080b18 0%, #13152a 48%, #24172d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.12));
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.home-mode [data-invite-only],
.invite-mode [data-home-only] {
  display: none !important;
}

.invite-mode:not(.register-complete) #download {
  display: none !important;
}

.invite-mode:not(.register-complete) .nav-primary {
  display: none;
}

.topbar,
.hero,
.feature-grid article,
.download-section,
.register-card,
.risk-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(35, 41, 73, 0.72), rgba(30, 24, 48, 0.78)),
    rgba(18, 20, 36, 0.74);
  box-shadow: 0 24px 82px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px);
}

.invite-mode .register-card {
  margin-top: 22px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.ai-badge,
.icon,
.success-mark {
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #7de5bf, #9d66ff 62%, #ffa94d);
  box-shadow: 0 0 26px rgba(155, 92, 255, 0.4);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.lead,
.download-section p,
.register-card p,
.risk-card p,
.feature-grid p,
.trade-head small,
.download-card small,
.profit-card small,
.profit-card span {
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.nav-actions a {
  padding: 10px 12px;
  border-radius: 14px;
}

.nav-primary,
.primary-button {
  background: linear-gradient(135deg, var(--blue), var(--purple) 62%, #b653ff);
  color: white;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  margin-top: 22px;
  padding: 54px;
  border-radius: 32px;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: 72px;
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  font-size: 20px;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.ghost-button,
.secondary-button,
.download-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
}

.ghost-button,
.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel {
  min-height: 390px;
}

.trade-animation {
  position: relative;
  min-height: 390px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, rgba(22, 30, 58, 0.95), rgba(38, 25, 51, 0.9));
  background-size: 42px 42px, 42px 42px, auto;
}

.trade-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ai-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.status-pill {
  padding: 8px 10px;
  border: 1px solid rgba(25, 240, 162, 0.35);
  border-radius: 999px;
  color: var(--green);
  background: rgba(25, 240, 162, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.kline-stage {
  position: relative;
  height: 168px;
  margin-top: 28px;
  border-radius: 22px;
  background: rgba(7, 10, 24, 0.34);
  overflow: hidden;
}

.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.g1 {
  top: 38%;
}

.g2 {
  top: 68%;
}

.price-line {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 52%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(25, 240, 162, 0.7), transparent);
  animation: price-scan 3.6s ease-in-out infinite;
}

.candle {
  position: absolute;
  bottom: 34px;
  width: 16px;
  border-radius: 8px;
  transform-origin: bottom;
  animation: candle-lift 2.8s ease-in-out infinite;
}

.candle::before {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -15px;
  width: 2px;
  height: calc(100% + 28px);
  background: currentColor;
  opacity: 0.55;
}

.candle.up {
  color: var(--green);
  background: linear-gradient(180deg, #4dffd0, #15d995);
}

.candle.down {
  color: var(--red);
  background: linear-gradient(180deg, #ff7a92, #ff4560);
}

.c1 { left: 13%; height: 56px; animation-delay: 0s; }
.c2 { left: 25%; height: 78px; animation-delay: 0.18s; }
.c3 { left: 38%; height: 92px; animation-delay: 0.36s; }
.c4 { left: 52%; height: 116px; animation-delay: 0.54s; }
.c5 { left: 66%; height: 74px; animation-delay: 0.72s; }
.c6 { left: 80%; height: 128px; animation-delay: 0.9s; }

.order-dot {
  position: absolute;
  left: 79%;
  top: 24%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 10px rgba(255, 173, 77, 0.13), 0 0 32px rgba(255, 173, 77, 0.55);
  animation: order-pulse 2s ease-in-out infinite;
}

.order-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.order-flow span {
  position: relative;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(153, 126, 255, 0.24);
  border-radius: 16px;
  color: #dcd6ff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  overflow: hidden;
}

.order-flow span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(98, 167, 255, 0.28), transparent);
  animation: order-flow 3.2s ease-in-out infinite;
}

.order-flow span:nth-child(2)::after { animation-delay: 0.45s; }
.order-flow span:nth-child(3)::after { animation-delay: 0.9s; }

.profit-card {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: min(210px, calc(100% - 48px));
  padding: 16px;
  border: 1px solid rgba(25, 240, 162, 0.28);
  border-radius: 18px;
  background: rgba(9, 18, 30, 0.72);
  box-shadow: 0 0 34px rgba(25, 240, 162, 0.12);
  animation: profit-pop 3.6s ease-in-out infinite;
}

.profit-card strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 34px;
}

.invite-notice {
  max-width: 680px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(25, 240, 162, 0.28);
  border-radius: 18px;
  background: rgba(25, 240, 162, 0.08);
  color: #d9fff0;
}

.invite-notice.invalid {
  border-color: rgba(255, 173, 77, 0.38);
  background: rgba(255, 173, 77, 0.1);
  color: #ffe5c1;
}

.hidden {
  display: none !important;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feature-grid article {
  min-height: 220px;
  padding: 24px;
  border-radius: 26px;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.download-section,
.register-card,
.risk-card {
  margin-top: 16px;
  padding: 36px;
  border-radius: 28px;
}

.section-head {
  max-width: 720px;
}

.section-head h2,
.register-card h2,
.risk-card h2 {
  margin: 12px 0 10px;
  font-size: 38px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.download-card {
  display: grid;
  justify-items: start;
  min-height: 140px;
  padding: 22px;
  text-align: left;
  border: 1px solid rgba(183, 159, 255, 0.22);
  background: linear-gradient(145deg, rgba(95, 137, 255, 0.18), rgba(44, 39, 72, 0.72));
}

.download-card span {
  color: var(--orange);
  font-weight: 900;
}

.download-card strong {
  margin-top: 12px;
  font-size: 22px;
}

.download-card.info-only {
  cursor: default;
  border-color: rgba(255, 173, 77, 0.3);
  background: linear-gradient(145deg, rgba(255, 165, 72, 0.13), rgba(44, 39, 72, 0.72));
}

.download-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--orange);
}

.platform-hint {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid rgba(98, 167, 255, 0.28);
  border-radius: 999px;
  color: #dbe9ff;
  background: rgba(98, 167, 255, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.register-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 26px;
  align-items: start;
}

.register-intro {
  position: sticky;
  top: 104px;
}

.mini-flow {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.mini-flow span {
  padding: 14px 16px;
  border: 1px solid rgba(153, 126, 255, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8e1ff;
  font-weight: 900;
}

.register-form,
.success-card {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #d8d2ef;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(183, 159, 255, 0.32);
  border-radius: 16px;
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

input:focus {
  border-color: rgba(155, 92, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.14);
}

input:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(183, 159, 255, 0.22);
  border-radius: 13px;
  color: #d9d3ff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  outline: 0;
  color: #fff;
  border-color: rgba(155, 92, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.14);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.verify-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(153, 126, 255, 0.25);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.verify-card[data-status="verified"] {
  border-color: rgba(25, 240, 162, 0.36);
  background: rgba(25, 240, 162, 0.07);
  box-shadow: 0 0 26px rgba(25, 240, 162, 0.08);
}

.verify-card[data-status="locked"] {
  opacity: 0.82;
}

.verify-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.verify-head h3,
.verify-head p {
  margin: 0;
}

.verify-head p {
  margin-top: 4px;
  color: var(--muted);
}

.step-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff1d8;
  background: rgba(255, 173, 77, 0.18);
  font-weight: 900;
}

.step-status {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.verify-card[data-status="verified"] .step-index,
.verify-card[data-status="verified"] .step-status {
  color: #d8fff0;
  background: rgba(25, 240, 162, 0.14);
}

.phone-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: end;
}

.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: end;
}

.country-trigger {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid rgba(183, 159, 255, 0.32);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.country-trigger:focus-visible {
  outline: 0;
  border-color: rgba(155, 92, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.14);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  align-items: end;
}

.code-row.three {
  grid-template-columns: 1fr 150px 130px;
}

.code-row.two {
  grid-template-columns: auto minmax(0, 1fr) 118px;
  align-items: center;
}

.code-label {
  color: #d8d2ef;
  font-weight: 900;
  white-space: nowrap;
}

.code-row.two input {
  min-height: 48px;
}

.send-inline {
  width: 100%;
  white-space: nowrap;
}

.verified-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(25, 240, 162, 0.3);
  border-radius: 16px;
  color: #d8fff0;
  background:
    linear-gradient(135deg, rgba(25, 240, 162, 0.1), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.verified-summary span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #061d14;
  background: var(--green);
  box-shadow: 0 0 20px rgba(25, 240, 162, 0.42);
  animation: check-pop 0.42s ease-out;
}

.verify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(25, 240, 162, 0.28);
  border-radius: 16px;
  color: #d9fff0;
  background: rgba(25, 240, 162, 0.08);
  font-weight: 900;
  cursor: pointer;
}

.step-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.step-message.ok {
  color: var(--green);
}

.step-message.error {
  color: var(--red);
}

.step-message.warn {
  color: var(--orange);
}

.check-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
}

.check-row input {
  min-height: auto;
  margin-top: 3px;
}

.wide {
  width: 100%;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--orange);
}

.form-message.ok {
  color: var(--green);
}

.form-message.error {
  color: var(--red);
}

.success-card {
  grid-column: 2;
  padding: 22px;
  border: 1px solid rgba(25, 240, 162, 0.32);
  border-radius: 22px;
  background: rgba(25, 240, 162, 0.08);
}

.success-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.success-card h3 {
  margin: 0;
  font-size: 26px;
}

.success-card p {
  margin: 0;
}

.country-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 16, 0.68);
  backdrop-filter: blur(12px);
}

.country-panel {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(35, 41, 73, 0.94), rgba(30, 24, 48, 0.94)),
    var(--panel-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.country-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.country-head h2 {
  margin: 0;
  font-size: 28px;
}

.country-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(183, 159, 255, 0.26);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  cursor: pointer;
}

.country-search {
  min-height: 52px;
}

.country-list {
  min-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.country-option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: 15px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.country-option:hover,
.country-option:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
}

.country-option strong,
.country-option small {
  display: block;
}

.country-option small {
  color: var(--muted);
}

.country-option code {
  color: var(--orange);
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
}

.country-empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}

.risk-card {
  margin-bottom: 42px;
}

@keyframes price-scan {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(10px);
  }
  50% {
    opacity: 1;
    transform: translateY(-12px);
  }
}

@keyframes candle-lift {
  0%, 100% {
    transform: scaleY(0.82);
    opacity: 0.78;
  }
  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}

@keyframes order-pulse {
  0%, 100% {
    transform: scale(0.88);
  }
  50% {
    transform: scale(1.14);
  }
}

@keyframes order-flow {
  0% {
    transform: translateX(-100%);
  }
  58%, 100% {
    transform: translateX(100%);
  }
}

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

@keyframes check-pop {
  0% {
    opacity: 0;
    transform: scale(0.62);
  }
  72% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (max-width: 920px) {
  .shell {
    width: min(100% - 20px, 720px);
    padding-top: 10px;
  }

  .topbar {
    position: static;
  }

  .nav-actions a:not(.nav-primary) {
    display: none;
  }

  .hero,
  .register-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 18px;
    border-radius: 26px;
  }

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

  .lead {
    font-size: 17px;
  }

  .hero-panel {
    min-height: 330px;
  }

  .trade-animation {
    min-height: 330px;
    padding: 18px;
  }

  .trade-head {
    grid-template-columns: auto 1fr;
  }

  .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .order-flow,
  .feature-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-section,
  .register-card,
  .risk-card {
    padding: 24px 18px;
  }

  .register-intro {
    position: static;
  }

  .mini-flow {
    display: none;
  }

  .code-row,
  .code-row.three,
  .phone-row,
  .email-row,
  .verify-head {
    grid-template-columns: 1fr;
  }

  .code-row.two {
    grid-template-columns: auto minmax(0, 1fr) 104px;
  }

  .code-row.two .verify-button {
    padding: 0 10px;
  }

  .verify-head {
    align-items: start;
  }

  .step-status {
    justify-self: start;
  }

  .country-trigger {
    width: max-content;
    min-width: 118px;
  }

  .country-dialog {
    align-items: end;
    padding: 10px;
  }

  .country-panel {
    max-height: min(78vh, 720px);
    padding: 18px;
    border-radius: 24px 24px 18px 18px;
  }

  .country-head h2 {
    font-size: 24px;
  }

  .success-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 18% 4%, rgba(90, 113, 255, 0.22), transparent 240px),
      radial-gradient(circle at 92% 12%, rgba(255, 154, 61, 0.12), transparent 260px),
      linear-gradient(135deg, #080b18 0%, #11142a 54%, #20162d 100%);
  }

  body::before {
    background-size: 42px 42px;
    opacity: 0.72;
  }

  .shell {
    width: calc(100% - 14px);
    padding: 8px 0 28px;
  }

  .topbar {
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .nav-primary {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 13px;
  }

  .invite-mode .register-card {
    margin-top: 10px;
  }

  .register-card {
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .register-intro {
    display: grid;
    gap: 8px;
  }

  .register-intro .eyebrow {
    display: none;
  }

  .register-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
  }

  .register-card h2::after {
    content: "赠送 1 日 VIP";
    display: inline-flex;
    margin-left: 10px;
    transform: translateY(-3px);
    padding: 5px 8px;
    border: 1px solid rgba(25, 240, 162, 0.25);
    border-radius: 999px;
    color: #d8fff0;
    background: rgba(25, 240, 162, 0.1);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
  }

  .register-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .invite-notice {
    margin-top: 2px;
    padding: 9px 11px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  .register-form {
    gap: 10px;
  }

  .verify-card {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .verify-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
  }

  .verify-head h3 {
    font-size: 16px;
    line-height: 1.15;
  }

  .verify-head p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
  }

  .step-index {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 12px;
  }

  .step-status {
    justify-self: end;
    padding: 5px 8px;
    font-size: 11px;
  }

  input {
    min-height: 44px;
    padding: 0 11px;
    border-radius: 14px;
    font-size: 15px;
  }

  .phone-row {
    grid-template-columns: 76px minmax(0, 1fr) 68px;
    gap: 8px;
    align-items: center;
  }

  .email-row {
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 8px;
    align-items: center;
  }

  .country-trigger {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 13px;
  }

  .secondary-button,
  .verify-button {
    min-height: 44px;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .code-row.two {
    grid-template-columns: 66px minmax(0, 1fr) 68px;
    gap: 8px;
  }

  .code-label {
    font-size: 12px;
    letter-spacing: 0;
  }

  .code-row.two input {
    min-height: 44px;
  }

  .verified-summary {
    min-height: 46px;
    padding: 0 11px;
    border-radius: 14px;
    font-size: 14px;
  }

  .verified-check {
    width: 26px;
    height: 26px;
  }

  .password-field input {
    padding-right: 52px;
  }

  .password-toggle {
    right: 7px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .check-row {
    gap: 9px;
    font-size: 12px;
    line-height: 1.45;
  }

  .primary-button,
  .ghost-button,
  .download-card {
    min-height: 46px;
    border-radius: 15px;
  }

  .form-message,
  .step-message {
    min-height: 16px;
    font-size: 12px;
  }

  .success-card {
    padding: 16px;
    border-radius: 18px;
  }

  .success-card h3 {
    font-size: 21px;
  }

  .country-dialog {
    padding: 8px;
  }

  .country-panel {
    max-height: min(82vh, 720px);
    padding: 15px;
    border-radius: 22px 22px 16px 16px;
  }

  .country-option {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 50px;
  }
}
