:root {
  --bg-top: #4f5f73;
  --bg-bottom: #070809;
  --surface: rgba(112, 119, 131, 0.14);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-soft: rgba(255, 255, 255, 0.06);
  --text: #f3f3f3;
  --muted: #9fa6b2;
  --green: #16a532;
  --purple: #a97be8;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(169, 123, 232, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, #2d333e 22%, #111214 62%, var(--bg-bottom) 100%);
}

button,
a,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: 100%;
  padding: 24px 16px 40px;
}

.hero-phone {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: start;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 430px);
  min-height: 860px;
  margin: 0 auto;
  padding: 16px 16px 110px;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(112, 126, 145, 0.32) 0%, rgba(21, 22, 25, 0.84) 38%, rgba(5, 6, 7, 0.97) 100%),
    linear-gradient(180deg, #66778c 0%, #141519 100%);
  box-shadow: var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 16%, transparent 82%, rgba(255, 255, 255, 0.02));
}

.status-bar,
.top-tools,
.wallet-row,
.cards-zone,
.promo-banner,
.history-card,
.bottom-nav {
  position: relative;
  z-index: 1;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.signal-bars i {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: #fff;
}

.signal-bars i:nth-child(1) { height: 4px; opacity: 0.5; }
.signal-bars i:nth-child(2) { height: 6px; opacity: 0.7; }
.signal-bars i:nth-child(3) { height: 9px; opacity: 0.85; }
.signal-bars i:nth-child(4) { height: 12px; }

.battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 3px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.battery span {
  position: absolute;
  inset: 1.5px;
  border-radius: 1.5px;
  background: #fff;
}

.top-tools {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.avatar,
.tool-circle,
.shortcut-box,
.history-icon,
.plus-circle,
.promo-glyph {
  display: grid;
  place-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffddb2, #dd9836 58%, #8a4a10);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.28);
}

.search-bar {
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, rgba(226, 231, 237, 0.34), rgba(163, 170, 180, 0.18));
  backdrop-filter: blur(16px);
}

.search-bar::before {
  content: "⌕";
  margin-right: 10px;
  font-size: 16px;
}

.tool-icons {
  display: flex;
  gap: 8px;
}

.tool-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

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

.wallet-title-wrap,
.history-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-row h1,
.content-panel h2,
.history-head h2,
.modal-card h2 {
  margin: 0;
  font-family: "SF Pro Display", system-ui, sans-serif;
}

.wallet-row h1 {
  font-size: 36px;
  font-weight: 700;
}

.chevron,
.up-chevron,
.menu-dots,
.all-link,
.detail-link,
.secondary-link {
  color: var(--muted);
}

.wallet-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eye-off {
  position: relative;
  width: 20px;
  height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.74);
  border-radius: 12px / 8px;
}

.eye-off::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1.5px;
  transform: rotate(-24deg);
  background: rgba(255, 255, 255, 0.88);
}

.cards-zone {
  display: grid;
  grid-template-columns: 72px 1.2fr 1fr 68px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}

.shortcut-column {
  display: grid;
  gap: 12px;
}

.shortcut-box {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(113, 119, 128, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.06);
  aspect-ratio: 1;
  color: #fff;
}

.shortcut-icon {
  position: relative;
  width: 28px;
  height: 28px;
}

.shortcut-icon.waves::before,
.shortcut-icon.waves::after {
  content: "";
  position: absolute;
  inset: 5px 2px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.shortcut-icon.waves::after {
  inset: 0;
}

.shortcut-icon.shield::before {
  content: "";
  position: absolute;
  inset: 2px 5px 4px;
  border-radius: 12px 12px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%);
}

.glass-card {
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(177, 184, 195, 0.25), rgba(95, 102, 113, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.balance-card {
  text-align: left;
  color: var(--text);
}

.mini-cards {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}

.mini-cards span {
  padding: 7px 9px;
  border-radius: 12px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.14);
}

.balance-card strong,
.bonus-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.balance-card small,
.bonus-card small,
.edge-card small {
  display: block;
  margin-top: 8px;
  color: rgba(243, 243, 243, 0.74);
}

.bonus-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bonus-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.edge-card {
  overflow: hidden;
  padding-left: 10px;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plus-circle {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}

.edge-card span {
  font-weight: 600;
}

.promo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(17, 18, 21, 0.98), rgba(38, 40, 45, 0.9));
  border: 1px solid var(--stroke-soft);
  margin-bottom: 18px;
}

.promo-close,
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.promo-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
}

.promo-text,
.intro,
.modal-text,
.history-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.promo-side {
  display: grid;
  justify-items: end;
  gap: 16px;
  padding-top: 12px;
}

.promo-glyph {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  font-size: 22px;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #cdadff, #8a59d7 60%, #5b36b4);
}

.secondary-cta,
.submit-cta,
.primary-cta {
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary-cta {
  min-width: 104px;
  height: 40px;
  background: var(--purple);
}

.history-card {
  padding: 22px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(32, 34, 38, 0.96), rgba(20, 21, 24, 0.98));
  border: 1px solid var(--stroke-soft);
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.history-head h2 {
  font-size: 22px;
}

.all-link,
.detail-link {
  color: var(--green);
  text-decoration: none;
}

.history-list {
  display: grid;
}

.history-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.history-item:first-child {
  border-top: 0;
}

.history-copy h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.history-icon {
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.history-icon.check::before {
  content: "✓";
  color: #fff;
  font-weight: 700;
}

.history-icon.arrow::before,
.amount-mark::before {
  content: "↗";
  color: var(--green);
  font-weight: 700;
}

.amount-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
}

.amount-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.amount-side strong {
  font-size: 18px;
}

.amount-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 165, 50, 0.14);
}

.detail-link {
  display: inline-block;
  margin-top: 10px;
}

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 8px 12px;
  border-radius: 24px;
  background: rgba(6, 7, 9, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-item {
  color: #707684;
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  background: transparent;
}

.nav-item.active {
  color: var(--green);
}

.nav-icon {
  width: 22px;
  height: 22px;
  position: relative;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
}

.nav-icon.home::before {
  inset: 6px 4px 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.nav-icon.home::after {
  left: 3px;
  right: 3px;
  top: 2px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) scale(0.72);
  transform-origin: center;
}

.nav-icon.stack::before,
.nav-icon.heart::before,
.nav-icon.pay::before,
.nav-icon.wallet::before {
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.nav-icon.heart::after {
  left: 5px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.nav-icon.pay::after {
  left: 7px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-icon.wallet::after {
  right: 5px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.content-panel {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 6px 6px 0;
}

.eyebrow,
.modal-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-panel h2 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.intro {
  margin-top: 14px;
  font-size: 15px;
}

.proof-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.proof-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.primary-cta,
.submit-cta {
  min-width: 170px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #1dba3e, var(--green));
  box-shadow: 0 14px 28px rgba(22, 165, 50, 0.28);
}

.secondary-link {
  text-decoration: none;
}

.waitlist-modal {
  width: min(92vw, 460px);
  padding: 0;
  border: 0;
  background: transparent;
}

.waitlist-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #16181c, #0c0d10);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin-top: 14px;
  font-size: 30px;
}

.modal-text {
  margin-top: 10px;
}

.modal-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.modal-card label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.modal-card input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.modal-card input:focus {
  border-color: rgba(22, 165, 50, 0.7);
  box-shadow: 0 0 0 3px rgba(22, 165, 50, 0.18);
}

.form-error {
  min-height: 20px;
  color: #ff8b8b;
}

.modal-success-state[hidden],
.modal-form-state[hidden],
.promo-banner[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .page-shell {
    padding: 40px 24px 56px;
  }

  .hero-phone {
    grid-template-columns: 430px minmax(280px, 1fr);
    gap: 48px;
  }

  .content-panel {
    align-self: center;
    margin: 0;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 10px;
  }

  .phone-frame {
    padding-inline: 12px;
  }

  .cards-zone {
    grid-template-columns: 64px 1.12fr 0.95fr 54px;
    gap: 10px;
  }

  .wallet-row h1 {
    font-size: 32px;
  }

  .promo-title {
    font-size: 18px;
  }

  .history-card {
    padding-inline: 16px;
  }

  .bottom-nav {
    left: 12px;
    right: 12px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-cta,
  .submit-cta,
  .secondary-link {
    width: 100%;
    justify-content: center;
  }
}
