:root {
  --bg: #0d0d0d;
  --surface: #131313;
  --surface3: #1b1b1b;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #9b9b9b;
  --accent: #ff007a;
  --accent-hover: #ff4a9d;
  --accent-pink-glow: rgba(255, 55, 199, 0.42);
  --hero-surface: #161618;
  --warn-bg: #1a1708;
  --warn-border: #3d3514;
  --warn-icon: #f5d90a;
  --ok-bg: #0f1a12;
  --ok-border: #1f3d28;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --font: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

.page {
  min-height: 100vh;
  padding: 1.15rem clamp(0.75rem, 3vw, 2.25rem) 2rem;
}

.shell {
  max-width: 420px;
  margin: 0 auto;
  padding-top: 8vh;
}

.card {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.card--wide {
  margin-top: 1.5rem;
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.wallet-icon {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack.center {
  align-items: center;
}

.gap-form {
  gap: 1rem;
  width: 100%;
  margin-top: 0.25rem;
}

.headline {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 32ch;
}

/* --- Login --- */
.page:has(.login-view) {
  position: relative;
  overflow-x: hidden;
}

.page:has(.login-view) .flash-stack {
  position: relative;
  z-index: 2;
}

.login-view {
  position: relative;
  z-index: 1;
  min-height: min(100vh, 56rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(0.75rem, 3vw, 1.5rem);
}

.login-view__ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;
  z-index: 0;
}

.login-view__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.42;
  transform: translateZ(0);
}

/* Nearly neutral vignettes — no pink / blue wash */
.login-view__blob--a {
  width: max(55vw, 28rem);
  height: max(55vw, 28rem);
  max-width: none;
  top: -18%;
  right: -12vw;
  opacity: 0.32;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 42%,
    transparent 68%
  );
}

.login-view__blob--b {
  width: max(65vw, 32rem);
  height: max(65vw, 32rem);
  max-width: none;
  bottom: -22%;
  left: -18vw;
  opacity: 0.22;
  background: radial-gradient(
    circle at 68% 55%,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.015) 48%,
    transparent 72%
  );
}

.login-view__gridlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  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: 48px 48px;
  background-position: center;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 0%, transparent 78%);
}

.login-view__layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 860px) {
  .login-view__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem 2.5rem;
  }
}

.login-view__brand {
  padding-right: clamp(0, 2vw, 1rem);
}

.login-view__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-view__mark-svg {
  width: 1.55rem;
  height: 1.55rem;
}

.login-view__title {
  margin: 0 0 0.85rem;
  font-family: "Outfit", var(--font);
  font-size: clamp(2.35rem, 6vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #fff;
}

.login-view__lede {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
  max-width: 28rem;
}

.login-view__panel {
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 20px;
  background: rgba(12, 12, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

@supports not (backdrop-filter: blur(12px)) {
  .login-view__panel {
    background: rgba(18, 18, 20, 0.96);
  }
}

.login-view__alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 217, 10, 0.28);
  background: rgba(245, 217, 10, 0.07);
}

.login-view__alert-icon {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--warn-icon);
  background: rgba(245, 217, 10, 0.12);
}

.login-view__alert-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 248, 220, 0.95);
  margin-bottom: 0.2rem;
}

.login-view__alert-msg {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.login-view__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-view__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.login-view__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.login-view__input {
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.login-view__input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.login-view__input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.login-view__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.5);
}

.login-view__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.78rem 1.25rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111111;
  background: #ebebeb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    filter 0.12s ease;
}

.login-view__submit:hover {
  filter: brightness(1.04);
  background: #f5f5f5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.login-view__submit:active {
  transform: translateY(1px);
}

.login-view__submit svg {
  opacity: 0.85;
}

.login-view__fineprint {
  margin: 1.1rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  width: 100%;
}

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

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  opacity: 0.92;
}

/* App shell: nav + account top-right */
.app-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3vw, 2.25rem) 1rem;
}

.app-topbar__nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.app-topbar .nav-wrap {
  padding: 0;
}

.account-chip {
  flex: 0 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  max-width: min(100%, 16rem);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface3);
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.25;
  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}

.account-chip:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.account-chip__name {
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

.account-chip__sep {
  color: var(--muted);
  opacity: 0.75;
  user-select: none;
}

.account-chip__bal {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.account-chip:hover .account-chip__bal {
  color: var(--text);
}

@media (max-width: 520px) {
  .app-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .app-topbar__nav {
    justify-content: center;
  }

  .account-chip {
    justify-content: center;
    max-width: none;
  }

  .account-chip__name {
    max-width: none;
  }
}

.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.12s ease;
}

.input:focus {
  border-color: var(--accent);
}

.btn-row {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.1s cubic-bezier(0.17, 0.67, 0.45, 1), background 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn--primary:disabled {
  opacity: 0.38;
  filter: saturate(0.65) brightness(0.88);
  box-shadow: none;
}

.btn--primary {
  flex: 1;
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  flex: 1;
  background: var(--surface3);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: #444;
}

.btn--sm {
  flex: unset;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.footnote {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto 1.5rem;
}

.page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 780px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.card-desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 960px;
  margin: 0 auto 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface3);
}

.toast--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.toast--success {
  background: var(--ok-bg);
  border-color: var(--ok-border);
}

.toast-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--warn-icon);
  font-size: 0.9rem;
}

.toast-icon--ok {
  color: #7dffb1;
}

.toast-title {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.toast-msg {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.copy-block code {
  display: block;
  margin-top: 0.35rem;
  padding: 0.5rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  word-break: break-all;
  color: var(--text);
  font-size: 0.82rem;
}

.token-meta {
  margin-top: 1rem;
}

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

/* Flash messages: fixed top-right fading toasts */
.flash-stack {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 10050;
  width: min(22rem, calc(100vw - 1.5rem));
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  pointer-events: none;
}

.flash-stack .flash-toast {
  pointer-events: auto;
  margin: 0;
  max-width: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 1rem 0.52rem 0.85rem;
  border-radius: 999px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: flash-toast-life 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.flash-stack .flash-toast.toast--success {
  background: #0a1610;
  border: 1px solid #1a4a2a;
}

.flash-stack .flash-toast.toast--success .toast-msg--flash {
  color: #9ee0d4;
  font-weight: 500;
}

.flash-stack .flash-toast.toast--warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
}

.flash-stack .flash-toast.toast--warn .toast-msg--flash {
  color: #e8d89a;
  font-weight: 500;
}

.flash-stack .toast-body--flash {
  flex: 1;
  min-width: 0;
}

.flash-stack .toast-msg--flash {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.flash-stack .toast-icon--flash {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

@keyframes flash-toast-life {
  0% {
    opacity: 0;
    transform: translateX(0.65rem) scale(0.98);
  }
  7% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  82% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(0.4rem) scale(0.99);
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash-stack .flash-toast {
    animation: flash-toast-life-reduced 5s ease forwards;
  }

  @keyframes flash-toast-life-reduced {
    0%,
    88% {
      opacity: 1;
      transform: none;
      visibility: visible;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }
}

.layout {
  display: grid;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(260px, 320px) 1fr;
    align-items: start;
  }
}

.aside .sticky {
  position: sticky;
  top: 1rem;
}

.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.card-title--sm {
  font-size: 1rem;
  margin-top: 0;
}

.lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.send-block {
  background: rgba(27, 27, 27, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 0.55rem 0.45rem;
  margin-bottom: 0.35rem;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.send-block:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(30, 30, 32, 0.85);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.send-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.send-hint {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

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

.send-chev {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

details[open] .send-chev {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.tight-desc {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.inline-send {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.input--flex {
  flex: 1 1 180px;
  min-width: 0;
}

.input--mid {
  flex: 1 1 140px;
  min-width: 0;
}

.gap-form.tight {
  gap: 0.5rem;
}

.small {
  font-size: 0.8rem;
}

.api-hint {
  margin-top: 1.5rem;
}

.api-hint code {
  font-size: 0.78rem;
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text);
}

/* --- Oval top nav --- */
.nav-wrap {
  display: flex;
  justify-content: center;
  padding: 0 0.5rem 1.5rem;
}

.nav-oval {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 3px;
  padding: 5px 6px;
  background: linear-gradient(
    165deg,
    rgba(44, 44, 46, 0.98) 0%,
    var(--surface3) 45%,
    #141414 100%
  );
  border: 1px solid var(--border);
  border-radius: 9999px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: calc(100vw - 2rem);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    transform 0.1s cubic-bezier(0.17, 0.67, 0.45, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill:active {
  transform: scale(0.98);
}

.nav-pill.is-active {
  color: #fff;
  background: var(--accent);
  border-color: rgba(255, 0, 122, 0.4);
  box-shadow: 0 2px 16px rgba(255, 0, 122, 0.28);
}

.nav-pill.is-active:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* --- Mailer hero (Uniswap-style panel) --- */
@keyframes mailer-emblem-in {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(28deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes mailer-emblem-in-ccw {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-26deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.mailer-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 1.35rem;
  min-height: 6.5rem;
  background: linear-gradient(
    145deg,
    var(--hero-surface) 0%,
    #1e1e22 42%,
    var(--surface3) 100%
  );
  border: 1px solid var(--border);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mailer-hero__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 0, 122, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(66, 133, 244, 0.1) 0%, transparent 42%),
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    22px 22px;
  background-position:
    0 0,
    0 0,
    0 0;
  opacity: 0.95;
}

.mailer-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mailer-hero__emblem {
  position: absolute;
  display: flex;
  color: var(--accent-pink-glow);
  opacity: 0;
  filter: drop-shadow(0 4px 20px rgba(255, 0, 122, 0.15));
}

.mailer-hero__emblem svg {
  display: block;
}

.mailer-hero__emblem--a {
  top: 0.35rem;
  left: -0.6rem;
  transform: rotate(-88deg);
  animation: mailer-emblem-in-ccw 0.42s ease-out 0.12s forwards;
}

.mailer-hero__emblem--b {
  bottom: 0.2rem;
  left: 18%;
  animation: mailer-emblem-in 0.4s ease-out 0.06s forwards;
}

.mailer-hero__emblem--c {
  top: 0.85rem;
  right: 0.75rem;
  transform: rotate(12deg);
  animation: mailer-emblem-in-ccw 0.42s ease-out 0.2s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .mailer-hero__emblem {
    animation: none !important;
    opacity: 0.45;
  }
}

.workspace-strip--hero {
  align-self: stretch;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.subnav-jump--hero {
  margin-bottom: 0.1rem;
}

.subnav-jump__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.subnav-jump__dot--g {
  background: linear-gradient(135deg, #8ab4f8, #4285f4);
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.45);
}

.subnav-jump__dot--c {
  background: linear-gradient(135deg, #6ea8ff, #0052ff);
  box-shadow: 0 0 10px rgba(0, 82, 255, 0.4);
}

.subnav-jump__count {
  margin-left: 0.15rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Mailer (compact) --- */
.workspace-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.55rem;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
}

.workspace-strip__meta {
  font-weight: 500;
}

.workspace-strip__dot {
  color: var(--muted);
  opacity: 0.7;
}

.workspace-strip__warn {
  color: #c9a227;
  font-size: 0.78rem;
}

.workspace-strip__link {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.workspace-strip__link:hover {
  text-decoration: underline;
}

.subnav-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.subnav-jump__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.subnav-jump__pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.subnav-jump__pill--g:hover {
  border-color: rgba(66, 133, 244, 0.45);
  color: #8ab4f8;
}

.subnav-jump__pill--c:hover {
  border-color: rgba(0, 82, 255, 0.5);
  color: #6ea8ff;
}

.mailer-tagline {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

/* --- Mailer: Uniswap-style provider tabs --- */
.mailer-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 22rem;
  margin: 0.15rem auto 0;
  border-bottom: 1px solid var(--border);
}

.mailer-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.5rem 0.65rem;
  margin: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.mailer-tab:hover {
  color: var(--text);
}

.mailer-tab.is-active {
  color: var(--text);
  font-weight: 600;
}

.mailer-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #fff;
}

.mailer-tab__count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mailer-tab.is-active .mailer-tab__count {
  color: var(--text);
  opacity: 0.85;
}

.mailer-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Wallet-style provider strip (Overview / Tokens / NFTs) */
.mailer-tabs--wallet {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  justify-content: flex-start;
  gap: 0 2rem;
  border-bottom: 1px solid #2a2a2a;
  background: transparent;
}

.mailer-tabs--wallet .mailer-tab {
  flex: 0 0 auto;
  padding: 0.85rem 0.15rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #888888;
}

.mailer-tabs--wallet .mailer-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.mailer-tabs--wallet .mailer-tab.is-active {
  color: #ffffff;
  font-weight: 600;
}

.mailer-tabs--wallet .mailer-tab.is-active::after {
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0;
  bottom: -1px;
  background: #ffffff;
}

.mailer-content-shell--wallet {
  margin-top: 1rem;
  background: #121212;
  border-color: #2a2a2a;
}

/* Wallet-style mail tiles (text only — no image / art area) */
.wallet-mail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

@media (min-width: 720px) {
  .wallet-mail-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.05rem;
  }
}

.wallet-mail-card {
  margin: 0;
  border-radius: 14px;
  background: #1a1a1a;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.12s ease;
}

.wallet-mail-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.wallet-mail-card[open] {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.wallet-mail-card--google[open],
.wallet-mail-card--coinbase[open] {
  border-color: rgba(255, 0, 122, 0.45);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 0, 122, 0.12);
}

.wallet-mail-card__summary {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 0;
  margin: 0;
}

.wallet-mail-card__summary::-webkit-details-marker {
  display: none;
}

.wallet-mail-card__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wallet-mail-card__head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 0.75rem 0.75rem;
}

.wallet-mail-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.wallet-mail-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #ffffff;
}

.wallet-mail-card__sub {
  font-size: 0.72rem;
  line-height: 1.4;
  color: #888888;
}

.wallet-mail-card__actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.32rem;
  margin-top: 0.12rem;
}

.wallet-mail-card__chev {
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  margin-inline: 0.1rem 0.15rem;
  border-right: 2px solid #888888;
  border-bottom: 2px solid #888888;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  opacity: 0.85;
}

.wallet-mail-card[open] .wallet-mail-card__chev {
  transform: rotate(-135deg);
}

.wallet-mail-card__body {
  padding: 0.55rem 0.65rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.wallet-mail-card__body .send-row {
  gap: 0.3rem;
}

.wallet-mail-card__body .input--grow,
.wallet-mail-card__body .input--half {
  padding: 0.42rem 0.6rem;
  font-size: 0.82rem;
}

.wallet-mail-card__body .btn--compact {
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
}

.wallet-mail-card__preview {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: flex-end;
}

.wallet-mail-card__preview .mailer-preview-btn {
  font-size: 0.76rem;
  opacity: 0.92;
}

/* In-app email template preview */
.mailer-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.mailer-preview-modal[hidden] {
  display: none !important;
}

.mailer-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mailer-preview-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100vw - 1.5rem));
  max-height: min(88vh, 900px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 0, 122, 0.35);
  background: var(--surface3);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 0, 122, 0.1);
  overflow: hidden;
}

.mailer-preview-modal__bar {
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.mailer-preview-modal__close-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.mailer-preview-modal__frame {
  flex: 1 1 auto;
  min-height: min(70vh, 640px);
  width: 100%;
  border: none;
  background: #fff;
}

.mailer-content-shell {
  scroll-margin-top: 4.5rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.028) 0%,
    rgba(19, 19, 19, 0.55) 45%,
    var(--surface) 100%
  );
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.2s ease;
}

.mailer-tabpanel[hidden] {
  display: none !important;
}

/* --- Mail type grid (NFT-style cards) --- */
.mail-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .mail-type-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 1rem;
  }
}

.mail-type-card {
  margin: 0;
  border-radius: 14px;
  background: #1a1a1a;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
}

.mail-type-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.mail-type-card[open] {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.mail-type-card--google[open],
.mail-type-card--coinbase[open] {
  border-color: rgba(255, 0, 122, 0.45);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 0, 122, 0.12);
}

.mail-type-card__summary {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 0;
  margin: 0;
}

.mail-type-card__summary::-webkit-details-marker {
  display: none;
}

.mail-type-card__art {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.55rem 0.55rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.mail-type-card--google .mail-type-card__art {
  background: linear-gradient(145deg, rgba(66, 133, 244, 0.12), rgba(19, 19, 19, 0.95));
}

.mail-type-card--coinbase .mail-type-card__art {
  background: linear-gradient(145deg, rgba(0, 82, 255, 0.18), rgba(19, 19, 19, 0.95));
}

.mail-type-card__logo {
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.mail-type-card__logo--cb {
  border-radius: 12px;
}

.mail-type-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.65rem 0.7rem 0.75rem;
}

.mail-type-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.mail-type-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.mail-type-card__sub {
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}

.mail-type-card__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mail-type-card--google .mail-type-card__badge {
  color: #8ab4f8;
  border-color: rgba(66, 133, 244, 0.25);
}

.mail-type-card--coinbase .mail-type-card__badge {
  color: #6ea8ff;
  border-color: rgba(0, 82, 255, 0.28);
}

.mail-type-card__form {
  padding: 0 0.65rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.cat-shell {
  scroll-margin-top: 4.5rem;
  margin-bottom: 1.45rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.035) 0%,
    rgba(19, 19, 19, 0.55) 45%,
    var(--surface) 100%
  );
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cat {
  margin-bottom: 0;
}

.cat__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.cat__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cat__sub {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cat__grid {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cat--google,
.cat--coinbase {
  padding-left: 0;
  border-left: none;
}

.send-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.35rem;
}

.send-row--2 {
  align-items: center;
}

.input--grow {
  flex: 1 1 160px;
  min-width: 0;
  padding: 0.48rem 0.65rem;
  font-size: 0.84rem;
}

.input--half {
  flex: 1 1 120px;
  min-width: 0;
  padding: 0.48rem 0.65rem;
  font-size: 0.84rem;
}

.btn--compact {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 10px;
  align-self: center;
}

@media (max-width: 520px) {
  .send-row .btn--compact {
    flex: 1 1 100%;
  }
}

/* --- Mailer / pages width --- */
.mailer-main {
  max-width: 960px;
  margin: 0 auto;
}

.mailer-head {
  margin-bottom: 0.25rem;
}

.mailer-head__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mailer-head__muted {
  font-weight: 600;
  color: var(--muted);
}

@media (min-width: 540px) {
  .mailer-head__muted {
    font-weight: 600;
    margin-left: 0.3rem;
  }
}

.mailer-head__note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.workspace-strip--inline {
  margin-bottom: 0.75rem;
  max-width: none;
}

.mailer-tabs.mailer-tabs--full {
  max-width: none;
  width: 100%;
  margin: 1rem 0 0;
  justify-content: stretch;
}

.cat__bar--panel {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.cat__bar--panel .cat__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.send-block--list {
  border-radius: 14px;
  background: rgba(22, 22, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0;
  margin-bottom: 0.45rem;
}

.send-block--list .send-summary {
  padding: 0.72rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.send-block--list[open] {
  background: rgba(26, 26, 30, 0.98);
  border-color: rgba(255, 255, 255, 0.11);
}

.send-body {
  padding: 0 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.send-block--list .send-hint {
  margin-top: 0.5rem;
}

/* --- Mailer: full-access (two-column hub) --- */
.full-access.fa-hub {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.fa-hub__title {
  margin: 0 0 1rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.fa-hub__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 840px) {
  .fa-hub__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.25rem;
  }
}

.fa-hub__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.fa-hub__panel {
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #141414;
}

.fa-hub__panel--send {
  position: sticky;
  top: 1rem;
}

.fa-hub__h {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.fa-hub__hint {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #7a7a7a;
}

.fa-hub__hint strong {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.full-access__mini-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.full-access__mini-form .input {
  padding: 0.42rem 0.6rem;
  font-size: 0.82rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

.full-access__mini-form .btn--compact {
  align-self: flex-start;
  margin-top: 0.1rem;
}

.full-access__chip-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.full-access__chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
}

.full-access__chip-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.full-access__chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
}

.full-access__chip-email {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  word-break: break-all;
  line-height: 1.35;
}

.full-access__chip:has(.full-access__chip-label) .full-access__chip-email {
  font-size: 0.72rem;
  color: #888888;
}

.full-access__chip-remove {
  margin: 0;
}

.full-access__chip-remove .btn {
  flex: none;
}

.full-access__empty {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  color: #888888;
}

.full-access__compose-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.full-access__form-legend {
  margin: 0.15rem 0 0;
  padding: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.full-access__compose-form > .full-access__form-legend:first-of-type {
  margin-top: 0;
}

.full-access__form-legend--extras {
  margin-top: 0.35rem;
  margin-bottom: -0.25rem;
}

.full-access__extras {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.75rem 0.65rem;
  margin-top: 0.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.full-access__extras-title {
  margin: 0 0 0.15rem;
  padding: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.full-access__extras[hidden] {
  display: none !important;
}

.fa-field[hidden] {
  display: none !important;
}

.full-access__from-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.full-access__from-box-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.fa-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.fa-field__label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
}

.fa-field__hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #888888;
}

.full-access__compose-form .input {
  padding: 0.42rem 0.6rem;
  font-size: 0.82rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

.full-access__submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 10px;
}

.full-access__select-wrap {
  position: relative;
}

.full-access__select {
  width: 100%;
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  cursor: pointer;
}

.full-access__from-split {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr;
  gap: 0.35rem 0.4rem;
  align-items: center;
}

.full-access__from-input {
  min-width: 0;
}

@media (max-width: 520px) {
  .full-access__from-split {
    grid-template-columns: 1fr;
  }

  .full-access__from-at {
    display: none;
  }
}

.full-access__from-at {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  user-select: none;
}

.config-main,
.account-main {
  max-width: 760px;
  margin: 0 auto;
}

.account-manual-balance-hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6a6a6a;
}

/* --- Account: crypto deposit (Wagyu) --- */
.fund-deposit {
  position: relative;
  margin-top: 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fund-deposit__glow {
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 200deg at 50% 50%,
    rgba(255, 0, 122, 0.55),
    rgba(255, 180, 60, 0.35),
    rgba(120, 200, 255, 0.4),
    rgba(255, 0, 122, 0.5)
  );
  opacity: 0.65;
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
  animation: fund-glow-rotate 14s linear infinite;
}

@keyframes fund-glow-rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fund-deposit__glow {
    animation: none;
    opacity: 0.35;
  }
}

.fund-deposit__inner {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: calc(var(--radius-lg) - 2px);
  background: linear-gradient(
    165deg,
    rgba(22, 22, 24, 0.97) 0%,
    rgba(14, 14, 16, 0.99) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fund-deposit__head {
  margin-bottom: 1rem;
}

.fund-deposit__title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #fff 30%, #ffb49a 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fund-deposit__lede {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
}

.fund-deposit__lede strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.fund-deposit__pickers {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.fund-deposit__group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fund-deposit__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 150, 190, 0.85);
}

.fund-deposit__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fund-deposit__pickers[aria-disabled="true"] {
  opacity: 0.55;
}

.fund-pill {
  flex: 0 1 auto;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.14s ease,
    background 0.14s ease,
    transform 0.12s ease;
}

.fund-pill:focus {
  outline: none;
}

.fund-pill:focus-visible {
  outline: 2px solid rgba(255, 0, 122, 0.55);
  outline-offset: 2px;
}

.fund-pill:hover {
  border-color: rgba(255, 0, 122, 0.4);
  background: rgba(255, 0, 122, 0.08);
}

.fund-pill.is-selected {
  border-color: rgba(255, 0, 122, 0.65);
  background: rgba(255, 0, 122, 0.18);
  box-shadow: 0 0 20px rgba(255, 0, 122, 0.15);
}

.fund-pill--amt {
  font-variant-numeric: tabular-nums;
  min-width: 3.25rem;
  text-align: center;
}

.fund-deposit__pending-hint {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 220, 170, 0.92);
  background: linear-gradient(135deg, rgba(255, 160, 60, 0.12) 0%, rgba(255, 60, 120, 0.08) 100%);
  border: 1px solid rgba(255, 170, 90, 0.28);
  border-radius: var(--radius-md);
}

.fund-deposit__pending-hint strong {
  color: #fff;
  font-weight: 600;
}

.fund-deposit__cta-wrap {
  margin: 0.85rem 0 0.25rem;
}

.fund-deposit__go {
  width: 100%;
  max-width: 22rem;
  padding: 0.72rem 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(255, 0, 122, 0.25);
}

.fund-deposit__go:disabled {
  box-shadow: none;
}

.fund-deposit__err {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #ff8a80;
}

.fund-deposit__panels {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fund-deposit__active {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fund-deposit__sub {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.fund-job {
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 0, 122, 0.28);
  background:
    linear-gradient(165deg, rgba(18, 16, 22, 0.98) 0%, rgba(8, 8, 12, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.fund-job:last-child {
  margin-bottom: 0;
}

.fund-job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fund-job__credit {
  font-size: 1.05rem;
  font-weight: 700;
  color: #7dffb1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.fund-job__meta {
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fund-job__status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
}

.fund-job__status-k {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 150, 190, 0.75);
}

.fund-job__status-code {
  margin: 0;
  padding: 0.2rem 0.45rem;
  font-size: 0.74rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fund-job__timer {
  margin-left: auto;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 210, 130, 0.98);
  font-variant-numeric: tabular-nums;
  background: rgba(255, 160, 60, 0.12);
  border: 1px solid rgba(255, 170, 90, 0.28);
  border-radius: 999px;
}

.fund-job__pay {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.fund-job__addr-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.fund-job__addr {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  line-height: 1.4;
  word-break: break-all;
  color: rgba(255, 255, 255, 0.92);
}

.fund-job__copy {
  align-self: flex-start;
  flex: 0 0 auto;
}

.fund-job__footer {
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fund-job__cancel {
  width: 100%;
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background 0.14s ease,
    border-color 0.14s ease;
}

.fund-job__cancel:hover {
  background: rgba(255, 80, 80, 0.18);
  border-color: rgba(255, 140, 140, 0.48);
}

.fund-job__badge {
  display: block;
  margin: 0 0 0.55rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  border-radius: var(--radius-sm);
}

.fund-job__badge--warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-icon);
}

.fund-deposit__history-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fund-deposit__history-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.fund-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fund-history__row {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.fund-history__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.3rem;
}

.fund-history__amt {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
}

.fund-history__meta {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.fund-history__out {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fund-history__out--credited {
  color: #7dffb1;
}

.fund-history__out--failed,
.fund-history__out--expired,
.fund-history__out--dropped {
  color: #ff8a80;
}

.fund-history__out--cancelled {
  color: rgba(255, 200, 120, 0.95);
}

.fund-history__wagyu {
  margin-left: 0.15rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
}

.admin-main {
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 780px) {
  .admin-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-log {
  margin: 0;
  padding: 0.85rem 1rem;
  max-height: 320px;
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-token-reveal {
  margin-bottom: 1.25rem;
}

.page-head {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.workspace-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
}

.muted-inline {
  color: var(--muted);
}

.link-inline {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.link-inline:hover {
  text-decoration: underline;
}

.category-section {
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.category-head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.category-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.category-blurb {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.category-body .send-block:last-child {
  margin-bottom: 0;
}

.config-card {
  margin-bottom: 1.25rem;
}

.token-reveal {
  margin-top: 1rem;
}

.kv {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.kv dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.kv dd {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 0, 122, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(255, 0, 122, 0.25);
}

@media (max-width: 520px) {
  .nav-pill {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
  }

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

  .kv dt {
    padding-top: 0.35rem;
  }

  .kv dt:first-child {
    padding-top: 0;
  }
}

/* --- Telegram bot promo (floating card) --- */
.tg-promo {
  position: fixed;
  z-index: 100;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 260px;
  max-width: calc(100vw - 2rem);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #16151a 0%, var(--surface3) 32%, var(--surface3) 100%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  pointer-events: auto;
}

.tg-promo__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30, 30, 32, 0.92);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.1s ease,
    background 0.12s ease;
}

.tg-promo__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tg-promo__close:active {
  transform: scale(0.96);
}

.tg-promo__banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(255, 0, 122, 0.06) 8px,
      rgba(255, 0, 122, 0.06) 9px
    ),
    radial-gradient(120% 80% at 80% 0%, rgba(138, 43, 226, 0.35), transparent 55%),
    radial-gradient(90% 70% at 10% 20%, rgba(255, 0, 122, 0.22), transparent 50%),
    #121118;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.tg-promo__inner {
  position: relative;
  padding: 3.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}

.tg-promo__row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.65rem;
}

.tg-promo__tg-wrap {
  flex-shrink: 0;
  padding-bottom: 2px;
}

.tg-promo__tg-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(42, 171, 238, 0.25), rgba(42, 171, 238, 0.08));
  border: 1px solid rgba(42, 171, 238, 0.35);
  color: #7dd3fc;
}

.tg-promo__copy {
  flex: 1;
  min-width: 0;
}

.tg-promo__title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.tg-promo__sub {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
}

.tg-promo__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: #f5f5f5;
  color: #121212;
  transition:
    transform 0.1s cubic-bezier(0.17, 0.67, 0.45, 1),
    filter 0.12s ease;
}

.tg-promo__cta:hover {
  filter: brightness(1.04);
}

.tg-promo__cta:active {
  transform: scale(0.98);
}

@media (max-width: 400px) {
  .tg-promo {
    width: auto;
    right: max(1rem, env(safe-area-inset-right));
    left: max(1rem, env(safe-area-inset-left));
  }
}
