:root {
  --bg-main: #12093f;
  --bg-deep: #090428;
  --panel: #160d56;
  --panel-soft: #1a1162;
  --panel-lift: rgba(255, 255, 255, 0.06);
  --text-main: #f5f2ff;
  --text-soft: #d4caef;
  --text-dim: #a89dcc;
  --accent-blue: #6884ff;
  --accent-cyan: #8cefff;
  --accent-pink: #ff3d93;
  --accent-pink-soft: #ff6bab;
  --accent-gold: #ffd76f;
  --border-soft: rgba(255, 255, 255, 0.2);
  --border-strong: rgba(255, 255, 255, 0.34);
  --shadow-heavy: 0 32px 84px rgba(3, 0, 17, 0.45);
  --shadow-card: 0 20px 48px rgba(8, 5, 28, 0.28);
  --bg-light: #f5f5fb;
  --panel-light: #ffffff;
  --line-light: rgba(17, 24, 39, 0.1);
  --text-dark: #111827;
  --text-gray: #6b7280;
  --success: #19b37d;
  --danger: #df4b5b;
  --content-width: 1180px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.site-shell,
.wallet-header-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.page-home {
  background:
    radial-gradient(circle at top right, rgba(123, 89, 255, 0.2), transparent 34%),
    radial-gradient(circle at top left, rgba(0, 228, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #150950 0%, #130946 62%, #10073d 100%);
  color: var(--text-main);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(17, 9, 66, 0.55);
}

.site-header .site-shell,
.wallet-header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-dark {
  color: var(--text-dark);
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
}

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

.brand-text {
  font-size: 2rem;
}

.ghost-link,
.wallet-back-link {
  color: var(--text-soft);
  font-weight: 600;
  transition: color var(--transition);
}

.wallet-back-link {
  color: var(--accent-blue);
}

.ghost-link:hover,
.wallet-back-link:hover {
  color: var(--text-main);
}

.hero-section {
  padding: 3.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  padding: 2rem 0 1.25rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding-right: 1.35rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(157, 164, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 52px;
  padding: 0 1rem;
  background: linear-gradient(135deg, rgba(111, 144, 255, 0.92), rgba(123, 99, 255, 0.86));
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
}

.eyebrow-text {
  padding-left: 1rem;
  padding-right: 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ff5b97;
  letter-spacing: 0.02em;
}

.hero-title {
  display: grid;
  gap: 0.2rem;
  margin: 2.4rem 0 1.4rem;
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-title-gradient {
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-cyan) 42%, #a4ffb8 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-summary {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: var(--text-soft);
  font-size: 1.18rem;
}

.hero-actions,
.connected-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.85rem 1.6rem;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--text-main);
  background: linear-gradient(135deg, #5d75ef 0%, #7789ff 100%);
  box-shadow: 0 16px 28px rgba(98, 116, 255, 0.28);
}

.button-secondary {
  color: var(--text-main);
  background: linear-gradient(135deg, #ef2d86 0%, #ff5a89 100%);
  box-shadow: 0 16px 28px rgba(255, 78, 144, 0.24);
}

.button-outline {
  color: var(--accent-blue);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(104, 132, 255, 0.24);
}

.button-ghost {
  color: var(--text-dark);
  background: #eef2ff;
}

.button-manual {
  margin-top: 0.25rem;
}

.is-hidden {
  display: none !important;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 2rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.stat-icons {
  display: inline-flex;
  align-items: center;
}

.stat-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(108, 128, 255, 0.75), rgba(39, 50, 122, 0.82));
  border: 2px solid rgba(255, 215, 111, 0.9);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 800;
}

.stat-bubble-pink {
  background: linear-gradient(135deg, rgba(255, 70, 138, 0.76), rgba(126, 40, 104, 0.84));
}

.stat-bubble-shift {
  margin-left: -0.75rem;
}

.stat-label {
  color: var(--text-soft);
  font-size: 1.02rem;
}

.stat-label strong {
  color: #86a5ff;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.cube-stage {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1;
}

.cube,
.coin-stack,
.lock-block,
.network-node,
.network-link {
  position: absolute;
  display: block;
}

.cube {
  width: 108px;
  height: 108px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(52, 24, 173, 1), rgba(73, 28, 179, 0.95));
  box-shadow:
    inset -14px -18px 0 rgba(20, 6, 82, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 30px rgba(2, 0, 20, 0.28);
}

.cube::before,
.cube::after {
  content: "";
  position: absolute;
  display: block;
}

.cube::before {
  top: -20px;
  left: 12px;
  width: 84px;
  height: 32px;
  transform: skewX(-45deg);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, #4f1fd0, #6b34ff);
}

.cube::after {
  top: 11px;
  right: -20px;
  width: 32px;
  height: 84px;
  transform: skewY(-45deg);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #261080, #3b179f);
}

.cube-a { top: 134px; left: 120px; }
.cube-b { top: 64px; left: 210px; }
.cube-c { top: 168px; left: 252px; }
.cube-d { top: 234px; left: 164px; }
.cube-e { top: 118px; left: 28px; }

.coin-stack {
  width: 92px;
  height: 122px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffefb6 0%, #ffd492 100%);
  box-shadow:
    inset 0 -8px 0 rgba(255, 184, 114, 0.8),
    inset 0 8px 0 rgba(255, 252, 227, 0.8),
    0 18px 36px rgba(16, 7, 56, 0.22);
}

.coin-stack::before,
.coin-stack::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  box-shadow:
    0 18px 0 rgba(255, 232, 178, 0.95),
    0 36px 0 rgba(255, 205, 135, 0.9);
}

.coin-stack-top {
  top: 12px;
  right: 54px;
  transform: perspective(600px) rotateX(12deg);
}

.coin-stack-bottom {
  right: 8px;
  bottom: 112px;
  transform: perspective(600px) rotateX(12deg);
}

.lock-block {
  left: 24px;
  bottom: 118px;
  width: 72px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffddaa 0%, #ffb78a 100%);
  box-shadow: 0 18px 34px rgba(8, 5, 29, 0.22);
}

.lock-block::before {
  content: "";
  position: absolute;
  inset: 18px 24px 22px;
  border-radius: 16px 16px 10px 10px;
  border: 5px solid #5f22db;
  border-bottom-width: 11px;
}

.lock-block::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 27px;
  top: 42px;
  border-radius: 999px;
  background: #65e2ff;
  box-shadow: 0 20px 0 -6px #65e2ff;
}

.network-node {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d2aff, #aa8dff);
  box-shadow: 0 0 0 4px rgba(104, 132, 255, 0.2);
}

.node-1 { top: 116px; right: 20px; }
.node-2 { top: 164px; right: 94px; }
.node-3 { top: 176px; right: 38px; }
.node-4 { top: 118px; right: 92px; }

.network-link {
  height: 3px;
  border-radius: 999px;
  background: rgba(155, 133, 255, 0.76);
  transform-origin: left center;
}

.link-1 {
  top: 126px;
  right: 38px;
  width: 76px;
  transform: rotate(34deg);
}

.link-2 {
  top: 173px;
  right: 43px;
  width: 58px;
  transform: rotate(-32deg);
}

.link-3 {
  top: 146px;
  right: 48px;
  width: 60px;
  transform: rotate(0deg);
}

.token-strip {
  padding: 1.6rem 0 2.4rem;
}

.token-strip-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.3rem;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(25, 15, 97, 0.55), rgba(16, 8, 58, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.token-strip-note {
  margin: 0 0 0.85rem;
  color: var(--text-main);
  font-size: 1.02rem;
  text-align: center;
}

.token-strip-copy h2 {
  margin: 0;
  color: #83a2ff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.token-track-shell {
  overflow: hidden;
}

.token-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: token-scroll 28s linear infinite;
}

.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 154px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.token-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  font-weight: 900;
  color: #fff;
}

.token-name {
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 700;
}

@keyframes token-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.services-section {
  padding: 2rem 0 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-height: 312px;
  padding: 2rem 1.6rem 1.8rem;
  border-radius: 6px;
  border: 1px solid rgba(208, 202, 216, 0.55);
  background: rgba(24, 14, 90, 0.9);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  background: rgba(35, 21, 115, 0.98);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  color: #f3f4f6;
}

.service-icon svg {
  width: 72px;
  height: 72px;
  fill: currentColor;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.service-card p {
  margin: 0;
  color: var(--text-main);
  font-size: 1.02rem;
}

.service-card .button {
  min-height: 48px;
  padding-inline: 1.5rem;
  color: #101742;
  background: linear-gradient(180deg, #f8fafc 0%, #d9dde8 100%);
  box-shadow: none;
}

.story-section {
  padding: 4rem 0 2rem;
}

.story-section-alt {
  padding-top: 0.6rem;
  padding-bottom: 5rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.story-grid-reverse .story-card-text {
  order: 2;
}

.story-card {
  min-height: 360px;
}

.story-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 3rem;
}

.story-card-text h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.7rem, 4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.story-card-text span {
  color: #7fa2ff;
}

.story-card-text p {
  max-width: 35rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.2rem;
}

.story-card-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-illustration {
  position: relative;
  width: min(100%, 450px);
  aspect-ratio: 1 / 1;
}

.story-illustration-chip .chip-core {
  position: absolute;
  top: 118px;
  left: 120px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 30%, #c0abff 0%, #6d46de 48%, #4d2cb3 100%);
  box-shadow: 0 22px 52px rgba(4, 0, 18, 0.3);
}

.story-illustration-chip .chip-core::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 999px;
  border: 8px solid rgba(201, 233, 255, 0.75);
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.chip-line,
.chip-node {
  position: absolute;
  display: block;
}

.chip-line {
  height: 4px;
  border-radius: 999px;
  background: rgba(106, 136, 255, 0.6);
}

.chip-line-a {
  left: 62px;
  bottom: 114px;
  width: 118px;
}

.chip-line-b {
  right: 54px;
  bottom: 90px;
  width: 98px;
}

.chip-line-c {
  left: 190px;
  top: 110px;
  width: 68px;
  transform: rotate(90deg);
}

.chip-node {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff8ff 0%, #d6d9ff 100%);
  box-shadow: 0 16px 34px rgba(5, 1, 21, 0.16);
}

.chip-node-a {
  left: 28px;
  bottom: 84px;
}

.chip-node-b {
  right: 26px;
  bottom: 54px;
}

.chip-node-c {
  right: 78px;
  top: 38px;
}

.story-illustration-network .network-orb {
  position: absolute;
  top: 134px;
  left: 130px;
  width: 168px;
  height: 168px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 32%, #9a8eff 0%, #6030d2 46%, #402192 100%);
  box-shadow: 0 24px 48px rgba(4, 0, 18, 0.28);
}

.network-bar,
.network-cube {
  position: absolute;
  display: block;
}

.network-bar {
  width: 6px;
  border-radius: 999px;
  background: rgba(105, 135, 255, 0.26);
}

.bar-a { left: 160px; top: 50px; height: 90px; }
.bar-b { left: 188px; top: 24px; height: 110px; }
.bar-c { left: 216px; top: 70px; height: 78px; }

.network-cube {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0f6ff 0%, #bcc8ff 100%);
  box-shadow: 0 16px 34px rgba(5, 1, 21, 0.18);
}

.cube-1 { left: 84px; bottom: 70px; }
.cube-2 { right: 68px; top: 74px; }
.cube-3 { right: 30px; bottom: 106px; }

.site-footer-hosted {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, #0f172a 100%);
  color: #e2e8f0;
}

.footer-hosted-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-subscribe-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
}

.footer-subscribe-text {
  margin: 0.35rem 0 0;
  max-width: 28rem;
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-subscribe-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.footer-email-input {
  min-width: min(100%, 260px);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #f1f5f9;
  font-size: 1rem;
}

.footer-subscribe-btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.footer-onchain {
  margin: 0.5rem 0 0;
}

.footer-onchain a {
  color: #f472b6;
  font-weight: 700;
  text-decoration: none;
}

.footer-onchain a:hover {
  text-decoration: underline;
}

.footer-copyright {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-demo-banner {
  margin: 0;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #f59e0b;
  color: #78350f;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
}

.legal-demo-banner.is-hidden {
  display: none;
}

.page-wallets {
  min-height: 100vh;
  background: var(--bg-light);
  color: var(--text-dark);
}

.wallet-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(16px);
}

.wallet-main {
  padding-bottom: 3rem;
}

.wallet-hero {
  padding: 2.7rem 1rem 1.5rem;
  text-align: center;
}

.wallet-hero-inner h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.wallet-hero-inner p {
  margin: 0.8rem 0 0;
  color: var(--text-gray);
  font-size: 1.1rem;
}

.wallet-task-pill {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(104, 132, 255, 0.12);
  color: var(--accent-blue);
  font-weight: 700;
}

.wallet-grid-section {
  width: min(calc(100% - 2rem), 1120px);
  margin: 0 auto;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.wallet-card {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.2rem 0.9rem 1rem;
  border-radius: 18px;
  background: var(--panel-light);
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.wallet-card:hover {
  transform: translateY(-3px);
  border-color: rgba(104, 132, 255, 0.24);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.09);
}

.wallet-card:focus-visible {
  outline: 3px solid rgba(104, 132, 255, 0.22);
  outline-offset: 2px;
}

.wallet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 28px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.wallet-icon--logo {
  padding: 0.9rem;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.08),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

.wallet-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wallet-name {
  min-height: 2.6em;
  color: var(--text-dark);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
}

.wallet-helper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.6rem 0 0.2rem;
  color: var(--text-gray);
}

.wallet-inline-message {
  min-height: 1.6rem;
  margin: 0.25rem 0 0;
  color: var(--accent-blue);
  text-align: center;
  font-weight: 600;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(2, 6, 23, 0.54);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-shell.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(100%, 580px);
  padding: 1.5rem;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.22);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  background: transparent;
  color: #94a3b8;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-panel {
  display: none;
}

.modal-panel.is-active {
  display: block;
}

.modal-wallet-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 0.95rem;
  border-radius: 24px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.wallet-logo-image-modal {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#statusPanel {
  text-align: center;
}

#statusPanel h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.modal-copy {
  margin: 0.75rem auto 1.2rem;
  max-width: 29rem;
  color: var(--text-gray);
}

.spinner-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  border: 5px solid rgba(104, 132, 255, 0.18);
  border-top-color: var(--accent-blue);
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-context > div {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f8faff;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.modal-context-label {
  margin: 0 0 0.2rem;
  color: var(--text-gray);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-context-value {
  margin: 0;
  font-weight: 800;
  color: var(--text-dark);
}

.method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.method-tab {
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: #eef2ff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.method-tab.is-active {
  background: linear-gradient(135deg, #5d75ef 0%, #7789ff 100%);
  color: #fff;
}

.method-panel {
  display: none;
}

.method-panel.is-active {
  display: block;
}

.field-label {
  display: block;
  margin: 0.25rem 0 0.45rem;
  color: #334155;
  font-weight: 700;
}

.field-control {
  width: 100%;
  margin: 0 0 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  color: var(--text-dark);
}

.field-control:focus {
  outline: 3px solid rgba(104, 132, 255, 0.18);
  border-color: rgba(104, 132, 255, 0.5);
}

.field-control-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  min-height: 1.5rem;
  margin: 0.1rem 0 0.75rem;
  color: var(--danger);
  font-weight: 700;
}

.page-connected-error {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #111827;
}

.connected-error-top {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.connected-error-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.connected-error-brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.connected-error-connect {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #fce7f3;
  color: #db2777;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.connected-error-connect:hover {
  background: #fbcfe8;
}

.connected-error-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.connected-error-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.connected-error-spinner {
  width: 48px;
  height: 48px;
  margin: -0.5rem 0 1.25rem;
  border-radius: 999px;
  border: 4px solid #e5e7eb;
  border-top-color: #f472b6;
  animation: spin 900ms linear infinite;
}

.connected-error-title {
  margin: 0;
  max-width: 22rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.connected-error-sub {
  margin: 0.85rem 0 1.5rem;
  max-width: 26rem;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
}

.connected-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.connected-error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9a8d4, #f472b6);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.35);
}

.connected-error-btn-ghost {
  background: #fff;
  color: #ec4899;
  border: 2px solid #fbcfe8;
  box-shadow: none;
}

.connected-error-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.connected-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}

.connected-error-copy {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.connected-error-copy-accent {
  color: #ec4899;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero-grid,
  .token-strip-card,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .services-grid,
  .wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-card-text {
    padding-inline: 1rem;
  }

  .story-grid-reverse .story-card-text {
    order: initial;
  }
}

@media (max-width: 720px) {
  .site-header .site-shell,
  .wallet-header-shell {
    min-height: 72px;
  }

  .brand-text {
    font-size: 1.45rem;
  }

  .hero-section {
    padding-top: 2rem;
  }

  .eyebrow-pill {
    min-height: 46px;
    padding-right: 0.9rem;
  }

  .eyebrow-tag {
    min-width: 76px;
    height: 46px;
  }

  .hero-summary,
  .story-card-text p {
    font-size: 1rem;
  }

  .token-strip-card,
  .modal-card {
    padding: 1.2rem;
  }

  .services-grid,
  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 286px;
  }

  .wallet-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
  }

  .modal-context,
  .method-tabs {
    grid-template-columns: 1fr;
  }
}
