@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Sora:wght@500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --color-bg: #060d1a;
  --color-surface: #0f1b2d;
  --color-card: #131b2a;
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-accent: #6b3fa0;
  --color-accent-hover: #7b4fb0;
  --color-private: #9b59b6;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.55);
  --color-text-muted: rgba(255, 255, 255, 0.3);
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --radius-card: 16px;
  --radius-input: 12px;
  --radius-btn: 10px;
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;

  --bg: var(--color-bg);
  --bg-2: var(--color-surface);
  --panel: rgba(15, 27, 45, 0.92);
  --card: rgba(19, 27, 42, 0.94);
  --card-hover: rgba(19, 27, 42, 0.98);
  --border: var(--color-card-border);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #f4f6ff;
  --text-soft: #c8d0f0;
  --muted: #8b92a8;
  --primary: var(--color-accent);
  --primary-2: #22d3ee;
  --primary-glow: rgba(107, 63, 160, 0.45);
  --secondary: #22d3ee;
  --secondary-glow: rgba(34, 211, 238, 0.22);
  --success: var(--color-success);
  --warning: var(--color-warning);
  --danger: var(--color-error);
  --error: var(--color-error);
  --radius: var(--radius-card);
  --radius-sm: var(--radius-input);
  --radius-btn: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 32px rgba(107, 63, 160, 0.18);
  --cta-gradient: linear-gradient(135deg, var(--color-accent) 0%, #22d3ee 100%);
  --max-width: 1200px;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Design system: surfaces */
  --surface-1: rgba(15, 27, 45, 0.92);
  --surface-2: rgba(19, 27, 42, 0.94);
  --surface-3: rgba(25, 35, 54, 0.96);
  --surface-glass: rgba(255, 255, 255, 0.04);

  /* Strokes */
  --stroke-soft: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);

  /* Interactive */
  --state-hover: rgba(255, 255, 255, 0.04);
  --state-active: rgba(255, 255, 255, 0.08);
  --state-focus-ring: 0 0 0 2px rgba(107, 63, 160, 0.55);

  /* Semantic badges */
  --badge-available-bg: rgba(34, 197, 94, 0.14);
  --badge-available-fg: #4ade80;
  --badge-limited-bg: rgba(245, 158, 11, 0.16);
  --badge-limited-fg: #fbbf24;
  --badge-coming-bg: rgba(255, 255, 255, 0.06);
  --badge-coming-fg: rgba(255, 255, 255, 0.55);

  /* Chain accents (chain pills + icons) */
  --chain-cardano: #0033ad;
  --chain-ethereum: #627eea;
  --chain-solana: #9945ff;
  --chain-bnb: #f3ba2f;
  --chain-midnight: #6b3fa0;

  /* Type ramp */
  --font-label-xs: 600 11px/1.2 'Inter', sans-serif;
  --font-body-sm: 500 13px/1.4 'Inter', sans-serif;
  --font-body: 500 14px/1.5 'Inter', sans-serif;
  --font-title-sm: 700 16px/1.3 'Inter', sans-serif;
  --font-title: 800 20px/1.25 'Inter', sans-serif;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* Motion */
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 280ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Dim (shielded / limited) */
  --dim-opacity: 0.55;
  --dim-filter: grayscale(0.7);
}

.glass-panel {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.glass-panel--glow {
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 80px -20px var(--primary-glow);
}

@media (prefers-reduced-motion: reduce) {
  .glass-panel {
    transition: border-color 80ms ease, opacity 80ms ease;
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-glow), transparent 55%);
  opacity: 0.35;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-2);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* —— App shell: full-width main + overlay sidebar (hamburger) —— */

.app-shell-grid {
  display: block;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.app-shell-nav-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.app-shell-nav-toggle:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
}

.app-shell-nav-toggle:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.75);
  outline-offset: 2px;
}

.app-shell-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

.content--swap-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(80vh, calc(100dvh - 140px));
}

.swap-page-container--swap-centered {
  margin-top: auto;
  margin-bottom: auto;
}

.sidebar__brand-text--ura {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #c4b5fd;
}

.sidebar__brand-text--ura.sidebar__brand-text--overlay {
  font-size: 0.95rem;
}

.app-shell-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding-top: 56px;
}

.app-shell-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-3);
  background: var(--surface-1);
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
}

.sidebar--overlay {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 240px;
  z-index: 95;
  transform: translateX(-100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

@media (prefers-reduced-motion: reduce) {
  .sidebar--overlay {
    transition: none;
  }
}

@media (max-width: 767px) {
  .sidebar--overlay {
    width: min(80vw, 280px);
  }
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-5);
  padding: 0 var(--sp-1);
}

.sidebar__brand-text {
  font: var(--font-title-sm);
  letter-spacing: 0.04em;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: auto;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: var(--font-body-sm);
  text-align: left;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.sidebar__item:hover {
  background: var(--state-hover);
  color: #fff;
}

.sidebar__item:focus-visible {
  box-shadow: var(--state-focus-ring);
  outline: none;
}

.sidebar__item--active {
  background: var(--state-active);
  border-color: var(--stroke-strong);
  color: #fff;
}

.sidebar__icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.92;
}

.sidebar__label {
  flex: 1;
  min-width: 0;
}

.sidebar__footer {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--stroke-soft);
}

.sidebar__tools-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: var(--text-soft);
  cursor: pointer;
  font: var(--font-body-sm);
}

.sidebar__tools-trigger:hover {
  background: var(--state-hover);
}

.sidebar__tools-trigger:focus-visible {
  box-shadow: var(--state-focus-ring);
  outline: none;
}

.sidebar__tools-label {
  flex: 1;
  text-align: left;
}

.portfolio-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--stroke-soft);
  background: rgba(6, 13, 26, 0.35);
  backdrop-filter: blur(12px);
}

.portfolio-strip--understated .portfolio-strip__title {
  font-size: 1.05rem;
}

.portfolio-strip--understated {
  align-items: center;
}

.portfolio-strip--understated .portfolio-strip__subtitle {
  opacity: 0.75;
}

/* Private swap: logo centered in strip (true middle), pill left, network + wallet right */

.portfolio-strip--centered-brand {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.portfolio-strip__compact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 16px;
  width: 100%;
}

.portfolio-strip__compact-head-left {
  justify-self: start;
  min-width: 0;
}

.portfolio-strip__compact-head-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.portfolio-strip__compact-head-right {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.portfolio-strip--centered-brand .portfolio-strip__brand-mark {
  height: 52px;
  width: min(400px, 74vw);
  max-height: 58px;
}

.portfolio-strip__subtitle--full {
  width: 100%;
  text-align: center;
  padding: 0 var(--sp-4);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .portfolio-strip--centered-brand .portfolio-strip__brand-mark {
    height: 44px;
    width: min(320px, 78vw);
  }

  .portfolio-strip__compact-head {
    gap: 8px 10px;
  }
}

.portfolio-strip__lead {
  flex: 1 1 200px;
  min-width: 0;
}

.portfolio-strip__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.portfolio-strip__title-row--with-brand {
  align-items: center;
  gap: 12px;
}

/* URA mark: PNG alpha as mask, solid white fill on dark chrome */

.portfolio-strip__brand-mark {
  display: block;
  flex-shrink: 0;
  height: 46px;
  width: min(280px, 52vw);
  max-height: 54px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.74);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

@media (max-width: 520px) {
  .portfolio-strip__brand-mark {
    height: 38px;
    width: min(220px, 54vw);
    max-height: 44px;
  }
}

.portfolio-strip__title {
  font: var(--font-title);
  margin: 0;
}

.portfolio-strip__execution-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.portfolio-strip__execution-pill--onchain {
  border-color: rgba(52, 211, 153, 0.45);
  color: rgba(167, 243, 208, 0.95);
  background: rgba(16, 185, 129, 0.12);
}

.portfolio-strip__subtitle {
  margin: 0;
  font: var(--font-body-sm);
  color: var(--muted);
}

.portfolio-strip__summary {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font: var(--font-body-sm);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.03);
}

.portfolio-strip__summary--placeholder {
  visibility: hidden;
  min-height: 32px;
}

.portfolio-strip__summary-line strong {
  color: var(--text);
  font-weight: 700;
}

.portfolio-strip__summary-sep {
  opacity: 0.35;
}

.portfolio-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.portfolio-strip__network {
  flex-shrink: 0;
}

.portfolio-strip__wallet-btn {
  flex-shrink: 0;
}

.page-glass {
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.page-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 56px;
  padding: 0 var(--sp-4);
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  transition: background var(--dur) var(--ease);
}

.page-row:hover {
  background: var(--surface-3);
}

.page-row--dim {
  opacity: 0.85;
}

.page-row__main {
  flex: 1;
  min-width: 0;
}

.page-row__title {
  font: var(--font-body);
  font-weight: 600;
}

.page-row__sub {
  font: var(--font-body-sm);
  color: var(--muted);
}

.page-row__trail {
  font: var(--font-body-sm);
  color: var(--muted);
}

.page-empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  max-width: 420px;
  margin: 0 auto;
}

.page-empty-title {
  font: var(--font-title);
  margin-bottom: var(--sp-3);
}

.page-empty-body {
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

.pse-shielded-simple-meta {
  margin: var(--sp-3) 0 var(--sp-4);
  padding: var(--sp-4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke-soft);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pse-shielded-simple-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  font: var(--font-body-sm);
}

.pse-shielded-simple-k {
  color: var(--muted);
}

.pse-shielded-simple-v {
  font-weight: 600;
  text-align: right;
}

.pse-shielded-simple-muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}

/* Shield swap: Cardano CIP-30 (deposit) vs Midnight DApp Connector (receive) — two sessions */

.pse-dual-rail-wallets {
  margin: var(--sp-3) 0 var(--sp-4);
  padding: var(--sp-4);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--stroke-soft);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.pse-dual-rail-wallets__title {
  font: var(--font-body-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--sp-1);
}

.pse-dual-rail-step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pse-dual-rail-step:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.pse-dual-rail-step__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.pse-dual-rail-step__std {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.pse-dual-rail-status {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

.pse-dual-rail-status--ok {
  color: rgba(34, 197, 94, 0.95);
}

.pse-dual-rail-status--warn {
  color: rgba(250, 204, 21, 0.95);
}

.pse-shielded-wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pse-shielded-wallet-actions .btn,
.pse-shielded-wallet-actions button {
  flex: 1 1 auto;
  min-width: 140px;
}

.pse-wallet-install-link {
  align-self: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(147, 197, 253, 0.95);
  text-decoration: none;
}

.pse-wallet-install-link:hover {
  text-decoration: underline;
}

.app-shell-floating-wallet {
  position: fixed;
  top: 64px;
  right: 16px;
  z-index: 99;
}

.wallet-status-chip-wrap {
  position: relative;
}

.wallet-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wallet-status-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.wallet-status-chip--cta {
  cursor: pointer;
  font-weight: 600;
}

.wallet-status-chip__icon {
  flex-shrink: 0;
}

.wallet-status-chip__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
}

.wallet-status-chip__text {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  max-width: min(52vw, 280px);
}

.wallet-status-chip__name {
  font-weight: 650;
}

.wallet-status-chip__bal {
  opacity: 0.88;
  font-weight: 500;
}

.wallet-status-chip__caret {
  margin-left: 2px;
  opacity: 0.75;
  font-size: 0.7rem;
}

.wallet-status-chip__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

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

.wallet-status-chip__menu-mono {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  opacity: 0.92;
  word-break: break-all;
}

.wallet-status-chip__menu-btn {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}

.wallet-status-chip__menu-meta {
  font-size: 0.68rem;
  opacity: 0.75;
  margin-bottom: 6px;
}

.wallet-status-chip__menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin: 2px 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.wallet-status-chip__menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.wallet-status-chip__menu-item--danger:hover {
  background: rgba(248, 113, 113, 0.12);
}

.pse-network-mismatch-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.1);
  color: rgba(254, 249, 195, 0.98);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pse-network-mismatch-banner__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.pse-network-mismatch-banner__body {
  min-width: 0;
}

.pse-network-mismatch-banner__steps {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  opacity: 0.92;
}

.route-chain-strip__icon-hit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  transition: background var(--transition-fast);
}

.route-chain-strip__icon-hit:focus-visible {
  outline: 2px solid rgba(107, 63, 160, 0.75);
  outline-offset: 2px;
}

.route-chain-strip__icon-hit:hover {
  background: rgba(255, 255, 255, 0.08);
}

.route-chain-strip__icon-hit--dim {
  opacity: 0.45;
  pointer-events: none;
}

.shielded-chain-badge-strip__img-hit {
  display: inline-flex;
  border-radius: 999px;
  cursor: pointer;
  padding: 2px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.shielded-chain-badge-strip__img-hit:hover {
  box-shadow: 0 0 0 2px rgba(155, 89, 182, 0.45);
}

.shielded-chain-badge-strip__img-hit:focus-visible {
  outline: 2px solid rgba(155, 89, 182, 0.85);
  outline-offset: 2px;
}

.pse-shielded-popover-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pse-shielded-popover {
  max-width: 420px;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.pse-shielded-popover h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.pse-shielded-popover-lead {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.pse-shielded-popover-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--text-soft);
}

.pse-shielded-popover-row span:last-child {
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

.pse-shielded-popover-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pse-dual-rail-readiness {
  margin: 0;
  padding: var(--sp-3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

/* C2 — completed shielded deposit receipt (presentation hierarchy) */

.pse-shielded-deposit-strip--complete {
  padding: 0;
  background: transparent;
  font-size: 13px;
}

.pse-private-receipt-hero {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(165deg, rgba(6, 78, 59, 0.22) 0%, rgba(15, 23, 42, 0.55) 48%);
  color: rgba(248, 250, 252, 0.96);
}

.pse-private-receipt-hero__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pse-private-receipt-hero__badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: rgba(167, 243, 208, 1);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.pse-private-receipt-hero__title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pse-private-receipt-hero__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

.pse-private-receipt-hero__meta {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.82);
}

.pse-private-receipt-hero__meta--destination {
  margin-top: 6px;
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.88);
}

.pse-private-receipt-hero__actions-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.pse-private-account-actions__meta {
  margin: 6px 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0.82;
}

.pse-private-account-actions__meta--destination {
  margin-top: 4px;
  opacity: 0.78;
}

.pse-private-account-actions__actions-kicker {
  margin: 10px 0 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.75;
}

.pse-private-receipt-hero__actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pse-private-receipt-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
}

.pse-private-receipt-action__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pse-private-receipt-action__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.96);
}

.pse-private-receipt-action__hint {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.92);
}

.pse-private-receipt-action__pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.9);
  background: rgba(51, 65, 85, 0.45);
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.pse-private-account-actions--compact .pse-private-receipt-action__pill {
  font-size: 0.64rem;
}

.pse-private-account-actions {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
}

.pse-private-account-actions__title {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.pse-private-account-actions__lead {
  margin: 0 0 10px;
  font-size: 0.72rem;
  opacity: 0.85;
  line-height: 1.45;
}

.pse-private-account-actions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pse-private-account-actions__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.pse-private-account-actions__row-label {
  font-size: 0.78rem;
  font-weight: 600;
}

.pse-private-receipt-disclosure {
  margin-top: 16px;
  padding: 14px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.38);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pse-private-receipt-disclosure--compact {
  margin-top: 12px;
  padding: 10px 12px;
}

.pse-private-receipt-disclosure__main {
  min-width: 0;
}

.pse-private-receipt-disclosure__title {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.94);
}

.pse-private-receipt-disclosure__lead {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
}

.pse-private-receipt-disclosure__secondary {
  margin: 6px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.88);
}

.pse-private-receipt-disclosure--compact .pse-private-receipt-disclosure__title {
  font-size: 0.78rem;
}

.pse-private-receipt-disclosure--compact .pse-private-receipt-disclosure__lead {
  font-size: 0.68rem;
}

.pse-private-receipt-disclosure--compact .pse-private-receipt-disclosure__secondary {
  font-size: 0.64rem;
}

.pse-shielded-deposit-technical {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.28);
  font-size: 0.74rem;
}

.pse-shielded-deposit-technical > summary {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.76rem;
  opacity: 0.88;
  padding: 8px 10px;
  list-style: none;
}

.pse-shielded-deposit-technical > summary::-webkit-details-marker {
  display: none;
}

.pse-shielded-deposit-technical__body {
  padding: 0 10px 10px;
}

.pse-shielded-deposit-technical__meta {
  margin: 8px 0 0;
  font-size: 0.7rem;
  opacity: 0.72;
}

.pse-shielded-deposit-technical__footnotes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.pse-shielded-deposit-technical__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pse-shielded-deposit-technical__label {
  opacity: 0.82;
  font-weight: 500;
}

.pse-shielded-deposit-technical__mono {
  font-size: 0.68rem;
}

.pse-shielded-deposit-technical__preprod {
  margin-top: 10px;
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0.86;
}

.pse-shielded-deposit-technical__preprod-step {
  margin-bottom: 8px;
}

.pse-shielded-deposit-technical__preprod-step strong {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

.pse-shielded-deposit-technical__preprod-note {
  margin: 8px 0 0;
  opacity: 0.88;
}

.pse-shielded-deposit-advanced {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.22);
  font-size: 0.72rem;
}

.pse-shielded-deposit-advanced > summary {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.74rem;
  opacity: 0.88;
  padding: 8px 10px;
  list-style: none;
}

.pse-shielded-deposit-advanced > summary::-webkit-details-marker {
  display: none;
}

.pse-shielded-deposit-advanced__body {
  padding: 0 10px 10px;
}

.pse-shielded-deposit-strip__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pse-shielded-deposit-strip__refresh {
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.5);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
}

.pse-shielded-deposit-strip__refresh:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.55);
}

.pse-shielded-deposit-strip__refresh:disabled {
  opacity: 0.55;
  cursor: default;
}

.pse-advanced-details {
  margin-top: var(--sp-4);
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.12);
}

.pse-advanced-details > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
}

.pse-advanced-details > summary::-webkit-details-marker {
  display: none;
}

.pse-advanced-details-body {
  padding: 0 var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pse-capacity-router-advanced-link {
  margin-top: var(--sp-2);
}

.pse-mode-hero-seg:not(.pse-mode-hero-seg--active-public):not(.pse-mode-hero-seg--active-private) {
  opacity: 0.9;
}

.app-shell--private-swap .pse-mode-hero-seg--active-public {
  opacity: 0.55;
  transform: scale(0.98);
}

@media (max-width: 1023px) {
  .portfolio-strip {
    padding: var(--sp-3);
  }
}

@media (max-width: 767px) {
  .portfolio-strip {
    padding: var(--sp-3);
  }
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.idle-starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .pixel-character {
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  background: #07111f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: auto;
  filter: none;
  mix-blend-mode: normal;
}

.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}

.tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.tab-active {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.tab-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* NFO tab - white styling */

.tab-nfo {
  color: #ffffff !important;
}

.tab-nfo:hover {
  color: #ffffff !important;
}

.tab-nfo.tab-active {
  color: #ffffff !important;
}

.tab-nfo.tab-active::after {
  background: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
}

/* Liquid Staking tab - white styling */

.tab-liquid-staking {
  color: #ffffff !important;
}

.tab-liquid-staking:hover {
  color: #ffffff !important;
}

.tab-liquid-staking.tab-active {
  color: #ffffff !important;
}

.tab-liquid-staking.tab-active::after {
  background: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
}

/* Privacy Mode Toggle Switch */

.privacy-toggle-container {
  transition: all 0.3s ease;
}

.privacy-toggle-container:has(label:not([style*="cursor: not-allowed"])):hover {
  background: rgba(96, 165, 250, 0.1) !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

.privacy-toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  transition: all 0.3s ease;
}

.privacy-toggle-container:has(label:not([style*="cursor: not-allowed"])) .privacy-toggle-switch:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-pill {
  padding: 6px 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  color: #a855f7;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: help;
}

.wallet-pill {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: not-allowed;
  transition: all 0.25s ease;
  opacity: 0.6;
}

.wallet-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-soft);
}

.status-badge {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.status-tooltip {
  cursor: help;
}

.pill {
  border-radius: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.pill-glow {
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.pill-success {
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.4);
}

.pill-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.status-ready {
  color: #bbf7d0;
}

.status-pending {
  color: #fbbf24;
}

.status-offline {
  color: #fca5a5;
}

.banner {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  margin: 0 32px;
  margin-top: 16px;
}

.banner-preview {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.banner-info {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
}

.swap-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  padding: 40px 0;
}

/* Swap Page Container - ONE container for BOTH panels */

.swap-page-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 32px;
  box-sizing: border-box;
}

/* —— In-card route selector (two compact cards) —— */

.swap-route-selector {
  width: 100%;
  padding: 0 0 12px;
  box-sizing: border-box;
}

.swap-route-selector__hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.92);
}

.swap-route-selector__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.swap-route-selector__cards-envelope {
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.9s ease;
  will-change: opacity;
}

.swap-route-selector--fading .swap-route-selector__hint {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.swap-route-selector__cards-envelope--fade-out {
  opacity: 0;
  pointer-events: none;
}

.swap-route-selector__committed-bar {
  width: 100%;
  padding: 4px 0 10px;
  animation: swap-route-committed-in 0.7s ease 0.08s both;
}

.swap-route-selector__committed-bar .shielded-chain-badge-strip {
  margin-top: 0;
}

.swap-route-selector--committed {
  padding-bottom: 4px;
}

@keyframes swap-route-committed-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swap-surface--chrome-fade {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

/* Bare swap surface — no card chrome after route asset is picked */

.swap-surface--bare {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  transition:
    background 0.6s ease,
    border-color 0.6s ease,
    box-shadow 0.6s ease;
}

.swap-surface__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 0;
}

@media (max-width: 767px) {
  .swap-surface__body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

.swap-form-panel--enter {
  animation: swap-form-fade-in 0.75s ease 0.05s both;
}

@keyframes swap-form-fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shielded-chain-badge-strip__item--selected .shielded-chain-badge-strip__img-wrap {
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.55),
    0 0 14px rgba(168, 85, 247, 0.25);
}

.shielded-chain-badge-strip__item--selected .shielded-chain-badge-strip__label {
  color: rgba(233, 213, 255, 0.98);
  font-weight: 600;
}

.swap-route-selector--committed .swap-route-selector__public-badge-strip .shielded-chain-badge-strip__item--selected .shielded-chain-badge-strip__img-wrap {
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.55),
    0 0 14px rgba(59, 130, 246, 0.22);
}

.swap-route-selector--committed .swap-route-selector__public-badge-strip .shielded-chain-badge-strip__item--selected .shielded-chain-badge-strip__label {
  color: rgba(191, 219, 254, 0.98);
}

@media (min-width: 640px) {
  .swap-route-selector__cards {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.swap-route-selector__chain-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: auto;
  align-items: center;
}

.swap-route-selector__chain-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-route-selector__chain-hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.swap-route-selector__chain-hit:hover {
  border-color: rgba(148, 163, 184, 0.45);
}

.swap-route-selector__shield-strip-wrap {
  margin-top: auto;
  width: 100%;
}

.swap-route-selector__public-strip-wrap {
  margin-top: auto;
  width: 100%;
}

.swap-route-selector__reentry {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 10px;
}

.swap-route-selector__footer {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.78);
}

.swap-public-route-coming-soon {
  margin: 8px 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
}

.swap-public-route-coming-soon__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
}

.swap-public-route-coming-soon__body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.85);
}

.swap-route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 28px 24px 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  cursor: pointer;
  color: var(--text);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  overflow: hidden;
}

.swap-route-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
}

.swap-route-card--public::before {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.55) 0%, rgba(15, 23, 42, 0.92) 48%, rgba(15, 23, 42, 0.98) 100%);
}

.swap-route-card--shielded::before {
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.5) 0%, rgba(15, 23, 42, 0.92) 45%, rgba(15, 23, 42, 0.98) 100%);
}

.swap-route-card > * {
  position: relative;
  z-index: 1;
}

.swap-route-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(148, 163, 184, 0.38);
}

.swap-route-card:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.75);
  outline-offset: 3px;
}

.swap-route-card__kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.65);
  margin-bottom: 6px;
}

.swap-route-card__name {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.swap-route-card__desc {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.78);
  margin-bottom: 18px;
}

/* Lace-style route cards: flat black + soft same-tone glow at all four corners (::before + blur) */

.swap-route-card--compact {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 0;
  padding: 16px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0f;
  background-clip: padding-box;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.swap-route-card--compact.swap-route-card--public,
.swap-route-card--compact.swap-route-card--shielded {
  background: #0a0a0f;
  box-shadow: none;
}

/* Four corner lights (one layer, blurred) — blue public / purple shielded */

.swap-route-card--compact.swap-route-card--public::before {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(
      circle 50% at -6% -6%,
      rgba(59, 130, 246, 0.4) 0%,
      rgba(59, 130, 246, 0.14) 38%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at 106% -6%,
      rgba(59, 130, 246, 0.4) 0%,
      rgba(59, 130, 246, 0.14) 38%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at 106% 106%,
      rgba(59, 130, 246, 0.4) 0%,
      rgba(59, 130, 246, 0.14) 38%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at -6% 106%,
      rgba(59, 130, 246, 0.4) 0%,
      rgba(59, 130, 246, 0.14) 38%,
      transparent 64%
    );
  filter: blur(18px);
}

.swap-route-card--compact.swap-route-card--shielded::before {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(
      circle 50% at -6% -6%,
      rgba(168, 85, 247, 0.38) 0%,
      rgba(168, 85, 247, 0.13) 38%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at 106% -6%,
      rgba(168, 85, 247, 0.38) 0%,
      rgba(168, 85, 247, 0.13) 38%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at 106% 106%,
      rgba(168, 85, 247, 0.38) 0%,
      rgba(168, 85, 247, 0.13) 38%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at -6% 106%,
      rgba(168, 85, 247, 0.38) 0%,
      rgba(168, 85, 247, 0.13) 38%,
      transparent 64%
    );
  filter: blur(18px);
}

.swap-route-card--compact::after {
  display: none;
}

.swap-route-card--compact > * {
  position: relative;
  z-index: 1;
}

.swap-route-card--compact:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.swap-route-card--compact.swap-route-card--public:hover::before {
  background:
    radial-gradient(
      circle 50% at -6% -6%,
      rgba(59, 130, 246, 0.52) 0%,
      rgba(59, 130, 246, 0.18) 36%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at 106% -6%,
      rgba(59, 130, 246, 0.52) 0%,
      rgba(59, 130, 246, 0.18) 36%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at 106% 106%,
      rgba(59, 130, 246, 0.52) 0%,
      rgba(59, 130, 246, 0.18) 36%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at -6% 106%,
      rgba(59, 130, 246, 0.52) 0%,
      rgba(59, 130, 246, 0.18) 36%,
      transparent 64%
    );
}

.swap-route-card--compact.swap-route-card--shielded:hover::before {
  background:
    radial-gradient(
      circle 50% at -6% -6%,
      rgba(168, 85, 247, 0.5) 0%,
      rgba(168, 85, 247, 0.17) 36%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at 106% -6%,
      rgba(168, 85, 247, 0.5) 0%,
      rgba(168, 85, 247, 0.17) 36%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at 106% 106%,
      rgba(168, 85, 247, 0.5) 0%,
      rgba(168, 85, 247, 0.17) 36%,
      transparent 64%
    ),
    radial-gradient(
      circle 50% at -6% 106%,
      rgba(168, 85, 247, 0.5) 0%,
      rgba(168, 85, 247, 0.17) 36%,
      transparent 64%
    );
}

.swap-route-card--compact.swap-route-card--selected {
  border-color: rgba(255, 255, 255, 0.15);
}

.swap-route-card--compact.swap-route-card--selected.swap-route-card--public::before {
  background:
    radial-gradient(
      circle 50% at -6% -6%,
      rgba(59, 130, 246, 0.6) 0%,
      rgba(59, 130, 246, 0.22) 38%,
      transparent 66%
    ),
    radial-gradient(
      circle 50% at 106% -6%,
      rgba(59, 130, 246, 0.6) 0%,
      rgba(59, 130, 246, 0.22) 38%,
      transparent 66%
    ),
    radial-gradient(
      circle 50% at 106% 106%,
      rgba(59, 130, 246, 0.6) 0%,
      rgba(59, 130, 246, 0.22) 38%,
      transparent 66%
    ),
    radial-gradient(
      circle 50% at -6% 106%,
      rgba(59, 130, 246, 0.6) 0%,
      rgba(59, 130, 246, 0.22) 38%,
      transparent 66%
    );
}

.swap-route-card--compact.swap-route-card--selected.swap-route-card--shielded::before {
  background:
    radial-gradient(
      circle 50% at -6% -6%,
      rgba(168, 85, 247, 0.58) 0%,
      rgba(168, 85, 247, 0.22) 38%,
      transparent 66%
    ),
    radial-gradient(
      circle 50% at 106% -6%,
      rgba(168, 85, 247, 0.58) 0%,
      rgba(168, 85, 247, 0.22) 38%,
      transparent 66%
    ),
    radial-gradient(
      circle 50% at 106% 106%,
      rgba(168, 85, 247, 0.58) 0%,
      rgba(168, 85, 247, 0.22) 38%,
      transparent 66%
    ),
    radial-gradient(
      circle 50% at -6% 106%,
      rgba(168, 85, 247, 0.58) 0%,
      rgba(168, 85, 247, 0.22) 38%,
      transparent 66%
    );
}

.swap-route-card--compact .swap-route-card__kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.swap-route-card--compact .swap-route-card__name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.swap-route-card--compact .swap-route-card__desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.swap-route-card--selected:not(.swap-route-card--compact) {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(96, 165, 250, 0.25);
}

.swap-route-card--shielded.swap-route-card--selected:not(.swap-route-card--compact) {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(167, 139, 250, 0.28);
}

.swap-route-reentry__btn {
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}

.swap-route-reentry__btn:hover {
  color: rgba(226, 232, 240, 0.95);
}

.swap-route-reentry__btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .swap-route-card {
    transition: none;
  }
  .swap-route-card:hover {
    transform: none;
  }
}

.swap-left-column--exec-emphasis .pse-shield-timeline-emphasis-wrap {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.45), 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Swap Layout Grid - Both panels in same grid, side by side */

.swap-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

/* Desktop: Two Column Layout - Fixed widths, side by side */

@media (min-width: 1024px) {
  .swap-layout-grid {
    grid-template-columns: 480px 360px;
    gap: 24px;
    justify-content: start;
    width: 100%;
  }

  .swap-right-column {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

@media (min-width: 1280px) {
  .swap-layout-grid {
    grid-template-columns: 520px 380px;
  }
}

/* Left Column: Swap Inputs */

.swap-left-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.swap-left-column .swap-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

@media (max-width: 767px) {
  .swap-left-column .swap-card {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* Right Column: Compact Info Panel - Normal flow, no floating */

.swap-right-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0; /* Prevent overflow */
  max-width: 100%;
  overflow-x: hidden;
}

/* Compact Info Panel Container */

.swap-info-panel {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  min-height: fit-content;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden;
}

/* Collapsible swap details (outer disclosure) */

.swap-info-panel-disclosure {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
}

.swap-info-panel-disclosure-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 2px 0 14px;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.swap-info-panel-disclosure-summary::-webkit-details-marker {
  display: none;
}

.swap-info-panel-disclosure-summary::after {
  content: '';
  width: 0.5em;
  height: 0.5em;
  margin-left: auto;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  translate: 0 -0.15em;
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.swap-info-panel-disclosure[open] > .swap-info-panel-disclosure-summary::after {
  transform: rotate(225deg);
  translate: 0 0.1em;
}

.swap-info-panel-disclosure-summary:hover::after {
  border-color: rgba(255, 255, 255, 0.75);
}

.swap-info-panel-disclosure-leading {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.swap-info-panel-disclosure-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.swap-info-panel-disclosure-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.swap-info-panel-disclosure-meta {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.48);
  max-width: 220px;
  text-align: right;
}

.swap-info-panel-disclosure-meta--mobile-only {
  display: none;
}

.swap-info-fee-breakdown-hint {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

@media (max-width: 767px) {
  .swap-info-panel-disclosure-meta--desktop {
    display: none;
  }
  .swap-info-panel-disclosure-meta--mobile-only {
    display: block;
  }
}

@media (max-width: 520px) {
  .swap-info-panel-disclosure-meta {
    flex-basis: 100%;
    max-width: none;
    text-align: left;
  }
}

.swap-info-panel-disclosure-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

/* Dev-only treasury strip */

.swap-treasury-debug-dev {
  margin-top: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(120, 200, 255, 0.22);
  background: linear-gradient(
    135deg,
    rgba(30, 55, 90, 0.45) 0%,
    rgba(12, 18, 32, 0.55) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.swap-treasury-debug-dev-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  margin: 0;
  user-select: none;
}

.swap-treasury-debug-dev-summary::-webkit-details-marker {
  display: none;
}

.swap-treasury-debug-dev-icon {
  font-size: 0.65rem;
  color: rgba(130, 210, 255, 0.85);
  line-height: 1;
}

.swap-treasury-debug-dev-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.swap-treasury-debug-dev-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: rgba(186, 230, 253, 0.95);
}

.swap-treasury-debug-dev-chevron {
  margin-left: auto;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid rgba(186, 230, 253, 0.55);
  border-bottom: 2px solid rgba(186, 230, 253, 0.55);
  transform: rotate(45deg);
  translate: 0 -0.12em;
  transition: transform 0.2s ease;
}

.swap-treasury-debug-dev[open] .swap-treasury-debug-dev-chevron {
  transform: rotate(225deg);
  translate: 0 0.08em;
}

.swap-treasury-debug-dev-summary:hover .swap-treasury-debug-dev-chevron {
  border-color: rgba(224, 242, 254, 0.85);
}

.swap-treasury-debug-dev-body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(120, 200, 255, 0.12);
}

.swap-treasury-debug-dev-body .compact-row {
  padding: 8px 0;
}

.swap-treasury-debug-dev-mono {
  font-size: 0.72rem;
  font-weight: 500;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.88);
}

.swap-treasury-debug-dev-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(125, 211, 252, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.swap-treasury-debug-dev-link:hover {
  color: #e0f2fe;
  border-bottom-color: rgba(224, 242, 254, 0.6);
}

/* Compact Mode Styles */

.swap-info-panel .compact-section {
  padding: 0;
  margin: 0;
}

.swap-info-panel .compact-section + .compact-section {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.swap-info-panel h3,
.swap-info-panel .section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.swap-info-panel .compact-text {
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.swap-info-panel .compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
  min-height: 24px;
}

.route-preview-btn {
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.route-preview-btn:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
}

.compact-route-preview {
  margin-top: 8px;
}

.swap-info-panel .compact-value {
  font-weight: 500;
  color: #ffffff;
}

.swap-info-panel .compact-value a {
  color: #ffffff;
}

.swap-info-panel .compact-label {
  color: #ffffff;
}

/* Mobile: Stack Vertically */

@media (max-width: 1023px) {
  .swap-layout-grid {
    grid-template-columns: 1fr;
  }

  .swap-right-column {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .swap-info-panel {
    padding: 20px;
    gap: 16px;
  }
}

/* Ensure no horizontal scrolling */

.swap-page-container,
.swap-layout-grid,
.swap-left-column,
.swap-right-column {
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Force proper grid alignment */

.swap-layout-grid {
  max-width: 100%;
}

.swap-left-column,
.swap-right-column {
  max-width: 100%;
}

.grid {
  display: grid;
  gap: 16px;
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.three-col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
}

.gap-16 {
  gap: 16px;
}

.gap-12 {
  gap: 12px;
}

.gap-8 {
  gap: 8px;
}

.gap-20 {
  gap: 20px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.swap-card .card {
  padding: 16px;
}

.card:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.35);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.card-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #ffffff;
}

.compact-card {
  padding: 12px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.setting-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

.quote-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.quote-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 16px 0;
}

.btn-primary.wallet-button {
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
  box-shadow: none !important;
}

.btn-primary.wallet-button::before {
  display: none !important;
}

.btn-primary.wallet-button:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary.wallet-button:hover::before {
  display: none !important;
}

.btn-primary.wallet-button:active {
  transform: translateY(0) !important;
}

/* Swap card primary connect — distinct from outline header wallet button */

.btn-primary.wallet-button.pse-swap-connect-wallet-btn {
  background: linear-gradient(135deg, #5b21b6 0%, #4338ca 45%, #2563eb 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(67, 56, 202, 0.42) !important;
}

.btn-primary.wallet-button.pse-swap-connect-wallet-btn::before {
  display: none !important;
}

.btn-primary.wallet-button.pse-swap-connect-wallet-btn:hover {
  color: #fff !important;
  filter: brightness(1.08);
  border: none !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(67, 56, 202, 0.5) !important;
}

.btn.btn-primary.swap-action-button {
  background: transparent !important;
  border: 1.5px solid rgba(139, 92, 246, 0.5) !important;
  color: rgba(139, 92, 246, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
  box-shadow: none !important;
}

.btn.btn-primary.swap-action-button::before {
  content: '' !important;
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(77, 232, 255, 1) 0%,
    rgba(77, 232, 255, 1) 15%,
    rgba(163, 255, 18, 1) 30%,
    rgba(163, 255, 18, 1) 40%,
    rgba(250, 204, 21, 1) 50%,
    rgba(250, 204, 21, 1) 60%,
    rgba(236, 72, 153, 1) 70%,
    rgba(236, 72, 153, 1) 85%,
    rgba(168, 85, 247, 1) 100%
  ) !important;
  transition: left 0.3s ease;
  z-index: -1;
}

.btn.btn-primary.swap-action-button:hover:not(:disabled) {
  color: #000 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn.btn-primary.swap-action-button:hover:not(:disabled)::before {
  left: 0;
}

.btn.btn-primary.swap-action-button:active:not(:disabled) {
  transform: translateY(0) !important;
}

.btn.btn-primary.swap-action-button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: transparent !important;
}

.btn.btn-primary.swap-action-button:disabled:hover::before {
  left: -100% !important;
}

.btn.btn-primary.swap-action-button:disabled:hover {
  color: rgba(139, 92, 246, 1) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  color: var(--bg);
  box-shadow: 0 0 24px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.token-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.token-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.token-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  font-weight: 600;
}

.token-selector-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}

.token-symbol {
  color: var(--text);
}

.token-selector-arrow {
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.token-selector-btn:hover .token-selector-arrow {
  transform: translateY(1px);
}

.token-symbol-display {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.token-balance-hint {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
  margin-top: -8px;
}

.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all 0.25s ease;
}

.max-button {
  position: absolute;
  right: 16px;
  padding: 4px 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 6px;
  color: #a855f7;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.max-button:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
}

.max-button:active {
  transform: scale(0.95);
}

.max-button:disabled,
.max-button.max-button--inactive {
  opacity: 0.42;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

.max-button:disabled:hover,
.max-button.max-button--inactive:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.amount-input-wrapper:focus-within {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.amount-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  outline: none;
  padding-right: 60px; /* Space for MAX button */
}

.amount-input:disabled {
  opacity: 0.6;
}

.swap-toggle {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: -10px auto 0 auto !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.swap-direction-btn {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  background: transparent !important;
  border: 1.5px solid rgba(77, 232, 255, 0.4) !important;
  color: rgba(77, 232, 255, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

.swap-direction-btn::before {
  content: '' !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center,
    rgba(77, 232, 255, 1) 0%,
    rgba(77, 232, 255, 0.9) 20%,
    rgba(163, 255, 18, 0.8) 40%,
    rgba(250, 204, 21, 0.7) 60%,
    rgba(236, 72, 153, 0.8) 80%,
    rgba(168, 85, 247, 1) 100%
  ) !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 50%;
}

.swap-direction-btn:hover {
  color: #000 !important;
  border-color: transparent !important;
  transform: rotate(180deg) !important;
  box-shadow: 0 0 16px rgba(77, 232, 255, 0.3) !important;
}

.swap-direction-btn:hover::before {
  opacity: 1;
}

.swap-direction-btn:active {
  transform: rotate(180deg) scale(0.95) !important;
}

/* Routing Row (Toggle + Badge) */

.routing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}

.routing-label-text {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.routing-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.routing-toggle-btn {
  padding: 6px 16px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.routing-toggle-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.routing-toggle-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.best-badge {
  margin-left: auto;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.quote-hint {
  padding: 12px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0;
}

/* Routing Panel */

.routing-panel {
  margin: 12px 0;
}

.route-card {
  padding: 16px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.route-title {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.route-name {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.route-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
}

.route-line span:first-child {
  color: var(--muted);
}

.route-line span:last-child {
  color: var(--text);
  font-weight: 500;
}

.route-alt {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.route-alt-title {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.route-alt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.route-alt-row span:first-child {
  color: var(--muted);
}

.route-alt-row span:last-child {
  color: var(--text-soft);
  font-weight: 500;
}

.route-alt-row--best {
  background: rgba(139, 92, 246, 0.1);
  border-left: 2px solid var(--primary);
  padding-left: 12px;
}

.route-best-badge {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 4px;
}

/* Adapter Status Hint */

.adapter-status-hint {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
}

.adapter-status-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.adapter-status-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adapter-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
}

.adapter-status-name {
  color: var(--text);
  font-weight: 500;
}

.adapter-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.adapter-status-item.available .adapter-status-badge {
  color: var(--success);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.adapter-status-item.unavailable .adapter-status-badge {
  color: var(--muted);
  background: rgba(107, 114, 128, 0.15);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.adapter-status-error {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
}

.adapter-status-note {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.08);
  border-left: 3px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.routing-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.routing-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.routing-adapter {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
}

.routing-alternatives {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.routing-alternative {
  padding: 4px 0;
}

.routing-price-impact {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.swap-settings {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.swap-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swap-details {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.swap-fee {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.swap-settings-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.swap-settings-toggle:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
}

.slippage-selector {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slippage-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.slippage-selector .select {
  width: 100%;
  padding: 10px 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat {
  font-weight: 700;
  font-size: 1.1rem;
}

.text-warning {
  color: var(--warning);
}

.alert {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecdd3;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.pool-row-wrapper {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.pool-row-wrapper:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.pool-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  gap: 16px;
}

.pool-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.metric-value {
  font-weight: 700;
}

.select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 10px;
}

.chart {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 8px;
}

.chart-bar {
  height: 100%;
  border-radius: 999px;
}

.chart-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.chart-secondary {
  background: linear-gradient(90deg, #22d3ee, #06b6d4);
}

.chart-tertiary {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.analytics-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.swap-action-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button-subtext {
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 2px;
}

.slippage-presets {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.slippage-preset {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slippage-preset:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.slippage-preset.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #a855f7;
}

.slippage-tooltip {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
}

.analytics-placeholder {
  padding: 3rem 1rem;
  text-align: center;
}

.footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--panel);
}

.footer-links {
  display: flex;
  gap: 12px;
}

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

@media (max-width: 900px) {
  .top-nav {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 16px 24px;
  }
  .nav-right {
    justify-content: space-between;
    width: 100%;
  }
  .content {
    padding: 24px;
  }
  .banner {
    margin: 0 24px;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .content {
    padding: 16px;
  }
  .banner {
    margin: 0 16px;
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .brand-name {
    font-size: 1rem;
  }
  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px 16px;
  }
}

/* —— Private Swap Exchange (PSE) layout & components —— */

.pse-top-nav {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 16px;
}

.pse-top-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

@media (max-width: 480px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }
}

.pse-wordmark-title {
  font-family: 'Inter', 'Sora', 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}

.pse-wordmark-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pse-primary-tabs {
  justify-self: center;
}

.pse-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pse-network-badge {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Read-only chain context: status chip, not a dropdown control */

.pse-network-badge--status {
  border-style: solid;
  border-left: 3px solid rgba(107, 63, 160, 0.85);
  border-radius: 8px;
}

.pse-tools-wrap {
  position: relative;
}

.pse-icon-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: var(--radius-btn);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pse-icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.pse-tools-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  z-index: 200;
}

.pse-tools-menu-heading {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  padding: 10px 12px 4px;
  margin: 0;
}

.pse-tools-menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
}

.pse-tools-menu-item-label {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
}

.pse-tools-menu-item-desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.35;
}

.pse-tools-menu-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.pse-tools-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pse-swap-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pse-swap-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  margin: 0;
}

.pse-swap-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.pse-mode-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.pse-mode-seg {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.pse-mode-seg--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pse-mode-seg--private.pse-mode-seg--active {
  background: linear-gradient(135deg, rgba(109, 94, 249, 0.35), rgba(34, 211, 238, 0.2));
  color: #fff;
}

.pse-privacy-banner {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(109, 94, 249, 0.35);
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(109, 94, 249, 0.12), rgba(13, 17, 32, 0.9));
}

.pse-privacy-banner-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.pse-privacy-banner-copy {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0 0 10px;
  line-height: 1.45;
}

.pse-privacy-trust-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.pse-privacy-trust-rows li {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.pse-trust-k {
  color: var(--muted);
}

.pse-trust-v {
  font-family: var(--font-mono);
  color: var(--secondary);
}

.pse-error-notice {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.875rem;
}

.pse-error-notice--error {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.pse-error-notice--warning {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.pse-error-notice--info {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.pse-error-notice-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.pse-error-notice-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.pse-routing-diagnostics {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.pse-routing-diagnostics-summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pse-routing-diagnostics-body {
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.swap-hero-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swap-hero-column {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.swap-quote-below {
  width: 100%;
  max-width: 560px;
}

.pse-quote-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
}

.pse-quote-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 6px 0;
}

.pse-quote-k {
  color: var(--muted);
  flex-shrink: 0;
}

.pse-quote-v {
  font-weight: 600;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

.pse-font-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.pse-quote-skeleton {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.pse-skel-line {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: pse-shimmer 1.2s ease-in-out infinite;
  margin-bottom: 8px;
}

.pse-skel-line--short {
  width: 55%;
  margin-bottom: 0;
}

@keyframes pse-shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.pse-advanced {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.pse-advanced-summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pse-advanced-summary::-webkit-details-marker {
  display: none;
}

.pse-advanced-chevron {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease;
}

details.pse-advanced[open] .pse-advanced-chevron {
  transform: rotate(90deg);
}

.pse-advanced-body {
  padding: 10px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pse-operator-hub .pse-page-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
}

.pse-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pse-modal {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  padding: 24px;
}

.pse-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.pse-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pse-progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pse-progress-step--current {
  color: var(--text);
  font-weight: 600;
}

.pse-progress-step--done {
  color: var(--success);
}

.pse-progress-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.pse-progress-step--current .pse-progress-step-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(109, 94, 249, 0.25);
}

.pse-progress-step--done .pse-progress-step-dot {
  background: var(--success);
}

.pse-receipt-summary {
  font-size: 0.95rem;
  margin: 0 0 16px;
  color: var(--text-soft);
}

.pse-receipt-dl {
  margin: 0 0 16px;
}

.pse-receipt-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.pse-receipt-dl dt {
  color: var(--muted);
  font-weight: 600;
}

.pse-receipt-dl dd {
  margin: 0;
  font-family: var(--font-mono);
  text-align: right;
}

.pse-receipt-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--secondary);
  font-size: 0.85rem;
}

.pse-receipt-close {
  width: 100%;
}

.pse-swap-cta-sticky {
  position: sticky;
  bottom: 0;
  z-index: 30;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding-top: 14px;
  margin: 8px -4px 0;
  background: linear-gradient(to top, rgba(7, 9, 16, 0.98) 55%, rgba(7, 9, 16, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .pse-swap-cta-sticky {
    position: static;
    z-index: auto;
    background: none;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
  }
}

.btn.btn-primary.swap-action-button {
  border-radius: var(--radius-btn) !important;
  border: none !important;
  background: var(--cta-gradient) !important;
  color: #0a0c12 !important;
  font-weight: 800 !important;
}

.btn.btn-primary.swap-action-button::before {
  display: none !important;
}

.btn.btn-primary.swap-action-button:hover:not(:disabled) {
  filter: brightness(1.06);
  color: #0a0c12 !important;
}

.token-input,
.swap-card .token-input {
  border-radius: var(--radius-sm) !important;
}

/* —— Midnight DEX overhaul: background, nav, swap hero, bridge, footer —— */

.pse-bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pse-bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 65% at 50% 45%,
    rgba(6, 13, 26, 0.15) 0%,
    rgba(10, 22, 40, 0.55) 45%,
    rgba(6, 13, 26, 0.92) 100%
  );
}

.app-shell--private-swap .pse-bg-vignette {
  background: radial-gradient(
    ellipse 70% 65% at 50% 45%,
    rgba(107, 63, 160, 0.07) 0%,
    rgba(10, 22, 40, 0.55) 50%,
    rgba(6, 13, 26, 0.94) 100%
  );
  transition: background var(--transition-normal);
}

.pse-wordmark-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pse-testnet-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.pse-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pse-network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pse-network-dot--testnet {
  background: var(--color-warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.pse-network-dot--mainnet {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
}

.pse-tools-icon-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem !important;
}

.pse-slippage-icon-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.pse-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pse-nav-burger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.pse-nav-burger-line {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1px;
}

.pse-nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
}

.pse-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 88vw);
  z-index: 160;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 72px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
}

.pse-nav-drawer-item {
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-input);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.pse-nav-drawer-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.pse-nav-drawer-item--active {
  border-color: rgba(255, 255, 255, 0.35);
}

.pse-nav-drawer-item--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tab.tab--locked {
  opacity: 0.38;
  cursor: not-allowed;
}

.tab.tab--locked.tab--soon {
  opacity: 0.42;
}

.tab .pse-tab-icon {
  display: none;
}

.pse-tab-soon-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .pse-nav-burger {
    display: inline-flex;
  }
  .pse-primary-tabs {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .pse-nav-burger {
    display: none !important;
  }
}

.swap-page-container {
  max-width: 1100px;
}

@media (max-width: 767px) {
  .swap-page-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .content {
    padding: 24px 16px;
  }
}

@media (max-width: 479px) {
  .swap-page-container {
    padding-left: 0;
    padding-right: 0;
  }
  .content {
    padding: 16px 0;
  }
}

@media (min-width: 1024px) {
  .swap-layout-grid {
    grid-template-columns: minmax(0, 480px) minmax(280px, 360px);
    justify-content: center;
    gap: 24px;
  }
}

.card.swap-card {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card.swap-card--private {
  border: 1px solid rgba(155, 89, 182, 0.4);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 72px -24px rgba(155, 89, 182, 0.35);
  transition:
    border-color var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease);
}

.pse-mode-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.pse-mode-hero-track {
  display: flex;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  gap: 4px;
  box-sizing: border-box;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pse-mode-hero-seg {
  flex: 1;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: var(--sp-2) var(--sp-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
  min-width: 0;
}

.pse-mode-hero-seg:not(.pse-mode-hero-seg--active-public):not(.pse-mode-hero-seg--active-private):hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.pse-mode-hero-seg:disabled,
.pse-mode-hero-seg[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pse-mode-hero-seg--active-public {
  background: #fff;
  color: #0a1628;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-color: transparent;
}

.pse-mode-hero-seg--active-private {
  background: linear-gradient(135deg, #6b3fa0 0%, #9b59b6 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(107, 63, 160, 0.4);
  border-color: transparent;
}

.pse-mode-hero-subtitle {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
  padding: 0 4px;
  min-height: 2.2em;
}

.pse-mode-hero-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.pse-mode-hero-icon--raster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pse-mode-hero-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.pse-swap-card-head {
  margin-bottom: 4px;
}

.pse-swap-card-subtitle {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  max-width: 42ch;
}

/** Public Solana: quote (Jupiter) vs execution (backend build) */

.pse-public-solana-lane {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: rgba(255, 255, 255, 0.88);
}

.pse-public-solana-lane--warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.pse-public-solana-lane__title {
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.pse-tx-details-zero-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.55) !important;
}

.pse-liquidity-footnote {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pse-swap-connect-wrap {
  margin-top: 8px;
}

.pse-swap-connect-wallet-btn {
  min-height: 56px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

.swap-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.swap-details-main {
  font-weight: 600;
}

.swap-details-zk-fee {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(155, 89, 182, 0.9);
}

.swap-settings-toggle {
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.swap-settings-toggle:hover {
  opacity: 1;
}

.btn.btn-primary.swap-action-button--private {
  background: linear-gradient(135deg, #6b3fa0 0%, #9b59b6 100%) !important;
  color: #fff !important;
}

.btn.btn-primary.swap-action-button--private:hover:not(:disabled) {
  filter: brightness(1.08);
  color: #fff !important;
}

.btn.pse-midnight-receive-generate-btn {
  background: rgba(12, 10, 20, 0.45) !important;
  border: 1.5px solid rgba(72, 58, 98, 0.9) !important;
  color: rgba(186, 174, 205, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn.pse-midnight-receive-generate-btn:hover:not(:disabled) {
  background: rgba(72, 58, 98, 0.22) !important;
  border-color: rgba(107, 63, 160, 0.75) !important;
  color: rgba(221, 211, 236, 1) !important;
}

.btn.pse-midnight-receive-generate-btn:disabled {
  opacity: 0.45;
  border-color: rgba(72, 58, 98, 0.45) !important;
  color: rgba(148, 140, 165, 0.7) !important;
}

.pse-midnight-receive-actions {
  margin-top: 8px;
}

.pse-midnight-receive-actions__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pse-midnight-receive-actions__generate {
  flex: 1;
  min-width: 0;
}

.pse-midnight-receive-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(88, 72, 120, 0.4);
  color: rgba(221, 211, 236, 0.95);
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  cursor: help;
  user-select: none;
}

.pse-midnight-receive-actions__toggle-col {
  margin-top: 6px;
}

.pse-shielded-extras-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: rgba(196, 181, 253, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease;
}

.pse-shielded-extras-toggle:hover {
  color: rgba(233, 223, 248, 1);
}

.pse-shielded-extras-toggle:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.pse-shielded-extras-toggle__chevron {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.pse-shielded-extras-toggle__chevron--open {
  transform: rotate(180deg);
}

.pse-shielded-extras-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(130, 115, 165, 0.2);
}

.pse-shielded-extras-panel__privacy {
  margin: 0 0 8px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(196, 181, 253, 0.82);
}

.pse-tx-details-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.pse-tx-details-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-4);
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.pse-tx-details-row span:first-child {
  min-width: 0;
}

.pse-tx-details-row span:last-child {
  color: #fff;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

@media (max-width: 639px) {
  .pse-tx-details-breakdown .pse-tx-details-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .pse-tx-details-breakdown .pse-tx-details-row span:last-child {
    justify-self: start;
    text-align: left;
  }
}

.pse-swap-tagline {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  max-width: 380px;
  margin: 8px auto 0;
  padding: 0 16px;
}

.pse-pools-empty {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
}

.pse-pools-empty-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: grayscale(0.2);
}

.pse-pools-empty-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: #fff;
}

.pse-pools-empty-body {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto 16px;
}

.pse-pools-empty-cta {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
}

.pse-pools-empty-cta:hover {
  text-decoration: underline;
}

.pse-liquidity-preview-banner {
  margin: 0 !important;
  text-align: left;
  font-size: 0.88rem;
}

.pse-bridge-hero {
  border: 1px solid var(--color-card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  background: rgba(19, 27, 42, 0.92);
}

.pse-bridge-hero-lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.45;
}

.pse-bridge-chain-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pse-bridge-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.pse-bridge-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pse-bridge-status-pill {
  font-size: 0.72rem !important;
}

.pse-bridge-start-btn {
  border: none;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}

.pse-bridge-start-btn:hover {
  text-decoration: underline;
}

.pse-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 12px !important;
  color: rgba(176, 176, 192, 0.95) !important;
  padding: 20px 24px !important;
}

.pse-footer-left {
  justify-self: start;
  text-align: left;
}

.pse-footer-center {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
  color: rgba(176, 176, 192, 0.92) !important;
}

.pse-footer-right {
  justify-self: end;
}

.pse-footer-sep {
  color: rgba(176, 176, 192, 0.45);
  margin: 0 6px;
}

.footer-links.pse-footer-right a {
  color: rgba(196, 196, 214, 0.98);
  text-decoration: none;
}

.footer-links.pse-footer-right a:hover {
  color: #fff;
  text-decoration: underline;
}

.pse-testnet-strip {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(6, 13, 26, 0.65);
  border-bottom: 1px solid rgba(251, 146, 60, 0.35);
  padding: 6px 16px;
}

.pse-testnet-strip__plain {
  color: rgba(255, 255, 255, 0.92);
}

.pse-testnet-strip__accent {
  color: #fb923c;
  font-weight: 700;
}

@media (max-width: 900px) {
  .pse-footer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .pse-footer-left,
  .pse-footer-right {
    justify-self: center;
    text-align: center;
  }
  .pse-footer-center {
    white-space: normal;
  }
}

.token-logo-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
}

.token-logo-circle--image {
  border-color: rgba(255, 255, 255, 0.12);
}

.token-symbol-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.token-chevron {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 2px;
}

.token-selector-btn {
  min-height: 44px;
  border: 1px solid var(--border);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.token-selector-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.token-balance-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 2px;
}

.token-balance-inline {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.token-amount-hint {
  margin: 6px 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(147, 197, 253, 0.92);
}

.token-usd-estimate {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: -4px;
  padding-left: 2px;
}

.amount-input--empty {
  font-size: 28px !important;
}

.amount-input--filled {
  font-size: 24px !important;
}

.swap-direction-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e8ecff !important;
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease !important;
}

.swap-direction-btn:hover:not(:disabled) {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Token registry UI: icon + selector dropdown */

.token-icon-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  color: white;
  position: relative;
  font-size: calc(var(--icon-size, 28px) * 0.42);
  user-select: none;
  box-sizing: border-box;
  transition:
    opacity var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.token-icon-circle--svg {
  background: var(--surface-glass) !important;
  border: 1px solid var(--stroke);
}

.token-icon-circle__img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
}

.token-icon-fallback {
  font-weight: 700;
  font-size: calc(var(--icon-size, 32px) * 0.36);
  color: var(--text-soft);
  line-height: 1;
}

.token-icon-circle--dim {
  opacity: var(--dim-opacity);
  filter: var(--dim-filter);
}

/* Shielded swap: monochrome token art (full-bleed circle PNG). */

.token-icon-circle--shielded-bw {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.token-icon-circle--shielded-bw .token-icon-circle__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-selector-dropdown .token-icon-circle--shielded-bw {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Shielded swap: NIGHT / unknown — Midnight mark on light circle (same geometry as route toggle). */

.token-icon-circle--midnight-mark {
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.token-selector-dropdown .token-icon-circle--midnight-mark {
  background: rgba(255, 255, 255, 0.92) !important;
}

.chain-icon-circle {
  width: var(--chain-icon-size, 32px);
  height: var(--chain-icon-size, 32px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-glass);
  border: 1px solid var(--stroke);
  box-sizing: border-box;
  transition:
    opacity var(--dur) var(--ease),
    filter var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.chain-icon-circle--dim {
  opacity: var(--dim-opacity);
  filter: var(--dim-filter);
}

.chain-icon-circle--accent-ring {
  box-shadow: 0 0 0 2px var(--chain-accent, var(--primary));
}

.chain-icon-circle__img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
}

.wallet-icon-wrap {
  width: var(--wallet-icon-size, 40px);
  height: var(--wallet-icon-size, 40px);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--stroke);
  background: var(--surface-glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wallet-icon-wrap__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.token-icon-glyph {
  line-height: 1;
}

.token-icon-shield-badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(10, 22, 40, 0.85);
}

.token-icon-shield-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.token-selector-root {
  position: relative;
}

.token-selector-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease;
}

.token-selector-trigger:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.token-selector-trigger:disabled {
  opacity: 0.65;
  cursor: default;
}

.token-selector-trigger-label {
  min-width: 2.5rem;
  text-align: left;
}

.token-selector-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: #0f1b2d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  animation: dropdownFadeIn 150ms ease;
}

.token-selector-dropdown--portal {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  max-height: min(52vh, 380px);
  z-index: 12050 !important;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  box-sizing: border-box;
}

.token-selector-dropdown--portal .token-selector-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(44vh, 320px);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.token-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 6px;
  outline: none;
  box-sizing: border-box;
}

.token-selector-list {
  max-height: 280px;
  overflow-y: auto;
}

.token-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 100ms ease;
}

.token-option:hover,
.token-option--highlight {
  background: rgba(255, 255, 255, 0.06);
}

.token-option--selected {
  background: rgba(107, 63, 160, 0.15);
}

.token-option--empty {
  cursor: default;
  color: var(--muted);
  font-size: 0.85rem;
}

.token-option-mid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.token-option-symbol {
  font-weight: 700;
  font-size: 0.9rem;
}

.token-option-name {
  font-size: 0.72rem;
  color: var(--muted);
}

.token-chain-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  opacity: 0.9;
  white-space: nowrap;
}

.chain-pill--cardano {
  background: var(--chain-cardano);
}

.chain-pill--ethereum {
  background: var(--chain-ethereum);
}

.chain-pill--solana {
  background: var(--chain-solana);
}

.chain-pill--bnb {
  background: var(--chain-bnb);
}

.chain-pill--midnight {
  background: var(--chain-midnight);
}

/* Route mode toggle: chain strips */

.route-chain-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  min-height: 36px;
}

.route-chain-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 36px;
}

.route-chain-strip__label {
  font: var(--font-label-xs);
  color: var(--muted);
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pse-mode-hero-seg--active-public .route-chain-strip__label {
  color: rgba(10, 22, 40, 0.55);
}

.pse-mode-hero-seg--active-private .route-chain-strip__label {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 479px) {
  .route-chain-strip__label {
    display: none;
  }
}

/* Shielded segment: circular monochrome chain badges (PNG) */

.shielded-chain-badge-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 10px;
  margin-top: var(--sp-2);
  min-height: 36px;
}

.shielded-chain-badge-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 36px;
}

.shielded-chain-badge-strip__item--dim {
  opacity: 0.38;
  filter: grayscale(0.35);
}

/* No extra ring — logos are full circular marks */

.shielded-chain-badge-strip__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.shielded-chain-badge-strip__img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* Shielded strip only: dark PNGs — multiply seats white poster edges on the purple track */

.shielded-chain-badge-strip--png-badges .shielded-chain-badge-strip__img {
  mix-blend-mode: multiply;
}

.shielded-chain-badge-strip__label {
  font: var(--font-label-xs);
  color: rgba(255, 255, 255, 0.7);
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.pse-mode-hero-seg--active-private .shielded-chain-badge-strip__label {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 479px) {
  .shielded-chain-badge-strip {
    gap: 6px 8px;
  }

  .shielded-chain-badge-strip__img {
    width: 20px;
    height: 20px;
  }

  .shielded-chain-badge-strip__label {
    font-size: 10px;
    max-width: 44px;
  }
}

.shielded-chain-badge-strip__hint {
  font: var(--font-label-xs);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 52px;
  text-align: center;
  line-height: 1.2;
}

.ura-dev-fast-path-pill {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: rgba(253, 224, 71, 0.95);
  background: rgba(120, 53, 15, 0.25);
  margin-left: 6px;
}

.pse-dev-fast-path-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(120, 53, 15, 0.35);
  color: rgba(253, 224, 71, 0.98);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pse-dev-fast-path-banner--compact {
  margin-bottom: 8px;
  padding: 8px 10px;
  font-size: 0.68rem;
}

.ura-preprod-workflow-preview {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: rgba(15, 23, 42, 0.55);
}

.ura-preprod-workflow-preview--compact {
  margin-top: 10px;
  padding: 10px 12px;
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(15, 23, 42, 0.35);
}

.ura-preprod-workflow-preview__compact-lead {
  margin: 0 0 10px;
  font-size: 0.76rem;
  line-height: 1.4;
  opacity: 0.88;
}

.ura-preprod-workflow-preview__collapsible {
  margin-top: 8px;
  font-size: 0.74rem;
}

.ura-preprod-workflow-preview__collapsible > summary {
  cursor: pointer;
  opacity: 0.9;
  user-select: none;
  padding: 4px 0;
}

.ura-preprod-workflow-preview__timeline--compact {
  margin: 8px 0 0;
}

.ura-preprod-workflow-preview__timeline-open {
  margin-top: 10px;
}

.ura-preprod-workflow-preview__timeline-heading {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 6px;
}

.ura-preprod-workflow-preview__loading {
  margin: 0 0 8px;
  font-size: 0.74rem;
  opacity: 0.85;
}

.ura-preprod-workflow-preview__banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(120, 53, 15, 0.2);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(253, 230, 138, 0.95);
}

.ura-preprod-tester-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(130, 115, 165, 0.22);
  background: rgba(105, 95, 140, 0.1);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(210, 205, 225, 0.88);
}

.ura-preprod-tester-notice__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ura-preprod-tester-notice--collapsed .ura-preprod-tester-notice__header {
  margin-bottom: 0;
}

.ura-preprod-tester-notice__toggle {
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
}

.ura-preprod-tester-notice--collapsed .ura-preprod-tester-notice__toggle {
  color: #fb923c;
  opacity: 1;
}

.ura-preprod-tester-notice__list {
  margin: 0;
  padding-left: 1.1rem;
}

.ura-preprod-tester-notice__list li {
  margin-bottom: 4px;
}

.ura-preprod-api-warmup-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.875rem;
  line-height: 1.45;
}

.ura-boot-module-status {
  margin: 12px 0 0;
  font-size: 0.8rem;
  opacity: 0.75;
  text-align: center;
}

.ura-demo-advanced-verification {
  margin-top: 12px;
}

.ura-demo-advanced-verification__toggle {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
}

.ura-demo-advanced-verification__body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.ura-preprod-workflow-preview__advanced {
  margin-top: 8px;
}

.ura-preprod-workflow-preview__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ura-preprod-workflow-preview__pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: rgba(167, 243, 208, 0.95);
  background: rgba(6, 78, 59, 0.25);
}

.ura-preprod-workflow-preview__pill--muted {
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.9);
  background: rgba(30, 41, 59, 0.45);
}

.ura-preprod-workflow-preview__pill--warn {
  border-color: rgba(251, 191, 36, 0.35);
  color: rgba(253, 224, 71, 0.95);
  background: rgba(120, 53, 15, 0.25);
}

.ura-preprod-workflow-preview__lead {
  margin: 0 0 12px;
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.45;
}

.ura-preprod-workflow-preview__timeline {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.ura-preprod-workflow-preview__step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ura-preprod-workflow-preview__step:last-child {
  border-bottom: none;
}

.ura-preprod-workflow-preview__step--pending {
  background: rgba(30, 41, 59, 0.35);
  border-radius: 8px;
  padding: 8px;
  margin: 2px 0;
}

.ura-preprod-workflow-preview__step-glyph {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  opacity: 0.85;
}

.ura-preprod-workflow-preview__step-detail {
  margin: 6px 0 0;
  font-size: 0.72rem;
  opacity: 0.88;
  line-height: 1.45;
}

.ura-preprod-workflow-preview__error {
  color: rgba(248, 113, 113, 0.95);
  font-size: 0.75rem;
}

.ura-wada-preview-card {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 78, 59, 0.12);
}

.ura-wada-preview-card--compact {
  margin: 0 0 8px;
  padding: 10px 12px;
}

.ura-wada-preview-card--compact .ura-wada-preview-card__title {
  margin: 0 0 8px;
  font-size: 0.84rem;
}

.ura-wada-preview-card--compact .ura-wada-preview-card__grid {
  gap: 6px 10px;
  font-size: 0.72rem;
}

.ura-wada-preview-card__span {
  grid-column: 1 / -1;
}

.ura-wada-preview-card__kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.ura-wada-preview-card__title {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 4px 0 10px;
}

.ura-wada-preview-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.74rem;
}

.ura-wada-preview-card__grid dt {
  opacity: 0.7;
  font-weight: 500;
}

.ura-wada-preview-card__grid dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.ura-wada-preview-card__note {
  margin: 10px 0 0;
  font-size: 0.72rem;
  opacity: 0.85;
}

.ura-demo-honesty {
  margin-top: 12px;
}

.ura-demo-honesty__toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  color: inherit;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.ura-demo-honesty__list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.74rem;
  line-height: 1.5;
  opacity: 0.92;
}

.ura-demo-controls {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.ura-demo-controls__label {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.85;
}

.ura-demo-controls__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-status-chip {
  font: var(--font-label-xs);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--badge-coming-fg);
  background: var(--badge-coming-bg);
}

.route-status-chip--testnet {
  color: var(--badge-limited-fg);
  background: var(--badge-limited-bg);
  border-color: transparent;
}

.route-status-chip--live {
  color: var(--badge-available-fg);
  background: var(--badge-available-bg);
  border-color: transparent;
}

.pse-mode-hero-seg-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.pse-mode-hero-icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.pse-mode-hero-icon--svg svg {
  width: 22px;
  height: 22px;
  display: block;
}

.token-shielded-caption {
  font-size: 11px;
  color: rgba(155, 89, 182, 0.8);
  margin-top: 6px;
  padding-left: 2px;
}

.pse-private-bridge-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.pse-private-bridge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  opacity: 0.75;
}

.pse-private-bridge-pill.chain-pill--cardano {
  background: #000;
  color: #fff;
  opacity: 1;
}

.pse-private-bridge-text {
  flex: 1;
  min-width: 0;
}

.pse-private-bridge-hint--shielded {
  margin: 6px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(130, 115, 165, 0.28);
  background: rgba(105, 95, 140, 0.16);
}

.pse-private-bridge-wrap-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(196, 181, 253, 0.95);
  white-space: nowrap;
}

.pse-shield-readiness-strip {
  font-size: 0.74rem;
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.35);
}

.pse-shield-readiness-strip--all-green {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.18);
}

.pse-shield-readiness-strip-summary {
  cursor: pointer;
  font-weight: 600;
  opacity: 0.95;
  list-style: none;
}

.pse-shield-readiness-strip-summary::-webkit-details-marker {
  display: none;
}

.pse-shield-readiness-strip-body {
  margin-top: 8px;
}

.app-shell--private-swap .pse-swap-cta-sticky {
  position: sticky;
  bottom: 0;
  z-index: 40;
}

.token-input .token-selector-root {
  margin-left: auto;
}

.token-input-header .token-selector-trigger {
  margin-left: 8px;
}

/* WS5/WS6 — privacy + Preprod/demo context labels */

.ura-shielded-context-labels {
  margin: 6px 0 10px;
}

.ura-shielded-context-labels--compact {
  margin: 4px 0 8px;
}

.ura-shielded-context-labels__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ura-shielded-context-labels__pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.ura-shielded-context-labels--compact .ura-shielded-context-labels__pill {
  font-size: 0.62rem;
  padding: 2px 7px;
}

.ura-shielded-context-labels__pill--privacy {
  color: rgba(196, 181, 253, 0.98);
  background: rgba(155, 89, 182, 0.18);
  border: 1px solid rgba(155, 89, 182, 0.35);
}

.ura-shielded-context-labels__pill--env {
  color: rgba(226, 232, 240, 0.95);
  background: rgba(51, 65, 85, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.ura-shielded-context-labels__pill--proof-strict {
  color: rgba(52, 211, 153, 0.98);
  background: rgba(6, 78, 59, 0.28);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.ura-shielded-context-labels__pill--proof-demo {
  color: rgba(251, 191, 36, 0.98);
  background: rgba(120, 53, 15, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.ura-shielded-context-labels__pill--proof-pending {
  color: rgba(148, 163, 184, 0.95);
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.ura-shielded-context-labels__helper {
  margin: 6px 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0.72;
}

.ura-shielded-context-labels--compact .ura-shielded-context-labels__helper {
  font-size: 0.62rem;
  margin-top: 4px;
}

.swap-route-card--compact .ura-shielded-context-labels {
  margin: 2px 0 6px;
}

