/* components.css
   Reusable pieces: buttons, inputs, tags, nav, sheets, cards, toasts, FAB.
   Ported verbatim from the original design system — do not restyle. */

/* ==========================================================================
   Buttons — gradient, glossy, micro-interactive
   ========================================================================== */

.btn {
  position: relative;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  padding: 13px 20px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 12px 26px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), opacity 0.2s, border-color 0.28s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.btn:hover:not(:disabled)::after {
  transform: translateX(130%);
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 18px 34px -18px rgba(124, 58, 237, 0.9);
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.8);
  outline-offset: 2px;
}

.btn-primary {
  border-color: transparent;
  background: var(--grad-aurora);
  background-size: 220% 220%;
  animation: grad-shift 9s ease infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 16px 34px -14px rgba(124, 58, 237, 0.95),
    0 0 40px -16px rgba(217, 70, 239, 0.75);
}
.btn-primary:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 22px 44px -16px rgba(124, 58, 237, 1),
    0 0 60px -14px rgba(34, 211, 238, 0.7);
}

@keyframes grad-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
}
.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}

/* ==========================================================================
   Inputs
   ========================================================================== */

.input {
  width: 100%;
  font-family: 'Space Grotesk', monospace;
  /* never below 16px: iOS Safari auto-zooms the viewport on smaller inputs */
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--stroke-soft);
  border-radius: 15px;
  padding: 15px 17px;
  outline: none;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.input::placeholder {
  color: var(--ink-faint);
  font-weight: 500;
}
.input:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(34, 211, 238, 0.14),
    0 0 34px -8px rgba(34, 211, 238, 0.55);
}
.input-row {
  display: flex;
  gap: 11px;
  align-items: center;
}

/* ==========================================================================
   Key/value rows, tags
   ========================================================================== */

.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 14px;
}
.kv:last-child {
  border-bottom: none;
}
.kv .k {
  color: var(--ink-dim);
}
.kv .v {
  font-family: 'Space Grotesk', monospace;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.tag-live {
  border-color: rgba(34, 211, 238, 0.55);
  color: #9ef0ff;
  box-shadow: 0 0 22px -8px rgba(34, 211, 238, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tag-done {
  border-color: rgba(74, 222, 128, 0.5);
  color: #a7f3c4;
  box-shadow: 0 0 22px -8px rgba(74, 222, 128, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tag-warn {
  border-color: rgba(244, 63, 94, 0.6);
  color: #ffb6c4;
  box-shadow: 0 0 22px -8px rgba(244, 63, 94, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 1280px;
  margin: 0 auto 26px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border: 1px solid var(--stroke);
  border-top: none;
  background: linear-gradient(180deg, rgba(12, 8, 32, 0.72), rgba(12, 8, 32, 0.42));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.09);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  /* may shrink, never pushes the wallet control out of the header */
  flex: 0 1 auto;
  min-width: 0;
}

/**
 * Contain-fit: bounded on BOTH axes with `width/height: auto`, so the image
 * scales down to whichever limit it meets first and its intrinsic aspect ratio
 * is never altered. No stretching, no cropping, no upscaling.
 */
.logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 46px;
  max-width: min(240px, 40vw);
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(124, 58, 237, 0.55)) drop-shadow(0 0 22px rgba(244, 63, 94, 0.28));
}
.logo-fallback {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.035em;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--grad-aurora);
  background-size: 220% 220%;
  animation: grad-shift 11s ease infinite;
  box-shadow:
    0 14px 30px -16px rgba(124, 58, 237, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.wallet-pill {
  padding: 9px 15px;
  border-radius: 15px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wallet-row {
  gap: 10px;
  min-width: 0;
}

.wallet-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 14px;
  min-height: 46px;
  border-radius: 15px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.wallet-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}
.wallet-pill-top {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.wallet-pill-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13.5px;
  max-width: 100%;
  min-width: 0;
}
.wallet-pill-addr {
  flex: 0 0 auto;
}
/* A large balance must never push the address out of the header. */
.wallet-pill-balance {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connect-btn {
  min-height: 46px;
}

/* -------------------- sheets / dialogs -------------------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 2, 14, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade 0.25s var(--ease);
  overscroll-behavior: contain;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  width: min(440px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px;
  animation: pop 0.3s var(--ease);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

.sheet-grip {
  display: none;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto 14px;
}

.addr-box {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--stroke-soft);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}
.addr-text {
  font-size: 13px;
  line-height: 1.6;
  /* full address stays readable on a phone instead of overflowing */
  word-break: break-all;
  color: var(--ink);
}

/* -------------------- wallet picker -------------------- */

.wallet-list {
  display: grid;
  gap: 9px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 58px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-soft);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.wallet-option:hover {
  transform: translateX(3px);
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(120deg, rgba(167, 139, 250, 0.14), rgba(255, 255, 255, 0.03));
  text-decoration: none;
}
.wallet-option:active {
  transform: scale(0.985);
}
.wallet-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--stroke-soft);
  overflow: hidden;
}
.wallet-icon img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
}
.wallet-option-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-option-go {
  color: var(--ink-faint);
  flex-shrink: 0;
}

/* -------------------- mobile bottom navigation -------------------- */

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(12, 8, 32, 0.72), rgba(8, 5, 22, 0.94));
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -14px 40px -20px rgba(0, 0, 0, 0.95);
}

.bottom-nav-item {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border: none;
  background: none;
  color: var(--ink-faint);
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 14px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.bottom-nav-icon {
  font-size: 17px;
  line-height: 1;
}
.bottom-nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bottom-nav-item.is-active {
  color: #fff;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.26), rgba(34, 211, 238, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 26px -12px rgba(167, 139, 250, 0.95);
}
.bottom-nav-item.is-active .bottom-nav-icon {
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.9));
}

/* ==========================================================================
   Maturity barometer + gauges
   ========================================================================== */

.barometer {
  margin-top: 18px;
}
.bar-track {
  position: relative;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.75), inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}
.bar-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: var(--grad-aurora);
  background-size: 260% 100%;
  animation: grad-shift 7s ease infinite;
  box-shadow:
    0 0 26px rgba(167, 139, 250, 0.85),
    0 0 46px rgba(217, 70, 239, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: width 1s var(--ease);
}
.bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: sheen 2.8s linear infinite;
}
@keyframes sheen {
  to {
    transform: translateX(100%);
  }
}
.bar-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.gauge-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}
.gauge {
  filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.55));
  flex-shrink: 0;
}
.gauge-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   Referral level cards
   ========================================================================== */

.level {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-soft);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.level::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--level-accent, var(--grad-aurora));
  box-shadow: 0 0 22px var(--level-glow, rgba(167, 139, 250, 0.9));
}
.level:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 30px -22px rgba(0, 0, 0, 0.95);
}
.level .badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: var(--level-accent, var(--grad-aurora));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 22px -12px var(--level-glow, rgba(124, 58, 237, 0.9));
  flex-shrink: 0;
}

/* ==========================================================================
   Deposit cards
   ========================================================================== */

.deposit-card {
  padding: 24px;
}
.deposit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}
.deposit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.dot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 11px;
  margin-top: 18px;
}
.dot-grid .cell {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.dot-grid .cell:hover {
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
}
.dot-grid .cell .k {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.dot-grid .cell .v {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 5px;
  font-size: 15.5px;
}

/* ==========================================================================
   Downloadable asset row
   ========================================================================== */

.asset {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-soft);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.asset-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--grad-aurora);
  background-size: 220% 220%;
  animation: grad-shift 10s ease infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px -12px rgba(124, 58, 237, 0.95);
}
.asset-body {
  min-width: 0;
}
.asset-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Advantage & security grid
   ========================================================================== */

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.advantage {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-soft);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.advantage:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 34px -24px rgba(124, 58, 237, 0.9);
}

.advantage-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  background: var(--grad-aurora);
  background-size: 220% 220%;
  animation: grad-shift 11s ease infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px -12px rgba(124, 58, 237, 0.9);
}

.advantage-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  margin-bottom: 5px;
}

.advantage-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-dim);
}

/* ==========================================================================
   Banners / risk
   ========================================================================== */

.banner {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 63, 94, 0.42);
  background: linear-gradient(120deg, rgba(244, 63, 94, 0.16), rgba(124, 58, 237, 0.11));
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  line-height: 1.65;
}
.banner-info {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.17), rgba(34, 211, 238, 0.1));
}

.risk {
  border-color: rgba(244, 63, 94, 0.3);
}
.risk ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.8;
}
.risk li::marker {
  color: var(--c-red);
}

/* ==========================================================================
   Toasts (top-right, clear of the FAB)
   ========================================================================== */

.toast-wrap {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(430px, calc(100vw - 40px));
}
.toast {
  padding: 16px 18px;
  animation: slide-in 0.4s var(--ease);
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
  }
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Floating action buttons
   ========================================================================== */

.fab-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.fab {
  position: relative;
  height: 56px;
  min-width: 56px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-aurora);
  background-size: 220% 220%;
  animation: grad-shift 9s ease infinite;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 20px 44px -18px rgba(124, 58, 237, 1),
    0 0 50px -18px rgba(217, 70, 239, 0.85);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), opacity 0.2s;
}
.fab-ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  animation: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 16px 34px -20px rgba(0, 0, 0, 0.95);
}
.fab:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.04);
}
.fab:active:not(:disabled) {
  transform: scale(0.97);
}
.fab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.fab:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.85);
  outline-offset: 3px;
}

