/* FAH! — modern brand (coin palette: black · purple · yellow · cyan) */
:root {
  --bg: #06040e;
  --bg-deep: #03020a;
  --yellow: #ffe600;
  --yellow-2: #ffc400;
  --purple: #9945ff;
  --purple-2: #7c3aed;
  --purple-deep: #2a0f55;
  --pink: #c44bff;
  --cyan: #5ce1ff;
  --sol-green: #14f195;
  --red: #ff1744;
  --card: rgba(18, 12, 32, 0.92);
  --card-solid: #120c1e;
  --line: rgba(153, 69, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f4ff;
  --muted: rgba(210, 200, 240, 0.58);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 68px;
  --burger: 44px;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --glow-yellow: 0 0 28px rgba(255, 230, 0, 0.28);
  --glow-purple: 0 0 28px rgba(153, 69, 255, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Lock page scroll (no bounce / rubber-band) */
body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(153, 69, 255, 0.28), transparent 52%),
    radial-gradient(80% 50% at 100% 30%, rgba(255, 230, 0, 0.06), transparent 45%),
    radial-gradient(70% 45% at 0% 80%, rgba(92, 225, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #0a0618 0%, var(--bg-deep) 55%, #04030c 100%);
}

input,
button,
textarea {
  font: inherit;
  color: inherit;
}

input {
  user-select: text;
  -webkit-user-select: text;
}

.shake-root {
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.shell {
  height: 100%;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
  overscroll-behavior: none;
}

/* Bottom tabs — floating dock (Home left | Buy right) */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tab-h) + var(--safe-b));
  min-height: calc(var(--tab-h) + var(--safe-b));
  padding: 0 18px calc(10px + var(--safe-b));
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.92) 35%, transparent);
  border-top: none;
  z-index: 80;
  pointer-events: none;
  touch-action: manipulation;
}

.tabbar-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 400px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(14, 10, 28, 0.92);
  border: 1px solid rgba(153, 69, 255, 0.28);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 230, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-sizing: border-box;
}

.tab {
  display: flex !important;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 13px;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font: inherit;
  cursor: pointer;
  min-height: 50px;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 8px 10px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  box-sizing: border-box;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tab-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.tab-ico svg {
  display: block;
}

.tab-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.tab.is-active {
  color: #111;
  background: linear-gradient(145deg, #fff45a 0%, var(--yellow) 48%, var(--yellow-2) 100%);
  box-shadow: 0 4px 16px rgba(255, 230, 0, 0.32);
}

.tab.is-active .tab-ico {
  opacity: 1;
}

.tab.tab-buy.is-active,
#tab-buy.is-active {
  color: #fff;
  background: linear-gradient(145deg, #b794ff 0%, var(--purple) 52%, var(--purple-2) 100%);
  box-shadow: 0 4px 16px rgba(153, 69, 255, 0.4);
}

.tab:not(.is-active):active {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
}

/* —— Burger + simple side menu —— */
.burger {
  position: fixed;
  top: calc(12px + var(--safe-t));
  left: max(14px, calc(50% - 240px + 14px));
  z-index: 60;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(12, 10, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  transition: opacity 0.15s ease, visibility 0.15s ease, background 0.15s ease;
}

body.menu-open .burger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}

.burger-lines span {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.88);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.menu-backdrop[hidden] {
  display: none !important;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 58;
  width: min(76vw, 260px);
  height: 100%;
  height: 100dvh;
  padding: calc(16px + var(--safe-t)) 16px calc(18px + var(--safe-b));
  background: #0c0a12;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 32px rgba(0, 0, 0, 0.45);
  transform: translateX(-105%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.menu-open .side-menu {
  transform: translateX(0);
}

.side-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.side-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: inherit;
  min-width: 0;
  flex: 1;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}

.side-menu-head:active {
  background: rgba(255, 255, 255, 0.04);
}

.side-menu-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.side-menu-close:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.side-menu-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.side-menu-head strong {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: #fff;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

.side-link {
  text-align: left;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

.side-link:active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.side-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

a.side-link.side-link-ext {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 0 10px 10px;
  padding-top: 14px;
}

a.side-link.side-link-ext:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.side-menu-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ca-card-menu {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.ca-card-menu .ca-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.ca-card-menu .ca-status {
  font-size: 0.62rem;
  padding: 2px 7px;
}

.ca-card-menu .ca-value {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.ca-card-menu .ca-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.ca-card-menu .ca-link {
  margin-top: 6px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

.side-menu-foot {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
  padding: 0;
}

/* About */
.page-about {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(56px + var(--safe-t)) 18px calc(20px + var(--safe-b));
  gap: 0;
}

.about-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 22px 18px 20px;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(153, 69, 255, 0.12), transparent 45%),
    var(--card-solid);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow), var(--glow-purple);
  box-sizing: border-box;
}

.about-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  box-shadow:
    0 0 0 2px rgba(255, 230, 0, 0.4),
    0 0 20px rgba(153, 69, 255, 0.35);
}

.about-card h1 {
  margin: 0 auto 8px;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.about-lead {
  margin: 0 auto 16px;
  max-width: 22ch;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(230, 220, 255, 0.72);
}

.about-points {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.about-points li {
  position: relative;
  padding: 11px 14px 11px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}

.about-points li:first-child {
  border-top: none;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff45a, #ffb300);
  box-shadow: 0 0 0 3px rgba(255, 234, 0, 0.12);
}

.about-points a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.about-card .ca-card-about {
  margin: 0 0 14px;
}

.about-nfa {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.36);
}

/* —— Professional X follow buttons —— */
.x-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  text-decoration: none;
  color: #f5f5f5;
  background:
    linear-gradient(145deg, rgba(28, 28, 30, 0.95), rgba(12, 12, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.x-btn:active {
  transform: scale(0.99);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(36, 36, 40, 0.98), rgba(16, 16, 18, 1));
}

.x-btn-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.x-btn-mark svg {
  display: block;
  width: 13px;
  height: 13px;
}

.x-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.x-btn-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fafafa;
  line-height: 1.2;
}

.x-btn-handle {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.x-btn-arrow {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.32);
  font-weight: 600;
}

.x-btn-menu {
  margin-top: 2px;
  padding: 7px 10px;
}

/* —— Contract address —— */
.ca-card {
  width: 100%;
  margin-top: 2px;
  padding: 14px 14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(153, 69, 255, 0.08), transparent 60%),
    rgba(14, 10, 22, 0.92);
  border: 1px solid rgba(153, 69, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ca-card-about {
  margin: 0 0 16px;
  text-align: left;
  background: rgba(0, 0, 0, 0.28);
}

.ca-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ca-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.ca-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 234, 0, 0.1);
  border: 1px solid rgba(255, 234, 0, 0.28);
  color: rgba(255, 234, 0, 0.9);
}

.ca-status.is-live {
  background: rgba(20, 241, 149, 0.1);
  border-color: rgba(20, 241, 149, 0.3);
  color: #8dffc4;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  padding: 0;
}

.ca-value.is-empty {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.ca-btn {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(171, 159, 242, 0.35);
  background: rgba(153, 69, 255, 0.16);
  color: #efe8ff;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.ca-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ca-btn:not(:disabled):active {
  background: rgba(153, 69, 255, 0.28);
}

.ca-btn.is-copied {
  border-color: rgba(20, 241, 149, 0.4);
  background: rgba(20, 241, 149, 0.12);
  color: #8dffc4;
}

.ca-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--cyan);
  text-decoration: none;
}

.ca-link[hidden] {
  display: none !important;
}

.ca-warn {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.35;
}

.ca-warn-buy {
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(200, 185, 255, 0.45);
}

/* —— Pump.fun Buy phase (aesthetic) —— */
.page-swap.is-phase-pump {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: calc(14px + var(--safe-t)) 16px 20px;
  background:
    radial-gradient(100% 55% at 50% -8%, rgba(20, 241, 149, 0.12), transparent 50%),
    radial-gradient(90% 45% at 100% 20%, rgba(153, 69, 255, 0.18), transparent 50%),
    radial-gradient(70% 40% at 0% 80%, rgba(255, 230, 0, 0.05), transparent 45%),
    transparent;
}

.page-swap.is-phase-pump .swap-topbar {
  order: 0;
  /* Clear fixed burger on the left */
  padding: 2px 0 4px 52px;
  min-height: 48px;
  align-items: center;
}

.page-swap.is-phase-pump .swap-title {
  font-size: 1.35rem;
}

/* Bag icon sat under the burger — hide it on Buy */
.page-swap.is-phase-pump .swap-title-icon {
  display: none !important;
}

.page-swap.is-phase-pump .swap-kicker {
  color: rgba(20, 241, 149, 0.75);
  font-size: 0.62rem;
}

.pump-buy {
  position: relative;
  order: 1;
  width: 100%;
  padding: 18px 16px 14px;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(155deg, rgba(20, 241, 149, 0.1) 0%, transparent 42%),
    linear-gradient(210deg, rgba(153, 69, 255, 0.16) 0%, transparent 50%),
    linear-gradient(180deg, #15101f 0%, #0a0812 100%);
  border: 1px solid rgba(153, 69, 255, 0.26);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.pump-buy-glow {
  position: absolute;
  top: -45%;
  right: -25%;
  width: 75%;
  height: 85%;
  background: radial-gradient(circle, rgba(20, 241, 149, 0.14), transparent 62%);
  pointer-events: none;
}

.pump-buy-glow-b {
  top: auto;
  right: auto;
  bottom: -50%;
  left: -30%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.16), transparent 65%);
}

.pump-buy[hidden] {
  display: none !important;
}

.pump-buy-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pump-buy-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 230, 0, 0.4);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(153, 69, 255, 0.16);
}

.pump-buy-hero-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.pump-buy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04120c;
  background: linear-gradient(105deg, #14f195, #12d484 60%, #5ce1ff);
  box-shadow: 0 3px 10px rgba(20, 241, 149, 0.25);
}

.pump-buy-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #04120c;
  box-shadow: 0 0 0 2px rgba(4, 18, 12, 0.15);
  animation: pump-pulse 1.6s ease-in-out infinite;
}

@keyframes pump-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.pump-buy-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.pump-buy-lead {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(230, 220, 255, 0.52);
}

/* Official Pump logomark on brand green */
.btn-pump {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 11px 16px;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  background: #14f195;
  box-shadow:
    0 8px 22px rgba(20, 241, 149, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-pump-mark {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.btn-pump:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.btn-pump:not(.is-ready) {
  background: #12d484;
}

.btn-pump.is-ready {
  background: #14f195;
  box-shadow:
    0 10px 26px rgba(20, 241, 149, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Horizontal 3-step flow */
.pump-steps {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 14px 0 0;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pump-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.pump-step-line {
  flex: 0 0 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(20, 241, 149, 0.35), rgba(153, 69, 255, 0.35));
  margin-bottom: 16px;
}

.pump-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.pump-step-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}

.pump-buy-note {
  position: relative;
  z-index: 1;
  margin: 12px 0 2px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: rgba(200, 185, 255, 0.4);
}

/* Hide non-pump chrome */
.page-swap.is-phase-pump .swap-banner,
.page-swap.is-phase-pump .launch-brand,
.page-swap.is-phase-pump .coming-soon,
.page-swap.is-phase-pump .swap-live {
  display: none !important;
}

.page-swap.is-phase-pump .ca-card-buy {
  order: 2;
  margin-top: 0;
  padding: 13px 14px;
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(153, 69, 255, 0.12), transparent 55%),
    rgba(10, 8, 18, 0.92);
  border: 1px solid rgba(153, 69, 255, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.page-swap.is-phase-pump .ca-card-buy .ca-label {
  letter-spacing: 0.1em;
  font-size: 0.66rem;
}

.page-swap.is-phase-pump .ca-row {
  margin-top: 2px;
}

.page-swap.is-phase-pump .ca-value {
  font-size: 0.84rem;
}

.page-swap.is-phase-pump .ca-btn {
  border-radius: 10px;
  min-height: 34px;
  background: rgba(153, 69, 255, 0.2);
  border-color: rgba(153, 69, 255, 0.35);
}

.page-swap.is-phase-pump .ca-warn-buy {
  margin-top: 9px;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.page-swap.is-phase-pump .ca-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}

.page-swap.is-phase-pump .swap-nfa {
  order: 3;
  margin: 4px 0 0;
  opacity: 0.9;
}

/* Live Buy page: CA → trade */
.page-swap.is-live {
  gap: 12px;
}

/* Same burger clearance when Jupiter live UI is on */
.page-swap.is-live .swap-topbar {
  padding-left: 52px;
}

.page-swap.is-live .swap-title-icon {
  display: none !important;
}

.page-swap.is-live .swap-banner,
.page-swap.is-live .launch-brand,
.page-swap.is-live .coming-soon,
.page-swap.is-live .pump-buy {
  display: none !important;
}

.page-swap.is-live .ca-card-buy {
  margin-top: 0;
  order: 0;
}

.page-swap.is-live .swap-live {
  gap: 12px;
}

.page-swap.is-live .btn-swap {
  min-height: 56px;
  font-size: 1.08rem;
}

.page-swap.is-live .swap-nfa {
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Test-token mode (e.g. USDC while $FAH mint pending) */
.page-swap.is-test-token .swap-kicker {
  color: #ffb300;
  letter-spacing: 0.08em;
}

.page-swap.is-test-token .ca-status.is-live {
  background: rgba(255, 179, 0, 0.15);
  border-color: rgba(255, 179, 0, 0.35);
  color: #ffd666;
}

/* Pages */
.page {
  display: none;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: calc(12px + var(--safe-t)) 18px 12px;
  gap: 12px;
  overflow: hidden;
  overscroll-behavior: none;
}

.page.is-active {
  display: flex;
}

.page[hidden] {
  display: none !important;
}

.page-home {
  justify-content: center;
  padding-top: var(--safe-t);
  padding-bottom: 0;
  overflow: hidden;
}

/* Buy pane — single scroll container, stable layout */
.page-swap {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 16px;
  min-height: 0;
  background: transparent;
}

.page-swap.is-pre-mint {
  /* Prefer fit without rubber-band bounce when content is short */
  overscroll-behavior-y: none;
}

/* —— Pre-launch: only countdown landing —— */
body.is-prelaunch .burger,
body.is-prelaunch .tabbar,
body.is-prelaunch .side-menu,
body.is-prelaunch .menu-backdrop,
body.is-prelaunch .page-home,
body.is-prelaunch .page-about,
body.is-prelaunch .page-socials,
body.is-prelaunch .page-download,
body.is-prelaunch .swap-topbar,
body.is-prelaunch .coming-soon-home,
body.is-prelaunch .desktop-nav-links,
body.is-prelaunch .desktop-cta {
  display: none !important;
}

body.is-prelaunch .shell {
  padding-bottom: 0;
  max-width: 480px;
}

body.is-prelaunch .page-swap {
  padding: calc(20px + var(--safe-t)) 18px calc(28px + var(--safe-b));
  gap: 14px;
  justify-content: flex-start;
}

body.is-prelaunch .launch-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 2px;
}

body.is-launched .launch-brand {
  display: none !important;
}

body.is-launched .prelaunch-only {
  display: none !important;
}

body.is-prelaunch .launched-only {
  display: none !important;
}

.launched-only[hidden],
.prelaunch-only[hidden] {
  display: none !important;
}

.coming-soon-lead-main {
  margin-bottom: 12px !important;
  max-width: 24ch !important;
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.launch-brand {
  display: none;
}

.launch-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 230, 0, 0.45);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 0 4px rgba(153, 69, 255, 0.16);
}

.launch-name {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 24px rgba(153, 69, 255, 0.4);
}

.launch-tag {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(230, 220, 255, 0.55);
}

body.is-prelaunch .swap-banner {
  height: 140px;
  flex-basis: 140px;
}

body.is-prelaunch .desktop-nav-inner {
  justify-content: space-between;
}

body.is-prelaunch .desktop-nav-actions {
  margin-left: auto;
}

body.device-desktop.is-prelaunch .shell {
  min-height: auto;
}

body.device-desktop.is-prelaunch .page.is-active.page-swap {
  max-height: none;
  padding: 36px 40px 40px;
}

body.device-desktop.is-prelaunch .burger {
  display: none !important;
}

.stage-solo {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  overflow: hidden;
  transform: translateY(calc(var(--tab-h) * 0.08));
}

/* Home */
.top {
  width: 100%;
  text-align: center;
  padding-top: 4px;
}

.logo {
  width: min(64vw, 240px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  box-shadow:
    0 0 0 3px rgba(255, 234, 0, 0.35),
    0 0 40px rgba(255, 43, 214, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.55);
  background: #000;
}

.logo-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 234, 0, 0.35);
  background: #000;
  flex-shrink: 0;
}

.tag {
  margin: 14px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.stage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 0 16px;
}

.fah-btn {
  position: relative;
  width: min(78vw, 300px);
  height: min(78vw, 300px);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  color: #0a0a0a;
  outline: none;
}

.fah-btn-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--cyan), var(--pink), var(--yellow), var(--cyan));
  opacity: 0.95;
  animation: spin 6s linear infinite;
}

.fah-btn-core {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(160deg, #fff45a 0%, #ffea00 40%, #ff9800 100%);
  border: 4px solid #111;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -10px 24px rgba(0, 0, 0, 0.18),
    0 14px 32px rgba(255, 23, 68, 0.35);
  transition: transform 0.08s ease;
}

.fah-btn-label {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3rem, 15vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow:
    3px 0 0 var(--cyan),
    -3px 0 0 var(--pink),
    0 3px 0 #000;
  color: #111;
}

.fah-btn-sub {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.fah-btn:active .fah-btn-core,
.fah-btn.is-fire .fah-btn-core {
  transform: scale(0.94);
  background: linear-gradient(160deg, #fff 0%, #ffea00 45%, #ff2bd6 120%);
}

.fah-btn.is-fire .fah-btn-ring {
  animation-duration: 0.35s;
  filter: blur(1px) brightness(1.3);
}

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

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  min-height: 1.2em;
}

.foot {
  width: 100%;
  text-align: center;
  padding-bottom: 4px;
}

.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.stat-num {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nfa {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
}

.swap-nfa {
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(210, 200, 240, 0.38);
}

/* —— Buy hero banner (looping video) —— */
.swap-banner {
  position: relative;
  width: 100%;
  height: 120px;
  flex: 0 0 120px;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  background: #0a0618;
  border: 1px solid rgba(153, 69, 255, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.swap-banner[hidden] {
  display: none !important;
}

.swap-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  background: #0a0618;
  pointer-events: none;
  /* Keep a tiny scale so letterbox edges never flash on loop */
  transform: scale(1.02);
  transform-origin: center center;
}

.swap-banner-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 35%, rgba(6, 4, 14, 0.5) 100%),
    linear-gradient(105deg, rgba(153, 69, 255, 0.1), transparent 50%, rgba(255, 230, 0, 0.05));
}

@media (prefers-reduced-motion: reduce) {
  .swap-banner-video {
    /* Still show the loop; just no extra CSS motion */
    transform: none;
  }
}

/* —— Standard DEX swap widget —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.swap-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex: 0 0 auto;
  padding: 2px 0 0;
  min-height: 44px;
}

.wallet-chip[hidden] {
  display: none !important;
}

.swap-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.swap-title-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #b794ff 0%, var(--purple) 55%, var(--purple-2) 100%);
  box-shadow:
    0 6px 16px rgba(153, 69, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.swap-title-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.swap-kicker {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 185, 255, 0.55);
  line-height: 1.1;
}

.swap-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(171, 159, 242, 0.4);
  background: linear-gradient(145deg, rgba(153, 69, 255, 0.28), rgba(124, 58, 237, 0.14));
  color: #f3edff;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(153, 69, 255, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.wallet-chip:active {
  transform: scale(0.97);
}

.wallet-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.22);
}

.wallet-chip.is-connected {
  background: rgba(20, 241, 149, 0.08);
  border-color: rgba(20, 241, 149, 0.28);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(20, 241, 149, 0.1);
}

.wallet-chip.is-connected .wallet-chip-dot {
  background: #14f195;
  box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  width: 100%;
  border: none;
  border-radius: 16px;
  font-weight: 750;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mint-banner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 234, 0, 0.07);
  border: 1px solid rgba(255, 234, 0, 0.22);
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 245, 180, 0.88);
}

.mint-banner strong {
  color: var(--yellow);
  font-size: 0.8rem;
}

.mint-banner code {
  font-size: 0.75em;
  color: #fff;
}

/* —— Coming soon (pre-mint Buy) — status + primary Follow CTA —— */
.coming-soon {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  padding: 18px 16px 16px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(153, 69, 255, 0.14), transparent 50%),
    var(--card-solid);
  border: 1px solid rgba(153, 69, 255, 0.26);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.coming-soon[hidden] {
  display: none !important;
}

.coming-soon-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(105deg, #fff45a, #ffea00 50%, #ffb300);
}

.coming-soon-badge.is-live {
  color: #fff;
  background: linear-gradient(105deg, #14f195, #0d9f6e);
}

.coming-soon-when {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* Launch countdown */
.launch-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
}

.launch-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(153, 69, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.launch-unit strong {
  font-size: 1.35rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 16px rgba(153, 69, 255, 0.35);
}

.launch-unit span {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 185, 255, 0.5);
}

.launch-countdown.is-done .launch-unit strong {
  color: var(--yellow);
}

.launch-status {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 750;
  color: #fff45a;
  text-shadow: 0 0 18px rgba(255, 230, 0, 0.35);
}

.launch-status[hidden] {
  display: none !important;
}

.coming-soon-lead {
  margin: 0 auto 18px;
  max-width: 28ch;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(230, 220, 255, 0.72);
}

.coming-soon-lead strong {
  color: #fff;
  font-weight: 800;
}

.coming-soon-x-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.15em;
  width: 1.15em;
  height: 1.15em;
  margin: 0 0.12em;
  color: #fff;
}

.coming-soon-x-inline svg {
  display: block;
  width: 100%;
  height: 100%;
}

.coming-soon-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Primary CTA — X logo only */
.coming-soon-x {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 0 0 4px rgba(153, 69, 255, 0.12);
  transition: transform 0.12s ease, border-color 0.15s ease, filter 0.15s ease;
}

.coming-soon-x svg {
  display: block;
  width: 22px;
  height: 22px;
}

.coming-soon-x:active {
  transform: scale(0.96);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Secondary — quiet */
.coming-soon-home {
  background: transparent !important;
  color: rgba(230, 220, 255, 0.5) !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  min-height: 40px;
  width: auto !important;
  padding: 0 12px !important;
  font-weight: 650 !important;
  font-size: 0.88rem !important;
}

.coming-soon-home:active {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Pre-mint: no trade chrome; CA under status */
.page-swap.is-pre-mint .ca-card {
  margin-top: 0;
}

.page-swap.is-pre-mint .swap-nfa {
  margin-bottom: 4px;
}

.page-swap.is-pre-mint .swap-topbar {
  /* Title only — Connect stays hidden until live */
  justify-content: flex-start;
}

.swap-live[hidden] {
  display: none !important;
}

.swap-live {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* —— Socials page (X-focused) —— */
.page-socials {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(56px + var(--safe-t)) 18px 24px;
}

.socials-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 28px 18px 22px;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(165deg, rgba(153, 69, 255, 0.12), transparent 55%),
    var(--card-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--glow-purple);
  text-align: center;
}

/* Large official X mark */
.socials-x-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(153, 69, 255, 0.12);
}

.socials-x-mark svg {
  display: block;
  width: 28px;
  height: 28px;
}

.socials-card h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #fff;
}

.socials-lead {
  margin: 0 0 18px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(230, 220, 255, 0.55);
}

.x-btn-socials {
  margin: 0;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 16px;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.x-btn-socials .x-btn-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.x-btn-socials .x-btn-mark svg {
  width: 16px;
  height: 16px;
}

.x-btn-socials .x-btn-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.x-btn-socials .x-btn-handle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.x-btn-socials .x-btn-arrow {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.socials-nfa {
  margin: 16px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.32);
}

/* —— Download app page —— */
.page-download {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(56px + var(--safe-t)) 18px 24px;
}

.download-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 24px 18px 22px;
  border-radius: 20px;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.download-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 0 0 2px rgba(255, 234, 0, 0.3);
}

.download-card h1 {
  margin: 0 0 8px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.download-lead {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.download-steps {
  text-align: left;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.download-steps.is-highlight {
  border-color: rgba(255, 234, 0, 0.35);
  background: rgba(255, 234, 0, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 234, 0, 0.08);
}

.download-steps h2 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.download-steps.is-highlight h2 {
  color: var(--yellow);
}

.download-steps ol {
  margin: 0;
  padding-left: 1.15rem;
}

.download-steps li {
  margin: 0 0 6px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

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

.download-steps .dl-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9em;
}

.download-install-cta {
  margin-top: 8px;
  min-height: 48px;
  background: linear-gradient(105deg, #fff45a, #ffea00 50%, #ffb300) !important;
  color: #111 !important;
  font-weight: 800 !important;
  border: none !important;
}

.download-install-cta[hidden] {
  display: none !important;
}

.download-install-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.download-install-note[hidden] {
  display: none !important;
}

.download-nfa {
  margin: 16px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.35;
}

/* Buy / Sell mode */
.swap-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  padding: 4px;
  border-radius: 16px;
  background: rgba(12, 8, 24, 0.85);
  border: 1px solid rgba(153, 69, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.swap-mode-btn {
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.swap-mode-btn.is-active {
  color: #111;
  background: linear-gradient(105deg, #fff45a, #ffea00 50%, #ffb300);
  box-shadow: 0 4px 16px rgba(255, 180, 0, 0.28);
}

.swap-mode-btn[data-mode="sell"].is-active {
  color: #fff;
  background: linear-gradient(105deg, #ff5c7a, #e11d48);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
}

.swap-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 12px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(153, 69, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #14101f 0%, #0c0a14 100%);
  border: 1px solid rgba(153, 69, 255, 0.22);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.swap-box {
  padding: 14px 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.swap-box-to {
  margin-top: 4px;
  background: rgba(153, 69, 255, 0.08);
  border-color: rgba(153, 69, 255, 0.16);
}

.swap-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
}

.bal-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.chip-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.swap-box-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swap-amount {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  outline: none;
  color: #fff;
  user-select: text;
  -webkit-user-select: text;
  padding: 0;
  line-height: 1.15;
}

.swap-amount::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.swap-out {
  display: block;
  color: rgba(255, 255, 255, 0.95);
}

.token-select {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-select-fah {
  background: rgba(255, 234, 0, 0.1);
  border-color: rgba(255, 234, 0, 0.28);
}

.token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.token-icon-sol {
  background:
    radial-gradient(circle at 30% 30%, #fff 0 12%, transparent 13%),
    linear-gradient(135deg, #9945ff 0%, #14f195 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.token-icon-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #000;
  flex-shrink: 0;
}

/* display:block above must not beat HTML hidden */
.token-icon[hidden],
.token-icon-img[hidden] {
  display: none !important;
}

.token-sym {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.token-select-fah .token-sym {
  color: #ffe566;
}

.swap-switch {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -14px auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.swap-switch-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1e1630, #14101f);
  border: 3px solid #0c0a14;
  color: #c4b5fd;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.swap-switch:active .swap-switch-ico {
  transform: rotate(180deg) scale(0.96);
  background: linear-gradient(145deg, #2a1f45, #1a1428);
  color: #fff;
}

.token-select.is-fah {
  background: rgba(255, 234, 0, 0.1);
  border-color: rgba(255, 234, 0, 0.28);
}

.token-select.is-fah .token-sym {
  color: #ffe566;
}

.token-select.is-sol {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.token-select.is-sol .token-sym {
  color: #fff;
}

.btn-swap.is-sell {
  background: linear-gradient(105deg, #ff5c7a 0%, #e11d48 55%, #be123c 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.32);
}

.swap-details {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swap-details[hidden] {
  display: none !important;
}

.swap-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.swap-detail-row strong {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.muted-sm {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.quote-status {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  min-height: 1.15em;
}

.quote-status.is-err {
  color: #ff8a9a;
}

.btn-swap {
  margin-top: 12px;
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(105deg, #c4b5fd 0%, #9945ff 45%, #7c3aed 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 30px rgba(124, 58, 237, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-swap:not(:disabled):active {
  transform: scale(0.99);
}

.btn-swap.is-loading {
  opacity: 0.75;
}

.btn-swap.is-ready {
  background: linear-gradient(105deg, #fff45a 0%, #ffea00 45%, #ff9800 100%);
  color: #111;
  box-shadow:
    0 12px 30px rgba(255, 152, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: calc(12px + var(--safe-t));
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(92vw, 400px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast.is-err {
  border-color: rgba(255, 80, 100, 0.45);
  color: #ffc9d0;
}

.toast[hidden] {
  display: none !important;
}

/* FX */
.fx-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 234, 0, 0.35), transparent 55%);
  transition: opacity 0.12s ease;
}

.fx-layer.on {
  opacity: 1;
}

.fx-layer.glitch {
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.12), transparent 40%, rgba(255, 43, 214, 0.14)),
    radial-gradient(circle at 50% 45%, rgba(255, 234, 0, 0.4), transparent 50%);
}

body.is-shake .shake-root {
  animation: shake 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-2px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(3px, 1px, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-5px, -1px, 0);
  }
  40%,
  60% {
    transform: translate3d(5px, 0, 0);
  }
}

@media (min-width: 520px) {
  body.device-mobile {
    background: #0a0a0a;
  }
  body.device-mobile .shell {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* =========================================================
   DESKTOP / COMPUTER VERSION
   ========================================================= */
.desktop-bg,
.desktop-nav {
  display: none;
}

body.device-desktop {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: #05040c;
}

body.device-desktop .desktop-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(153, 69, 255, 0.34), transparent 58%),
    radial-gradient(ellipse 45% 40% at 92% 78%, rgba(255, 230, 0, 0.09), transparent 52%),
    radial-gradient(ellipse 40% 38% at 8% 72%, rgba(92, 225, 255, 0.07), transparent 50%),
    linear-gradient(180deg, #0a0618 0%, #05040c 45%, #03020a 100%);
}

body.device-desktop .desktop-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
  opacity: 0.7;
}

body.device-desktop .desktop-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

body.device-desktop .desktop-bg-orb-a {
  width: 420px;
  height: 420px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(153, 69, 255, 0.35);
}

body.device-desktop .desktop-bg-orb-b {
  width: 280px;
  height: 280px;
  bottom: 8%;
  right: 6%;
  background: rgba(255, 230, 0, 0.12);
}

body.device-desktop .desktop-bg-orb-c {
  width: 240px;
  height: 240px;
  bottom: 18%;
  left: 4%;
  background: rgba(92, 225, 255, 0.1);
}

/* —— Top nav —— */
body.device-desktop .desktop-nav {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 20px 0;
  background: transparent;
  border: none;
  pointer-events: none;
}

body.device-desktop .desktop-nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 58px;
  padding: 8px 12px 8px 14px;
  border-radius: 18px;
  background: rgba(12, 8, 24, 0.78);
  border: 1px solid rgba(153, 69, 255, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

body.device-desktop .desktop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 4px 6px 4px 2px;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

body.device-desktop .desktop-brand:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.device-desktop .desktop-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgba(255, 230, 0, 0.4),
    0 0 14px rgba(153, 69, 255, 0.35);
}

body.device-desktop .desktop-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.05;
}

body.device-desktop .desktop-brand-text strong {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
}

body.device-desktop .desktop-brand-text em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 185, 255, 0.5);
}

body.device-desktop .desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  justify-content: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto;
  max-width: 520px;
}

body.device-desktop .desktop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* No icon next to Buy — text only (avoids broken bag/trash glyph) */
body.device-desktop .desktop-link-ico {
  display: none !important;
}

body.device-desktop .desktop-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

body.device-desktop .desktop-link.is-active {
  color: #111;
  background: linear-gradient(145deg, #fff8a0, #ffea00 50%, #ffb300);
  box-shadow: 0 4px 14px rgba(255, 180, 0, 0.22);
}

body.device-desktop .desktop-link.desktop-link-buy.is-active,
body.device-desktop .desktop-link[data-nav="swap"].is-active {
  color: #fff;
  background: linear-gradient(145deg, #b794ff, #9945ff 55%, #7c3aed);
  box-shadow: 0 4px 16px rgba(153, 69, 255, 0.35);
}

body.device-desktop .desktop-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* X / @fahcoin — clean black pill */
body.device-desktop .desktop-x {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4f4f5;
  text-decoration: none;
  min-height: 40px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #1a1a1c 0%, #0a0a0b 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
}

body.device-desktop .desktop-x-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

body.device-desktop .desktop-x-ico svg {
  display: block;
}

body.device-desktop .desktop-x-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.15;
  min-width: 0;
}

body.device-desktop .desktop-x-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

body.device-desktop .desktop-x-handle {
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #fff;
}

body.device-desktop .desktop-x:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, #222226 0%, #111113 100%);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

body.device-desktop .desktop-x:active {
  transform: translateY(0) scale(0.98);
}

/* Desktop: top nav only — no mobile chrome */
body.device-desktop .tabbar,
body.device-desktop .burger,
body.device-desktop .side-menu,
body.device-desktop .menu-backdrop {
  display: none !important;
}

body.device-desktop .shake-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 32px 48px;
  box-sizing: border-box;
}

body.device-desktop .shell {
  width: min(920px, calc(100vw - 64px));
  max-width: 920px;
  height: auto;
  min-height: min(640px, calc(100vh - 160px));
  margin: 0 auto;
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(153, 69, 255, 0.22);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(153, 69, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(18, 12, 32, 0.97) 0%, rgba(8, 6, 16, 0.98) 100%);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 60px rgba(153, 69, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.device-desktop .page {
  height: auto;
  min-height: min(700px, calc(100vh - 160px));
  overflow: visible;
  padding: 36px 44px 44px;
  box-sizing: border-box;
  width: 100%;
  background: transparent;
}

body.device-desktop .page[hidden],
body.device-desktop .page:not(.is-active) {
  display: none !important;
}

body.device-desktop .page.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* —— Home —— */
body.device-desktop .page-home {
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 230, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(153, 69, 255, 0.12), transparent 65%);
}

body.device-desktop .stage-solo {
  transform: none;
  gap: 18px;
  width: 100%;
  max-width: 420px;
}

/* FAH button: same size, type, and press feel as mobile — no desktop overrides */

/* —— Buy (desktop) —— */
body.device-desktop .page.is-active.page-swap {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: auto;
  max-height: calc(100vh - 160px);
  padding: 28px 36px 36px;
  background: transparent;
}

body.device-desktop .page-swap .swap-banner {
  width: 100%;
  max-width: 480px;
  height: 160px;
  flex: 0 0 160px;
  margin: 0 auto;
  border-radius: 18px;
}

body.device-desktop .page-swap #swap-topbar-live {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

body.device-desktop .page-swap .wallet-chip:hover {
  filter: brightness(1.08);
}

body.device-desktop .page-swap #coming-soon {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

body.device-desktop .page-swap .coming-soon-actions {
  max-width: 300px;
  margin: 0 auto;
}

body.device-desktop .page-swap .coming-soon-x:hover {
  filter: brightness(1.12);
  border-color: rgba(255, 255, 255, 0.32);
}

body.device-desktop .page-swap .coming-soon-home:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.device-desktop .page-swap .swap-live {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.device-desktop .page-swap .ca-card,
body.device-desktop .page-swap .ca-card-buy {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

body.device-desktop .page-swap.is-live #swap-topbar-live,
body.device-desktop .page-swap.is-live .swap-live,
body.device-desktop .page-swap.is-live .swap-nfa,
body.device-desktop .page-swap.is-phase-pump #swap-topbar-live,
body.device-desktop .page-swap.is-phase-pump .pump-buy,
body.device-desktop .page-swap.is-phase-pump .swap-nfa,
body.device-desktop .page-swap.is-phase-pump .ca-card-buy {
  max-width: 440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.device-desktop .page-swap.is-phase-pump {
  gap: 14px;
  padding: 36px 40px 40px;
  max-width: none;
}

body.device-desktop .page-swap.is-phase-pump .swap-topbar,
body.device-desktop .page-swap.is-live .swap-topbar {
  padding-left: 0;
}

/* Desktop burger is lower — bag icon can show again if wanted; keep hidden for simplicity */
body.device-desktop .page-swap.is-phase-pump .swap-title-icon,
body.device-desktop .page-swap.is-live .swap-title-icon {
  display: none !important;
}

body.device-desktop .btn-pump:hover {
  filter: brightness(1.05);
  box-shadow:
    0 12px 28px rgba(20, 241, 149, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.device-desktop .btn-pump-mark {
  width: 30px;
  height: 30px;
}

body.device-desktop .pump-steps {
  padding: 14px 16px;
}

body.device-desktop .pump-step-text {
  font-size: 0.78rem;
}

body.device-desktop .pump-buy {
  padding: 22px 20px 16px;
}

body.device-desktop .page-swap .swap-nfa {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

body.device-desktop .page-swap .swap-widget,
body.device-desktop .page-swap .swap-mode {
  width: 100%;
}

body.device-desktop .page-swap .btn-swap:not(:disabled):hover {
  filter: brightness(1.05);
}

/* —— About / Socials / Download —— */
body.device-desktop .page-about,
body.device-desktop .page-socials,
body.device-desktop .page-download {
  justify-content: center;
  align-items: center;
  padding: 40px 44px;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
}

body.device-desktop .about-card,
body.device-desktop .socials-card,
body.device-desktop .download-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 26px 24px;
  border-radius: 24px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(153, 69, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.device-desktop .about-card h1,
body.device-desktop .socials-card h1,
body.device-desktop .download-card h1 {
  font-size: 1.55rem;
}

body.device-desktop .about-lead,
body.device-desktop .socials-lead,
body.device-desktop .download-lead {
  font-size: 0.95rem;
}

body.device-desktop .x-btn-socials:hover {
  border-color: rgba(255, 255, 255, 0.28);
  filter: brightness(1.06);
}

body.device-desktop .page-swap .coming-soon-actions {
  max-width: 300px;
  margin: 0 auto;
}

body.device-desktop .download-lead::after {
  content: " On computer you get the full site — home-screen install works best from your phone.";
}

body.device-desktop .x-btn:hover,
body.device-desktop .ca-btn:hover:not(:disabled),
body.device-desktop .btn:hover:not(:disabled) {
  filter: brightness(1.06);
  cursor: pointer;
}

/* Toast above desktop chrome */
body.device-desktop .toast {
  top: 88px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Wide screens: roomier shell + dual-column Buy when live */
@media (min-width: 1100px) {
  body.device-desktop .shell {
    width: min(1040px, calc(100vw - 64px));
    max-width: 1040px;
  }

  body.device-desktop .desktop-nav-inner {
    max-width: 1180px;
  }

  body.device-desktop .page-swap .swap-banner,
  body.device-desktop .page-swap #swap-topbar-live,
  body.device-desktop .page-swap #coming-soon,
  body.device-desktop .page-swap .swap-live,
  body.device-desktop .page-swap .ca-card,
  body.device-desktop .page-swap .swap-nfa {
    max-width: 500px;
  }
}

/* Compact desktop (small laptop / narrow window) */
@media (max-width: 980px) and (min-width: 900px) {
  body.device-desktop .desktop-brand-text em {
    display: none;
  }

  body.device-desktop .desktop-link {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  body.device-desktop .desktop-x-label {
    display: none;
  }

  body.device-desktop .desktop-x {
    padding: 6px 12px 6px 7px;
    min-height: 36px;
    gap: 8px;
  }

  body.device-desktop .desktop-x-handle {
    font-size: 0.8rem;
  }

  body.device-desktop .desktop-nav-links {
    max-width: none;
  }

  body.device-desktop .shell {
    width: min(920px, calc(100vw - 32px));
  }

  body.device-desktop .shake-root {
    padding: 92px 16px 40px;
  }
}

@media (max-width: 899px) {
  body.device-desktop .desktop-nav,
  body.device-desktop .desktop-bg {
    display: none !important;
  }
}
