/* ==========================================================================
   Access / Wallet App — dedicated page
   ========================================================================== */
.access-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  --access-deep: #0b2fbf;
  --access-mid: #1a56ff;
  --access-sky: #5ecbff;
  --access-ice: #b8ecff;
  --access-panel: #061228;
  --wallet-topbar-h: 3.5rem;
}

.access-app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  background: light-dark(rgba(255, 255, 255, 0.72), rgba(7, 8, 9, 0.82));
  backdrop-filter: blur(12px);
}

.access-app-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--wallet-topbar-h);
}

.access-app-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.access-app-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.access-back-link {
  display: none;
}

@media (min-width: 769px) {
  .access-back-link {
    display: inline-flex;
  }
}

.access-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.access-section {
  flex: 1;
  min-height: calc(100vh - 65px);
}

.access-section:not(.wallet-open) {
  padding: 0;
}

.access-section.wallet-open {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.access-section.wallet-open .wallet-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.access-section.wallet-open .wallet-app-shell {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.access-landing {
  min-height: calc(100vh - 65px);
}

.access-landing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: calc(100vh - 65px);
}

/* Auth panel — left on desktop, bottom on mobile */
.access-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--space-xl), 5vw, var(--space-4xl));
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 0% 100%, rgba(26, 86, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(94, 203, 255, 0.06), transparent 50%),
    var(--bg-primary);
}

.access-auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

html[data-theme="light"] .access-auth-panel::before {
  opacity: 0.06;
}

.access-auth-inner {
  position: relative;
  width: min(100%, 26rem);
  text-align: center;
}

.access-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-md);
}

.access-headline {
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 var(--space-md);
  color: var(--text-primary);
}

.access-headline-accent {
  background: linear-gradient(120deg, var(--access-sky) 0%, var(--access-mid) 55%, #3374ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .access-headline-accent {
  background: linear-gradient(120deg, #0066ff 0%, #0046d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.access-sub {
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.65;
  margin: 0 0 var(--space-xl);
}

.access-actions {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.access-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.access-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.access-btn-primary {
  background: #fff;
  color: #070809;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .access-btn-primary {
  background: #070809;
  color: #fff;
  border-color: #070809;
}

.access-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0, 82, 255, 0.22);
}

.access-btn-secondary {
  background: light-dark(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.06));
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.access-btn-secondary:hover {
  border-color: rgba(0, 82, 255, 0.35);
  background: rgba(0, 82, 255, 0.08);
}

.access-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xs) 0;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-divider::before,
.access-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.access-feature-list {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.access-feature-list li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: light-dark(rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0.03));
}

.access-legal {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0;
}

.access-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.access-legal a:hover {
  color: var(--accent-blue);
}

/* Showcase — right on desktop, top on mobile */
.access-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--space-lg), 3vw, var(--space-2xl));
  background:
    radial-gradient(ellipse 120% 80% at 80% 20%, rgba(26, 86, 255, 0.22), transparent 55%),
    linear-gradient(160deg, var(--access-panel) 0%, #0a1a42 42%, #0c2460 100%);
}

html[data-theme="light"] .access-showcase {
  background:
    radial-gradient(ellipse 100% 70% at 70% 10%, rgba(94, 203, 255, 0.35), transparent 50%),
    linear-gradient(160deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

.access-showcase-card {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1 / 1;
  max-height: min(92vh, 640px);
  border-radius: clamp(24px, 3.5vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 100px rgba(0, 20, 80, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

html[data-theme="light"] .access-showcase-card {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 32px 80px rgba(0, 82, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.access-showcase-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(184, 236, 255, 0.45), transparent 38%),
    radial-gradient(circle at 78% 72%, rgba(0, 82, 255, 0.35), transparent 42%),
    linear-gradient(145deg, var(--access-deep) 0%, var(--access-mid) 38%, #2d8cff 68%, var(--access-ice) 100%);
}

html[data-theme="light"] .access-showcase-mesh {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.65), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 82, 255, 0.2), transparent 45%),
    linear-gradient(145deg, #60a5fa 0%, #3b82f6 35%, #2563eb 62%, #93c5fd 100%);
}

.access-showcase-shimmer {
  position: absolute;
  inset: -40%;
  z-index: 0;
  background: conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.07) 55deg, transparent 110deg);
  animation: access-shimmer 14s linear infinite;
  pointer-events: none;
}

@keyframes access-shimmer {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .access-showcase-shimmer {
    animation: none;
    opacity: 0.35;
  }
}

.access-showcase-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(6, 18, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.access-showcase-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
  color: #fff;
  min-height: 0;
}

html[data-theme="light"] .access-showcase-content {
  color: #0a1628;
}

.access-showcase-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.access-showcase-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.access-showcase-avatars {
  display: flex;
}

.access-showcase-avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #3374ff, #0052ff);
  margin-left: -8px;
}

.access-showcase-avatars span:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.access-showcase-avatars--right span:first-child {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.access-showcase-avatars--right span:last-child {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.access-showcase-desc {
  text-align: center;
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  line-height: 1.6;
  margin: 0 auto var(--space-md);
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .access-showcase-desc {
  color: rgba(255, 255, 255, 0.92);
}

.access-showcase-visual {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(150px, 32%, 240px);
  width: 100%;
  padding: var(--space-xs) 0;
}

.access-showcase-frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 520 / 320;
  min-height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(4, 8, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 56px rgba(0, 10, 40, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px);
  flex-shrink: 0;
}

.access-showcase-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.access-showcase-url {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}

.access-showcase-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.access-showcase-chrome span:first-child {
  background: #ff5f57;
}

.access-showcase-chrome span:nth-child(2) {
  background: #febc2e;
}

.access-showcase-chrome span:nth-child(3) {
  background: #28c840;
}

.access-showcase-frame img,
.access-showcase-frame object {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07090f;
}

.access-showcase-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(6, 18, 40, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  line-height: 1;
  cursor: default;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.access-showcase-dots {
  display: flex;
  gap: 6px;
}

.access-showcase-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.access-showcase-dots span.active {
  width: 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.access-showcase-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

body:not(.wallet-active) .access-app-header {
  border-bottom-color: transparent;
  background: light-dark(rgba(255, 255, 255, 0.5), rgba(7, 8, 9, 0.55));
}

.hidden {
  display: none !important;
}

/* Wallet app — dashboard shell */
body.wallet-active {
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
}

html:has(body.wallet-active) {
  height: 100dvh;
  overflow: hidden;
}

body.wallet-active .access-main {
  flex: 1;
  min-height: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.wallet-active .access-app-header {
  display: none;
}

body.wallet-active .access-section.wallet-open {
  padding: 0;
  min-height: 0;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

body.wallet-active .access-section.wallet-open .wallet-app {
  min-height: 0;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

.wallet-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wallet-sidebar-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.wallet-app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg-primary);
  overflow: hidden;
}

.wallet-sidebar {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--border-color);
  background-color: light-dark(#f8f8fa, #070809);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 100;
  -webkit-overflow-scrolling: touch;
}

.wallet-sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-sm) var(--space-lg);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-sidebar-welcome {
  padding: 0 var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.wallet-welcome-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 4px;
}

.wallet-welcome-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.wallet-address {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin: 0;
  word-break: break-all;
}

.wallet-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
  padding: 0 var(--space-xs);
}

.wallet-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-nav-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0 var(--space-sm);
  margin-bottom: 4px;
}

.wallet-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 11px var(--space-sm);
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  min-height: 44px;
  position: relative;
}

.wallet-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.65;
}

.wallet-nav-item:hover {
  background: rgba(0, 82, 255, 0.06);
  color: var(--text-primary);
}

.wallet-nav-item.active {
  background: rgba(0, 82, 255, 0.1);
  color: var(--accent-blue);
  box-shadow: inset 3px 0 0 var(--accent-blue);
}

html[data-theme="light"] .wallet-nav-item.active {
  background: rgba(0, 82, 255, 0.08);
}

.wallet-nav-item.active svg {
  opacity: 1;
}

.wallet-signout {
  margin-top: auto;
  padding: 10px var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s;
}

.wallet-signout:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Dashboard main column */
.wallet-dashboard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(0, 82, 255, 0.06), transparent 55%),
    var(--bg-primary);
}

.wallet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--wallet-topbar-h);
  padding: 0 clamp(var(--space-md), 3vw, var(--space-xl));
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background: light-dark(rgba(255, 255, 255, 0.88), rgba(7, 8, 9, 0.92));
  backdrop-filter: blur(12px);
}

.wallet-topbar-brand {
  display: none;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.wallet-topbar-brand img {
  width: 1.75rem;
  height: 1.75rem;
}

.wallet-topbar-title {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.wallet-topbar-title strong {
  color: var(--text-primary);
  font-weight: 600;
}

.wallet-topbar-theme {
  display: none;
}

.wallet-topbar-left,
.wallet-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.wallet-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.wallet-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.wallet-breadcrumb-sep {
  opacity: 0.4;
}

#wallet-breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

.wallet-search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: light-dark(rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.04));
  min-width: min(280px, 40vw);
}

.wallet-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.wallet-search input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8125rem;
  width: 100%;
  min-width: 0;
  outline: none;
}

.wallet-search input::placeholder {
  color: var(--text-tertiary);
}

.wallet-mobile-addr {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.wallet-signout-mobile {
  display: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  padding: 6px 12px;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
}

.wallet-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: light-dark(rgba(0, 82, 255, 0.03), rgba(0, 82, 255, 0.04));
  flex-shrink: 0;
}

.wallet-ticker-track {
  display: flex;
  gap: var(--space-xl);
  padding: 10px clamp(var(--space-md), 3vw, var(--space-xl));
  animation: wallet-ticker-scroll 28s linear infinite;
  width: max-content;
}

@keyframes wallet-ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

.wallet-ticker-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.wallet-ticker-item strong {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0 6px;
}

.wallet-ticker-item em {
  font-style: normal;
  font-weight: 600;
}

.wallet-ticker-item.up em {
  color: #22c55e;
}

.wallet-ticker-item.down em {
  color: #ef4444;
}

.wallet-main {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(var(--space-md), 3vw, var(--space-xl));
  padding-bottom: calc(clamp(var(--space-md), 3vw, var(--space-xl)) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* Send panel — wallet home style */
.send-wallet {
  max-width: 480px;
  margin: 0 auto;
}

.send-balance-hero {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-xl);
}

.send-balance-total {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.send-balance-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.send-change-value {
  font-size: 0.875rem;
  font-weight: 500;
}

.send-change-value.down,
.send-change-pill.down {
  color: #ef4444;
}

.send-change-value.up,
.send-change-pill.up {
  color: #22c55e;
}

.send-change-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.06));
}

.send-change-pill.down {
  background: rgba(239, 68, 68, 0.12);
}

.send-change-pill.up {
  background: rgba(34, 197, 94, 0.12);
}

.send-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 220px;
  margin: 0 auto var(--space-xl);
}

.send-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--space-md) var(--space-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: light-dark(rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.04));
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 88px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.send-action-btn:hover {
  border-color: rgba(0, 82, 255, 0.25);
  background: rgba(0, 82, 255, 0.06);
  color: var(--text-primary);
}

.send-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 82, 255, 0.1);
  color: var(--accent-blue);
}

.send-action-icon svg {
  width: 22px;
  height: 22px;
}

.send-section-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.send-section-tab {
  border: none;
  background: transparent;
  padding: 0 0 12px;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: default;
  border-bottom: 2px solid transparent;
}

.send-section-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-blue);
}

.send-assets-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.send-asset-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: light-dark(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.03));
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  min-height: 72px;
}

.send-asset-row:hover {
  border-color: rgba(0, 82, 255, 0.18);
  background: rgba(0, 82, 255, 0.04);
}

.send-asset-row.active {
  border-color: rgba(0, 82, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 82, 255, 0.12);
}

.send-asset-row.hidden-by-search {
  display: none;
}

.send-asset-info {
  min-width: 0;
}

.send-asset-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.send-asset-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 3px;
}

.send-asset-balances {
  text-align: right;
}

.send-asset-fiat {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.send-asset-change {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 3px;
  white-space: nowrap;
}

.send-asset-change.up {
  color: #22c55e;
}

.send-asset-change.down {
  color: #ef4444;
}

.send-asset-change.neutral {
  color: var(--text-tertiary);
}

/* Send / receive sub-views */
.send-compose-view,
.send-receive-view {
  max-width: 480px;
  margin: 0 auto;
}

.send-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--space-lg);
  min-height: 44px;
}

.send-back-btn:hover {
  color: var(--text-primary);
}

.send-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.send-compose-head h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
}

.send-compose-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.send-selected-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.send-selected-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.send-selected-available {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.send-selected-fiat {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.send-receive-card {
  padding: var(--space-xl);
  text-align: center;
}

.send-receive-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.send-receive-address {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-all;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.send-copy-address {
  width: 100%;
}

.send-amount-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.send-max-btn {
  border: none;
  background: rgba(0, 82, 255, 0.1);
  color: var(--accent-blue);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 28px;
}

.send-max-btn:hover {
  background: rgba(0, 82, 255, 0.16);
}

.send-amount-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  min-height: 48px;
}

.send-amount-wrap:focus-within {
  border-color: rgba(0, 82, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.send-amount-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  outline: none;
}

.send-amount-symbol {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.send-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding: var(--space-xs) 0;
}

.wallet-crypto-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.wallet-crypto-icon--eth {
  background: linear-gradient(135deg, #627eea, #3c4fe0);
}

.wallet-crypto-icon--btc {
  background: linear-gradient(135deg, #f7931a, #e2760a);
}

.wallet-crypto-icon--shld {
  background: linear-gradient(135deg, #0052ff, #3374ff);
}

.wallet-crypto-icon--usdc {
  background: linear-gradient(135deg, #2775ca, #1a5fb4);
}

.wallet-mobile-bar {
  display: none;
}

.wallet-panel {
  display: none;
  animation: wallet-fade 0.35s ease;
}

.wallet-panel.active {
  display: block;
  min-height: min-content;
}

#panel-network.active {
  padding-bottom: var(--space-md);
}

/* Network explorer — Etherscan-style dark panel with white type */
#panel-network {
  --explorer-bg: #0a0b0d;
  --explorer-surface: #111318;
  --explorer-border: rgba(255, 255, 255, 0.08);
  --explorer-fg: #ffffff;
  --explorer-muted: rgba(255, 255, 255, 0.52);
  --explorer-link: #7eb6ff;
  --explorer-link-hover: #a8cdff;
  --explorer-row-hover: rgba(255, 255, 255, 0.045);
}

#panel-network .wallet-panel-head h3 {
  color: var(--explorer-fg);
  font-weight: 700;
  letter-spacing: -0.025em;
}

#panel-network .wallet-panel-head p {
  color: var(--explorer-muted);
}

#panel-network .explorer-chain-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: var(--space-md);
  background: var(--explorer-border);
  border: 1px solid var(--explorer-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#panel-network .explorer-chain-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-md) var(--space-lg);
  background: var(--explorer-surface);
}

#panel-network .explorer-chain-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--explorer-muted);
}

#panel-network .explorer-chain-stat-value {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--explorer-fg);
  line-height: 1.2;
}

#panel-network .explorer-stats {
  background: var(--explorer-surface);
  border: 1px solid var(--explorer-border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#panel-network .explorer-stat-value--shielded {
  color: #7eb6ff;
}

#panel-network .explorer-panels {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

#panel-network .explorer-panel {
  min-width: 0;
}

#panel-network .explorer-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding: 0 var(--space-xs);
}

#panel-network .explorer-panel-head h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--explorer-fg);
  letter-spacing: -0.01em;
}

#panel-network .explorer-panel-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--explorer-muted);
}

#panel-network .explorer-blocks-table {
  min-width: 0;
}

#panel-network .explorer-block-row:hover {
  background: var(--explorer-row-hover);
}

#panel-network .explorer-block-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--explorer-link);
  font-size: 0.875rem;
}

#panel-network .explorer-blocks-footer {
  margin-top: var(--space-sm);
  border-top: none;
  padding-top: 0;
  font-size: 0.75rem;
}

#panel-network .explorer-stat-label {
  color: var(--explorer-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

#panel-network .explorer-stat-value {
  color: var(--explorer-fg);
  font-size: 1.375rem;
  font-weight: 700;
}

#panel-network .explorer-table-wrap {
  background: var(--explorer-bg);
  border: 1px solid var(--explorer-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#panel-network .explorer-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--explorer-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  border-bottom-color: var(--explorer-border);
}

#panel-network .explorer-table td {
  color: var(--explorer-fg);
  border-bottom-color: var(--explorer-border);
  font-size: 0.8125rem;
}

#panel-network .explorer-tx-row:hover,
#panel-network .explorer-tx-row:focus-visible {
  background: var(--explorer-row-hover);
}

#panel-network .explorer-row-shielded {
  background: rgba(0, 82, 255, 0.06);
}

#panel-network .explorer-row-credit {
  background: rgba(52, 211, 153, 0.06);
}

#panel-network .explorer-tx-link,
#panel-network .explorer-block-link {
  color: var(--explorer-link);
  font-weight: 500;
}

#panel-network .explorer-tx-link:hover,
#panel-network .explorer-block-link:hover {
  color: var(--explorer-link-hover);
}

#panel-network .explorer-age {
  color: var(--explorer-muted);
  font-size: 0.8125rem;
}

#panel-network .explorer-addr {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
}

#panel-network .explorer-arrow {
  color: var(--explorer-muted);
}

#panel-network .explorer-value {
  color: var(--explorer-fg);
  font-weight: 600;
}

#panel-network .explorer-empty {
  color: var(--explorer-muted);
}

#panel-network .explorer-list-footer {
  margin: var(--space-md) 0 0;
  padding: var(--space-sm) var(--space-xs);
  font-size: 0.8125rem;
  color: var(--explorer-muted);
  border-top: 1px solid var(--explorer-border);
}

#panel-network .explorer-list-footer strong {
  color: var(--explorer-fg);
  font-weight: 600;
}

@keyframes wallet-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wallet-panel-head h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.wallet-panel-head p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0 0 var(--space-lg);
}

/* Node UI */
.node-create-hero {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.node-create-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.18), rgba(94, 203, 255, 0.1));
  border: 1px solid rgba(0, 82, 255, 0.22);
  color: var(--accent-blue);
}

.node-create-hero-icon svg {
  width: 26px;
  height: 26px;
}

.node-create-hero-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-create-hero-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.node-benefits {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.node-benefits li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.node-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

.node-create-form {
  max-width: 480px;
}

.node-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 360px;
  margin: 0 auto;
}

.node-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  background: rgba(0, 82, 255, 0.06);
  border: 1px dashed var(--border-color);
}

.node-empty h4 {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
  font-weight: 700;
}

.node-empty p {
  margin: 0 0 var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.node-dashboard {
  max-width: 560px;
  display: grid;
  gap: var(--space-md);
}

.node-status-card {
  padding: var(--space-lg);
}

.node-status-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.node-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  flex-shrink: 0;
  animation: node-pulse 2s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.node-status-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.node-status-value {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #34d399;
}

.node-type-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 82, 255, 0.12);
  color: var(--accent-blue);
}

.node-type-badge--light {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
}

.node-name-display {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.node-id-display {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  word-break: break-all;
}

.node-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.node-stat-card {
  padding: var(--space-md);
  text-align: center;
}

.node-stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.node-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-meta-card {
  padding: var(--space-md) var(--space-lg);
}

.node-meta-dl {
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.node-meta-dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.node-meta-dl div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.node-meta-dl dt {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0;
}

.node-meta-dl dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  text-align: right;
}

.node-remove-btn {
  width: 100%;
  max-width: 560px;
}

#panel-create-node,
#panel-my-node {
  max-width: 640px;
}

/* Coming soon panels */
.panel-soon-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 82, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 82, 255, 0.14) 0%, rgba(94, 203, 255, 0.06) 100%),
    light-dark(rgba(255, 255, 255, 0.04), rgba(7, 8, 9, 0.6));
  box-shadow: 0 8px 32px rgba(0, 82, 255, 0.1);
}

.panel-soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0052ff 0%, #3374ff 100%);
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.35);
  flex-shrink: 0;
}

.panel-soon-banner p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  flex: 1;
  min-width: min(100%, 200px);
}

.panel-soon-content {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.15);
}

.wallet-balance-card {
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.wallet-balance-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.wallet-balance-value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wallet-balance-fiat {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.wallet-form {
  display: grid;
  gap: var(--space-md);
}

.wallet-field {
  display: grid;
  gap: 6px;
}

.wallet-field span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.wallet-field input,
.wallet-field select,
.wallet-field textarea {
  width: 100%;
  padding: 12px var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wallet-field textarea {
  resize: vertical;
  min-height: 88px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.wallet-field input:focus,
.wallet-field select:focus,
.wallet-field textarea:focus {
  outline: none;
  border-color: rgba(0, 82, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.wallet-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: var(--space-sm);
}

.wallet-toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.wallet-toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
}

.wallet-submit {
  width: 100%;
  margin-top: var(--space-xs);
  background: linear-gradient(135deg, #0052FF 0%, #3374FF 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.3);
}

.wallet-submit:hover {
  box-shadow: 0 12px 32px rgba(0, 82, 255, 0.4);
}

.wallet-hint {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0;
}

.wallet-shield-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.wallet-stat-card {
  padding: var(--space-md);
  text-align: center;
}

.wallet-stat-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.wallet-stat-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.wallet-segment {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.wallet-segment-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}

.wallet-segment-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.wallet-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.wallet-history-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}

.wallet-history-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.wallet-history-icon.sent {
  background: rgba(255, 100, 100, 0.1);
  color: #ff6b6b;
}

.wallet-history-icon.received {
  background: rgba(0, 82, 255, 0.1);
  color: var(--accent-blue);
}

.wallet-history-icon.shield {
  background: rgba(0, 82, 255, 0.08);
  color: var(--accent-blue);
}

.wallet-history-icon.credit {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.wallet-history-item--credit {
  border-color: rgba(52, 211, 153, 0.18);
}

.wallet-history-body {
  flex: 1;
  min-width: 0;
}

.wallet-history-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0 0 2px;
}

.wallet-history-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}

.wallet-history-amount {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.wallet-history-amount.positive {
  color: var(--accent-blue);
}

.wallet-history-empty {
  padding: var(--space-xl);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.field-optional,
.toggle-hint {
  font-style: normal;
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.send-shield-toggle {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(0, 82, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}

.send-shield-toggle:has(input:checked) {
  border-color: rgba(0, 82, 255, 0.35);
  background: rgba(0, 82, 255, 0.08);
}

.explorer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.explorer-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explorer-stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.explorer-stat-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.explorer-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.explorer-table-wrap--scroll {
  overflow-x: auto;
}

.explorer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 720px;
}

.explorer-table th,
.explorer-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.explorer-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  background: rgba(0, 82, 255, 0.03);
  white-space: nowrap;
}

.explorer-table tbody tr:last-child td {
  border-bottom: none;
}

.explorer-table tbody tr:hover {
  background: rgba(0, 82, 255, 0.04);
}

.explorer-row-shielded {
  background: rgba(0, 82, 255, 0.02);
}

.explorer-row-credit {
  background: rgba(52, 211, 153, 0.04);
}

.explorer-credit-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
}

.explorer-public-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
}

.explorer-table--compact {
  min-width: 640px;
}

.explorer-tx-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.explorer-tx-row:hover,
.explorer-tx-row:focus-visible {
  background: rgba(0, 82, 255, 0.06);
  outline: none;
}

.explorer-tx-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
}

.explorer-tx-link:hover {
  text-decoration: underline;
}

.explorer-block-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
}

.explorer-block-link:hover {
  text-decoration: underline;
}

.explorer-age {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.explorer-addr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.explorer-arrow {
  width: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.explorer-arrow-col {
  width: 24px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.explorer-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Transaction detail page */
.tx-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) calc(var(--space-xl) + env(safe-area-inset-bottom));
}

.tx-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.tx-breadcrumb a {
  color: var(--accent-blue);
  text-decoration: none;
}

.tx-breadcrumb a:hover {
  text-decoration: underline;
}

.tx-loading,
.tx-error {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.tx-loading.hidden,
.tx-error.hidden,
.tx-detail.hidden {
  display: none !important;
}

.tx-loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: tx-spin 0.8s linear infinite;
  margin-bottom: var(--space-md);
}

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

.tx-error h1 {
  font-size: 1.25rem;
  margin: 0 0 var(--space-sm);
}

.tx-error p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-lg);
}

.tx-detail-head {
  margin-bottom: var(--space-lg);
  position: relative;
}

.tx-detail-eyebrow {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.tx-detail-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  letter-spacing: -0.02em;
}

.tx-status-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tx-card {
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-lg);
}

.tx-card-title {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.tx-dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.tx-dl-row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
}

.tx-dl-row:last-child {
  border-bottom: none;
}

.tx-dl-row dt {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0;
}

.tx-dl-row dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-primary);
  word-break: break-word;
}

.tx-dl-row-arrow {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
  border-bottom: none;
}

.tx-flow-arrow {
  color: var(--text-tertiary);
  font-size: 1rem;
  line-height: 1;
}

.tx-hash-full {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-all;
  margin-bottom: var(--space-xs);
}

.tx-copy-btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--accent-blue);
  cursor: pointer;
}

.tx-copy-btn:hover {
  border-color: rgba(0, 82, 255, 0.3);
}

.tx-address {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-all;
}

.tx-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
}

.tx-age {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .tx-dl-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tx-status-badge {
    position: static;
    display: inline-block;
    margin-top: var(--space-sm);
  }

  .tx-detail-head {
    position: static;
  }
}

.explorer-block {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-blue);
}

.explorer-hash,
.explorer-table code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.explorer-hash-full {
  font-size: 0.6875rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.explorer-shield-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 82, 255, 0.12);
  color: var(--accent-blue);
}

.explorer-empty {
  text-align: center;
  padding: var(--space-xl) !important;
  color: var(--text-tertiary);
}

.db-setup-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: var(--space-md) var(--space-lg) calc(var(--space-md) + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

.db-setup-banner.hidden,
.db-setup-banner[hidden] {
  display: none !important;
}

.db-setup-banner a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.db-setup-banner a:hover {
  opacity: 0.9;
}

.db-setup-banner code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.send-assets-list li.hidden-by-search {
  display: none;
}

.wallet-network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.wallet-network-card {
  padding: var(--space-md);
  text-align: left;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 72px;
}

.wallet-network-card:hover {
  border-color: rgba(0, 82, 255, 0.25);
}

.wallet-network-card.active {
  border-color: rgba(0, 82, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 82, 255, 0.1);
}

.wallet-network-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.wallet-network-status {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.wallet-stake-hero {
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.wallet-stake-apy {
  display: block;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: -0.03em;
}

.wallet-stake-staked {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Bottom sheet */
.wallet-sheet[hidden] {
  display: none !important;
}

.wallet-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.wallet-sheet.open {
  pointer-events: auto;
}

.wallet-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}

.wallet-sheet.open .wallet-sheet-backdrop {
  opacity: 1;
}

.wallet-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-lg) var(--space-lg) calc(var(--space-xl) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
}

.wallet-sheet.open .wallet-sheet-panel {
  transform: translateY(0);
}

.wallet-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-hover);
  margin: 0 auto var(--space-md);
}

.wallet-sheet-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-sheet-flow h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  padding-right: 40px;
}

.wallet-sheet-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0 0 var(--space-lg);
  line-height: 1.6;
}

.wallet-seed-warning {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.wallet-seed-warning strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.wallet-seed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.wallet-seed-word {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
}

.wallet-seed-word span {
  color: var(--text-tertiary);
  margin-right: 4px;
}

.wallet-copy-seed {
  width: 100%;
  margin-bottom: var(--space-md);
}

.wallet-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  cursor: pointer;
}

.wallet-checkbox input {
  margin-top: 3px;
  accent-color: var(--accent-blue);
}

.wallet-continue-btn,
.wallet-generate-btn {
  width: 100%;
}

.wallet-continue-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wallet-auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.wallet-auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}

.wallet-auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.wallet-auth-pane {
  display: none;
  margin-bottom: var(--space-lg);
}

.wallet-auth-pane.active {
  display: block;
}

body.wallet-sheet-open {
  overflow: hidden;
}

/* Welcome dialog — test balances on signup */
.welcome-dialog[hidden] {
  display: none !important;
}

.welcome-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  pointer-events: none;
}

.welcome-dialog.open {
  pointer-events: auto;
}

.welcome-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.welcome-dialog.open .welcome-dialog-backdrop {
  opacity: 1;
}

.welcome-dialog-panel {
  position: relative;
  width: min(100%, 440px);
  max-height: min(92dvh, 680px);
  overflow-y: auto;
  padding: var(--space-xl) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom));
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 82, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(94, 203, 255, 0.08), transparent 50%),
    var(--bg-card);
  border: 1px solid rgba(94, 203, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(0, 82, 255, 0.12);
  text-align: center;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
  -webkit-overflow-scrolling: touch;
}

.welcome-dialog.open .welcome-dialog-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  animation: welcome-float 6s ease-in-out infinite;
}

@keyframes welcome-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1); }
}

.welcome-dialog-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.55), rgba(94, 203, 255, 0.25), rgba(0, 82, 255, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.welcome-dialog-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.22), rgba(94, 203, 255, 0.12));
  border: 1px solid rgba(94, 203, 255, 0.28);
  color: var(--accent-blue);
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.2);
}

.welcome-dialog-badge-icon {
  width: 28px;
  height: 28px;
}

.welcome-dialog-eyebrow {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.welcome-dialog-title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.375rem, 4vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.welcome-dialog-desc {
  margin: 0 0 var(--space-lg);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.welcome-dialog-assets {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  gap: var(--space-xs);
  text-align: left;
}

.welcome-dialog-asset {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(0, 82, 255, 0.03);
  opacity: 0;
  transform: translateY(10px);
  animation: welcome-asset-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.12s + var(--i) * 0.07s);
}

.welcome-dialog.open .welcome-dialog-asset {
  animation-play-state: running;
}

@keyframes welcome-asset-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-dialog-asset-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.welcome-dialog-asset-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.welcome-dialog-asset-symbol {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.welcome-dialog-asset-amounts {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.welcome-dialog-asset-amount {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.welcome-dialog-asset-fiat {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

.welcome-dialog-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
}

.welcome-dialog-total-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.welcome-dialog-total-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.welcome-dialog-note {
  margin: 0 0 var(--space-lg);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.welcome-dialog-cta {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #0052FF 0%, #3374FF 100%);
  color: #fff;
  border: none;
  box-shadow: 0 12px 32px rgba(0, 82, 255, 0.35);
}

.welcome-dialog-cta:hover {
  box-shadow: 0 16px 40px rgba(0, 82, 255, 0.45);
}

body.welcome-dialog-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .welcome-dialog {
    padding: var(--space-sm);
    align-items: flex-end;
  }

  .welcome-dialog-panel {
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: min(94dvh, 720px);
    padding-top: var(--space-lg);
  }

  .welcome-dialog.open .welcome-dialog-panel {
    animation: none;
    transform: translateY(0) scale(1);
  }
}

body.wallet-active .access-back-link {
  display: none;
}

/* Mobile bottom nav */
/* Mobile — illustration top, auth buttons bottom */
@media (max-width: 768px) {
  .access-app-header-inner {
    padding: 0 var(--space-md);
    min-height: var(--wallet-topbar-h);
  }

  .access-header-brand {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }

  .access-header-brand img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .access-back-link {
    display: none;
  }

  .access-landing,
  .access-landing-split {
    min-height: calc(100dvh - 56px);
  }

  .access-landing-split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .access-showcase {
    order: -1;
    padding: var(--space-md) var(--space-md) var(--space-sm);
    align-items: flex-start;
  }

  .access-showcase-card {
    width: 100%;
    aspect-ratio: auto;
    min-height: min(56dvh, 440px);
    max-height: none;
  }

  .access-showcase-visual {
    min-height: clamp(160px, 38vw, 220px);
  }

  .access-showcase-content {
    padding: var(--space-md);
  }

  .access-showcase-desc {
    display: none;
  }

  .access-showcase-nav {
    display: none;
  }

  .access-showcase-head {
    margin-bottom: var(--space-xs);
  }

  .access-showcase-title {
    font-size: 0.9375rem;
  }

  .access-showcase-avatars span {
    width: 22px;
    height: 22px;
  }

  .access-auth-panel {
    order: 2;
    align-items: flex-end;
    padding: var(--space-md) var(--space-md) calc(var(--space-lg) + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(94, 203, 255, 0.08);
    background:
      radial-gradient(ellipse 100% 80% at 50% 100%, rgba(26, 86, 255, 0.1), transparent 70%),
      var(--bg-primary);
  }

  .access-auth-inner {
    width: 100%;
    max-width: none;
  }

  .access-eyebrow,
  .access-headline,
  .access-sub {
    display: none;
  }

  .access-feature-list {
    margin-bottom: var(--space-md);
  }

  .access-legal {
    font-size: 0.6875rem;
  }

  .access-section.wallet-open {
    padding: 0;
  }

  .wallet-sidebar-backdrop {
    display: block;
  }

  .wallet-app-shell {
    grid-template-columns: 1fr;
    height: 100dvh;
    max-height: 100dvh;
  }

  .wallet-dashboard {
    height: 100dvh;
    max-height: 100dvh;
  }

  .wallet-sidebar {
    position: fixed;
    top: var(--wallet-topbar-h);
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    height: calc(100dvh - var(--wallet-topbar-h));
    max-height: calc(100dvh - var(--wallet-topbar-h));
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 24px 0 64px rgba(0, 0, 0, 0.35);
    background-color: light-dark(#f8f8fa, #070809);
    z-index: 120;
  }

  .wallet-sidebar.open {
    transform: translateX(0);
  }

  .wallet-menu-toggle {
    display: inline-flex;
  }

  .wallet-topbar-brand,
  .wallet-topbar-title,
  .wallet-topbar-theme {
    display: inline-flex;
  }

  .wallet-breadcrumb {
    display: none;
  }

  .wallet-search {
    display: none;
  }

  .wallet-mobile-addr {
    display: none;
  }

  .wallet-signout-mobile {
    display: inline-flex;
    align-items: center;
  }

  .wallet-signout {
    display: none;
  }

  .send-wallet,
  .send-compose-view,
  .send-receive-view {
    max-width: none;
  }

  .wallet-topbar {
    padding: 0 var(--space-md);
  }

  .wallet-main {
    padding: var(--space-md);
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .wallet-panel-head h3 {
    font-size: 1.125rem;
  }

  .wallet-panel-head p {
    font-size: 0.8125rem;
    margin-bottom: var(--space-md);
  }

  #panel-network .explorer-chain-stats {
    grid-template-columns: 1fr;
  }

  #panel-network .explorer-chain-stat {
    padding: var(--space-sm) var(--space-md);
  }

  #panel-network .explorer-chain-stat-value {
    font-size: 0.9375rem;
  }

  #panel-network .explorer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }

  #panel-network .explorer-panels {
    grid-template-columns: 1fr;
  }

  .wallet-sidebar-backdrop {
    top: var(--wallet-topbar-h);
  }

  #panel-network .explorer-stat-value {
    font-size: 1.0625rem;
  }

  #panel-network .explorer-stat-label {
    font-size: 0.5625rem;
  }

  #panel-network .explorer-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  #panel-network .explorer-table--compact {
    min-width: 0;
  }

  .wallet-breadcrumb {
    font-size: 0.75rem;
  }

  .wallet-field-row {
    grid-template-columns: 1fr;
  }

  .wallet-shield-stats {
    grid-template-columns: 1fr;
  }

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

  .explorer-table {
    min-width: 0;
  }

  .explorer-table thead {
    display: none;
  }

  #panel-network .explorer-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs) var(--space-sm);
    padding: var(--space-md);
    border: 1px solid var(--explorer-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    background: var(--explorer-surface);
  }

  #panel-network .explorer-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #panel-network .explorer-table tbody tr:hover,
  #panel-network .explorer-table tbody tr:focus-visible {
    background: var(--explorer-row-hover);
  }

  #panel-network .explorer-table td::before {
    color: var(--explorer-muted);
  }

  #panel-network .explorer-blocks-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs) var(--space-sm);
    padding: var(--space-md);
    border: 1px solid var(--explorer-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    background: var(--explorer-surface);
  }

  #panel-network .explorer-blocks-table tbody {
    display: flex;
    flex-direction: column;
  }

  #panel-network .explorer-blocks-table thead {
    display: none;
  }

  #panel-network .explorer-blocks-table td[data-label="Block"] {
    grid-column: 1 / -1;
  }

  .explorer-table td {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .explorer-table td::before {
    content: attr(data-label);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
  }

  .explorer-table td[data-label="Txn Hash"] {
    grid-column: 1 / -1;
  }

  .explorer-table td.explorer-arrow {
    display: none;
  }

  .explorer-table td[data-label="Value"] {
    grid-column: 1 / -1;
  }

  .explorer-hash-full {
    font-size: 0.625rem;
  }

  .explorer-table td[data-label="Memo"] {
    grid-column: 1 / -1;
  }

  .wallet-sheet-panel {
    max-height: min(92dvh, 720px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .send-quick-actions {
    max-width: none;
  }

  #panel-network .explorer-stats {
    grid-template-columns: 1fr;
  }

  .wallet-topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .wallet-mobile-addr {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 769px) {
  .wallet-sheet-panel {
    max-width: 520px;
  }
}
