/* Official Sui Rewards — conversion-focused landing */
:root {
  --bg: #060b14;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.14);
  --card: rgba(12, 20, 36, 0.72);
  --cyan: #6ee7f9;
  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --green: #34d399;
  --radius: 20px;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Animated background ===== */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb--1 {
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, #1e40af 0%, transparent 70%);
  top: -18%;
  left: -12%;
  animation: drift-a 18s ease-in-out infinite alternate;
}
.orb--2 {
  width: 45vw;
  height: 45vw;
  max-width: 420px;
  max-height: 420px;
  background: radial-gradient(circle, #0891b2 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation: drift-b 22s ease-in-out infinite alternate;
}
.orb--3 {
  width: 30vw;
  height: 30vw;
  max-width: 280px;
  max-height: 280px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  top: 42%;
  left: 38%;
  opacity: 0.35;
  animation: drift-c 14s ease-in-out infinite alternate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.glow {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 65%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes drift-a {
  to { transform: translate(8%, 6%) scale(1.08); }
}
@keyframes drift-b {
  to { transform: translate(-6%, -8%) scale(1.05); }
}
@keyframes drift-c {
  to { transform: translate(-10%, 12%) scale(0.95); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

/* ===== Page ===== */
.page {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  display: flex;
  filter: drop-shadow(0 0 10px rgba(110, 231, 249, 0.3));
}
.brand__name {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--ink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar__net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 22px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.hero__badge-icon {
  opacity: 0.9;
}
.hero__title {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(125deg, #fff 20%, var(--cyan) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

/* Claim block */
.claim {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.claim__timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.16);
}
.claim__timer-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: #fca5a5;
  letter-spacing: 0.02em;
}
.claim__timer-value {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fecaca;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.claim__card {
  position: relative;
  padding: 20px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px -20px rgba(0, 0, 0, 0.65),
    0 0 80px -12px rgba(59, 130, 246, 0.2);
  overflow: hidden;
}
.claim__card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 72% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Reward allocation */
.reward {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(12, 20, 36, 0.4) 55%, rgba(110, 231, 249, 0.06) 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 32px -16px rgba(37, 99, 235, 0.45);
  overflow: hidden;
}
.reward::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 249, 0.45), transparent);
  pointer-events: none;
}
.chip--addr {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 500;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward__token {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.reward__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 249, 0.25);
  animation: token-ring 3s ease-in-out infinite;
}
.reward__glow {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  animation: token-pulse 2.8s ease-in-out infinite;
}
.reward__coin {
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.5));
}
@keyframes token-ring {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes token-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.reward__body {
  flex: 1;
  min-width: 0;
}
.reward__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.reward__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.reward__badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(110, 231, 249, 0.1);
  border: 1px solid rgba(110, 231, 249, 0.22);
}
.reward__amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.reward__num {
  color: var(--muted);
  letter-spacing: 0.14em;
  filter: blur(5px);
  user-select: none;
  animation: shimmer-blur 2.4s ease-in-out infinite;
  transition: filter 0.5s ease, color 0.5s ease, letter-spacing 0.5s ease;
}
@keyframes shimmer-blur {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: blur(4px); }
}
.reward__amount.is-revealed .reward__num {
  filter: none;
  color: var(--ink);
  letter-spacing: -0.03em;
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  from { transform: scale(0.92); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
.reward__hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--muted);
}
.reward__hint-icon {
  flex-shrink: 0;
  opacity: 0.65;
}

/* CTA */
.cta {
  position: relative;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  box-shadow:
    0 10px 28px -8px rgba(59, 130, 246, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.15s, box-shadow 0.2s;
}
.cta:hover {
  box-shadow:
    0 14px 36px -8px rgba(59, 130, 246, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.cta:active { transform: translateY(1px); }
.cta:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}
.cta__label { position: relative; z-index: 1; }
.cta__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: translateX(-100%);
  animation: cta-shine 3s ease-in-out infinite;
}
@keyframes cta-shine {
  0%, 70% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.cta.is-loading .cta__label { opacity: 0; }
.cta.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
.cta.is-done {
  background: linear-gradient(120deg, #059669, #047857);
  box-shadow: 0 10px 28px -8px rgba(5, 150, 105, 0.55);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--line);
  animation: rise 0.3s ease;
}
.toast.is-success {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}
.toast.is-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}
.toast.is-info {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Stats + activity feed */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
.stats__item {
  text-align: center;
  flex: 1;
}
.stats__value {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats__label {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stats__sep {
  width: 1px;
  height: 32px;
  background: var(--line);
  flex-shrink: 0;
}

.feed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.12);
  overflow: hidden;
}
.feed__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease infinite;
}
.feed__text {
  font-size: 0.72rem;
  font-weight: 500;
  color: #86efac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: feed-in 0.35s ease;
}
@keyframes feed-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.55);
  line-height: 1.6;
}
.foot__copy {
  margin-top: 4px;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .page {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .cta {
    margin-top: 14px;
    padding: 13px 16px;
    font-size: 0.92rem;
  }

  .cta-spacer {
    display: none;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal__panel {
    max-width: none;
    width: 100%;
    height: auto;
    max-height: min(92dvh, 92svh);
    border-radius: 24px 24px 0 0;
    padding-top: 0;
    padding-bottom: env(safe-area-inset-bottom);
    flex: 0 0 auto;
    overflow: hidden;
    animation: modal-sheet 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reown__head {
    padding: 12px 16px 10px;
    flex-shrink: 0;
  }

  .reown__body {
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .reown__listpane {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border-right: none;
    border-bottom: none;
    padding: 8px 8px calc(12px + env(safe-area-inset-bottom)) 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .reown__label {
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .reown__scroll {
    flex: none;
    max-height: min(420px, calc(92dvh - 136px));
    overflow-y: scroll;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .wallets {
    gap: 0;
    overflow: visible;
    flex: none;
    min-height: auto;
    max-height: none;
    padding-right: 0;
  }

  .wallets > li + li {
    margin-top: 6px;
  }

  .wallet {
    padding: 8px 12px;
    gap: 10px;
  }

  .wallet__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .wallet__name {
    font-size: 0.88rem;
  }

  .wallet__badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  .reown__aside {
    display: none !important;
  }
}

@keyframes modal-sheet {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 380px) {
  .page { padding-top: 16px; }
  .reward { gap: 12px; padding: 14px; }
  .reward__token { width: 48px; height: 48px; }
  .reward__coin { width: 44px; height: 44px; }
  .reward__amount { font-size: 1.55rem; }
}

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

/* ===== Wallet modal — Reown-style ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: min(90vh, 520px);
  background: #fff;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 24px 48px -12px rgba(0, 0, 0, 0.18);
  animation: modal-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #141414;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-up {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Header */
.reown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.reown__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reown__logo {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #141414;
  color: #fff;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.reown__kit {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: #141414;
  letter-spacing: -0.01em;
}
.reown__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.reown__close:hover {
  background: #f4f4f5;
  color: #141414;
}

/* Two-column body — desktop only */
@media (min-width: 901px) {
  .reown__body {
    min-height: 360px;
    overflow: hidden;
  }

  .reown__listpane {
    min-height: 0;
    overflow: hidden;
  }

  .reown__scroll {
    flex: none;
    max-height: calc(min(90vh, 520px) - 148px);
    overflow-y: scroll;
    scrollbar-gutter: stable;
  }

  .wallets {
    overflow: visible;
    flex: none;
    max-height: none;
  }
}

.reown__body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.reown__listpane {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
  padding: 18px 8px 20px 22px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid #f0f0f0;
}
.reown__label {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: #141414;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.reown__label::after {
  content: ":";
}
.reown__label--more {
  margin-top: 16px;
}

.reown__scroll {
  flex: none;
  max-height: calc(min(90vh, 520px) - 148px);
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #ececf0;
}

.reown__scroll::-webkit-scrollbar {
  width: 8px;
}

.reown__scroll::-webkit-scrollbar-track {
  margin: 4px 0;
  background: #ececf0;
  border-radius: 999px;
}

.reown__scroll::-webkit-scrollbar-thumb {
  background: #b4b4be;
  border-radius: 999px;
  border: 2px solid #ececf0;
  min-height: 40px;
}

.reown__scroll::-webkit-scrollbar-thumb:hover {
  background: #8b8b96;
}

.wallets {
  list-style: none;
  display: block;
  margin: 0;
  padding: 0 4px 0 0;
  overflow: visible;
}

.wallets > li + li {
  margin-top: 8px;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: #f4f4f5;
  color: #141414;
  font-family: var(--body);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.wallet:hover {
  background: #ebebed;
}
.wallet:active { transform: scale(0.995); }
.wallet.is-busy {
  pointer-events: none;
  opacity: 0.65;
}
.wallet.is-active {
  background: #e4e4e7;
}

.wallet__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.wallet__info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #141414;
}
.wallet__badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  color: #166534;
  background: #dcfce7;
}

/* Right aside — allocation preview */
.reown__aside {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  min-width: 0;
}
.reown__aside-view {
  text-align: center;
  max-width: 220px;
  width: 100%;
}
.reown__aside-preview {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.reown__aside-blur {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #a1a1aa;
  filter: blur(3px);
}
.reown__aside-unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
}
.reown__aside-title {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #141414;
  line-height: 1.25;
}
.reown__aside-text {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #71717a;
}
.reown__steps {
  list-style: none;
  margin-top: 16px;
  padding: 0;
  text-align: left;
  counter-reset: step;
}
.reown__steps li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #52525b;
  counter-increment: step;
}
.reown__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
  color: #3b82f6;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}
.reown__aside-meta {
  margin-top: 18px;
  font-size: 0.72rem;
  color: #71717a;
}
.reown__aside-meta strong {
  color: #141414;
  font-weight: 700;
}

.reown__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 18px;
  border: 2.5px solid #e4e4e7;
  border-top-color: #141414;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===== Wallet iframe overlay — extension popup style ===== */
.wallet-frame {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}
.wallet-frame[hidden] { display: none; }

/* Transparent click-catcher — no dark overlay, page stays visible */
.wallet-frame__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: all;
  cursor: default;
  background: transparent;
}

/* Positioned top-right like a real Chrome extension popup */
.wallet-frame__iframe {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 360px;
  height: 600px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: all;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.3);
  transform-origin: top right;
  animation: ext-popup 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ext-popup {
  from { opacity: 0; transform: scale(0.95) translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .wallet-frame__iframe {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    height: -webkit-fill-available;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
    transform-origin: center center;
    animation: modal-sheet 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
  }
}

