:root {
  color-scheme: light;
  --bg: #eef3f8;
  --bg-accent: radial-gradient(circle at top left, rgba(0, 87, 255, 0.18), transparent 38%), radial-gradient(circle at top right, rgba(39, 195, 162, 0.12), transparent 32%), linear-gradient(180deg, #f9fbfd 0%, #edf2f7 100%);
  --card: rgba(255, 255, 255, 0.9);
  --card-border: rgba(15, 41, 78, 0.08);
  --text: #10233f;
  --muted: #58677d;
  --accent: #0057ff;
  --accent-soft: rgba(0, 87, 255, 0.08);
  --danger: #b43b2c;
  --danger-soft: rgba(210, 79, 54, 0.08);
  --success-soft: rgba(27, 137, 106, 0.09);
  --shadow: 0 24px 80px rgba(16, 35, 63, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-accent);
}

button,
a {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  width: stretch;
  color: inherit;
  text-decoration: none;
  padding: 18px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 44px rgba(16, 35, 63, 0.08);
  backdrop-filter: blur(20px);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2b60, #0057ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand__mark svg {
  width: 32px;
  height: 32px;
}

.brand__name,
h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.brand__name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand__caption {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__copy {
  padding: 8px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  line-height: 0.96;
  max-width: 11ch;
}

.hero__copy p {
  max-width: 58ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  flex: 1 1 auto;
  transition: grid-template-columns 0.35s ease, gap 0.35s ease;
}

.workspace--focused {
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  align-content: center;
  justify-items: center;
  padding: 24px clamp(20px, 4vw, 40px) 40px;
}

.info-panel,
.flow-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.info-panel {
  padding: 24px;
  position: sticky;
  top: 20px;
  overflow: hidden;
  max-width: 320px;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: max-width 0.35s ease, padding 0.35s ease, opacity 0.25s ease, transform 0.35s ease, border-color 0.25s ease;
}

.info-panel--hidden {
  max-width: 0;
  padding: 24px 0;
  opacity: 0;
  transform: translateX(-18px) scale(0.98);
  border-color: transparent;
  pointer-events: none;
}

.info-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 255, 0.15), transparent 68%);
  pointer-events: none;
}

.info-panel__section + .info-panel__section {
  margin-top: 28px;
}

.info-panel h2 {
  margin: 10px 0 10px;
  font-size: 1.5rem;
}

.info-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.chain-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.chain-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 41, 78, 0.06);
}

.chain-list__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.flow-stack {
  min-width: 0;
  transition: transform 0.35s ease, width 0.35s ease;
}

.flow-stack--expanded {
  width: min(100%, 820px);
  margin: 0 auto;
}

.flow-screen[hidden] {
  display: none !important;
}

.flow-card {
  padding: 28px;
}

.flow-card--status {
  padding: 36px;
}

.flow-card--status .eyebrow {
  margin-bottom: 14px;
}

.flow-card--status h2 {
  margin: 0 0 14px;
}

.flow-card--status .flow-card__lead {
  margin-bottom: 26px;
}

.flow-card--status .status-card {
  margin-bottom: 24px;
}

.flow-card__header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.flow-card__meta,
.flow-card__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.asset-grid,
.wallet-grid,
.metrics {
  display: grid;
  gap: 14px;
}

.asset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.wallet-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.asset-option,
.wallet-option,
.selection-pill,
.status-card {
  border: 1px solid rgba(15, 41, 78, 0.08);
  background: #fff;
  border-radius: var(--radius-lg);
}

.asset-option,
.wallet-option {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.asset-option:hover,
.wallet-option:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 87, 255, 0.28);
  box-shadow: 0 16px 36px rgba(0, 87, 255, 0.08);
}

.asset-option.active {
  border-color: rgba(0, 87, 255, 0.48);
  background: linear-gradient(180deg, rgba(0, 87, 255, 0.06), rgba(255, 255, 255, 0.96));
  box-shadow: 0 20px 44px rgba(0, 87, 255, 0.12);
}

.asset-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.asset-option__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.asset-option__title,
.selection-pill__title,
.status-card__title,
.wallet-option__title {
  font-weight: 800;
}

.asset-option__desc,
.selection-pill__desc,
.status-card__desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.asset-option__tag {
  margin-left: auto;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-option__icon-wrap,
.selection-pill__icon-wrap {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  width: 58px;
  height: 58px;
}

.asset-option__icon-wrap--tron,
.selection-pill__icon-wrap--tron {
  background: rgba(250, 67, 63, 0.12);
}

.asset-option__icon-wrap--eth,
.selection-pill__icon-wrap--eth {
  background: rgba(89, 100, 248, 0.12);
}

.asset-option__icon-wrap--bsc,
.selection-pill__icon-wrap--bsc {
  background: rgba(240, 185, 11, 0.12);
}

.asset-option__icon-wrap--ton,
.selection-pill__icon-wrap--ton {
  background: rgba(0, 136, 255, 0.12);
}

.asset-option__icon,
.selection-pill__icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.selection-pill,
.status-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
}

.selection-pill--active {
  background: linear-gradient(180deg, rgba(0, 87, 255, 0.04), rgba(255, 255, 255, 0.98));
}

.wallet-option {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 22px 18px;
}

.wallet-option__icon,
.status-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: contain;
}

.status-card__body {
  min-width: 0;
  flex: 1 1 auto;
}

.status-card__action {
  flex: 0 0 auto;
  min-width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.status-card__pending {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0057ff, #2d79ff);
  box-shadow: 0 16px 30px rgba(0, 87, 255, 0.22);
}

.btn-primary:disabled,
.btn-disabled {
  color: #72839b;
  background: #e3eaf2;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost {
  color: var(--danger);
  background: var(--danger-soft);
}

.btn-secondary {
  color: var(--text);
  background: rgba(16, 35, 63, 0.06);
}

.button-row {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  gap: 12px;
  margin-top: 18px;
}

.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 87, 255, 0.08);
  color: var(--text);
  line-height: 1.6;
}

.notice--success {
  background: var(--success-soft);
}

.notice--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.flow-card--danger {
  border-color: rgba(180, 59, 44, 0.12);
  background: linear-gradient(180deg, rgba(210, 79, 54, 0.05), rgba(255, 255, 255, 0.95));
}

.flow-card--success {
  border-color: rgba(27, 137, 106, 0.14);
  background: linear-gradient(180deg, rgba(27, 137, 106, 0.05), rgba(255, 255, 255, 0.95));
}

.percent {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #0b7b69;
}

.metric {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(246, 249, 252, 0.96);
  border: 1px solid rgba(15, 41, 78, 0.05);
}

.metric__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.metric__bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.08);
}

.metric__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.processing-orb {
  width: 112px;
  height: 112px;
  margin: 28px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(0, 87, 255, 0.22) 30%, rgba(0, 87, 255, 0.95) 68%, rgba(10, 30, 67, 0.96));
  box-shadow: 0 0 0 16px rgba(0, 87, 255, 0.05), 0 22px 48px rgba(0, 87, 255, 0.2);
  animation: pulse 1.8s ease-in-out infinite;
}

.loader--ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0, 87, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.status-check {
  display: none;
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.page-footer {
  padding: 18px 8px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.workspace--focused + .page-footer {
  padding-top: 10px;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 960px) {
  .hero,
  .workspace,
  .flow-card__header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .flow-card__header {
    display: grid;
    align-items: start;
  }

  .info-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .info-panel {
    display: none;
  }

  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .workspace--focused {
    padding: 12px 0 28px;
  }

  .flow-stack--expanded {
    width: min(100%, 680px);
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .info-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .flow-card--status {
    padding: 24px;
  }

  .hero__copy h1 {
    max-width: none;
  }

  .asset-option {
    align-items: start;
    flex-wrap: wrap;
  }

  .asset-option__tag {
    margin-left: 74px;
  }

  .status-card {
    align-items: start;
    flex-wrap: wrap;
  }

  .status-card__action {
    min-width: 0;
    justify-content: start;
  }

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