@layer tokens, base, layout, components, utilities;

/* --- tokens --- */
@layer tokens {
:root {
  --bg: #030303;
  --surface: #0a0a0a;
  --panel: #0e0e0e;
  --surface-2: #141414;
  --border: rgba(255, 255, 255, 0.07);
  --border-hot: #e85d04;
  --orange: #e85d04;
  --orange-bright: #ff7020;
  --orange-dim: #a84303;
  --accent: #e85d04;
  --cream: #f2e8dc;
  --muted: #7a746e;
  --text: #d4ccc4;
  --green: #5a9a6e;
  --green-glow: rgba(90, 154, 110, 0.35);
  --red: #e05555;
  --red-glow: rgba(224, 85, 85, 0.3);
  --blue: #64a8ff;
  --blue-glow: rgba(100, 168, 255, 0.35);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Syne", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 14px;
  --widget: 480px;
  --glass-bg: linear-gradient(155deg, rgba(22, 22, 22, 0.92) 0%, rgba(8, 8, 8, 0.88) 100%);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-orange: rgba(232, 93, 4, 0.35);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --layout-max: 1360px;
  --layout-gutter: clamp(1rem, 2vw, 1.25rem);
  --layout-pad: max(var(--layout-gutter), calc((100vw - var(--layout-max)) / 2));
  --header-pad: clamp(0.65rem, 1.1vw, 1.15rem);
  /* Readable type scale (rem) */
  --fs-2xs: 0.74rem;
  --fs-xs: 0.8rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.125rem;
}
}

/* --- base --- */
@layer base {
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 17px; }

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

.hint {
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.empty {
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  opacity: 0.1;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(rgba(232, 93, 4, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 93, 4, 0.022) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 128px 128px, 128px 128px;
  background-position: center center;
  opacity: 0.32;
  mask-image: radial-gradient(ellipse 160% 130% at 50% 35%, black 15%, rgba(0, 0, 0, 0.45) 75%, transparent 100%);
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: #f07020; }
}

/* --- layout --- */
@layer layout {
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130% 70% at 50% -12%, rgba(232, 93, 4, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 60% 55% at 100% 38%, rgba(232, 93, 4, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 60% 50% at 0% 62%, rgba(232, 93, 4, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(232, 93, 4, 0.03) 0%, transparent 55%);
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding: 1.1rem var(--layout-pad);
  border-bottom: 1px solid rgba(232, 93, 4, 0.16);
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.05) 0%, rgba(232, 93, 4, 0.015) 45%, transparent 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

@media (min-width: 721px) {
  .header {
    flex-wrap: nowrap;
    padding: 1rem var(--header-pad);
    gap: 0.75rem;
  }

  .header-right {
    flex-shrink: 0;
    gap: 0.55rem;
  }

  .header .lang-btn {
    padding: 0.32rem 0.42rem;
    font-size: 0.76rem;
  }

  .header .btn-connect {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .header .btn-disconnect {
    padding: 0.48rem 0.65rem;
    font-size: 0.78rem;
  }
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 93, 4, 0.28) 18%,
    rgba(232, 93, 4, 0.42) 50%,
    rgba(232, 93, 4, 0.28) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .header-right {
    gap: 0.9rem;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(232, 93, 4, 0.22);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  gap: 1px;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover { color: var(--cream); }

.lang-btn.active {
  color: #0a0a0a;
  background: var(--orange);
}

body.lang-zh {
  font-family: "Noto Sans SC", var(--mono);
}

body.lang-zh .logo-text,
body.lang-zh .portfolio-title,
body.lang-zh .rewards-title,
body.lang-zh .terminal-title,
body.lang-zh .admin-title {
  font-family: "Noto Sans SC", var(--display);
}

@media (max-width: 720px) {
  .header-right {
    width: auto;
    justify-content: flex-end;
    order: unset;
    flex-shrink: 0;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

@media (min-width: 721px) {
  .header-left {
    flex-wrap: nowrap;
    flex: 1 1 auto;
    gap: 1rem;
    min-width: 0;
  }

  .header .logo-sub {
    display: none;
  }

  .header .logo img {
    width: 36px;
    height: 36px;
  }

  .header .logo-brand .logo-text {
    font-size: 1.05rem;
    white-space: nowrap;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-brand .logo-text {
  font-family: var(--display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.logo img { width: 40px; height: 40px; object-fit: contain; }

.logo-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  border-left: 1px solid rgba(232, 93, 4, 0.2);
}

@media (min-width: 721px) {
  .nav {
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 0.3rem;
    padding-left: 0.85rem;
    margin-left: 0.35rem;
  }
}

.nav button {
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.nav button:hover {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.nav button.active {
  color: var(--cream);
  border-color: rgba(232, 93, 4, 0.55);
  background: rgba(232, 93, 4, 0.16);
  box-shadow: none;
}

@media (min-width: 721px) {
  .nav button {
    padding: 0.5rem 0.72rem;
    font-size: 0.82rem;
    border-radius: 8px;
    letter-spacing: 0.05em;
  }

  .nav button.nav-btn-fountain {
    padding-right: 1.3rem;
  }
}

@media (min-width: 1280px) {
  .header {
    gap: 1rem;
    padding-left: var(--header-pad);
    padding-right: var(--header-pad);
  }

  .header-right {
    gap: 0.75rem;
  }

  .header .btn-connect {
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
  }

  .header-left {
    gap: 1.35rem;
  }

  .nav {
    gap: 0.4rem;
    padding-left: 1.1rem;
  }

  .nav button {
    padding: 0.55rem 0.88rem;
    font-size: 0.86rem;
    border-radius: 9px;
  }

  .nav button.nav-btn-fountain {
    padding-right: 1.45rem;
  }

  .nav-faucet-badge {
    width: 30px;
    height: 30px;
    top: -10px;
    right: -12px;
  }

  .nav-faucet-icon {
    width: 19px;
    height: 19px;
  }
}

@media (min-width: 1500px) {
  .nav {
    gap: 0.45rem;
    padding-left: 1.25rem;
  }

  .nav button {
    padding: 0.58rem 0.95rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }
}

.nav .hidden { display: none; }

/* Free TLB tab — corner faucet badge */
.nav-btn-fountain {
  position: relative;
  padding-right: 1.35rem;
}

.nav-btn-fountain .nav-btn-text {
  display: inline-block;
}

.nav-faucet-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff8f0;
  background: linear-gradient(160deg, #ff9a4a 0%, #e85d04 52%, #a84303 100%);
  border: 2px solid #1a0f08;
  box-shadow:
    0 0 0 1.5px rgba(255, 210, 150, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.45);
}

.nav-faucet-icon {
  width: 17px;
  height: 17px;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4));
}

.nav button.nav-btn-fountain:hover .nav-faucet-badge,
.nav button.nav-btn-fountain.active .nav-faucet-badge {
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 200, 130, 0.65),
    0 0 14px rgba(232, 93, 4, 0.55),
    0 3px 12px rgba(0, 0, 0, 0.5);
}

.nav button.nav-btn-fountain.active .nav-faucet-badge {
  border-color: #0d0805;
  background: linear-gradient(160deg, #ffb06a 0%, #f07020 50%, #c44e02 100%);
}

.more-nav-item.nav-btn-fountain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-right: 0.85rem;
}

.more-nav-item .nav-faucet-badge--inline {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  box-shadow:
    0 0 0 1.5px rgba(255, 210, 150, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.more-nav-item .nav-faucet-badge--inline .nav-faucet-icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    max-width: 100%;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(232, 93, 4, 0.12);
  }
  .nav button {
    padding: 0.4rem 0.55rem;
    font-size: 0.84rem;
  }
}

.header-wallet {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-disconnect {
  font-family: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-disconnect:hover {
  color: var(--cream);
  border-color: rgba(224, 85, 85, 0.45);
  background: rgba(224, 85, 85, 0.08);
}

.btn-disconnect.hidden {
  display: none;
}

.btn-connect {
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: var(--orange);
  color: #0a0a0a;
  font-weight: 600;
  cursor: pointer;
}

.btn-connect:hover { background: #f07020; border-color: #f07020; }

.btn-connect.connected {
  background: var(--panel);
  color: var(--cream);
  border-color: var(--border);
  font-weight: 500;
}

.btn-connect.pending {
  opacity: 0.88;
  cursor: wait;
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
}

.btn-connect.missing {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
}

.btn-connect.missing:hover {
  background: var(--surface-2);
  color: var(--cream);
}

.btn-connect.wrong-chain {
  border-color: #c44;
  color: #f0a0a0;
}

.ticker {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0.45rem var(--layout-pad);
  font-size: 0.86rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(232, 93, 4, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.1) 100%);
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}

.ticker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 4, 0.18) 30%, rgba(232, 93, 4, 0.18) 70%, transparent);
  pointer-events: none;
}

.ticker span { color: var(--orange); }

.main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 1.25rem var(--layout-pad) 3rem;
}

.pane {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pane.active {
  display: flex;
}

.pane.active > * {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
}
}

/* --- components --- */
@layer components {
.activity-kicker {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* Widget card — Uniswap layout, TLB chrome */
.widget {
  width: 100%;
  max-width: var(--widget);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  container-type: inline-size;
  container-name: widget;
}

.widget::before,
.widget::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--orange-dim);
  border-style: solid;
  pointer-events: none;
}

.widget::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.widget::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.widget-head h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.icon-btn:hover { border-color: var(--orange-dim); color: var(--orange); }

.token-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.2rem;
}

.token-box label {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.token-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.token-select {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
  flex-shrink: 0;
}

.token-select img { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; }

.token-amount {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--cream);
  outline: none;
  width: 100%;
}

.token-amount::placeholder { color: var(--muted); opacity: 0.45; }

.token-amount:read-only { font-size: 1.35rem; color: var(--muted); }

.token-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.btn-max {
  font-family: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--orange-dim);
  background: transparent;
  color: var(--orange);
  cursor: pointer;
}

.btn-max:hover { background: rgba(232, 93, 4, 0.1); }

.swap-flip-wrap {
  display: flex;
  justify-content: center;
  margin: -0.6rem 0;
  position: relative;
  z-index: 2;
}

.btn-flip {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 4px solid var(--panel);
  background: var(--surface);
  border-color: var(--panel);
  box-shadow: 0 0 0 1px var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-flip:hover { color: var(--orange); }

.btn-primary {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.95rem;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #0a0a0a;
  cursor: pointer;
}

.btn-primary:hover:not(:disabled) { background: #f07020; border-color: #f07020; }

.btn-primary:disabled {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-danger {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.95rem;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--red);
  cursor: pointer;
}

.btn-danger:hover:not(:disabled) {
  background: var(--red);
  color: #0a0a0a;
  box-shadow: 0 0 18px -6px var(--red-glow);
}

.btn-danger:disabled {
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.burn-widget {
  border-color: rgba(224, 85, 85, 0.35);
}

.burn-title { display: flex; align-items: center; gap: 0.4rem; }
.burn-flame { filter: drop-shadow(0 0 6px var(--red-glow)); }

.burn-trust {
  margin: 0.4rem 0 0.7rem;
}

.burn-trust-bar {
  height: 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.burn-trust-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 0 12px var(--red-glow);
  transition: width 0.5s ease;
}

.burn-trust-meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.burn-trust-pct {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
}

.burn-trust-label {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.burn-warning {
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--red);
  background: rgba(224, 85, 85, 0.08);
  border: 1px solid rgba(224, 85, 85, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.7rem;
}

.burn-leaders {
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
}

.burn-leaders-head {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.burn-leaders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.burn-leaders-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.burn-leader-rank {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(224, 85, 85, 0.12);
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
}

.burn-leader-addr {
  font-family: var(--mono, monospace);
  color: var(--text);
}

.burn-leader-amt {
  margin-left: auto;
  color: var(--muted);
}

.widget-foot {
  text-align: center;
  margin-top: 0.65rem;
  font-size: 0.88rem;
}

.widget-foot button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  letter-spacing: 0.06em;
}

.rate-line {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.4rem 0.15rem 0;
  min-height: 1.1rem;
}

.msg { font-size: 0.88rem; margin-top: 0.5rem; text-align: center; min-height: 1.1em; }
.msg.ok { color: var(--green); }
.msg.err { color: var(--red); }

.pool-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 100%;
  max-width: var(--widget);
}

.pool-stats strong { color: var(--cream); font-weight: 600; }

.pool-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  width: 100%;
  max-width: var(--widget);
}

.pool-tabs button {
  flex: 1;
  font-family: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.pool-tabs button.active {
  border-color: var(--orange-dim);
  color: var(--orange);
  background: rgba(232, 93, 4, 0.06);
}

.pool-panel { display: none; width: 100%; max-width: var(--widget); }
.pool-panel.active { display: block; }

.position-card {
  width: 100%;
  max-width: var(--widget);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.position-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.position-grid .val { font-size: 1rem; font-weight: 600; color: var(--cream); }
.position-grid .lbl { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* LP tab — premium pool workspace */
#pane-pool.active,
#pane-portfolio.active,
#pane-rewards.active,
#pane-activity.active,
#pane-admin.active {
  align-items: stretch;
  width: 100%;
}

.pool-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.pool-shell .position-card {
  max-width: none;
}

.pool-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.85rem;
  margin-bottom: 1rem;
  max-width: none;
}

.pool-stat-tile {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pool-stat-tile span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.pool-stat-tile strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.pool-workspace {
  width: 100%;
}

.pool-workspace .pool-tabs {
  max-width: none;
  width: 100%;
  margin-bottom: 1rem;
}

.pool-workspace .pool-tabs button {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: transparent;
  transition: all 0.22s var(--ease-out-expo);
}

.pool-workspace .pool-tabs button.active {
  color: #0a0a0a;
  font-weight: 600;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  box-shadow: 0 2px 14px -2px var(--glow-orange);
}

.pool-panel {
  max-width: none;
}

.pool-widget {
  max-width: none;
}

.pool-panel-kicker,
.pool-position-kicker {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pool-position-kicker {
  margin-bottom: 0.75rem;
}

.pool-amount-row {
  width: 100%;
}

.pool-amount-input {
  flex: 1;
  min-width: 0;
  text-align: left !important;
  font-size: 1.35rem !important;
}

.pool-amount-full {
  width: 100%;
  text-align: left !important;
  font-size: 1.2rem !important;
  padding: 0.15rem 0;
}

.pool-plus-divider {
  display: flex;
  justify-content: center;
  margin: -0.35rem 0;
  position: relative;
  z-index: 2;
}

.pool-plus-divider span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.liq-preview-card {
  margin: 0.85rem 0 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(232, 93, 4, 0.2);
}

.liq-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.liq-preview-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.liq-preview-row strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--orange-bright);
  font-variant-numeric: tabular-nums;
}

.liq-preview-card .rate-line {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  min-height: 0;
}

.pool-widget .btn-primary {
  background: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange) 55%, var(--orange-dim) 100%);
  border: none;
  box-shadow: 0 4px 20px -4px var(--glow-orange);
}

.pool-field-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.65rem 0 0.35rem;
}

.pool-select,
.pool-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s var(--ease-out-expo);
}

.pool-select:focus,
.pool-input:focus {
  outline: none;
  border-color: rgba(232, 93, 4, 0.45);
}

.pool-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 1rem 0;
}

.pool-unlock-list {
  margin: 0.5rem 0 0.75rem;
}

.btn-secondary {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.btn-secondary:hover {
  border-color: rgba(232, 93, 4, 0.4);
  color: var(--orange-bright);
}

.token-box-premium.is-lead {
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.1), 0 8px 24px -10px rgba(232, 93, 4, 0.2);
}

/* Rewards — user-facing dashboard */
.rewards-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

/* Free TLB — full desktop width for two-column layout */
.fountain-shell.rewards-shell {
  max-width: var(--layout-max);
}

#pane-fountain.active {
  align-items: stretch;
}

#pane-fountain.active > .fountain-shell {
  width: 100%;
  max-width: var(--layout-max);
}

.rewards-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.rewards-tabs button {
  flex: 1;
  font-family: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}

.rewards-tabs button.active {
  border-color: rgba(255, 140, 66, 0.45);
  background: rgba(255, 140, 66, 0.1);
  color: var(--cream);
}

.rewards-panel {
  display: none;
  width: 100%;
}

.rewards-panel.active {
  display: block;
}

.rewards-hero {
  margin-bottom: 1rem;
}

.rewards-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.rewards-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.rewards-emissions-est {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--green);
}

.rewards-emissions-est .indicative-apy-disclaimer {
  color: var(--muted);
  font-size: 0.8rem;
}

.rewards-calc-card {
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.rewards-calc-fields {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

@media (min-width: 520px) {
  .rewards-calc-fields {
    grid-template-columns: 1fr 0.55fr;
    align-items: end;
  }
}

.rewards-calc-out {
  margin: 0.35rem 0 0.5rem;
}

.indicative-apy-disclaimer {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.lock-calc-stats .indicative-apy-disclaimer {
  margin-top: 0.25rem;
}

.rewards-claim-card {
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.rewards-claim-main {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .rewards-claim-main {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.rewards-claim-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.rewards-claim-amt {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.rewards-claim-amt strong {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rewards-claim-unit {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.rewards-claim-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.rewards-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.rewards-stat span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.rewards-stat strong {
  font-size: 0.82rem;
  color: var(--cream);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rewards-vest-bar {
  margin: 0.85rem 0 0.65rem;
}

.rewards-hint {
  text-align: center;
  font-size: 0.86rem;
  margin: 0 0 0.65rem;
}

.rewards-claim-btn {
  width: 100%;
}

.rewards-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 760px) {
  .rewards-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .rewards-section-wide,
  .rewards-doc {
    grid-column: 1 / -1;
  }
  .rewards-doc {
    grid-column: span 1;
  }
}

@media (min-width: 920px) {
  .rewards-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .rewards-section-wide {
    grid-column: 1 / -1;
  }
  .rewards-doc {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.rewards-section {
  padding: 0.9rem 1rem;
}

.rewards-section-head h3 {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
}

.rewards-section-desc {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.rewards-epoch-banner {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.55rem;
  background: rgba(232, 93, 4, 0.06);
  border: 1px solid rgba(232, 93, 4, 0.18);
  font-size: 0.84rem;
}

.rewards-stream-list,
.rewards-lock-list,
.rewards-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rewards-stream-card,
.rewards-lock-card {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.65rem 0.75rem;
}

.rewards-stream-card.phase-emitting { border-color: rgba(90, 154, 110, 0.35); }
.rewards-stream-card.phase-claiming { border-color: rgba(232, 93, 4, 0.32); }
.rewards-stream-card.phase-completed { opacity: 0.82; }

.rewards-stream-head,
.rewards-lock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.rewards-stream-head strong,
.rewards-lock-head strong {
  font-size: 0.92rem;
  color: var(--cream);
}

.rewards-mini-bar {
  margin: 0.35rem 0 0.45rem;
  height: 3px;
}

.rewards-stream-stats,
.rewards-lock-meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.rewards-stream-stats em {
  font-style: normal;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
}

.rewards-badge {
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
}

.rewards-badge.phase-emitting { color: var(--green); border-color: rgba(90, 154, 110, 0.4); }
.rewards-badge.phase-claiming { color: var(--orange); border-color: rgba(232, 93, 4, 0.4); }
.rewards-badge.locked,
.rewards-badge.unlockable { color: var(--green); border-color: rgba(90, 154, 110, 0.35); }
.rewards-badge.warn { color: var(--orange); }

.rewards-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.8);
  font-size: 0.86rem;
}

.rewards-hist-row:last-child { border-bottom: none; }

.rewards-hist-row strong { color: var(--cream); margin-right: 0.35rem; }

.rewards-hist-status {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rewards-hist-status.status-paid { color: var(--green); }
.rewards-hist-status.status-failed { color: var(--red); }
.rewards-hist-status.status-pending { color: var(--orange); }

.rewards-hist-time { color: var(--muted); text-align: right; flex-shrink: 0; }
.rewards-hist-err { font-size: 0.76rem; color: var(--red); width: 100%; }

.rewards-doc {
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}

.rewards-doc h3 {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}

.rewards-doc p { margin: 0 0 0.55rem; }

.rewards-doc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.rewards-doc li { margin-bottom: 0.3rem; }

/* Swap — InSwap balance kicker */
.swap-widget-head {
  align-items: flex-start;
}

.swap-kicker {
  margin: 0.2rem 0 0.15rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.swap-inswap-balances {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.swap-inswap-balances strong {
  color: var(--cream);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.swap-bal-sep {
  opacity: 0.45;
}

/* Legacy rewards (kept for compat) */
.rewards-layout {
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .rewards-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

.protocol-note {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
}

.protocol-note h3 {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}

.protocol-note ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.protocol-note li { margin-bottom: 0.35rem; }

.reward-amount {
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--cream);
  margin: 0.35rem 0;
}

.vest-bar {
  height: 3px;
  background: var(--border);
  margin: 0.85rem 0;
  overflow: hidden;
}

.vest-bar span {
  display: block;
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 0.35s ease;
  box-shadow: 0 0 8px var(--orange);
}

.sub-head {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.fee-line { color: var(--muted); font-size: 0.86rem; min-height: 1rem; }

.quick-pair {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}

.btn-pair {
  flex: 1;
  padding: 0.45rem;
  font-family: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.btn-pair:hover, .btn-pair.active {
  border-color: var(--orange);
  color: var(--cream);
}

.hist-row .badge {
  display: inline-block;
  font-size: 0.76rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--border);
  margin-left: 0.35rem;
  text-transform: uppercase;
}

.hist-row .badge.unlockable { border-color: var(--green); color: var(--green); }
.hist-row .badge.locked { border-color: var(--muted); color: var(--muted); }

.btn-unlock-row {
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.25rem 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-hot);
  color: var(--cream);
  cursor: pointer;
  margin-top: 0.25rem;
}

/* Portfolio terminal */
#pane-portfolio.active {
  align-items: stretch;
  max-width: none;
  width: 100%;
}

.portfolio-terminal-shell {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.portfolio-terminal-glow {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 920px;
  height: 50%;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(232, 93, 4, 0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

.portfolio-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.portfolio-hero {
  padding: 1.15rem 1.2rem;
  margin-bottom: 0;
}

.portfolio-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.portfolio-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.portfolio-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.portfolio-net {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-family: var(--display);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.portfolio-net-sub {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 32rem;
}

.portfolio-net-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  opacity: 0.9;
}

.portfolio-hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pf-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  min-width: min(100%, 11.5rem);
  width: 11.5rem;
}

.pf-actions-grid .btn-pf-action {
  width: 100%;
  min-height: 2.35rem;
  justify-content: center;
  text-align: center;
}

.btn-pf-action {
  font-size: 0.84rem !important;
  padding: 0.5rem 0.75rem !important;
}

.portfolio-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 93, 4, 0.15);
}

.pf-chip {
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
}

.pf-chip-chain {
  border-color: rgba(232, 93, 4, 0.28);
  background: rgba(232, 93, 4, 0.06);
}

.pf-chip-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.pf-chip-val {
  display: block;
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 600;
}

.pf-chip-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.pf-chip-sub strong {
  color: var(--orange);
  font-weight: 600;
}

.portfolio-tokens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pf-stack {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.pf-stack-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(232, 93, 4, 0.12);
  background: rgba(232, 93, 4, 0.04);
}

.pf-stack-title {
  flex: 1;
  min-width: 0;
}

.pf-stack-title h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.pf-tick-id {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.pf-stack-usd {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

.pf-stack-body {
  padding: 0.85rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pf-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.pf-row-chain .pf-row-val {
  color: var(--orange-bright);
}

.pf-row-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-row-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
  text-align: right;
}

.pf-row-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding-left: 0.15rem;
}

.pf-row-metrics-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pf-row-metrics > div {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.pf-row-metrics em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.pf-row-divider {
  height: 1px;
  margin: 0.35rem 0;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 4, 0.2), transparent);
}

.pf-stack-foot {
  margin: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.pf-stack-foot strong {
  color: var(--cream);
}

.pf-stack-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.pf-stack-actions .btn-sm {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
}

.modal-send-tlb {
  max-width: 34rem;
  width: calc(100% - 1.25rem);
  padding: 0;
  overflow: hidden;
  border-color: rgba(232, 93, 4, 0.36);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(232, 93, 4, 0.08),
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 42px rgba(232, 93, 4, 0.08);
}

.send-tlb-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.65rem;
  border-bottom: 1px solid rgba(232, 93, 4, 0.14);
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.06) 0%, rgba(232, 93, 4, 0) 100%),
    var(--surface);
}

.send-tlb-head-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.send-tlb-icon {
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.25);
}

.send-tlb-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.send-tlb-modal-head h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--cream);
}

.send-tlb-bal-strip {
  margin: 0;
  padding: 0.65rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.send-tlb-bal-pill-muted strong {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.send-tlb-mode-tabs {
  padding: 0.75rem 1.15rem 0;
}

.send-tlb-body {
  padding: 0.85rem 1.15rem 1.15rem;
  max-height: min(78vh, 680px);
}

.send-tlb-lead {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

.send-tlb-panel {
  display: none;
}

.send-tlb-panel.active {
  display: block;
}

.send-tlb-panel .bridge-field-label {
  margin-top: 0.65rem;
}

.send-tlb-panel .bridge-field-label:first-child {
  margin-top: 0;
}

.send-tlb-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.send-tlb-airdrop-style-tabs {
  margin-bottom: 0.85rem;
}

.send-tlb-airdrop-style {
  display: none;
}

.send-tlb-airdrop-style.active {
  display: block;
}

.send-tlb-address-block {
  margin-top: 0.85rem;
}

.send-tlb-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.send-tlb-address-head .bridge-field-label {
  margin: 0;
}

.send-tlb-address-paste {
  width: 100%;
  min-height: 7.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.send-tlb-address-paste:focus {
  outline: none;
  border-color: rgba(232, 93, 4, 0.55);
}

.send-tlb-address-paste.is-invalid {
  border-color: var(--red);
}

.send-tlb-address-hint {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}

.send-tlb-addr-count {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--orange);
  font-weight: 600;
}

.send-tlb-addr-count.is-err {
  color: var(--red);
}

.send-tlb-row-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  max-height: min(15rem, 38vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.send-tlb-row-table::-webkit-scrollbar {
  width: 6px;
}

.send-tlb-row-table::-webkit-scrollbar-thumb {
  background: rgba(232, 93, 4, 0.35);
  border-radius: 3px;
}

.send-tlb-row-head,
.send-tlb-row {
  display: grid;
  grid-template-columns: 1fr minmax(5.5rem, 28%) 2rem;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
}

.send-tlb-row-head {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.send-tlb-row + .send-tlb-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.send-tlb-row input {
  width: 100%;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.74rem;
}

.send-tlb-row input.send-tlb-row-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
}

.send-tlb-row input.is-invalid {
  border-color: var(--red);
}

.send-tlb-row-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.send-tlb-row-remove:hover:not(:disabled) {
  color: var(--red);
  background: rgba(255, 80, 80, 0.1);
}

.send-tlb-row-remove:disabled {
  opacity: 0.25;
  cursor: default;
}

.send-tlb-add-row {
  width: 100%;
  margin-top: 0.55rem;
  font-size: 0.92rem;
}

.send-tlb-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0.85rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(232, 93, 4, 0.22);
  border-radius: 4px;
  background: rgba(232, 93, 4, 0.06);
}

.send-tlb-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.send-tlb-summary-stat span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.send-tlb-summary-stat strong {
  font-size: 0.82rem;
  color: var(--cream);
  font-weight: 600;
}

.send-tlb-summary-total strong {
  color: #ffb07b;
}

.send-tlb-summary.is-warn {
  border-color: rgba(255, 100, 80, 0.35);
  background: rgba(255, 80, 60, 0.08);
}

.send-tlb-submit {
  width: 100%;
}

.send-tlb-msg {
  margin-top: 0.55rem;
}

@media (max-width: 480px) {
  .send-tlb-summary {
    grid-template-columns: 1fr;
  }

  .send-tlb-row-head,
  .send-tlb-row {
    grid-template-columns: 1fr 5rem 1.75rem;
  }
}

.pf-lp-panel {
  padding: 1.1rem 1.15rem;
}

.pf-lp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pf-lp-title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}

.pf-token-icon,
.bridge-token-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: #000;
}

.bridge-token-icon {
  width: 22px;
  height: 22px;
}

.bridge-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.label-with-icon img {
  border-radius: 50%;
  object-fit: contain;
  background: #000;
}

.pf-hint {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.pf-hint code {
  font-size: 0.76rem;
  color: var(--text);
}

.pf-lp-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pf-lp-metric {
  padding: 0.6rem 0.55rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
}

.pf-lp-underlying {
  grid-column: 1 / -1;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  margin-top: 0.15rem;
}

.pf-lp-underlying-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.pf-lp-underlying-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.pf-lp-underlying-item {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(232, 93, 4, 0.06);
  border: 1px solid rgba(232, 93, 4, 0.15);
}

.pf-lp-underlying-tick {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.pf-lp-underlying-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.pf-lp-metric span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-lp-metric strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--cream);
}

.pf-locks-block {
  margin-bottom: 0.85rem;
}

.pf-locks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.pf-lock-counts {
  color: var(--orange);
  text-transform: none;
  letter-spacing: 0;
}

.pf-locks-list {
  max-height: 12rem;
  overflow-y: auto;
  border: 1px solid rgba(232, 93, 4, 0.12);
  border-radius: var(--radius-sm);
  padding: 0 0.55rem;
  background: rgba(0, 0, 0, 0.35);
}

.pf-quick {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .portfolio-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-tokens {
    grid-template-columns: 1fr;
  }

  .pf-lp-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .portfolio-breakdown {
    grid-template-columns: 1fr;
  }

  .pf-lp-metrics {
    grid-template-columns: 1fr;
  }

  .pf-row-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Swap terminal — chart + live feed */
#pane-swap.active {
  align-items: stretch;
  max-width: none;
  width: 100%;
}

.swap-terminal-shell {
  position: relative;
  width: 100%;
  max-width: var(--layout-max);
}

.swap-terminal-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 55%;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(232, 93, 4, 0.1) 0%, transparent 68%);
  pointer-events: none;
  filter: blur(48px);
  z-index: 0;
  opacity: 0.85;
}

.swap-terminal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: start;
  container-type: inline-size;
  container-name: swapTerminal;
}

.terminal-glass,
.hub-glass,
.portfolio-hero,
.pf-stack,
.pf-lp-panel,
.activity-panel,
.rewards-claim-card,
.rewards-section,
.rewards-doc,
.staking-hero,
.staking-body,
.pool-shell > .position-card,
.pool-shell > .pool-hero-stats,
.admin-layout .admin-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 28px 56px -28px rgba(0, 0, 0, 0.85),
    0 0 100px -50px rgba(232, 93, 4, 0.12);
}

.terminal-glass::before,
.terminal-glass::after,
.hub-glass::before,
.hub-glass::after,
.portfolio-hero::before,
.portfolio-hero::after,
.pf-stack::before,
.pf-stack::after,
.pf-lp-panel::before,
.pf-lp-panel::after,
.activity-panel::before,
.activity-panel::after,
.rewards-claim-card::before,
.rewards-claim-card::after,
.rewards-section::before,
.rewards-section::after,
.rewards-doc::before,
.rewards-doc::after,
.staking-hero::before,
.staking-hero::after,
.staking-body::before,
.staking-body::after,
.pool-shell > .position-card::before,
.pool-shell > .position-card::after,
.pool-shell > .pool-hero-stats::before,
.pool-shell > .pool-hero-stats::after,
.admin-layout .admin-card::before,
.admin-layout .admin-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(232, 93, 4, 0.35);
  border-style: solid;
  pointer-events: none;
}

.terminal-glass::before,
.hub-glass::before,
.portfolio-hero::before,
.pf-stack::before,
.pf-lp-panel::before,
.activity-panel::before,
.rewards-claim-card::before,
.rewards-section::before,
.rewards-doc::before,
.staking-hero::before,
.staking-body::before,
.pool-shell > .position-card::before,
.pool-shell > .pool-hero-stats::before,
.admin-layout .admin-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.terminal-glass::after,
.hub-glass::after,
.portfolio-hero::after,
.pf-stack::after,
.pf-lp-panel::after,
.activity-panel::after,
.rewards-claim-card::after,
.rewards-section::after,
.rewards-doc::after,
.staking-hero::after,
.staking-body::after,
.pool-shell > .position-card::after,
.pool-shell > .pool-hero-stats::after,
.admin-layout .admin-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.terminal-title {
  font-family: var(--display);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.swap-terminal-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.swap-widget {
  max-width: none;
}

.token-box-premium {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.token-box-premium:focus-within {
  border-color: rgba(232, 93, 4, 0.45);
  box-shadow:
    0 0 0 1px rgba(232, 93, 4, 0.12),
    0 12px 32px -12px rgba(232, 93, 4, 0.25);
}

.token-box-premium .token-select {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.icon-btn-glass {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  transition: all 0.2s var(--ease-out-expo);
}

.icon-btn-glass:hover {
  border-color: rgba(232, 93, 4, 0.5);
  color: var(--orange-bright);
  box-shadow: 0 0 16px -4px var(--glow-orange);
}

.btn-flip {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.25s var(--ease-out-expo);
}

.btn-flip:hover {
  color: var(--orange-bright);
  transform: rotate(180deg);
  box-shadow: 0 0 20px -4px var(--glow-orange);
}

.swap-widget .btn-primary {
  background: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange) 55%, var(--orange-dim) 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #0a0a0a;
  box-shadow: 0 4px 20px -4px var(--glow-orange), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s var(--ease-out-expo);
}

.swap-widget .btn-primary:hover:not(:disabled) {
  color: #0a0a0a;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -6px var(--glow-orange), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.swap-widget .btn-primary:disabled {
  background: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange) 55%, var(--orange-dim) 100%);
  border: none;
  color: #0a0a0a;
  opacity: 0.78;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.swap-widget .btn-pair {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
  transition: all 0.2s var(--ease-out-expo);
}

.swap-widget .btn-pair:hover,
.swap-widget .btn-pair.active {
  border-color: rgba(232, 93, 4, 0.55);
  color: var(--cream);
  background: rgba(232, 93, 4, 0.08);
  box-shadow: 0 0 20px -8px var(--glow-orange);
}

.live-swaps-panel {
  max-width: none;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.live-swaps-head h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow), 0 0 4px var(--green);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--green-glow); }
  50% { opacity: 0.5; transform: scale(0.82); box-shadow: 0 0 4px var(--green-glow); }
}

.live-swaps-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.live-swaps-feed {
  flex: 1;
  max-height: 17rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 93, 4, 0.35) transparent;
}

.live-swaps-feed::-webkit-scrollbar {
  width: 5px;
}

.live-swaps-feed::-webkit-scrollbar-thumb {
  background: rgba(232, 93, 4, 0.35);
  border-radius: 999px;
}

.live-swap-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.live-swap-row:last-child { border-bottom: none; }

.live-swap-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.live-swap-row.row-buy { border-left-color: var(--green); }
.live-swap-row.row-sell { border-left-color: var(--red); }
.live-swap-row.row-claim { border-left-color: var(--blue); }
.live-swap-row.row-lock { border-left-color: var(--orange-dim); }

.live-swap-row .side {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.live-swap-row .side.buy { color: var(--green); text-shadow: 0 0 12px var(--green-glow); }
.live-swap-row .side.sell { color: var(--red); text-shadow: 0 0 12px var(--red-glow); }
.live-swap-row .side.claim { color: var(--blue); text-shadow: 0 0 12px var(--blue-glow); }
.live-swap-row .side.lock { color: var(--orange); }

.live-swap-row .amounts { color: var(--cream); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.live-swap-row .meta { color: var(--muted); font-size: 0.8rem; text-align: right; font-variant-numeric: tabular-nums; }

.live-addr {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono, monospace);
}

.swap-terminal-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.swap-terminal-right .widget {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.chart-panel {
  max-width: none;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.chart-hero {
  margin-bottom: 0.75rem;
}

.chart-price-block {
  padding-bottom: 0.15rem;
}

.chart-kicker-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chart-token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.25);
}

.chart-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chart-price-usd {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.chart-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.chart-change {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.chart-change.up {
  color: var(--green);
  background: rgba(90, 154, 110, 0.12);
  box-shadow: 0 0 16px -6px var(--green-glow);
}

.chart-change.down {
  color: var(--red);
  background: rgba(224, 85, 85, 0.12);
  box-shadow: 0 0 16px -6px var(--red-glow);
}

.chart-change.flat { color: var(--muted); }

.chart-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.chart-controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.seg-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.seg-control button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.55rem 0.15rem 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.chart-legend.hidden { display: none !important; }

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chart-legend-trades {
  gap: 0.65rem;
}

.chart-legend-tri {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  flex-shrink: 0;
}

.chart-legend-tri.buy {
  border-bottom: 8px solid rgba(90, 154, 110, 0.95);
}

.chart-legend-tri.sell {
  border-top: 8px solid rgba(204, 68, 68, 0.95);
}

.seg-control button {
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.6rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s var(--ease-out-expo);
}

.seg-control button:hover {
  color: var(--cream);
}

.seg-control button.active {
  color: #0a0a0a;
  font-weight: 600;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  box-shadow: 0 2px 14px -2px var(--glow-orange);
}

.chart-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(232, 93, 4, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    rgba(0, 0, 0, 0.35);
}

.chart-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255, 255, 255, 0.02) 39px,
    rgba(255, 255, 255, 0.02) 40px
  );
  pointer-events: none;
  z-index: 1;
}

.chart-canvas-wrap canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  cursor: crosshair;
}

.pair-info-panel {
  margin-top: 0;
}

.pair-info-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.pair-info-kicker {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pair-info-badge {
  flex-shrink: 0;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-bright);
  border: 1px solid rgba(232, 93, 4, 0.35);
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.14), rgba(232, 93, 4, 0.04));
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 0 20px -8px var(--glow-orange);
}

.pair-info-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.pair-tile {
  position: relative;
  overflow: hidden;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}

.pair-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 4, 0.55), transparent);
  opacity: 0.6;
}

.pair-tile:hover {
  border-color: rgba(232, 93, 4, 0.25);
  transform: translateY(-1px);
}

.pair-tile-wide {
  grid-column: auto;
}

.pair-tile-pool {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.06) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.pair-info-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.pair-tile strong,
.pair-pooled-amts strong {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pair-pooled-amts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  margin-top: 0.35rem;
}

.pair-pooled-row em {
  font-style: normal;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.2rem;
}

.pair-pooled-row.is-primary strong {
  color: var(--orange-bright);
  text-shadow: 0 0 20px var(--glow-orange);
}

.pair-pooled-row.is-primary em {
  color: var(--orange);
}

.pair-pooled-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 300;
}

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

  .swap-terminal-right {
    order: -1;
  }

  .chart-panel {
    min-height: 320px;
  }

  .live-swaps-feed {
    max-height: 14rem;
  }

  .chart-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .seg-control {
    justify-content: center;
  }

  .pair-info-bento {
    grid-template-columns: 1fr 1fr;
  }

  .pair-tile-wide {
    grid-column: 1 / -1;
  }
}

@container swapTerminal (max-width: 720px) {
  .swap-terminal {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scanlines,
  .grid-bg {
    display: none;
  }
  .btn-flip:hover { transform: none; }
  .pair-tile:hover { transform: none; }
  .swap-widget .btn-primary:hover:not(:disabled) { transform: none; }
}

.chart-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.chart-crosshair.hidden {
  display: none;
}

.chart-crosshair-v,
.chart-crosshair-h {
  position: absolute;
  background: rgba(242, 232, 220, 0.28);
}

.chart-crosshair-v {
  top: 12px;
  bottom: 22px;
  width: 1px;
  transform: translateX(-0.5px);
}

.chart-crosshair-h {
  left: 52px;
  right: 12px;
  height: 1px;
  transform: translateY(-0.5px);
}

.chart-hover-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid rgba(5, 5, 5, 0.85);
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.25);
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  min-width: 8.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(232, 93, 4, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
}

.chart-tooltip.hidden {
  display: none;
}

.chart-tooltip-time {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.chart-tooltip-price {
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chart-tooltip-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.55rem;
  margin-top: 0.25rem;
}

.chart-tooltip-rows span:nth-child(odd) {
  color: var(--muted);
}

.chart-tooltip-rows span:nth-child(even) {
  color: var(--cream);
  text-align: right;
}

.usd-hint {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  min-height: 0.9rem;
}

.usd-hint:empty { display: none; }

/* Activity log */
#pane-activity.active {
  justify-content: center;
  padding: 0 clamp(0.5rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

.activity-panel {
  width: 100%;
  max-width: min(960px, 100%);
  margin: 0 auto;
}

.activity-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hist-list { display: flex; flex-direction: column; gap: 0; }

.hist-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.hist-row:last-child { border-bottom: none; }

.hist-row .type {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.hist-row .summary { color: var(--cream); }
.hist-row .detail { color: var(--muted); text-align: right; flex-shrink: 0; }

/* Activity rows — premium icon badges */
#hist-list .act-row {
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0;
  transition: background 0.25s ease;
}

#hist-list .act-row:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 70%);
}

.act-icon {
  --act-glow: rgba(232, 93, 4, 0.35);
  --act-bg-a: rgba(232, 93, 4, 0.18);
  --act-bg-b: rgba(232, 93, 4, 0.04);
  --act-fg: #ffb380;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(145deg, var(--act-bg-a), var(--act-bg-b));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 8px 22px -12px var(--act-glow);
  color: var(--act-fg);
}

.act-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  filter: drop-shadow(0 1px 6px var(--act-glow));
}

.act-icon--swap {
  --act-glow: rgba(96, 165, 250, 0.42);
  --act-bg-a: rgba(59, 130, 246, 0.22);
  --act-bg-b: rgba(59, 130, 246, 0.05);
  --act-fg: #93c5fd;
}

.act-icon--liquidity {
  --act-glow: rgba(45, 212, 191, 0.42);
  --act-bg-a: rgba(20, 184, 166, 0.22);
  --act-bg-b: rgba(20, 184, 166, 0.05);
  --act-fg: #5eead4;
}

.act-icon--lock {
  --act-glow: rgba(251, 191, 36, 0.42);
  --act-bg-a: rgba(245, 158, 11, 0.22);
  --act-bg-b: rgba(245, 158, 11, 0.05);
  --act-fg: #fcd34d;
}

.act-icon--unlock {
  --act-glow: rgba(74, 222, 128, 0.42);
  --act-bg-a: rgba(34, 197, 94, 0.22);
  --act-bg-b: rgba(34, 197, 94, 0.05);
  --act-fg: #86efac;
}

.act-icon--wrap {
  --act-glow: rgba(129, 140, 248, 0.42);
  --act-bg-a: rgba(99, 102, 241, 0.22);
  --act-bg-b: rgba(99, 102, 241, 0.05);
  --act-fg: #a5b4fc;
}

.act-icon--unwrap {
  --act-glow: rgba(244, 114, 182, 0.42);
  --act-bg-a: rgba(236, 72, 153, 0.22);
  --act-bg-b: rgba(236, 72, 153, 0.05);
  --act-fg: #f9a8d4;
}

.act-icon--send {
  --act-glow: rgba(148, 163, 184, 0.35);
  --act-bg-a: rgba(100, 116, 139, 0.22);
  --act-bg-b: rgba(100, 116, 139, 0.05);
  --act-fg: #cbd5e1;
}

.act-icon--receive {
  --act-glow: rgba(74, 222, 128, 0.38);
  --act-bg-a: rgba(34, 197, 94, 0.2);
  --act-bg-b: rgba(34, 197, 94, 0.05);
  --act-fg: #86efac;
}

.act-icon--burn_lp {
  --act-glow: rgba(224, 85, 85, 0.45);
  --act-bg-a: rgba(224, 85, 85, 0.22);
  --act-bg-b: rgba(232, 93, 4, 0.05);
  --act-fg: #ff7a5c;
}

.act-body {
  flex: 1;
  min-width: 0;
}

.act-type {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 0.18rem;
}

.act-summary {
  color: var(--cream);
  font-size: 0.92rem;
  line-height: 1.35;
}

.act-meta {
  text-align: right;
  flex-shrink: 0;
  min-width: 5.5rem;
}

.act-detail {
  color: var(--cream);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.act-time {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.85;
}

.empty { color: var(--muted); font-size: 0.88rem; padding: 0.5rem 0; }

@media (max-width: 520px) {
  .activity-filters {
    gap: 0.35rem;
  }
  .activity-filters button {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }
  .hist-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  #hist-list .act-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .act-meta {
    width: 100%;
    text-align: left;
    padding-left: 3.2rem;
  }
  .hist-row .detail {
    text-align: left;
  }
}

.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.activity-filters button {
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.activity-filters button.active {
  border-color: var(--orange-dim);
  color: var(--orange);
  background: rgba(232, 93, 4, 0.08);
}

.hist-row .hist-id {
  font-size: 0.76rem;
  color: var(--muted);
  word-break: break-all;
  margin-top: 0.2rem;
}

.swap-toast {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--orange-dim);
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.12), rgba(232, 93, 4, 0.04));
  animation: toast-in 0.35s ease;
}

.swap-toast.hidden { display: none !important; }

.swap-toast .toast-title {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.45rem;
}

.swap-toast .toast-pair {
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.swap-toast .toast-meta {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

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

/* --- utilities --- */
@layer utilities {
.hidden { display: none !important; }

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open { display: flex; }

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.1rem;
  position: relative;
}

.modal::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--orange-dim);
  border-left: 1px solid var(--orange-dim);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.modal-head h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.modal label {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.modal input, .modal select {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--cream);
}

.modal .hint {
  font-size: 0.86rem;
  color: var(--muted);
  margin: -0.5rem 0 0.75rem;
  line-height: 1.5;
}

.slip-presets, .bridge-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.slip-presets button, .bridge-tabs button {
  flex: 1;
  padding: 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.slip-presets button.active, .bridge-tabs button.active {
  border-color: var(--orange-dim);
  color: var(--orange);
}

.bridge-panel { display: none; }
.bridge-panel.active { display: block; }

.dep-preview {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.85rem;
  border: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--cream);
}

.modal .modal-body-scroll {
  max-height: min(72vh, 640px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* ZeroBit Gate buy modal */
.modal-zbg {
  max-width: 22.5rem;
  width: calc(100% - 1.5rem);
  padding: 0;
  overflow: hidden;
  border-color: rgba(62, 220, 160, 0.35);
  box-shadow:
    0 0 0 1px rgba(62, 220, 160, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(46, 232, 154, 0.08);
  text-align: left;
}

.modal-zbg::before {
  border-color: rgba(62, 220, 160, 0.5);
}

.modal-zbg .hint {
  margin: 0;
}

.zbg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0;
  margin-bottom: 0;
}

.zbg-modal-badge {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5ee8b0;
  font-weight: 600;
  line-height: 1.3;
}

.zbg-modal-hero {
  position: relative;
  padding: 0.85rem 1rem 0.9rem;
  text-align: center;
  overflow: hidden;
}

.zbg-modal-body {
  padding: 0 1rem 1rem;
}

.zbg-modal-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(46, 232, 154, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(232, 93, 4, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(8, 18, 14, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.zbg-modal-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(46, 232, 154, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 232, 154, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.zbg-modal-logos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.zbg-modal-logo {
  border-radius: 12px;
  object-fit: contain;
}

.zbg-logo-glow {
  filter: drop-shadow(0 0 14px rgba(46, 232, 154, 0.45));
  animation: zbg-logo-float 4s ease-in-out infinite;
}

.zbg-logo-tlb {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px;
  animation: zbg-logo-float 4s ease-in-out infinite 0.6s;
}

.zbg-modal-connector {
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5ee8b0, var(--orange), transparent);
  opacity: 0.85;
}

@keyframes zbg-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.zbg-modal-title {
  position: relative;
  margin: 0 0 0.5rem;
  font-family: var(--font-display, inherit);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--cream);
  line-height: 1.3;
  text-wrap: balance;
}

.zbg-modal-kicker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
  max-width: 18.5rem;
}

.zbg-kicker-line {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}

.zbg-kicker-em {
  color: rgba(200, 220, 210, 0.95);
}

.zbg-modal-steps {
  margin: 0 0 0.75rem;
  padding: 0 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.92;
  list-style-position: outside;
}

.zbg-modal-steps li {
  margin-bottom: 0.4rem;
  padding-left: 0.15rem;
}

.zbg-modal-steps li:last-child {
  margin-bottom: 0;
}

.zbg-modal-steps li::marker {
  color: #5ee8b0;
}

.zbg-pay-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0 0.85rem;
}

.zbg-pay-pills span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(62, 220, 160, 0.25);
  background: rgba(8, 24, 18, 0.6);
  color: rgba(180, 230, 200, 0.85);
  border-radius: 2px;
}

.zbg-wallet-panel {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.zbg-wallet-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.zbg-wallet-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.zbg-wallet-addr {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.86rem;
  color: var(--cream);
  word-break: break-all;
  line-height: 1.4;
}

.zbg-copy-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.zbg-wallet-hint {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.zbg-trust {
  margin: 0 0 0.75rem;
  padding: 0 0.15rem;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  text-wrap: balance;
}

.modal-zbg .zbg-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  width: 100%;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: normal;
  background: linear-gradient(135deg, #3a9e72 0%, #2e7d5a 45%, var(--orange) 120%);
  border-color: rgba(62, 220, 160, 0.45);
  box-shadow: 0 0 20px rgba(46, 232, 154, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zbg-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(46, 232, 154, 0.32);
  color: #fff;
}

.zbg-cta.disabled,
.zbg-cta[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.zbg-cta-arrow {
  font-size: 1rem;
  opacity: 0.9;
}

.modal-zbg .zbg-secondary {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.65rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}

.btn-pair-zbg {
  border-color: rgba(62, 220, 160, 0.35);
  color: #8eecc4;
}

.btn-pair-zbg:hover {
  border-color: rgba(62, 220, 160, 0.55);
  color: #b8f5d8;
  background: rgba(8, 28, 20, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .zbg-logo-glow,
  .zbg-logo-tlb {
    animation: none;
  }
  .zbg-cta:hover {
    transform: none;
  }
}

/* Wrap / Unwrap modal */
.modal-bridge {
  max-width: 34rem;
  width: calc(100% - 1.25rem);
  padding: 0;
  overflow: hidden;
  border-color: rgba(232, 93, 4, 0.36);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(232, 93, 4, 0.08),
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 42px rgba(232, 93, 4, 0.08);
}

.bridge-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.65rem;
  border-bottom: 1px solid rgba(232, 93, 4, 0.14);
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.06) 0%, rgba(232, 93, 4, 0) 100%),
    var(--surface);
}

.bridge-modal-kicker {
  margin: 0 0 0.28rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.bridge-modal-head h3 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.bridge-mode-tabs,
.bridge-asset-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.bridge-mode-tabs {
  padding: 0.75rem 1.15rem 0.75rem;
  background: var(--surface);
}

.bridge-asset-tabs {
  margin-bottom: 0.85rem;
}

.bridge-asset-tabs button {
  padding: 0.58rem 0.5rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.bridge-asset-tabs button.active {
  border-color: rgba(232, 93, 4, 0.55);
  color: #ffb07b;
  background: rgba(232, 93, 4, 0.14);
}

.bridge-asset-panel {
  display: none;
}

.bridge-asset-panel.active {
  display: block;
}

.bridge-balance-hint {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

.bridge-mode-tabs button {
  padding: 0.68rem 0.55rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.bridge-mode-tabs button.active {
  border-color: rgba(232, 93, 4, 0.58);
  color: #ffb07b;
  background: rgba(232, 93, 4, 0.16);
}

.bridge-modal-body {
  padding: 0.95rem 1.15rem 1.15rem;
  max-height: min(80vh, 760px);
}

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

.bridge-progress {
  margin-bottom: 0.95rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid var(--border);
  background: rgba(232, 93, 4, 0.08);
  border-radius: 4px;
}

.bridge-progress-track {
  height: 4px;
  background: var(--border);
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.bridge-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--green));
  transition: width 0.35s ease;
}

.bridge-progress-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.45;
}

.bridge-asset-card {
  border: 1px solid rgba(232, 93, 4, 0.22);
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.92) 0%, rgba(12, 10, 8, 0.92) 100%);
  padding: 0.95rem 0.95rem;
  margin-bottom: 0.85rem;
  border-radius: 6px;
}

.bridge-asset-head {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 0.78rem;
}

.bridge-asset-head h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
}

.bridge-asset-sub {
  margin: 0.2rem 0 0;
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.4;
}

.bridge-tlb-hint {
  margin: 0 0 0.68rem;
}

.bridge-bal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.48rem;
  margin-bottom: 0.78rem;
}

.bridge-bal-pill {
  padding: 0.52rem 0.45rem;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 4px;
}

.bridge-bal-pill strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.84rem;
  color: var(--cream);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.bridge-ins-picker {
  margin-bottom: 0.82rem;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 4px;
}

.bridge-ins-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.52rem 0.65rem;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.bridge-ins-list {
  max-height: 10.5rem;
}

.bridge-field-label {
  display: block;
  margin: 0 0 0.42rem;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.bridge-amt-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.bridge-input,
.bridge-select {
  flex: 1;
  min-width: 0;
  padding: 0.74rem 0.7rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: 4px;
}

.bridge-max-btn {
  flex-shrink: 0;
  min-width: 3.3rem;
  padding: 0.52rem 0.68rem;
  font-size: 0.88rem;
  border-radius: 4px;
}

.bridge-action-btn {
  width: 100%;
  min-height: 2.85rem;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
}

.bridge-advanced {
  margin-top: 0.65rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.bridge-advanced summary {
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.bridge-advanced .bridge-input {
  width: 100%;
  margin-bottom: 0.4rem;
}

.bridge-advanced .bridge-action-btn,
.bridge-advanced .btn-sm {
  width: 100%;
  margin-top: 0.35rem;
}

.bridge-unwrap-note {
  margin: 0.35rem 0 0.55rem;
}

.bridge-msg {
  margin-top: 0.5rem;
  text-align: center;
}

@media (max-width: 560px) {
  .modal-bridge {
    max-width: none;
    width: calc(100% - 0.75rem);
  }

  .bridge-modal-head {
    padding: 0.85rem 0.85rem 0.55rem;
  }

  .bridge-mode-tabs {
    padding: 0.7rem 0.85rem 0.65rem;
  }

  .bridge-modal-body {
    padding: 0.85rem 0.85rem 0.9rem;
    max-height: min(82vh, 740px);
  }

  .bridge-action-btn {
    min-height: 2.6rem;
    font-size: 0.82rem;
  }
}

.bridge-section {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.85rem;
}

.bridge-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

.brc20-balances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0.65rem 0 0.85rem;
}

.brc20-bal {
  border: 1px solid var(--border);
  padding: 0.45rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.brc20-bal strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: var(--cream);
  font-weight: 600;
}

.tlb-path-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.tlb-path-tabs button {
  flex: 1;
  padding: 0.45rem 0.35rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1.3;
}

.tlb-path-tabs button.active {
  border-color: var(--orange-dim);
  color: var(--orange);
  background: rgba(232, 93, 4, 0.06);
}

.tlb-path-panel { display: none; }
.tlb-path-panel.active { display: block; }

.ins-list-wrap {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  background: var(--panel);
}

.ins-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.ins-list {
  max-height: 11rem;
  overflow-y: auto;
}

.ins-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.68rem 0.72rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.78rem;
}

.ins-row:last-child { border-bottom: none; }
.ins-row:hover { background: rgba(232, 93, 4, 0.05); }
.ins-row.selected {
  background: rgba(232, 93, 4, 0.14);
  border-left: 3px solid var(--orange);
}

.ins-row .ins-amt { color: var(--cream); font-weight: 600; }
.ins-row .ins-id { color: var(--muted); font-size: 0.66rem; word-break: break-all; text-align: right; max-width: 62%; line-height: 1.35; }

.link-btn {
  font-family: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  padding: 0.25rem 0;
}

.link-btn.hidden { display: none; }

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  padding: 1.25rem var(--layout-pad) 2rem;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(232, 93, 4, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 100%);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}

.footer-trust {
  margin: 0;
  width: 100%;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.85;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover { color: var(--orange); }

.rollup-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  margin: 0 0 0.5rem;
  padding: 0.65rem var(--layout-pad);
  border: none;
  border-top: 1px solid rgba(232, 93, 4, 0.25);
  border-bottom: 1px solid rgba(232, 93, 4, 0.25);
  background: linear-gradient(90deg, rgba(232, 93, 4, 0.06) 0%, rgba(232, 93, 4, 0.12) 50%, rgba(232, 93, 4, 0.06) 100%);
  font-size: 0.88rem;
  color: var(--cream);
  line-height: 1.45;
}

.rollup-banner.hidden { display: none !important; }

.rollup-banner-icon { font-size: 1rem; line-height: 1; margin-top: 0.1rem; }

.rollup-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rollup-banner-text strong {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.bridge-pending-banner {
  border-top-color: rgba(120, 200, 255, 0.25);
  border-bottom-color: rgba(120, 200, 255, 0.25);
  background: linear-gradient(90deg, rgba(80, 160, 255, 0.05) 0%, rgba(80, 160, 255, 0.12) 50%, rgba(80, 160, 255, 0.05) 100%);
}

.bridge-pending-banner .rollup-banner-text strong {
  color: #7ec8ff;
}

body.inswap-blocked .btn-primary:not(#btn-connect) {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

body.inswap-blocked #btn-open-bridge,
body.inswap-blocked #btn-max-in,
body.inswap-blocked .btn-pair {
  opacity: 0.45;
  pointer-events: none;
}

/* —— Loaders & progressive loading —— */
@keyframes boot-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}

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

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

@keyframes loader-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

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

.app-boot-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 500;
  background: rgba(232, 93, 4, 0.08);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.app-boot-bar.is-active {
  opacity: 1;
}

.app-boot-bar span {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--orange), #ff9a4d, transparent);
  animation: boot-slide 1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

body.app-booting .main {
  opacity: 0.55;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.app-ready .main {
  opacity: 1;
}

body.app-booting .header {
  opacity: 0.85;
}

.loader-orbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 0.5rem;
  min-height: 4.5rem;
}

.loader-orbit-ring {
  position: relative;
  width: 32px;
  height: 32px;
}

.loader-orbit-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(232, 93, 4, 0.12);
}

.loader-orbit-ring::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--orange);
  border-right-color: rgba(232, 93, 4, 0.4);
  animation: loader-spin 0.7s linear infinite;
}

.loader-orbit-glow {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(232, 93, 4, 0.7);
  animation: loader-spin 0.7s linear infinite;
  transform-origin: 50% 18px;
}

.loader-orbit-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.loader-inline-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: loader-pulse 0.9s ease-in-out infinite;
}

.loader-inline-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-inline-dot:nth-child(3) { animation-delay: 0.3s; }

.sk-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.35rem 0;
  animation: region-fade-in 0.3s ease;
}

.sk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.sk {
  display: block;
  height: 0.5rem;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    rgba(232, 93, 4, 0.12) 45%,
    var(--surface-2) 90%
  );
  background-size: 200% 100%;
  animation: sk-shimmer 1.35s ease-in-out infinite;
}

.sk-w70 { width: 70%; }
.sk-w55 { width: 55%; }
.sk-w45 { width: 45%; }
.sk-w40 { width: 40%; }
.sk-w30 { width: 30%; }
.sk-w25 { width: 25%; }
.sk-w15 { width: 15%; min-width: 1.5rem; }

.sk-swap-row {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.sk-swap-row:last-child { border-bottom: none; }

.sk-hist-row {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.sk-hist-row:last-child { border-bottom: none; }

.sk-ins-row {
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.load-region.is-shimmering strong,
.load-region.is-shimmering .portfolio-net,
.load-region.is-shimmering .reward-amount,
.load-region.is-shimmering #reward-vest {
  position: relative;
  color: transparent !important;
  user-select: none;
  border-radius: 4px;
}

.load-region.is-shimmering strong::after,
.load-region.is-shimmering .portfolio-net::after,
.load-region.is-shimmering .reward-amount::after,
.load-region.is-shimmering #reward-vest::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    rgba(232, 93, 4, 0.14) 50%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
  animation: sk-shimmer 1.35s ease-in-out infinite;
}

.chart-canvas-wrap.is-chart-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.35);
  pointer-events: none;
  border-radius: var(--radius-sm);
}

.chart-loader-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.chart-loader-overlay .loader-orbit {
  min-height: 0;
  padding: 0;
}

.chart-loader-overlay .loader-orbit-label {
  display: none;
}

.live-swaps-panel.is-refreshing .live-swaps-head h2::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
  animation: loader-pulse 0.8s ease-in-out infinite;
}

.live-swaps-feed[aria-busy="true"] {
  min-height: 5rem;
}

#swap-out-amt.is-quoting {
  color: var(--muted);
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    rgba(232, 93, 4, 0.06) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
}

.rate-line.is-quoting {
  color: var(--muted);
}

.rate-line.is-quoting::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
  animation: loader-pulse 0.8s ease-in-out infinite;
}

.btn-primary.is-loading,
.btn-connect.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-primary.is-loading::after,
.btn-connect.is-loading::after {
  content: attr(data-loading-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}

.btn-primary.is-loading::after {
  color: #0a0a0a;
}

#btn-unlock.is-loading::after,
#btn-tlb-wrap-primary.is-loading::after,
#btn-wrap-preview.is-loading::after {
  color: var(--cream);
}

.btn-primary.is-loading::before,
.btn-connect.is-loading::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -4.5rem;
  border-radius: 50%;
  border: 2px solid rgba(242, 232, 220, 0.25);
  border-top-color: var(--cream);
  animation: loader-spin 0.65s linear infinite;
}

.btn-connect.is-loading::before {
  margin-left: -5.5rem;
}

.btn-connect.is-loading::after {
  color: #0a0a0a;
}

.btn-connect.connected.is-loading::after {
  color: var(--cream);
}

.link-btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.region-enter {
  animation: region-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .scanlines,
  .grid-bg {
    display: none;
  }
  .app-boot-bar span,
  .loader-orbit-ring::after,
  .loader-orbit-glow,
  .sk,
  .load-region.is-shimmering strong::after,
  .load-region.is-shimmering .portfolio-net::after,
  .load-region.is-shimmering .reward-amount::after,
  #swap-out-amt.is-quoting,
  .btn-primary.is-loading::before,
  .btn-connect.is-loading::before {
    animation: none !important;
  }

  body.app-booting .main {
    opacity: 1;
    transition: none;
  }
}

/* Admin dashboard */
.admin-layout {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.admin-sub {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-card-wide {
    grid-column: 1 / -1;
  }
}

.admin-card {
  padding: 0.85rem 1rem;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.admin-card-head h3 {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.admin-badge {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badge.ok { color: var(--green); }
.admin-badge.warn { color: var(--orange); }
.admin-badge.err { color: var(--red); }

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.admin-stat-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px) {
  .admin-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-stat span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.admin-stat strong {
  display: block;
  font-size: 0.82rem;
  color: var(--cream);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-progress {
  margin: 0.5rem 0 0.65rem;
  height: 4px;
  background: rgba(242, 232, 220, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.admin-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.admin-epoch-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-epoch-meta strong {
  display: block;
  color: var(--cream);
  font-weight: 500;
  margin-top: 0.1rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  padding: 0.4rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(42, 42, 42, 0.8);
}

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

.admin-table td {
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.admin-table .status-active { color: var(--green); }
.admin-table .status-closed { color: var(--muted); }

.admin-claims-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.8);
  font-size: 0.84rem;
}

.admin-claim-row:last-child { border-bottom: none; }

.admin-claim-row .addr {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-claim-row .amt { color: var(--cream); font-weight: 600; }

.admin-claim-row .status-paid { color: var(--green); }
.admin-claim-row .status-failed { color: var(--red); }
.admin-claim-row .status-pending { color: var(--orange); }

.admin-actions .admin-label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-input {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  font-family: inherit;
  box-sizing: border-box;
}

.btn-ghost {
  font-family: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--cream);
  border-color: var(--orange-dim);
}

.admin-card-head-split {
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-epoch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.admin-epoch-tabs button {
  font-family: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.admin-epoch-tabs button.active {
  color: var(--orange);
  border-color: var(--orange-dim);
  background: rgba(232, 93, 4, 0.08);
}

.admin-epoch-summary {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
}

.admin-epoch-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-epoch-card {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.65rem 0.75rem;
}

.admin-epoch-card.phase-emitting {
  border-color: rgba(90, 154, 110, 0.35);
}

.admin-epoch-card.phase-claiming {
  border-color: rgba(232, 93, 4, 0.35);
}

.admin-epoch-card.phase-completed {
  border-color: rgba(107, 101, 96, 0.45);
  opacity: 0.85;
}

.admin-epoch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.admin-epoch-card-head strong {
  font-size: 0.92rem;
  color: var(--cream);
}

.admin-phase-badge {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.admin-phase-badge.phase-emitting {
  color: var(--green);
  border-color: rgba(90, 154, 110, 0.45);
}

.admin-phase-badge.phase-claiming {
  color: var(--orange);
  border-color: rgba(232, 93, 4, 0.45);
}

.admin-phase-badge.phase-completed {
  color: var(--muted);
}

.admin-epoch-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-epoch-card-stats strong {
  color: var(--cream);
  font-weight: 600;
}
}

/* —— Engagement: status, leaderboard, theater —— */
.pf-status-card {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
}
.pf-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1rem;
}
@media (min-width: 640px) {
  .pf-status-grid { grid-template-columns: repeat(4, 1fr); }
}
.pf-status-item.pf-status-wide { grid-column: 1 / -1; }
.pf-status-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.pf-status-item strong { font-size: 0.95rem; color: var(--cream); }
.pf-staking-line { font-size: 0.88rem; color: var(--muted); }

.rewards-jackpot-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(232, 93, 4, 0.4);
  background: rgba(232, 93, 4, 0.08);
  font-size: 0.92rem;
  color: var(--cream);
  line-height: 1.45;
}
.lb-section { padding: 1rem; margin-bottom: 1rem; }
.lb-sort { margin-bottom: 0.75rem; }
.lb-list { display: flex; flex-direction: column; gap: 0.35rem; min-height: 2rem; }
.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.86rem;
}
.lb-row.you { border-color: rgba(232, 93, 4, 0.5); background: rgba(232, 93, 4, 0.06); }
.lb-row .rank { color: var(--orange); font-weight: 700; min-width: 1.5rem; }
.lb-holder-row .lb-rank-cell {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.lb-holder-row .lb-addr-cell { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb-holder-row .lb-bal-cell { font-weight: 600; color: var(--cream); white-space: nowrap; }
.lb-badges { display: inline-flex; align-items: center; gap: 0.12rem; margin-left: 0.15rem; }
.lb-trophy { font-size: 0.85rem; line-height: 1; }
.lb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  line-height: 1;
  opacity: 0.95;
}
.lb-tier-whale, .lb-tier-leviathan { filter: drop-shadow(0 0 4px rgba(232, 93, 4, 0.35)); }
.lb-act-mega_trader { animation: lb-pulse 2.4s ease-in-out infinite; }
@keyframes lb-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.lb-tier-row-whale.you, .lb-tier-row-leviathan.you {
  border-color: rgba(232, 93, 4, 0.65);
  box-shadow: inset 0 0 12px rgba(232, 93, 4, 0.08);
}
.lb-eligible-summary {
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--cream);
  border: 1px solid rgba(76, 175, 80, 0.35);
  background: rgba(76, 175, 80, 0.06);
}
.lb-eligible-summary.muted {
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.12);
  color: var(--muted);
}
.lb-locker-row.eligible { border-left: 2px solid rgba(76, 175, 80, 0.55); }
.lb-locker-addr { display: inline-flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.lb-eligible-badge {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.28rem;
  border: 1px solid var(--border);
  color: var(--muted);
}
.lb-eligible-badge.earning {
  border-color: rgba(76, 175, 80, 0.5);
  color: var(--green);
  background: rgba(76, 175, 80, 0.1);
}
.lb-eligible-badge.claimable {
  border-color: rgba(232, 93, 4, 0.55);
  color: var(--orange);
  background: rgba(232, 93, 4, 0.12);
  animation: lb-claim-pulse 2s ease-in-out infinite;
}
@keyframes lb-claim-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; box-shadow: 0 0 8px rgba(232, 93, 4, 0.25); }
}
.lb-locker-row.eligible.claimable-row {
  border-left-color: rgba(232, 93, 4, 0.65);
}
.live-event-row.row-treasury_claim { opacity: 0.92; }
.lb-new-week { margin-top: 1rem; }
.lb-new-week h4 { font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.4rem; }
.lb-list.compact .lb-row { padding: 0.35rem 0.45rem; }

.lock-calc-box {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
}
.lock-calc-title { font-size: 0.88rem; font-weight: 600; color: var(--cream); margin: 0 0 0.35rem; }
.lock-calc-hint { margin: 0 0 0.5rem; font-size: 0.8rem; }
.lock-calc-stats { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.lock-calc-stats strong { color: var(--green); }
.btn-sm { font-size: 0.84rem; padding: 0.35rem 0.6rem; margin-top: 0.45rem; }

.theater-toast-stack {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: min(320px, calc(100vw - 2rem));
  pointer-events: none;
}
.theater-toast {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  background: rgba(10, 14, 12, 0.92);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: theater-in 0.35s ease;
}
.theater-toast.whale { border-color: rgba(232, 93, 4, 0.55); }
.theater-toast.claim { border-color: rgba(100, 168, 255, 0.55); }
.theater-toast.claim strong { color: var(--blue); }
.theater-toast strong { display: block; color: var(--orange); margin-bottom: 0.15rem; }
@keyframes theater-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.live-event-row.row-lock { border-left-color: var(--orange-dim); }
.live-event-row.row-whale_lock,
.live-event-row.row-whale_swap { border-left: 2px solid var(--orange); }
.live-event-row.row-treasury_claim,
.live-event-row.row-claim { border-left-color: var(--blue); }

/* —— Staking tab · Pocket Minter —— */
#pane-staking.active {
  align-items: stretch;
  max-width: none;
  width: 100%;
}

.staking-shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.staking-hero {
  padding: 1.25rem 1.35rem;
}

.staking-layout {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.35rem 1.75rem;
  align-items: center;
}

@media (max-width: 600px) {
  .staking-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .staking-figure { margin: 0 auto; }
  .staking-intro { display: flex; flex-direction: column; align-items: center; }
  .staking-open-btn { width: 100%; max-width: 20rem; }
}

.staking-figure {
  margin: 0;
  position: relative;
}

.staking-figure::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle at 50% 45%, rgba(232, 93, 4, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.staking-mascot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.staking-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.staking-name {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.staking-tagline {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 28rem;
}

.staking-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.staking-badge {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
}

.staking-badge-accent {
  border-color: rgba(232, 93, 4, 0.4);
  color: var(--orange-bright);
  background: rgba(232, 93, 4, 0.1);
}

.staking-tg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-bright) !important;
  text-decoration: none !important;
}

.staking-tg:hover { color: #ffb070 !important; text-decoration: underline !important; }

.staking-open-btn {
  display: inline-block;
  font-size: 0.68rem !important;
  padding: 0.65rem 1.25rem !important;
  letter-spacing: 0.05em;
}

.staking-body {
  padding: 1.1rem 1.25rem;
}

.staking-desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
}

.staking-cap-title {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.staking-caps {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.staking-caps li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 0.5rem 0.6rem;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.staking-caps li strong {
  color: var(--cream);
  font-weight: 600;
}

.staking-cap-stake {
  border-left-color: rgba(232, 93, 4, 0.55) !important;
  background: rgba(232, 93, 4, 0.06) !important;
}

.staking-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.staking-footer-actions .btn-secondary {
  font-size: 0.84rem !important;
}

.staking-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

/* —— Rank tab: holders, lockers —— */
.rankings-shell { display: flex; flex-direction: column; gap: 1rem; max-width: 720px; }
.rankings-hero { padding: 1rem 1.1rem; }
.rankings-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.rankings-title { font-size: 1.35rem; margin: 0 0 0.35rem; color: var(--cream); }
.rankings-sub { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.5; }
.rankings-jackpot { margin-top: 0.75rem; margin-bottom: 0; }
.rankings-you-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.modal-referral {
  max-width: 420px;
  width: calc(100% - 2rem);
}

.referral-modal-body {
  padding: 0 1rem 1rem;
}

.referral-modal-body .hint {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.65rem 0 0.75rem;
}

.referral-stat {
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(232, 93, 4, 0.06);
}

.referral-stat span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.referral-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--cream);
}

.referral-link-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.referral-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
  margin-top: 0.35rem;
}

.modal-referral .referral-link-input {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  font-family: var(--mono, monospace);
  font-size: 0.88rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--cream);
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-referral .referral-link-row .btn-secondary {
  margin: 0;
  align-self: stretch;
  white-space: nowrap;
}

.modal-flex { max-width: 640px; width: calc(100% - 2rem); }

.flex-modal-body { padding: 0 1rem 1rem; }

.flex-preview {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

.flex-hint { margin: 0.65rem 0; font-size: 0.86rem; }

.flex-modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flex-modal-actions .btn-primary,
.flex-modal-actions .btn-secondary {
  flex: 1;
  min-width: 140px;
}

.rankings-you { padding: 0.85rem 1rem; }
.rankings-you h3 { font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.55rem; }
.rankings-you-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 0.85rem;
}
@media (min-width: 520px) {
  .rankings-you-grid { grid-template-columns: repeat(4, 1fr); }
}
.rankings-you-item strong { font-size: 0.88rem; color: var(--cream); }
.rankings-tabs {
  margin: 0.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.rankings-tabs button {
  font-size: 0.8rem;
  padding: 0.45rem 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rankings-panel { padding: 1rem; display: none; }
.rankings-panel.active { display: block; }
.rankings-panel-head { margin-bottom: 0.65rem; }
.rankings-panel-head h3 { margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--cream); }
.rk-list { max-height: 420px; overflow-y: auto; }
.rk-list.is-loading {
  min-height: 11rem;
  position: relative;
}
.rk-loading-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.sk-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.rk-sk-you .rankings-you-item {
  padding: 0.35rem 0;
}
#rk-you-grid[aria-busy="true"] {
  min-height: 4.5rem;
}
.rk-holders-mode { margin-bottom: 0.55rem; }
.rk-holders-page-meta { margin: 0 0 0.45rem; font-size: 0.78rem; }
.rk-holders-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}
.rk-holders-pager-meta {
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
  text-align: center;
  min-width: 8rem;
}
.rewards-teaser {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.rewards-teaser .link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.rewards-teaser a { color: var(--orange); }

/* —— Bottom navigation (mobile) —— */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0.4rem 0.2rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(232, 93, 4, 0.28);
  background: rgba(6, 6, 6, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55);
}

.more-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5100;
  background: rgba(0, 0, 0, 0.72);
}

.more-nav-backdrop:not(.hidden) {
  display: block;
}

.more-nav-sheet {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5200;
  max-height: min(72vh, 440px);
  padding: 0 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
}

.more-nav-sheet:not(.hidden) {
  display: block;
}

.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 44px;
  padding: 0.25rem 0.15rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.bottom-nav button.active,
.bottom-nav button.active.bottom-nav-more {
  color: var(--orange-bright);
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
}

.bottom-nav-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bottom-nav-label {
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-nav-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(232, 93, 4, 0.12);
}

.more-nav-sheet-head h2 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.more-nav-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
}

.more-nav-item {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
}

.more-nav-item.active {
  border-color: var(--orange-dim);
  color: var(--orange);
}

body.more-nav-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .bottom-nav {
    display: grid !important;
  }

  .header .nav {
    display: none !important;
  }

  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .app,
  .main {
    padding-bottom: 0;
  }

  .footer {
    display: none;
  }

  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.55rem var(--layout-pad);
  }

  .header-left {
    flex: unset;
    min-width: 0;
    gap: 0.55rem;
    flex-wrap: nowrap;
  }

  .logo-brand .logo-text {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .logo-sub {
    display: none;
  }

  .logo img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
  }

  .lang-switch {
    margin-right: 0;
    flex-shrink: 0;
  }

  .lang-btn {
    padding: 0.4rem 0.42rem;
    font-size: 0.78rem;
    min-width: 2rem;
    min-height: 32px;
  }

  .header-wallet {
    gap: 0.25rem;
    min-width: 0;
  }

  .btn-connect,
  .btn-disconnect {
    padding: 0.42rem 0.5rem;
    font-size: 0.78rem;
    min-height: 36px;
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ticker {
    font-size: 0.8rem;
    padding: 0.35rem var(--layout-pad);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .main {
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
  }

  .pool-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    padding: 0.65rem;
  }

  .pool-stat-tile {
    padding: 0.55rem 0.6rem;
  }

  .pool-stat-tile strong {
    font-size: 0.82rem;
  }

  .portfolio-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .pf-actions-grid {
    width: 100%;
    min-width: 0;
  }

  .pf-actions-grid .btn-pf-action {
    min-height: 44px;
  }

  .pf-status-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .chart-price-usd {
    font-size: 1.35rem;
  }

  .swap-terminal {
    gap: 0.75rem;
  }

  .token-amount,
  .pool-input,
  .pool-select,
  .pool-recipient-input,
  .bridge-input,
  .admin-input,
  .modal input,
  .modal select,
  #swap-amt,
  #slip-custom {
    font-size: 17px !important;
  }

  .pool-tabs,
  .bridge-tabs,
  .bridge-asset-tabs,
  .seg-control,
  .rankings-tabs,
  .rk-holders-mode,
  .activity-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    max-width: 100%;
  }

  .pool-tabs::-webkit-scrollbar,
  .bridge-tabs::-webkit-scrollbar,
  .bridge-asset-tabs::-webkit-scrollbar,
  .seg-control::-webkit-scrollbar,
  .activity-filters::-webkit-scrollbar {
    display: none;
  }

  .pool-tabs button,
  .bridge-tabs button,
  .bridge-asset-tabs button,
  .seg-control button,
  .activity-filters button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .position-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .pool-widget,
  .swap-widget .widget,
  .terminal-glass.pool-widget {
    padding: 0.85rem 0.9rem;
  }

  .pair-info-bento {
    grid-template-columns: 1fr;
  }

  .rankings-you-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rk-list,
  .hist-list,
  .admin-claims-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rk-list .sk-lb-row,
  .hist-list .hist-row {
    min-width: min(100%, 320px);
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-backdrop .modal,
  .modal-backdrop .modal-bridge,
  .modal-backdrop .modal-zbg {
    max-width: none;
    width: 100%;
    max-height: min(92vh, 100dvh);
    margin: 0;
    border-radius: 14px 14px 0 0;
    overflow-y: auto;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .modal-backdrop.open .bottom-nav {
    display: none !important;
  }

  .modal-zbg {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .pool-hero-stats {
    grid-template-columns: 1fr;
  }

  .bottom-nav-label {
    font-size: 0.48rem;
  }
}

/* Community Fountain (Rewards subtab) */
.fountain-lead {
  margin: 0.35rem 0 0;
  max-width: 42rem;
}

.fountain-pool-card,
.fountain-donate-card,
.fountain-schedule-card,
.fountain-recent-card {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  margin-bottom: 0.85rem;
}

.fountain-pool-card {
  background: linear-gradient(145deg, rgba(255, 140, 66, 0.06), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(255, 140, 66, 0.12);
}

.fountain-donate-card {
  background: linear-gradient(160deg, rgba(110, 231, 160, 0.05), rgba(0, 0, 0, 0.22));
  border: 1px solid rgba(110, 231, 160, 0.14);
}

.fountain-donate-head h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}

.fountain-donate-sub {
  margin: 0;
  font-size: 0.92rem;
}

.fountain-addr-block {
  margin: 0.85rem 0 1rem;
}

.fountain-addr-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.fountain-addr-box {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fountain-addr-text {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-all;
  color: #e8dcc8;
  user-select: all;
}

.fountain-copy-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  border-radius: 8px;
  opacity: 0.85;
}

.fountain-copy-btn.copied {
  color: #6ee7a0;
  border-color: rgba(110, 231, 160, 0.45);
}

.fountain-donate-amt-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  margin-bottom: 0.45rem;
}

.fountain-donate-amt-row .bridge-input {
  flex: 1;
  min-width: 0;
}

.fountain-donate-bal {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.fountain-donate-btn {
  width: 100%;
}

#fountain-donate-msg {
  margin-top: 0.55rem;
}

.fountain-pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.fountain-pool-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}

.fountain-live-pill {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ee7a0;
  border: 1px solid rgba(110, 231, 160, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.fountain-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .fountain-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fountain-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fountain-stat span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fountain-stat strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
}

.fountain-donate-block {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fountain-donate-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.35rem;
}

.fountain-donate-input {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
}

.fountain-claim-card {
  margin-top: 0;
}

.fountain-user-stats {
  margin-top: 0.35rem;
}

.fountain-schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.fountain-schedule-year {
  gap: 0.25rem;
}

.fountain-sched-cap {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

@media (min-width: 520px) {
  .fountain-schedule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fountain-schedule-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.fountain-schedule-item.active {
  border-color: rgba(255, 140, 66, 0.45);
  background: rgba(255, 140, 66, 0.08);
}

.fountain-sched-month {
  font-size: 0.84rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fountain-schedule-item strong {
  font-size: 0.88rem;
  color: var(--cream);
}

.fountain-sched-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.fountain-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fountain-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}

.fountain-recent-row strong {
  color: var(--cream);
  font-weight: 600;
}

.fountain-recent-row span {
  margin-left: 0.45rem;
  color: var(--orange);
}

.fountain-recent-time {
  flex-shrink: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ── Pixel Cats (portfolio + holder claim) ── */
.fountain-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 1100px) {
  .fountain-dual-grid {
    gap: 1.5rem;
  }
}

.fountain-dual-grid.single-col {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
  .fountain-dual-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.fountain-col.hidden {
  display: none;
}

.fountain-col-community .fountain-pool-card,
.fountain-col-community .fountain-donate-card,
.fountain-col-community .fountain-claim-card,
.fountain-col-community .fountain-schedule-card,
.fountain-col-community .fountain-recent-card {
  margin-bottom: 0;
}

.pixel-cats-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pf-pixel-cats {
  position: relative;
  margin-top: 1rem;
  padding: 1.1rem 1.15rem 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 120, 220, 0.22);
  background:
    linear-gradient(135deg, rgba(120, 40, 180, 0.12) 0%, rgba(20, 10, 40, 0.55) 45%, rgba(0, 0, 0, 0.35) 100%);
}

.pf-pixel-cats-glow,
.pixel-cats-claim-glow {
  pointer-events: none;
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 80, 200, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(80, 200, 255, 0.12), transparent 50%);
  opacity: 0.85;
}

.pf-pixel-cats-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.pf-pixel-title {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffd4f8, #7ee8ff 60%, #c4ff9e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-pixel-kicker {
  color: rgba(255, 180, 240, 0.85);
}

.pf-pixel-cats-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.pf-pixel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a0a24;
  background: linear-gradient(135deg, #ff9de8, #7ee8ff);
  box-shadow: 0 0 18px rgba(255, 120, 220, 0.35);
}

.pf-pixel-scan,
.pixel-cats-scan-banner {
  position: relative;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.94rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 180, 100, 0.25);
  background: rgba(255, 120, 40, 0.08);
  color: #ffd4a8;
}

.pf-pixel-scan.is-info,
.pixel-cats-scan-banner.is-info {
  border-color: rgba(120, 200, 255, 0.25);
  background: rgba(40, 120, 200, 0.1);
  color: #b8e8ff;
}

.pixel-cats-grid,
.pixel-cats-claim-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .pixel-cats-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .pixel-cats-claim-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }
}

.pixel-cat-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pixel-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
  pointer-events: none;
  z-index: 2;
}

.pixel-cat-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 120, 220, 0.45);
  box-shadow: 0 8px 28px rgba(255, 80, 200, 0.18), 0 0 0 1px rgba(126, 232, 255, 0.15);
}

.pixel-cat-thumb-wrap {
  aspect-ratio: 1;
  background: #0a0612;
  overflow: hidden;
}

.pixel-cat-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.pixel-cat-meta {
  padding: 0.45rem 0.5rem 0.55rem;
  z-index: 1;
  position: relative;
}

.pixel-cat-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pixel-cat-id {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono, ui-monospace, monospace);
}

.pixel-cats-claim-shell {
  position: relative;
  padding: 1.15rem 1.2rem 1.3rem;
  border: 1px solid rgba(126, 232, 255, 0.2);
  overflow: hidden;
}

.pixel-cats-claim-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.pixel-cats-claim-head h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.2rem;
}

.pixel-cats-pool-pill {
  flex-shrink: 0;
  text-align: center;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 120, 220, 0.25);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pixel-cats-pool-pill strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.1rem;
  color: #ff9de8;
}

.pixel-cats-claim-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 640px) {
  .pixel-cats-claim-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pixel-cats-pool-addr {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pixel-cats-pool-addr .fountain-addr-text {
  display: block;
  margin-top: 0.25rem;
  word-break: break-all;
  font-size: 0.88rem;
}

.pixel-cats-stat {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pixel-cats-stat span {
  display: block;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pixel-cats-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  color: var(--cream);
}

.pixel-cat-claim-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.32);
}

.pixel-cat-claim-card.can-claim {
  border-color: rgba(126, 232, 255, 0.35);
  box-shadow: 0 0 24px rgba(80, 200, 255, 0.08);
}

.pixel-cat-claim-body {
  padding: 0.55rem 0.65rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pixel-cat-claim-amt {
  font-size: 0.92rem;
  color: var(--orange);
  font-weight: 600;
}

.pixel-cat-claim-btn {
  width: 100%;
  font-size: 0.92rem;
  padding: 0.45rem 0.5rem;
}

.pixel-cat-claim-status {
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 1rem;
}

.pixel-cats-preview {
  margin-top: 0.65rem;
  text-align: center;
  line-height: 1.45;
  color: var(--orange);
}

.pixel-cats-empty {
  grid-column: 1 / -1;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
