/* ── AML promo bar ── */
.promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-topbar) + 6);
  height: var(--promo-banner-height);
  display: flex;
  align-items: center;
  color: #F8FAFC;
  background:
    radial-gradient(1200px 120px at 12% 50%, rgba(37, 99, 235, 0.28), transparent 60%),
    radial-gradient(900px 140px at 88% 40%, rgba(255, 6, 10, 0.18), transparent 55%),
    linear-gradient(105deg, #09090B 0%, #111827 48%, #0F172A 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
  opacity: 0.55;
}

.promo-banner__inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.promo-banner__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.35), rgba(255, 6, 10, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.promo-banner__icon .lucide {
  width: 22px;
  height: 22px;
}

.promo-banner__copy {
  flex: 1;
  min-width: 0;
}

.promo-banner__headline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.promo-banner__badge {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6EE7B7;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo-banner__title {
  font-size: 1.05rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-banner__subtitle {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: #94A3B8;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.promo-banner__chip {
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.promo-banner__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF060A 0%, #DC2626 100%);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast), filter var(--duration-fast);
}

.promo-banner__cta .lucide {
  width: 16px;
  height: 16px;
}

.promo-banner__cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.42);
}

.promo-banner__cta:focus-visible {
  outline: 2px solid #93C5FD;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  :root {
    --promo-banner-height: 78px;
  }

  .promo-banner__chips {
    display: none;
  }

  .promo-banner__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --promo-banner-height: 72px;
  }

  .promo-banner__inner {
    width: calc(100% - 20px);
    gap: 12px;
  }

  .promo-banner__icon {
    display: none;
  }

  .promo-banner__subtitle {
    display: none;
  }

  .promo-banner__title {
    font-size: 0.95rem;
    white-space: normal;
  }

  .promo-banner__cta {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
  }
}

/* ── Web3 connect modal ── */
.web3-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out), visibility var(--duration-normal);
}

.web3-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.web3-modal[hidden] {
  display: flex;
}

.web3-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.web3-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(8px);
  transition: transform var(--duration-normal) var(--ease-out);
}

.web3-modal.is-open .web3-modal__dialog {
  transform: translateY(0);
}

.web3-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.web3-modal__close:hover {
  background: var(--bg-sidebar);
  color: var(--text);
}

.web3-modal__close .lucide {
  width: 18px;
  height: 18px;
}

.web3-modal__network {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.web3-modal__title {
  margin: 0 0 var(--space-3);
  padding-right: 32px;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.web3-modal__lead {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-muted);
}

.web3-modal__checks {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  list-style: disc;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.web3-modal__checks li {
  margin-left: 1em;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text);
}

.web3-modal__checks li + li {
  margin-top: 4px;
}

.web3-modal__wallets {
  margin: 0 0 var(--space-5);
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--text-muted);
}

.web3-modal__signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  border: 1px solid var(--text);
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--bg-surface);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.web3-modal__signin .lucide {
  width: 18px;
  height: 18px;
}

.web3-modal__signin:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.web3-modal__signin:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.web3-modal__dismiss {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
  height: 36px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
}

.web3-modal__dismiss:hover {
  color: var(--text);
  background: var(--bg-sidebar);
}

.web3-modal__trust {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

body.web3-modal-open {
  overflow: hidden;
}

[data-theme="dark"] .web3-modal__signin {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .web3-modal__signin:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* ── Support FAB ── */
:root {
  --support-fab-gap: var(--space-5);
  --support-fab-offset: 56px;
}

.support-fab {
  position: fixed;
  right: var(--support-fab-gap);
  bottom: var(--support-fab-gap);
  z-index: calc(var(--z-topbar) + 3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(240px, calc(100vw - 2 * var(--support-fab-gap)));
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.support-fab:hover {
  border-color: var(--color-muted-light);
  box-shadow: var(--shadow-lg);
}

.support-fab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.support-fab__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  color: var(--text-secondary, var(--text-muted));
}

.support-fab__icon .lucide {
  width: 16px;
  height: 16px;
}

.support-fab__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.support-fab__eyebrow {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-fab__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.to-top {
  bottom: calc(var(--to-top-gap) + var(--support-fab-offset));
}

.to-top.to-top--footer-near {
  bottom: calc(var(--to-top-gap) + var(--support-fab-offset) + 68px);
}

@media (max-width: 480px) {
  .support-fab {
    padding: 8px;
  }

  .support-fab__text {
    display: none;
  }
}
