:root {
  color-scheme: dark;
  --bg: #030504;
  --panel: #090d0b;
  --panel-2: #0d120f;
  --line: rgba(191, 255, 0, 0.28);
  --acid: #b6ff00;
  --acid-soft: #d7ff48;
  --ink: #f7f8ee;
  --muted: #a8aea3;
  --bad: #ff5b5b;
  --ok: #7eff83;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "JetBrains Mono", "Courier New", monospace;
  margin: 0;
  overflow-x: hidden;
}


a {
  color: inherit;
  text-decoration: none;
}

strong,
.accent {
  color: var(--acid);
}

#bg {
  height: 100%;
  inset: 0;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}


.wrap {
  margin: 0 auto;
  max-width: 1180px;
  width: min(100% - 2rem, 1180px);
}

.topbar {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(3, 5, 4, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: auto 1fr auto;
  min-height: 74px;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 30;
}

.logo {
  align-items: center;
  color: var(--acid);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-img {
  height: 22px;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  object-fit: contain;
  width: 22px;
}

.nav-mid,
.nav-r,
.hero-btns,
.cta-btns {
  align-items: center;
  display: flex;
}

.nav-mid {
  gap: clamp(1rem, 3vw, 2.3rem);
  justify-content: center;
}

.nav-r {
  gap: 0.9rem;
  justify-content: flex-end;
}

.nav-mid a,
.nav-ico,
.nav-cta {
  color: rgba(247, 248, 238, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-mid a:hover,
.nav-ico:hover {
  color: var(--acid);
}

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--acid);
  padding: 0.85rem 1rem;
}

.hero {
  align-items: center;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(4rem, 8vh, 6.5rem) clamp(1rem, 5vw, 7rem) clamp(2.5rem, 5vh, 4rem);
  position: relative;
}

/* Bottom fade — dissolves matrix rain before next section */
.hero::after {
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
  bottom: 0;
  content: '';
  height: 40%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 3;
}


/* ── Hero center veil — keeps text readable over matrix ── */
.hero-center-veil {
  background: radial-gradient(
    ellipse 54% 68% at 50% 44%,
    rgba(3, 5, 4, 0.92)  0%,
    rgba(3, 5, 4, 0.72) 36%,
    rgba(3, 5, 4, 0.30) 58%,
    transparent         76%
  );
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

/* ── 3-tier CSS code-rain columns (lightweight, compositor-thread) ── */
.code-rain {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

/* Shared column style */
.cr-col {
  color: #b6ff00;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-weight: 700;
  line-height: 1.6;
  position: absolute;
  top: 0;
  white-space: pre;
  will-change: transform;
  animation: crFall linear infinite;
}

/* Tier modifiers */
.cr-bg   { font-size: 11px; opacity: 0.14; text-shadow: none; }
.cr-mid  { font-size: 13px; opacity: 0.42; text-shadow: 0 0 8px rgba(182,255,0,0.65); }
.cr-fg   { font-size: 14px; opacity: 0.80; text-shadow: 0 0 14px rgba(182,255,0,0.95), 0 0 28px rgba(182,255,0,0.4); }

@keyframes crFall {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0);    }
}

@media (max-width: 768px) {
  .cr-bg  { opacity: 0.07; }
  .cr-mid { opacity: 0.24; }
  .cr-fg  { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .code-rain { display: none; }
}


.hero-orbit {
  animation: drift 9s ease-in-out infinite;
  display: grid;
  inset: 52% auto auto 50%;
  opacity: 0.58;
  place-items: center;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: -2;
  will-change: transform;
}

.hero-orbit::before {
  animation: pulse 3.8s ease-in-out infinite;
  background: radial-gradient(circle, rgba(182, 255, 0, 0.22), transparent 66%);
  content: "";
  height: min(62vw, 760px);
  position: absolute;
  width: min(62vw, 760px);
  will-change: opacity;
}

.hero-content {
  margin-inline: auto;
  max-width: 1120px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-content::before {
  background: radial-gradient(ellipse at center, rgba(3, 5, 4, 0.76), rgba(3, 5, 4, 0.42) 44%, transparent 72%);
  content: "";
  inset: -4rem -2rem -2rem;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-badge {
  align-items: center;
  background: rgba(9, 13, 11, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--acid);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  padding: 0.55rem 1rem;
}

.dot-live,
.dot-sm {
  animation: blink 1s steps(2, end) infinite;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--acid);
  display: inline-block;
  height: 10px;
  width: 10px;
}

/* ── Hero: refined ──────────────────────────────────────── */
.hero-title {
  font-size: clamp(5.5rem, 15vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.9;
  margin: 0 0 0.28em;
  text-shadow: 0 6px 0 rgba(0,0,0,0.5), 0 0 24px rgba(255,255,255,0.12);
}

.text-neon {
  color: var(--acid);
  text-shadow: 0 0 22px rgba(182,255,0,0.75);
}

.hero-subtitle {
  color: rgba(247,248,238,0.9);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.1rem, 2.8vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 0 0 1.2rem;
}

.hero-divider {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-divider-line {
  background: linear-gradient(90deg, transparent, rgba(182,255,0,0.45), transparent);
  flex: 0 0 clamp(60px, 12vw, 160px);
  height: 1px;
}

.hero-divider-pixel {
  color: var(--acid);
  filter: drop-shadow(0 0 6px rgba(182,255,0,0.9));
  font-size: 0.7rem;
  line-height: 1;
}

.hero-keywords {
  color: rgba(247,248,238,0.5);
  font-size: clamp(0.72rem, 1.4vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  margin: 0 0 0.9rem;
}

/* typewriter line */
.hero-type {
  color: rgba(247,248,238,0.82);
  font-size: clamp(0.95rem, 1.6vw, 1.22rem);
  font-weight: 700;
  margin: 0 0 0;
  text-align: center;
}

.pr { color: var(--acid); }

.bl {
  animation: blink 0.85s steps(2, end) infinite;
  color: var(--acid);
}

/* CTA */
.hero-btns,
.cta-btns {
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.6rem;
}


.btn-f,
.btn-o {
  border: 2px solid rgba(247, 248, 238, 0.9);
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 800;
  justify-content: center;
  min-width: 190px;
  padding: 1rem 1.25rem;
}

.btn-f {
  background: var(--acid);
  border-color: var(--acid);
  color: #050704;
}

.btn-o {
  background: rgba(9, 13, 11, 0.76);
  color: var(--ink);
}

.btn-f:hover,
.btn-o:hover {
  box-shadow: 0 0 26px rgba(182, 255, 0, 0.32);
  transform: translateY(-2px);
}

.btn-o:hover {
  border-color: var(--acid);
  color: var(--acid);
}

section:not(.hero) {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

#stats {
  border-bottom: 1px solid rgba(182, 255, 0, 0.18);
  border-top: 1px solid rgba(182, 255, 0, 0.18);
  padding: 2rem 0;
}

.s-grid,
.f-grid,
.priv-grid,
.tk-grid {
  display: grid;
  gap: 1rem;
}

.s-grid {
  grid-template-columns: repeat(4, 1fr);
}

.s-item,
.f-card,
.priv-c,
.tk,
.stp,
.arch-box,
.cta-bx,
.term {
  background: rgba(9, 13, 11, 0.82);
  border: 1px solid rgba(247, 248, 238, 0.18);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 0, 0.05);
}

/* Stats section: slide-up entrance + matrix glyph bg */
.s-item {
  min-height: 124px;
  padding: 1.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.js-active .s-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}

.js-active .s-item.in-view {
  opacity: 1;
  transform: translateY(0);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 0, 0.1), 0 0 24px rgba(182, 255, 0, 0.04);
}

/* stagger */
.s-item:nth-child(1) { transition-delay: 0s;    }
.s-item:nth-child(2) { transition-delay: 0.1s;  }
.s-item:nth-child(3) { transition-delay: 0.2s;  }
.s-item:nth-child(4) { transition-delay: 0.3s;  }



.s-item > * { position: relative; z-index: 1; }


.s-val {
  color: var(--acid);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  position: relative;
  z-index: 1;
  transition: text-shadow 0.1s;
}

/* Counter glitch flash during counting */
.s-val.counting {
  animation: sValGlitch 0.07s steps(1, end) infinite;
}

@keyframes sValGlitch {
  0%   { text-shadow: 0 0 12px rgba(182, 255, 0, 1), 0 0 30px rgba(182, 255, 0, 0.55); }
  33%  { text-shadow: 2px 0 rgba(182,255,0,0.5), -2px 0 rgba(0,255,180,0.3), 0 0 16px rgba(182,255,0,0.8); }
  66%  { text-shadow: -1px 0 rgba(182,255,0,0.4), 1px 0 rgba(0,255,100,0.3), 0 0 20px rgba(182,255,0,0.7); }
  100% { text-shadow: 0 0 12px rgba(182, 255, 0, 1), 0 0 30px rgba(182, 255, 0, 0.55); }
}

.s-lbl,
.lbl {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.split {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0.85rem 0 1.35rem;
  text-transform: uppercase;
}

h3 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

p,
.tl,
td,
code {
  color: rgba(247, 248, 238, 0.75);
  line-height: 1.65;
}

.sp-l p {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.term {
  overflow: hidden;
}

.term-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
}

.td {
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.r {
  background: #ff5f57;
}

.y {
  background: #ffbd2e;
}

.g {
  background: #28c840;
}

.term-t {
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: 0.5rem;
}

.term-b {
  padding: 1.2rem;
}

.tl {
  font-size: 0.9rem;
  min-height: 1.55rem;
}

.tc,
.ta {
  color: var(--acid);
}

.tg,
.good {
  color: var(--ok);
}

.tr,
.bad {
  color: var(--bad);
}

.empty {
  height: 0.8rem;
}

/* Typewriter cursor on active line */
.tl-cursor::after {
  animation: blink 0.75s steps(2, end) infinite;
  color: var(--acid);
  content: '▌';
  margin-left: 1px;
}

/* Line fade-in when revealed */
.tl-typed {
  animation: tlFadeIn 0.12s ease-out both;
}

@keyframes tlFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sec-desc {
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: 640px;
}

.priv-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ── Privacy section: new split layout ───────────────────── */
.priv-split {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
}

.priv-left h2 {
  margin-top: 0.5rem;
}

.priv-list {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.priv-list-h {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
}

.priv-list-h.ok {
  background: rgba(126, 255, 131, 0.06);
  border-bottom: 1px solid rgba(126, 255, 131, 0.12);
  color: var(--ok);
}

.priv-list-h.sealed {
  background: rgba(255, 91, 91, 0.06);
  border-bottom: 1px solid rgba(255, 91, 91, 0.12);
  color: var(--bad);
}

.priv-list-i {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(247, 248, 238, 0.75);
  font-size: 0.84rem;
  padding: 0.65rem 1rem;
}

.priv-list-i:first-of-type {
  border-top: none;
}

/* Terminal in the priv section */
.priv-term {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-height: 360px;
  overflow: hidden;
}

.priv-term .term-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.priv-live {
  align-items: center;
  color: var(--ok);
  display: flex;
  font-size: 0.65rem;
  font-weight: 700;
  gap: 0.3rem;
  letter-spacing: 0.1em;
  margin-left: auto;
}

.priv-term .term-b {
  font-size: 0.82rem;
  min-height: 320px;
  padding: 1rem 1.2rem;
}

@media (max-width: 860px) {
  .priv-split {
    grid-template-columns: 1fr;
  }
}



/* ── How To Trade: split layout ─────────────────────────── */
.how-split {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
}

.how-right h2 { margin-top: 0.5rem; }

.how-steps {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

.how-stp {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
}

.how-stp:first-child { padding-top: 0; }
.how-stp:last-child  { border-bottom: none; }

.how-num {
  color: var(--acid);
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 2.4rem;
  padding-top: 0.05rem;
}

.how-stp-body h3 { color: var(--ink); margin: 0 0 0.35rem; }
.how-stp-body p  { color: rgba(247,248,238,0.5); font-size:0.82rem; line-height:1.65; margin:0; }

@media (max-width: 860px) {
  .how-split { grid-template-columns: 1fr; }
  .how-left  { order: 2; }
  .how-right { order: 1; }
}

/* ── Agent Flow: interactive card grid ───────────────────── */
.af-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.5rem;
}

.af-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0.55;
  padding: 1.2rem 1.1rem 1.1rem;
  transition: border-color 0.35s, opacity 0.35s, box-shadow 0.35s;
}

.af-card.active {
  border-color: var(--acid);
  box-shadow: 0 0 24px rgba(182,255,0,0.12), 0 0 2px rgba(182,255,0,0.3);
  opacity: 1;
}

.af-card.done-state {
  border-color: rgba(126,255,131,0.25);
  opacity: 0.8;
}

.af-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.af-num {
  color: var(--acid);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.af-badge {
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.55rem;
}

.af-badge.done    { background: rgba(126,255,131,0.1); color: var(--ok); }
.af-badge.running { background: rgba(182,255,0,0.1);   color: var(--acid); }
.af-badge.pending { background: rgba(255,255,255,0.05); color: rgba(247,248,238,0.3); }

.af-title {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.af-desc {
  color: rgba(247,248,238,0.45);
  font-size: 0.76rem;
  line-height: 1.6;
  margin: 0;
}

.af-ep {
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
  color: var(--acid);
  display: block;
  font-size: 0.68rem;
  padding: 0.35rem 0.6rem;
}

.af-term-wrap {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  margin-top: 0.4rem;
  min-height: 90px;
  overflow: hidden;
}

.af-term {
  font-size: 0.68rem;
  line-height: 1.6;
  min-height: 90px;
  padding: 0.6rem 0.75rem;
}

.af-term .tl { display: block; }
.af-term .tc { color: rgba(247,248,238,0.4); }
.af-term .tg { color: var(--ok); }
.af-term .ta { color: var(--acid); }
.af-term .empty { height: 0.5em; }

@media (max-width: 1024px) { .af-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .af-grid { grid-template-columns: 1fr; } }

.priv-c {

  padding: 1.5rem;
}

.priv-h {
  color: var(--acid);
  font-weight: 800;
  margin-bottom: 1rem;
}

.priv-i {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(247, 248, 238, 0.82);
  padding: 0.9rem 0;
}

.rx {
  color: rgba(247, 248, 238, 0.82);
}

.f-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Why Sylphy grid ─────────────────────────── */
.why-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.why-card:hover {
  border-color: rgba(182, 255, 0, 0.28);
  box-shadow: 0 0 28px rgba(182, 255, 0, 0.07);
  transform: translateY(-3px);
}

.why-ico {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--acid);
  display: inline-flex;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 42px;
}

.why-card:hover .why-ico {
  border-color: rgba(182, 255, 0, 0.35);
  box-shadow: 0 0 14px rgba(182, 255, 0, 0.18);
}

.why-card h3 {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.why-card p {
  color: rgba(247, 248, 238, 0.5);
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .why-grid { grid-template-columns: 1fr; }
}



.f-card {
  min-height: 235px;
  padding: 1.35rem;
}

.f-ico {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--acid);
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  margin-bottom: 1.2rem;
  min-width: 44px;
  padding: 0 0.6rem;
}

.steps {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}

.stp {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.stp-n,
.arch-num {
  color: var(--acid);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.stp p {
  flex: 1;
}

.stp code {
  background: rgba(182, 255, 0, 0.08);
  border: 1px solid rgba(182, 255, 0, 0.2);
  display: block;
  font-size: 0.72rem;
  margin-top: 1rem;
  padding: 0.75rem;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stp-arr {
  align-self: center;
  color: rgba(215, 255, 0, 0.38);
  font-size: 1.6rem;
  font-weight: 800;
}

.arch-flow {
  display: grid;
  gap: 1rem;
  max-width: 900px;
}

.arch-step {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 56px 1fr;
}

.arch-num {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  height: 56px;
  justify-content: center;
  margin: 0;
  width: 56px;
}

.arch-box {
  padding: 1.25rem;
}

.arch-note {
  border-left: 2px solid rgba(182, 255, 0, 0.35);
  color: rgba(247, 248, 238, 0.55);
  font-size: 0.82rem;
  margin-top: 0.85rem;
  padding-left: 0.75rem;
}

.arch-audit-cols {
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: 1fr 1fr;
  margin: 0.85rem 0 0;
}

.arch-audit-label {
  color: var(--acid);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
}

@media (max-width: 480px) {
  .arch-audit-cols {
    grid-template-columns: 1fr;
  }
}

.arch-line {
  background: var(--line);
  height: 36px;
  margin-left: 28px;
  width: 1px;
}

/* ── Compare table: premium redesign ─────────────────────── */
.cmp-head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.cmp-wrap {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  overflow-x: auto;
}

.cmp-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

/* Header row */
.cmp-table thead tr {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cmp-table th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1rem 1.2rem 0.9rem;
  text-align: center;
  vertical-align: top;
}

.cmp-feature-col {
  text-align: left !important;
  width: 32%;
}

/* Header labels */
.cmp-th-name {
  color: rgba(247,248,238,0.7);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sylphy-name {
  color: var(--acid) !important;
}

.cmp-th-sub {
  color: rgba(247,248,238,0.3);
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* ★ BEST badge above SYLPHY */
.cmp-best-badge {
  background: rgba(182,255,0,0.12);
  border: 1px solid rgba(182,255,0,0.25);
  border-radius: 20px;
  color: var(--acid);
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.5rem;
}

/* SYLPHY column highlight */
.cmp-table .cmp-sylphy {
  background: rgba(182,255,0,0.04);
  border-left: 1px solid rgba(182,255,0,0.2) !important;
  border-right: 1px solid rgba(182,255,0,0.2) !important;
}

/* Body rows */
.cmp-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}

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

.cmp-table tbody tr:hover {
  background: rgba(255,255,255,0.025);
}

.cmp-table td {
  font-size: 0.82rem;
  padding: 0.95rem 1.2rem;
  text-align: center;
  vertical-align: middle;
}

.cmp-label {
  color: rgba(247,248,238,0.55);
  font-size: 0.8rem !important;
  text-align: left !important;
}

/* Cell value classes */
.cv-yes {
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 600;
}

.cv-no {
  color: rgba(255, 91, 91, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
}

.cv-mu {
  color: rgba(247,248,238,0.35);
  font-size: 0.8rem;
}


.tk-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tk {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 86px;
  padding: 1.2rem;
}

.tk-k {
  color: var(--muted);
  font-size: 0.78rem;
}

.tk-v {
  color: var(--acid);
  font-weight: 800;
}

/* ── CTA section: premium redesign ──────────────────────── */
#cta {
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
}

/* Ambient radial glow behind the headline */
.cta-glow-orb {
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(182,255,0,0.09), transparent 70%);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.cta-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

/* Trust indicator pills */
.cta-pills {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.cta-pill {
  align-items: center;
  color: rgba(247,248,238,0.45);
  display: flex;
  font-size: 0.72rem;
  font-weight: 500;
  gap: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta-pill-sep {
  color: rgba(247,248,238,0.2);
  font-size: 0.9rem;
}

/* Main headline */
.cta-h {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.4rem;
}

.cta-line1 {
  color: var(--ink);
}

.cta-line2 {
  color: var(--acid);
}

/* Subtitle */
.cta-sub {
  color: rgba(247,248,238,0.45);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 2.4rem;
  max-width: 400px;
}

/* Button row */
.cta-btns {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn-lg {
  min-width: 160px;
}

/* Stat bar */
.cta-statbar {
  align-items: center;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  padding: 1.2rem 2rem;
  width: 100%;
  max-width: 560px;
}

.cta-stat {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 1.5rem;
}

.cta-stat-v {
  color: var(--acid);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cta-stat-l {
  color: rgba(247,248,238,0.35);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-stat-div {
  background: rgba(255,255,255,0.1);
  height: 2rem;
  width: 1px;
}

/* Keep old .cta-bx for any legacy use */
.cta-bx {
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}



/* ── Docs section cards ── */
.doc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.doc-card {
  background: rgba(9, 13, 11, 0.82);
  border: 1px solid rgba(247, 248, 238, 0.18);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 0, 0.05);
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.5rem;
  position: relative;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
  border-color: rgba(182, 255, 0, 0.4);
  box-shadow: 0 0 28px rgba(182, 255, 0, 0.08), inset 0 0 0 1px rgba(182, 255, 0, 0.12);
  transform: translateY(-3px);
}

.doc-card-icon {
  align-items: center;
  border: 1px solid rgba(182, 255, 0, 0.22);
  color: var(--acid);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 40px;
}

.doc-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.doc-card p {
  color: rgba(247, 248, 238, 0.6);
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.doc-card-link {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.doc-card:hover .doc-card-link {
  opacity: 1;
}

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .doc-grid { grid-template-columns: 1fr; }
}

footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3.5rem 0 1.5rem;
}

.ft-row {
  align-items: flex-start;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1.4fr;
  margin-bottom: 3rem;
}

.ft-logo {
  align-items: center;
  color: var(--acid);
  display: flex;
  font-size: 1.1rem;
  font-weight: 800;
  gap: 0.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.ft-logo-img {
  height: 26px;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  width: 26px;
}

.ft-tagline {
  color: rgba(247,248,238,0.4);
  font-size: 0.8rem;
  line-height: 1.7;
  margin: 0;
}

.ft-links {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  justify-content: end;
}

.ft-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ft-col h4 {
  color: rgba(247,248,238,0.3);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.ft-col a {
  color: rgba(247,248,238,0.45);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.ft-col a:hover {
  color: var(--ink);
}

.ft-bot {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.ft-bot p {
  color: rgba(247,248,238,0.25);
  font-size: 0.72rem;
  margin: 0;
}

.ft-status {
  align-items: center;
  color: var(--ok);
  display: flex;
  font-size: 0.72rem;
  gap: 0.45rem;
  letter-spacing: 0.04em;
}

.dot-sm {
  height: 7px;
  width: 7px;
}


.app-body {
  min-height: 100vh;
}

.app-topbar button {
  font-family: inherit;
}

.network-pill {
  align-items: center;
  border: 1px solid rgba(182, 255, 0, 0.22);
  color: var(--acid);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.5rem;
  padding: 0.78rem 0.9rem;
}

.wallet-btn {
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.app-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 7rem 1rem 4rem;
}

.trade-hero {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
}

.trade-hero h1 {
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.9;
  margin: 0.8rem 0 1rem;
}

.trade-hero p {
  font-size: 1rem;
  max-width: 780px;
}

.app-status-card,
.trade-panel,
.privacy-panel,
.orders-panel,
.contract-panel {
  background: rgba(9, 13, 11, 0.86);
  border: 1px solid rgba(247, 248, 238, 0.18);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 0, 0.05);
}

.app-status-card {
  padding: 1.2rem;
}

.status-row,
.trade-summary div,
.contract-box div {
  align-items: center;
  border-bottom: 1px solid rgba(247, 248, 238, 0.12);
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.status-row:first-child,
.trade-summary div:first-child,
.contract-box div:first-child {
  padding-top: 0;
}

.status-row:last-child,
.trade-summary div:last-child,
.contract-box div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-row span,
.trade-summary span,
.contract-box span {
  color: var(--muted);
  font-size: 0.82rem;
}

.status-row strong,
.trade-summary strong,
.contract-box strong {
  color: var(--acid);
  font-size: 0.88rem;
  text-align: right;
}

.trade-grid,
.orders-contract-grid {
  display: grid;
  gap: 1rem;
}

.trade-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
}

.orders-contract-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
  margin-top: 1rem;
}

.trade-panel,
.privacy-panel,
.orders-panel,
.contract-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

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

.panel-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  margin: 0.45rem 0 0;
}

.compact h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.side-toggle {
  border: 1px solid rgba(247, 248, 238, 0.18);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-width: 170px;
}

.side-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  padding: 0.85rem 1rem;
}

.side-btn.active {
  background: var(--acid);
  color: #050704;
}

.field,
.field-row {
  display: grid;
  gap: 0.75rem;
}

.field {
  margin-bottom: 1rem;
}

.field-row {
  grid-template-columns: repeat(2, 1fr);
}

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

input,
select {
  background: rgba(3, 5, 4, 0.72);
  border: 1px solid rgba(247, 248, 238, 0.18);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  min-height: 52px;
  outline: 0;
  padding: 0 1rem;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(182, 255, 0, 0.1);
}

.trade-summary {
  background: rgba(182, 255, 0, 0.06);
  border: 1px solid rgba(182, 255, 0, 0.18);
  margin: 1.1rem 0;
  padding: 1rem;
}

.submit-intent {
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.form-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.9rem 0 0;
}

.sealed-box {
  background:
    linear-gradient(90deg, rgba(182, 255, 0, 0.04), transparent),
    rgba(3, 5, 4, 0.78);
  border: 1px solid rgba(182, 255, 0, 0.18);
  color: var(--acid);
  font-size: 0.82rem;
  line-height: 1.6;
  min-height: 208px;
  overflow-wrap: anywhere;
  padding: 1rem;
}

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

.privacy-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.privacy-list div {
  border-bottom: 1px solid rgba(247, 248, 238, 0.1);
  color: rgba(247, 248, 238, 0.78);
  padding-bottom: 0.8rem;
}

.orders-list {
  display: grid;
  gap: 0.8rem;
}

.empty-state,
.order-item {
  border: 1px solid rgba(247, 248, 238, 0.14);
  color: var(--muted);
  padding: 1rem;
}

.order-item {
  color: rgba(247, 248, 238, 0.82);
}

.order-item strong {
  color: var(--acid);
}

.order-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.contract-box {
  margin-bottom: 1rem;
}

.sylphy-bot {
  --unit: clamp(6px, 0.7vw, 11px);
  filter: drop-shadow(0 0 14px rgba(182, 255, 0, 0.6));
  height: calc(var(--unit) * 54);
  image-rendering: pixelated;
  opacity: 0.94;
  position: relative;
  width: calc(var(--unit) * 62);
}

.antenna,
.head,
.body,
.wing,
.hair,
.eye,
.shine,
.core,
.arm,
.leg {
  position: absolute;
}

.antenna {
  background: linear-gradient(135deg, var(--acid-soft), #96c900);
  height: calc(var(--unit) * 7);
  left: calc(var(--unit) * 26);
  top: 0;
  width: calc(var(--unit) * 10);
}

.head {
  background: linear-gradient(135deg, var(--acid-soft), #8fbd00);
  clip-path: polygon(24% 0, 76% 0, 76% 11%, 88% 11%, 88% 24%, 100% 24%, 100% 61%, 91% 61%, 91% 78%, 80% 78%, 80% 92%, 20% 92%, 20% 78%, 9% 78%, 9% 61%, 0 61%, 0 24%, 12% 24%, 12% 11%, 24% 11%);
  height: calc(var(--unit) * 28);
  left: calc(var(--unit) * 12);
  top: calc(var(--unit) * 6);
  width: calc(var(--unit) * 38);
}

.hair-one,
.hair-two {
  background: rgba(75, 104, 0, 0.18);
}

.hair-one {
  height: calc(var(--unit) * 7);
  left: 0;
  top: 49%;
  width: 100%;
}

.hair-two {
  height: calc(var(--unit) * 9);
  left: 16%;
  top: 52%;
  width: 68%;
}

.eye {
  background: #020403;
  height: calc(var(--unit) * 6);
  top: calc(var(--unit) * 18);
  width: calc(var(--unit) * 5);
}

.eye-left {
  left: calc(var(--unit) * 12);
}

.eye-right {
  right: calc(var(--unit) * 12);
}

.shine {
  background: #fff;
  height: calc(var(--unit) * 2);
  right: calc(var(--unit) * 7);
  width: calc(var(--unit) * 6);
}

.shine-one {
  top: calc(var(--unit) * 8);
}

.shine-two {
  right: calc(var(--unit) * 5);
  top: calc(var(--unit) * 12);
  width: calc(var(--unit) * 3);
}

.shine-three {
  top: calc(var(--unit) * 16);
}

.wing {
  animation: flap 1.8s steps(2, end) infinite;
  background: #4a5a2a;
  box-shadow: none;
  height: calc(var(--unit) * 16);
  top: calc(var(--unit) * 25);
  width: calc(var(--unit) * 16);
  will-change: transform;
}

.wing-left {
  clip-path: polygon(0 0, 68% 0, 68% 22%, 88% 22%, 88% 44%, 100% 44%, 100% 78%, 75% 78%, 75% 100%, 38% 100%, 38% 78%, 18% 78%, 18% 56%, 0 56%);
  left: 0;
}

.wing-right {
  clip-path: polygon(32% 0, 100% 0, 100% 56%, 82% 56%, 82% 78%, 62% 78%, 62% 100%, 25% 100%, 25% 78%, 0 78%, 0 44%, 12% 44%, 12% 22%, 32% 22%);
  right: 0;
}

.body {
  background: linear-gradient(135deg, #d5ff22, #8fbd00);
  clip-path: polygon(10% 0, 90% 0, 90% 25%, 100% 25%, 100% 80%, 78% 80%, 78% 100%, 22% 100%, 22% 80%, 0 80%, 0 25%, 10% 25%);
  height: calc(var(--unit) * 18);
  left: calc(var(--unit) * 18);
  top: calc(var(--unit) * 31);
  width: calc(var(--unit) * 26);
}

.core {
  background: #fff;
  height: calc(var(--unit) * 4);
  left: 45%;
  top: 25%;
  width: calc(var(--unit) * 4);
}

.arm {
  background: #c9ff19;
  height: calc(var(--unit) * 7);
  top: calc(var(--unit) * 5);
  width: calc(var(--unit) * 4);
}

.arm-left {
  left: calc(var(--unit) * -3);
}

.arm-right {
  right: calc(var(--unit) * -3);
}

.leg {
  background: #c9ff19;
  height: calc(var(--unit) * 6);
  top: calc(var(--unit) * 17);
  width: calc(var(--unit) * 5);
}

.leg-left {
  left: calc(var(--unit) * 7);
}

.leg-right {
  right: calc(var(--unit) * 7);
}


@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-mid {
    display: none;
  }

  .split,
  .priv-grid,
  .ft-row,
  .trade-hero,
  .trade-grid,
  .orders-contract-grid {
    grid-template-columns: 1fr;
  }

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

  .stp-arr {
    display: none;
  }

  .f-grid,
  .tk-grid,
  .s-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 68px;
  }

  .nav-ico {
    display: none;
  }

  .nav-cta {
    font-size: 0.68rem;
    padding: 0.72rem;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo-img {
    height: 30px;
    width: 30px;
  }

  .hero {
    min-height: 100svh;
    padding-inline: 1rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
  }

  .hero-keywords {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .hero-divider-line {
    flex-basis: 48px;
  }

  .hero-orbit {
    opacity: 0.44;
  }

  .sylphy-bot {
    --unit: clamp(5px, 1.6vw, 10px);
  }

  .s-grid,
  .f-grid,
  .tk-grid,
  .ft-links {
    grid-template-columns: 1fr;
  }

  .cta-btns,
  .ft-bot {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-f,
  .btn-o {
    width: 100%;
  }

  .field-row,
  .panel-head {
    grid-template-columns: 1fr;
  }

  .panel-head {
    display: grid;
  }

  .side-toggle {
    width: 100%;
  }
}

/* ── SETTLEMENT LOG ──────────────────────────────────── */
.settlement-log { display: grid; gap: 0.5rem; margin-top: 1rem; }

.settle-item {
  border: 1px solid rgba(247,248,238,0.1);
  background: rgba(9,13,11,0.82);
}
.settle-pending { border-color: rgba(255,200,0,0.22); }
.settle-done    { border-color: rgba(126,255,131,0.14); }

.settle-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(247,248,238,0.07);
}
.settle-badge {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em;
  padding: 0.2rem 0.6rem;
}
.badge-pending { background: rgba(255,200,0,0.1); color: #ffc800; }
.badge-done    { background: rgba(126,255,131,0.08); color: var(--ok); }
.settle-time { font-size: 0.68rem; color: var(--muted); }

.settle-body {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; padding: 0.4rem 1rem;
}
.settle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.28rem 0.5rem 0.28rem 0;
  border-bottom: 1px solid rgba(247,248,238,0.05);
  font-size: 0.72rem;
}
.settle-row:nth-child(3n+2) { padding-left: 0.75rem; border-left: 1px solid rgba(247,248,238,0.05); }
.settle-row:nth-child(3n+3) { padding-left: 0.75rem; border-left: 1px solid rgba(247,248,238,0.05); }
.settle-row span { color: var(--muted); }
.settle-row strong { color: var(--ink); font-size: 0.7rem; }
.settle-row a { color: var(--acid); }

.settle-terminal {
  border-top: 1px solid rgba(247,248,238,0.07);
  padding: 0.45rem 1rem;
  background: rgba(0,0,0,0.18);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem;
}
.settle-terminal .tl { font-size: 0.7rem; min-height: auto; padding: 0.1rem 0; }

.settle-note {
  padding: 0.35rem 1rem;
  font-size: 0.7rem; color: var(--muted);
  border-top: 1px solid rgba(247,248,238,0.05);
  background: rgba(255,200,0,0.02);
}

/* ── AUDIT LOG ──────────────────────────────────────── */
.audit-info {
  background: rgba(182,255,0,0.03);
  border: 1px solid rgba(182,255,0,0.12);
  font-size: 0.78rem; color: rgba(247,248,238,0.65);
  padding: 0.6rem 1rem; margin-top: 0.75rem; line-height: 1.5;
}
.audit-info strong { color: var(--acid); }

.audit-log { display: grid; gap: 1px; margin-top: 0.75rem; border: 1px solid rgba(247,248,238,0.09); }

.audit-item {
  display: grid; grid-template-columns: 180px 1fr;
  background: rgba(9,13,11,0.85);
  border-top: 1px solid rgba(247,248,238,0.06);
}
.audit-item:first-child { border-top: none; }

.audit-left {
  padding: 0.7rem 1rem;
  border-right: 1px solid rgba(182,255,0,0.09);
  background: rgba(182,255,0,0.015);
  display: flex; flex-direction: column; justify-content: center;
}
.audit-type {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--acid); margin-bottom: 0.3rem;
}
.audit-time { font-size: 0.62rem; color: var(--muted); }

.audit-right {
  padding: 0.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1rem;
  align-content: start;
}
.audit-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; padding: 0.2rem 0;
  border-bottom: 1px solid rgba(247,248,238,0.04);
}
.audit-row:last-child { border-bottom: none; }
.audit-row span { color: var(--muted); }
.audit-row code { color: var(--ink); font-size: 0.67rem; font-family: inherit; }

.audit-footer {
  margin-top: 0.5rem; padding: 0.55rem 1rem;
  border: 1px solid rgba(182,255,0,0.09);
  font-size: 0.7rem; color: var(--muted);
  background: rgba(182,255,0,0.015);
}

/* Unified audit table */
.audit-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.75rem; min-width: unset;
}
.audit-table thead tr { background: rgba(182,255,0,0.06); }
.audit-table th {
  padding: 0.5rem 0.75rem; text-align: left;
  font-size: 0.65rem; letter-spacing: 0.12em;
  color: var(--acid); border: 1px solid rgba(247,248,238,0.1);
  background: rgba(182,255,0,0.04);
}
.audit-table td {
  padding: 0.32rem 0.75rem; border: 1px solid rgba(247,248,238,0.07);
  color: rgba(247,248,238,0.75); vertical-align: middle; line-height: 1.4;
}
.audit-table code { font-family: inherit; font-size: 0.72rem; color: var(--ink); }
.audit-table tr:hover td { background: rgba(182,255,0,0.03); }
.audit-table .row-sep td { border-bottom: 2px solid rgba(182,255,0,0.15); }
.at-time {
  color: var(--muted); font-size: 0.68rem; white-space: nowrap;
  text-align: center; vertical-align: middle;
  background: rgba(0,0,0,0.2);
}
.at-event {
  text-align: center; vertical-align: middle;
  background: rgba(182,255,0,0.02);
  border-right: 1px solid rgba(182,255,0,0.12) !important;
}
.at-event .audit-type { font-size: 0.62rem; line-height: 1.3; margin: 0; }

.tx-group-header td {
  background: rgba(182,255,0,0.08);
  border-top: 2px solid rgba(182,255,0,0.3) !important;
  border-bottom: 1px solid rgba(182,255,0,0.2) !important;
  color: var(--acid);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.75rem;
}
.tx-group-header code {
  color: rgba(247,248,238,0.7);
  font-size: 0.68rem;
}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.trading-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(182, 255, 0, 0.18), transparent 24rem),
    #050906;
  min-height: 100vh;
}

.dash-sidebar {
  background: rgba(6, 10, 8, 0.94);
  border-right: 1px solid rgba(182, 255, 0, 0.16);
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 1.6rem 1rem;
  position: fixed;
  top: 0;
  width: 280px;
  z-index: 40;
}

.dash-brand {
  align-items: center;
  border-bottom: 1px solid rgba(247, 248, 238, 0.1);
  display: grid;
  gap: 0 0.8rem;
  grid-template-columns: 44px 1fr;
  padding-bottom: 1.6rem;
}

.dash-brand span {
  align-items: center;
  background: var(--acid);
  color: #050704;
  display: flex;
  font-size: 1.25rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.dash-brand strong {
  color: var(--ink);
  letter-spacing: 0.12em;
}

.dash-brand small {
  color: var(--acid);
  font-size: 0.74rem;
  grid-column: 2;
  letter-spacing: 0.16em;
}

.dash-nav {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.dash-nav a {
  border: 1px solid transparent;
  color: rgba(247, 248, 238, 0.44);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 1rem 1.2rem;
}

.dash-nav a.active,
.dash-nav a:hover {
  background: rgba(182, 255, 0, 0.08);
  border-color: rgba(182, 255, 0, 0.22);
  color: var(--acid);
}

.sidebar-wallet {
  background: var(--acid);
  border: 0;
  color: #050704;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-top: auto;
  min-height: 48px;
}

.return-home {
  border-top: 1px solid rgba(247, 248, 238, 0.1);
  color: rgba(247, 248, 238, 0.45);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 1.4rem;
  padding-top: 1.3rem;
}

.dash-main {
  margin-left: 280px;
  min-height: 100vh;
  padding: 2rem;
}

.dash-header {
  align-items: start;
  border-bottom: 1px solid rgba(182, 255, 0, 0.16);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: -2rem -2rem 2rem;
  padding: 2rem;
}

.dash-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.08em;
  margin: 0;
}

.dash-header p {
  color: rgba(182, 255, 0, 0.45);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin: 0.45rem 0 0;
}

.dash-header-actions {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.mobile-wallet {
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.wallet-alert {
  align-items: center;
  background: rgba(9, 13, 11, 0.88);
  border: 1px solid rgba(247, 248, 238, 0.14);
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem 1.4rem;
}

.wallet-alert strong {
  color: rgba(247, 248, 238, 0.78);
  letter-spacing: 0.12em;
  margin-right: auto;
}

.wallet-alert small {
  color: rgba(247, 248, 238, 0.36);
}

.alert-dot {
  background: #ff5b7f;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.dashboard-hero-panel {
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.92), rgba(3, 5, 4, 0.64)),
    radial-gradient(circle at 72% 45%, rgba(182, 255, 0, 0.18), transparent 20rem),
    linear-gradient(rgba(247, 248, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 248, 238, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  border: 1px solid rgba(182, 255, 0, 0.22);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-bottom: 1.5rem;
  min-height: 330px;
  padding: clamp(1.2rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}

.dashboard-hero-panel::after {
  color: rgba(247, 248, 238, 0.035);
  content: "PRIVATE";
  font-size: clamp(5rem, 13vw, 13rem);
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: -1rem;
  top: 1rem;
}

.dashboard-hero-panel .wallet-alert {
  grid-column: 1 / -1;
  margin: 0;
  min-height: auto;
  padding: 1rem 1.2rem;
  position: relative;
  z-index: 1;
}

.dashboard-command {
  align-self: end;
  max-width: 850px;
  position: relative;
  z-index: 1;
}

.dashboard-command h2 {
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: 0.96;
  margin: 1rem 0;
}

.dashboard-command p {
  font-size: 1.05rem;
  max-width: 680px;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.command-actions .btn-f,
.command-actions .btn-o {
  cursor: pointer;
  font-family: inherit;
  min-width: 220px;
}

.privacy-radar {
  align-self: end;
  aspect-ratio: 1;
  border: 1px solid rgba(182, 255, 0, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.privacy-radar::before,
.privacy-radar::after {
  border: 1px solid rgba(182, 255, 0, 0.14);
  border-radius: 50%;
  content: "";
  inset: 18%;
  position: absolute;
}

.privacy-radar::after {
  animation: pulse 3.4s ease-in-out infinite;
  background: radial-gradient(circle, rgba(182, 255, 0, 0.18), transparent 62%);
  inset: 5%;
}

.privacy-radar span,
.privacy-radar strong {
  position: absolute;
  z-index: 1;
}

.privacy-radar span {
  color: rgba(247, 248, 238, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.privacy-radar span:nth-child(1) {
  top: 14%;
}

.privacy-radar span:nth-child(2) {
  right: 8%;
}

.privacy-radar span:nth-child(3) {
  bottom: 14%;
}

.privacy-radar strong {
  color: var(--acid);
  font-size: 1.35rem;
}

.metric-card.hot {
  border-color: rgba(182, 255, 0, 0.36);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 0, 0.12), 0 0 42px rgba(182, 255, 0, 0.09);
}

.dashboard-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.tall {
  min-height: 420px;
}

.activity-feed {
  display: grid;
}

.activity-feed div {
  border-bottom: 1px solid rgba(247, 248, 238, 0.1);
  display: grid;
  gap: 0.3rem;
  grid-template-columns: 14px 1fr;
  padding: 1rem 0;
}

.activity-feed div:first-child {
  padding-top: 0;
}

.activity-feed b {
  background: #68ffab;
  border-radius: 50%;
  height: 10px;
  margin-top: 0.45rem;
  width: 10px;
}

.activity-feed strong {
  color: rgba(247, 248, 238, 0.76);
  font-size: 0.95rem;
}

.activity-feed span {
  color: rgba(247, 248, 238, 0.38);
  font-size: 0.82rem;
  grid-column: 2;
}

.mini-chart-panel {
  background: rgba(9, 13, 11, 0.86);
  border: 1px solid rgba(247, 248, 238, 0.14);
  min-height: 250px;
  padding: 1.4rem;
}

.bar-chart {
  align-items: end;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(8, 1fr);
  height: 170px;
  margin-top: 1rem;
}

.bar-chart span {
  background: linear-gradient(180deg, var(--acid), rgba(182, 255, 0, 0.08));
  border: 1px solid rgba(182, 255, 0, 0.22);
  height: var(--h);
  min-height: 24px;
}

.placeholder-view {
  background:
    radial-gradient(circle at 78% 20%, rgba(182, 255, 0, 0.13), transparent 22rem),
    rgba(9, 13, 11, 0.86);
  border: 1px solid rgba(247, 248, 238, 0.14);
  min-height: 520px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.placeholder-view h2 {
  max-width: 760px;
}

.dash-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.5rem;
}

.metric-card {
  background: rgba(9, 13, 11, 0.82);
  border: 1px solid rgba(247, 248, 238, 0.14);
  min-height: 160px;
  overflow: hidden;
  padding: 1.4rem;
  position: relative;
}

.metric-card span {
  color: rgba(182, 255, 0, 0.5);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 1.2rem;
}

.metric-card strong {
  color: var(--ink);
  display: block;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.metric-card small {
  color: rgba(247, 248, 238, 0.38);
  display: block;
  margin-top: 0.9rem;
}

.metric-card em {
  color: rgba(247, 248, 238, 0.035);
  font-size: 5rem;
  font-style: normal;
  font-weight: 800;
  position: absolute;
  right: 1rem;
  top: 2.5rem;
}

.swap-stage {
  background:
    radial-gradient(circle at 50% 58%, rgba(182, 255, 0, 0.17), transparent 24rem),
    linear-gradient(rgba(247, 248, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 248, 238, 0.055) 1px, transparent 1px),
    rgba(3, 5, 4, 0.76);
  background-size: auto, 92px 92px, 92px 92px, auto;
  border: 1px solid rgba(182, 255, 0, 0.16);
  margin-bottom: 1.5rem;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3.5rem) 2rem;
  text-align: center;
}

.swap-copy h2 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
  margin: 1rem auto;
  max-width: 980px;
}

.swap-copy p {
  margin: 0 auto 2.4rem;
  max-width: 720px;
}

.swap-card {
  background: rgba(13, 17, 14, 0.94);
  border: 1px solid rgba(247, 248, 238, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  max-width: 950px;
  padding: 1rem;
}

.token-chart-panel {
  background: transparent;
  border: 1px solid rgba(182,255,0,0.12);
  border-radius: 12px;
  color: var(--ink);
  margin: 1.25rem auto 0;
  max-width: 950px;
  min-height: 520px;
  overflow: hidden;
  text-align: left;
}

.token-chart-panel [hidden] {
  display: none !important;
}

.chart-empty {
  align-items: center;
  display: grid;
  min-height: 520px;
  padding: 2rem;
  place-items: center;
  text-align: center;
}

.chart-empty span {
  color: #7c3cff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.chart-empty strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  margin: 0.8rem 0;
}

.chart-empty small {
  color: #667085;
}

.chart-view {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 520px;
}

.chart-toolbar,
.chart-footer {
  align-items: center;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  gap: 1.2rem;
  padding: 0.85rem 1rem;
}

.chart-toolbar {
  border-bottom: 1px solid #e5e7eb;
}

.chart-toolbar span:nth-child(2),
.chart-toolbar span:nth-child(3),
.chart-toolbar span:nth-child(4) {
  color: #8757ff;
  font-weight: 700;
}

.chart-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.1rem 0;
}

.chart-head h3 {
  color: #030712;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 650;
  margin: 0 0 0.3rem;
}

.chart-head p {
  color: #ff3045;
  font-family: Inter, system-ui, sans-serif;
  margin: 0;
}

#chartLiveDot {
  background: #16a085;
  border: 8px solid #d7f8ee;
  border-radius: 50%;
  height: 28px;
  width: 28px;
}

.candles {
  background:
    linear-gradient(#edf0f4 1px, transparent 1px),
    linear-gradient(90deg, #edf0f4 1px, transparent 1px);
  background-size: 100% 76px, 108px 100%;
  display: grid;
  grid-template-columns: repeat(56, 1fr);
  gap: 4px;
  min-height: 355px;
  padding: 2rem 1rem 2.8rem;
  position: relative;
}

.candles::after {
  content: none;
}

/* GeckoTerminal token info bar */
.chart-live { display: flex; flex-direction: column; }
.chart-live iframe { border-radius: 0 0 10px 10px; min-height: 430px; background: #111; }

.chart-token-info {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(12,14,10,0.85);
  border: 1px solid rgba(182,255,0,0.15);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.cti-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.7rem 1.2rem;
  flex: 1;
  min-width: 0;
}

.cti-contract-block { flex: 2; }

.cti-divider {
  width: 1px;
  background: rgba(182,255,0,0.1);
  flex-shrink: 0;
  align-self: stretch;
}

.cti-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(182,255,0,0.45);
}

.cti-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e8f0d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cti-symbol { display: flex; align-items: baseline; gap: 0.4rem; }
.cti-ticker {
  font-size: 0.7rem;
  font-weight: 600;
  color: #b6ff00;
  letter-spacing: 0.05em;
}

.cti-addr-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cti-addr {
  font-size: 0.75rem;
  color: #a0b090;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.cti-copy-btn {
  background: rgba(182,255,0,0.08);
  border: 1px solid rgba(182,255,0,0.25);
  border-radius: 4px;
  color: #b6ff00;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.cti-copy-btn:hover {
  background: rgba(182,255,0,0.2);
  color: #fff;
}

.candle {
  align-self: end;
  height: var(--wick);
  position: relative;
}

.candle::before {
  background: var(--c);
  content: "";
  height: 100%;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 1px;
}

.candle::after {
  background: var(--c);
  content: "";
  height: var(--body);
  left: 15%;
  position: absolute;
  right: 15%;
  top: var(--top);
}

.candle span {
  bottom: calc(var(--v) * -1 - 8px);
  background: color-mix(in srgb, var(--c), transparent 45%);
  content: "";
  height: var(--v);
  left: 0;
  opacity: 0.75;
  position: absolute;
  right: 0;
}

.chart-footer {
  border-top: 1px solid #e5e7eb;
  justify-content: space-between;
}

.chart-footer strong {
  color: #667085;
  font-weight: 500;
  margin-left: auto;
}

.swap-row,
.swap-pair {
  display: grid;
  gap: 1rem;
}

.swap-row {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1rem;
}

.swap-box,
.swap-amount {
  background: rgba(3, 5, 4, 0.7);
  border: 1px solid rgba(247, 248, 238, 0.1);
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  text-align: left;
}

.swap-box span,
.swap-amount span {
  color: rgba(247, 248, 238, 0.64);
  font-weight: 800;
}

.swap-box strong {
  color: var(--acid);
  font-size: 1.3rem;
  min-height: 52px;
  padding-top: 0.8rem;
}

.token-wide {
  margin-bottom: 1rem;
}

.swap-pair {
  align-items: stretch;
  grid-template-columns: 1fr 70px 1fr;
  margin-bottom: 1rem;
}

.swap-amount {
  min-height: 150px;
}

.swap-amount input {
  border: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  min-height: auto;
  padding: 0;
}

.swap-amount small {
  color: rgba(247, 248, 238, 0.38);
  font-size: 1rem;
}

.swap-switch {
  align-self: center;
  background: #111;
  border: 5px solid #050704;
  color: rgba(247, 248, 238, 0.8);
  cursor: pointer;
  font-size: 2rem;
  height: 70px;
}

.connect-swap {
  background: var(--acid);
  border: 0;
  color: #050704;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0.5rem;
  min-height: 64px;
  width: min(100%, 420px);
}

.dash-content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.activity-panel,
.book-panel,
.sealed-panel,
.dark-terminal {
  background: rgba(9, 13, 11, 0.86);
  border: 1px solid rgba(247, 248, 238, 0.14);
  padding: 1.4rem;
}

.activity-panel {
  min-height: 360px;
}

.panel-title {
  color: rgba(182, 255, 0, 0.55);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 1.4rem;
}

.panel-title span {
  background: var(--acid);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-right: 0.6rem;
  width: 8px;
}

.panel-title.red span {
  background: #ff5b7f;
}

.book-side {
  display: grid;
  gap: 0.45rem;
}

.book-side div {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 70px 1fr;
}

.book-side strong {
  font-size: 0.95rem;
}

.book-side span {
  color: rgba(247, 248, 238, 0.62);
  padding: 0.4rem 0.8rem;
  position: relative;
}

.book-side span::before {
  content: "";
  inset: 0 auto 0 0;
  opacity: 0.22;
  position: absolute;
  width: var(--w);
  z-index: -1;
}

.sell strong {
  color: #ff5b7f;
}

.sell span::before {
  background: #ff5b7f;
}

.buy strong {
  color: #68ffab;
}

.buy span::before {
  background: #68ffab;
}

.spread {
  border-bottom: 1px solid rgba(247, 248, 238, 0.12);
  border-top: 1px solid rgba(247, 248, 238, 0.12);
  color: var(--acid);
  font-size: 0.82rem;
  margin: 0.8rem 0;
  padding: 0.7rem;
  text-align: center;
}

.sealed-panel,
.dark-terminal {
  min-height: 250px;
}

.terminal-lights {
  background: #020302;
  border-bottom: 1px solid rgba(182, 255, 0, 0.14);
  color: rgba(182, 255, 0, 0.45);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: -1.4rem -1.4rem 1rem;
  padding: 0.9rem 1.2rem;
}

.terminal-lights span {
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  margin-right: 0.35rem;
  width: 12px;
}

.terminal-lights span:nth-child(1) {
  background: #ff5f57;
}

.terminal-lights span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-lights span:nth-child(3) {
  background: #28c840;
  margin-right: 1rem;
}

.audit-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 0;
}

.audit-strip div {
  background: rgba(9, 13, 11, 0.76);
  border: 1px solid rgba(247, 248, 238, 0.12);
  color: rgba(247, 248, 238, 0.66);
  padding: 1rem;
}

@media (max-width: 1180px) {
  .dash-stats,
  .dash-content-grid,
  .audit-strip,
  .dashboard-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-hero-panel {
    grid-template-columns: 1fr;
  }

  .privacy-radar {
    max-width: 280px;
  }
}

@media (max-width: 860px) {
  .dash-sidebar {
    position: static;
    width: 100%;
  }

  .dash-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-main {
    margin-left: 0;
    padding: 1rem;
  }

  .dash-header {
    margin: 0 0 1rem;
    padding: 0 0 1rem;
  }

  .dash-header,
  .wallet-alert {
    display: grid;
  }

  .dash-stats,
  .dash-content-grid,
  .audit-strip,
  .dashboard-layout,
  .swap-row,
  .swap-pair {
    grid-template-columns: 1fr;
  }

  .swap-switch {
    justify-self: center;
    width: 72px;
  }
}

.sylphy-app-v2 {
  background:
    radial-gradient(circle at 18% 10%, rgba(210, 255, 117, 0.28), transparent 24rem),
    radial-gradient(circle at 76% 76%, rgba(255, 63, 180, 0.18), transparent 28rem),
    #171724;
  color: #f7f8ee;
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.sylphy-app-v2 #bg {
  opacity: 0.12;
}

.v2-stage {
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 7rem) clamp(1rem, 4vw, 5rem);
  position: relative;
}

.v2-title-bg {
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 800;
  left: clamp(1rem, 5vw, 6rem);
  line-height: 0.8;
  pointer-events: none;
  position: absolute;
  top: 3rem;
}

.browser-shell {
  background: #090a11;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  margin: 5rem auto 0;
  max-width: 1720px;
  min-height: min(980px, calc(100vh - 7rem));
  overflow: hidden;
  position: relative;
}

.browser-chrome {
  align-items: center;
  background: rgba(32, 36, 37, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr minmax(220px, 700px) 1fr;
  min-height: 62px;
  padding: 0 1.5rem;
}

.chrome-dots,
.chrome-icons {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.chrome-dots span {
  border-radius: 50%;
  height: 13px;
  width: 13px;
}

.chrome-dots span:nth-child(1) {
  background: #ff6b5f;
}

.chrome-dots span:nth-child(2) {
  background: #ffd05c;
}

.chrome-dots span:nth-child(3) {
  background: #67d86f;
}

.chrome-url {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  padding: 0.55rem;
  text-align: center;
}

.chrome-icons {
  justify-content: flex-end;
}

.chrome-icons span {
  border: 1px solid rgba(255, 255, 255, 0.48);
  height: 16px;
  opacity: 0.6;
  width: 16px;
}

.app-canvas {
  background:
    radial-gradient(circle at 50% 2%, rgba(123, 91, 255, 0.2), transparent 22rem),
    #090a12;
  min-height: calc(min(980px, 100vh - 7rem) - 62px);
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  position: relative;
}

.aurora-wave {
  background:
    radial-gradient(ellipse at 56% 78%, rgba(255, 99, 220, 0.42), transparent 19rem),
    radial-gradient(ellipse at 74% 82%, rgba(47, 175, 255, 0.45), transparent 22rem),
    radial-gradient(ellipse at 42% 70%, rgba(255, 178, 95, 0.42), transparent 17rem);
  bottom: -17%;
  filter: blur(2px);
  height: 48%;
  left: 0;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.aurora-wave::before {
  animation: waveFlow 9s ease-in-out infinite;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 22px, rgba(255, 126, 224, 0.62) 24px 26px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  border-radius: 50%;
  content: "";
  height: 230%;
  left: 23%;
  position: absolute;
  top: -70%;
  transform: rotate(-11deg);
  width: 60%;
}

.v2-header {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  position: relative;
  z-index: 2;
}

.v2-brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.v2-brand span {
  align-items: center;
  background: linear-gradient(135deg, var(--acid), #f6ffbe);
  border-radius: 50%;
  color: #0b0b12;
  display: flex;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.v2-brand strong {
  font-size: 1.6rem;
}

.v2-tabs {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  display: flex;
  gap: 0.25rem;
  justify-self: center;
  padding: 0.35rem;
}

.v2-tabs button,
.v2-wallet,
.v2-primary {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.v2-tabs button {
  background: transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.95rem;
  padding: 0.65rem 1.3rem;
}

.v2-tabs button.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.v2-wallet {
  background: rgba(9, 10, 18, 0.5);
  border: 1px solid rgba(210, 255, 117, 0.62);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  padding: 1rem 1.6rem;
}

.v2-panel {
  display: none;
  position: relative;
  z-index: 1;
}

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

.v2-dashboard-hero {
  align-items: center;
  display: grid;
  min-height: 355px;
  place-items: center;
  text-align: center;
}

.hero-copy-v2 p,
.otc-card-head span,
.placeholder-v2 span {
  color: #d9ff80;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-copy-v2 h1 {
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  line-height: 0.95;
  margin: 1rem auto;
  max-width: 980px;
}

.hero-copy-v2 span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

.v2-primary {
  background: linear-gradient(180deg, #e4ff8e, #c8ed62);
  border-radius: 999px;
  color: #10120f;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2rem;
  min-width: 220px;
  padding: 1rem 1.6rem;
}

.v2-primary.full {
  border-radius: 22px;
  margin-top: 0;
  width: 100%;
}

.v2-dashboard-grid,
.v2-bottom-grid {
  display: grid;
  gap: 1rem;
}

.v2-dashboard-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
}

.v2-stat,
.v2-card,
.otc-card,
.sealed-mini,
.placeholder-v2 {
  background: rgba(12, 18, 14, 0.92); /* more opaque = blur less needed */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px); /* reduced from 18px */
}

.v2-stat {
  min-height: 140px;
  padding: 1.25rem;
}

.v2-stat span,
.v2-card-title {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.v2-stat strong {
  display: block;
  font-size: 2rem;
  margin: 0.85rem 0 0.25rem;
}

.v2-stat small {
  color: rgba(255, 255, 255, 0.42);
}

.v2-bottom-grid,
.otc-layout {
  grid-template-columns: 0.9fr 1.1fr;
  margin: 1rem auto 0;
  max-width: 1180px;
}

.v2-card {
  padding: 1.25rem;
}

.v2-activity p {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  padding: 1rem 0;
}

.v2-activity span {
  background: #d9ff80;
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  margin-right: 0.55rem;
  width: 9px;
}

.v2-activity small {
  color: rgba(255, 255, 255, 0.38);
  display: block;
  margin-left: 1.1rem;
}

.v2-depth {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.v2-depth div {
  display: grid;
  gap: 1rem;
  grid-template-columns: 72px 1fr;
}

.v2-depth b {
  color: #ff6b8a;
}

.v2-depth .buy b {
  color: #74ffc3;
}

.v2-depth span {
  background: linear-gradient(90deg, rgba(255, 107, 138, 0.2) var(--w), transparent var(--w));
  color: rgba(255, 255, 255, 0.62);
  padding: 0.35rem 0.6rem;
}

.v2-depth .buy span {
  background: linear-gradient(90deg, rgba(116, 255, 195, 0.18) var(--w), transparent var(--w));
}

.v2-depth em {
  color: #d9ff80;
  font-style: normal;
  padding: 0.45rem 0;
  text-align: center;
}

.otc-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 7vw, 5rem);
}

.otc-card {
  padding: 1.6rem;
}

.otc-card-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.otc-card-head h2 {
  font-size: 1.5rem;
  margin: 0.35rem 0 0;
}

.ghost-icon {
  background: rgba(255, 255, 255, 0.07);
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  height: 42px;
  width: 42px;
}

.otc-field,
.otc-swap-line label,
.otc-fee {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.otc-field {
  margin-bottom: 1rem;
}

.otc-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.otc-field span,
.otc-swap-line span,
.otc-fee span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 700;
}

.sylphy-app-v2 input,
.sylphy-app-v2 select {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

.otc-swap-line {
  align-items: stretch;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 58px 1fr;
  margin-bottom: 1rem;
}

.otc-swap-line input {
  border: 0;
  font-size: 2.3rem;
  font-weight: 700;
  padding-left: 0;
}

.otc-swap-line small {
  color: rgba(255, 255, 255, 0.4);
}

.otc-swap-line button {
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-size: 1.6rem;
  height: 58px;
}

.otc-fee strong {
  color: #d9ff80;
  font-size: 1.35rem;
  padding: 0.82rem 0;
}

.otc-card p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
}

.otc-market {
  display: grid;
  gap: 1rem;
}

.sylphy-app-v2 .token-chart-panel {
  margin: 0;
  max-width: none;
}

.sealed-mini {
  padding: 1rem;
}

.placeholder-v2 {
  margin: clamp(2rem, 8vw, 6rem) auto 0;
  max-width: 860px;
  min-height: 480px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.placeholder-v2 h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

@keyframes waveFlow {
  0%,
  100% {
    transform: translateY(0) rotate(-11deg);
  }
  50% {
    transform: translateY(-24px) rotate(-9deg);
  }
}

@media (max-width: 1120px) {
  .v2-header,
  .otc-layout,
  .v2-dashboard-grid,
  .v2-bottom-grid {
    grid-template-columns: 1fr;
  }

  .v2-tabs {
    justify-self: stretch;
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .v2-stage {
    padding: 1rem;
  }

  .browser-shell {
    border-radius: 24px;
    margin-top: 2rem;
  }

  .browser-chrome {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .chrome-icons {
    display: none;
  }

  .app-canvas {
    padding: 1rem;
  }

  .v2-tabs {
    border-radius: 18px;
  }

  .v2-tabs button {
    white-space: nowrap;
  }

  .otc-row,
  .otc-swap-line {
    grid-template-columns: 1fr;
  }

  .otc-swap-line button {
    justify-self: center;
    width: 58px;
  }
}

.sylphy-terminal-app {
  /* Static dark neon green background — no animated canvas needed */
  background:
    radial-gradient(circle at 50% 0%, rgba(163, 255, 18, 0.10), transparent 38%),
    radial-gradient(circle at 85% 60%, rgba(163, 255, 18, 0.04), transparent 22%),
    linear-gradient(180deg, #071007 0%, #020501 100%);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Static grid overlay — no animation, compositor-friendly */
.sylphy-terminal-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  background:
    linear-gradient(90deg, rgba(163, 255, 18, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(163, 255, 18, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: none !important;
}

/* All direct children sit above the grid */
.sylphy-terminal-app > *:not(.sidebar):not(.topbar):not(.sidebar-overlay):not(.sidebar-mobile-toggle):not(#tokenModal):not(.dashboard-topbar):not(w3m-modal):not(wcm-modal):not(appkit-modal) {
  position: relative;
  z-index: 1;
}

/* Reown AppKit modal — tidak boleh punya stacking context sendiri */
/* biarkan internal shadow DOM menggunakan position:fixed relative to viewport */
.sylphy-terminal-app > w3m-modal,
.sylphy-terminal-app > wcm-modal,
.sylphy-terminal-app > appkit-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  /* pointer-events & display dikelola AppKit sendiri — jangan di-override */
}

/* Hide matrix canvas on app page — JS also hides it but CSS is insurance */
.sylphy-terminal-app #bg {
  display: none !important;
  opacity: 0 !important;
}

/* ── Kill ALL moving background effects on app page ── */
.sylphy-terminal-app .matrix-rain,
.sylphy-terminal-app .matrix-bg,
.sylphy-terminal-app .rain-layer,
.sylphy-terminal-app .matrix-column,
.sylphy-terminal-app .matrix-char,
.sylphy-terminal-app .particle,
.sylphy-terminal-app .code-rain,
.sylphy-terminal-app .code-rain-col {
  display: none !important;
  animation: none !important;
}

.terminal-app-header {
  align-items: center;
  backdrop-filter: blur(10px); /* reduced from 20px */
  background: rgba(3, 5, 4, 0.92); /* more opaque to compensate */
  border-bottom: 1px solid rgba(182, 255, 0, 0.22);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  min-height: 78px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 50;
}

.terminal-brand {
  align-items: center;
  color: var(--acid);
  display: inline-flex;
  font-size: 1.18rem;
  font-weight: 800;
  gap: 0.75rem;
}

.terminal-brand span {
  border: 2px solid var(--acid);
  border-radius: 8px;
  display: grid;
  height: 38px;
  place-items: center;
  width: 38px;
}

.terminal-tabs {
  border: 1px solid rgba(182, 255, 0, 0.2);
  display: flex;
  justify-self: stretch;
  padding: 0.3rem;
}

.terminal-tabs button {
  flex: 1;
}

.terminal-tabs button,
.terminal-wallet,
.terminal-submit {
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
}

.terminal-tabs button {
  background: transparent;
  border: 0;
  color: rgba(247, 248, 238, 0.56);
  letter-spacing: 0.12em;
  padding: 0.78rem 1.25rem;
}

.terminal-tabs button.active {
  background: var(--acid);
  color: #050704;
}

.terminal-wallet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--acid);
  min-height: 42px;
  padding: 0 1rem;
}

.terminal-app-main {
  max-width: 1720px;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.terminal-panel {
  display: none;
}

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

[data-app-panel="settlement"] .settlement-log,
[data-app-panel="settlement"] .terminal-hero,
[data-app-panel="settlement"] .stl-explorer-wrap,
[data-app-panel="audit"] .audit-log,
[data-app-panel="audit"] .audit-info,
[data-app-panel="audit"] .audit-footer,
[data-app-panel="audit"] .terminal-hero,
[data-app-panel="otc"] .terminal-hero,
[data-app-panel="otc"] .terminal-otc-grid,
[data-app-panel="order"] .terminal-hero,
[data-app-panel="swap"] .terminal-hero,
[data-app-panel="swap"] .swap-layout {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.terminal-hero {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.terminal-hero p,
.terminal-placeholder p {
  color: var(--acid);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 0 0 0.7rem;
}

.terminal-hero h1,
.terminal-placeholder h1 {
  font-size: clamp(2.3rem, 5vw, 5.8rem);
  line-height: 0.92;
  margin: 0;
}

.terminal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.terminal-status span {
  border: 1px solid var(--line);
  color: var(--acid);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.8rem 1rem;
}

.terminal-status b {
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--acid);
  display: inline-block;
  height: 9px;
  margin-right: 0.5rem;
  width: 9px;
}

.terminal-otc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(360px, 0.48fr) minmax(0, 1fr);
}

.terminal-trade-card,
.terminal-market,
.terminal-preview,
.terminal-placeholder {
  background: rgba(9, 13, 11, 0.84);
  border: 1px solid rgba(247, 248, 238, 0.16);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 0, 0.05);
}

.terminal-trade-card {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.terminal-card-head {
  align-items: start;
  border-bottom: 1px solid rgba(247, 248, 238, 0.12);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.terminal-card-head span,
.terminal-preview-title {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.terminal-card-head h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin: 0.35rem 0 0;
  white-space: nowrap;
}

.terminal-card-head small,
.terminal-trade-card p {
  color: rgba(247, 248, 238, 0.48);
  max-width: 220px;
}

.terminal-field,
.terminal-swap-line label,
.terminal-fee {
  background: rgba(3, 5, 4, 0.7);
  border: 1px solid rgba(247, 248, 238, 0.14);
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}

.terminal-field {
  margin-bottom: 0.85rem;
}

.terminal-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
}

.terminal-field span,
.terminal-swap-line span,
.terminal-fee span {
  color: rgba(247, 248, 238, 0.6);
  font-size: 0.82rem;
  font-weight: 800;
}

.sylphy-terminal-app input,
.sylphy-terminal-app select {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(247, 248, 238, 0.13);
  color: var(--ink);
  font-family: inherit;
}

.terminal-swap-line {
  align-items: stretch;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 56px 1fr;
  margin-bottom: 0.85rem;
}

.terminal-swap-line input {
  border: 0;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 700;
  min-height: auto;
  padding: 0.25rem 0.3rem 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
}

.terminal-swap-line small {
  color: rgba(247, 248, 238, 0.42);
}

.terminal-swap-line button {
  align-self: center;
  background: rgba(247, 248, 238, 0.06);
  border: 1px solid rgba(247, 248, 238, 0.14);
  color: var(--ink);
  font-size: 1.5rem;
  height: 56px;
}

.terminal-fee strong {
  color: var(--acid);
  font-size: 1.3rem;
}

.terminal-submit {
  background: var(--acid);
  border: 0;
  color: #050704;
  min-height: 58px;
  width: 100%;
}

.terminal-market {
  display: grid;
  gap: 1rem;
  grid-template-rows: minmax(560px, 1fr) auto;
  padding: 1rem;
}

.sylphy-terminal-app .token-chart-panel {
  margin: 0;
  max-width: none;
  min-height: auto;
  background: transparent;
  border: 1px solid rgba(182,255,0,0.1);
}

.sylphy-terminal-app .chart-empty,
.sylphy-terminal-app .chart-view,
.sylphy-terminal-app .chart-live {
  min-height: 480px;
}

/* ── ORDER PANEL ── */
.order-panel-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  min-height: calc(100vh - 180px);
}

.order-panel-wrap .order-section:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.order-panel-wrap .order-section:last-child .order-table-wrap,
.order-panel-wrap .order-section:last-child .order-empty-state {
  flex: 1;
}

.order-section {
  background: rgba(182,255,0,0.03);
  border: 1px solid rgba(182,255,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.order-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(182,255,0,0.6);
  border-bottom: 1px solid rgba(182,255,0,0.08);
}

.os-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.os-dot-pending { background: #f0b429; box-shadow: 0 0 6px #f0b429; }
.os-dot-done    { background: #b6ff00; box-shadow: 0 0 6px #b6ff00; }

.order-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.5rem 1rem;
  color: rgba(182,255,0,0.3);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}
.order-empty-state[hidden] {
  display: none !important;
}
.order-empty-state span { font-size: 0.85rem; font-weight: 600; }
.order-empty-state small { font-size: 0.7rem; }

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

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}
.order-table th {
  padding: 0.55rem 1rem;
  text-align: left;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(182,255,0,0.4);
  font-weight: 700;
  border-bottom: 1px solid rgba(182,255,0,0.08);
  white-space: nowrap;
}
.order-table td {
  padding: 0.6rem 1rem;
  color: #c8d8b0;
  border-bottom: 1px solid rgba(182,255,0,0.05);
  white-space: nowrap;
}
.order-table tr:last-child td { border-bottom: none; }
.order-table tr:hover td { background: rgba(182,255,0,0.03); }
.order-table a { color: rgba(182,255,0,0.7); text-decoration: none; }
.order-table a:hover { color: #b6ff00; }
.order-table code { color: #b6ff00; background: rgba(182,255,0,0.08); padding: 0.1rem 0.35rem; border-radius: 3px; }

.ob-side {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.ob-buy  { background: rgba(8,153,129,0.18); color: #089981; border: 1px solid rgba(8,153,129,0.35); }
.ob-sell { background: rgba(242,54,69,0.15); color: #f23645; border: 1px solid rgba(242,54,69,0.3); }

.ob-status {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ob-settled { color: #b6ff00; background: rgba(182,255,0,0.1); border: 1px solid rgba(182,255,0,0.25); }
.ob-pending { color: #f0b429; background: rgba(240,180,41,0.1); border: 1px solid rgba(240,180,41,0.3); }
.ob-expired { color: #888; background: rgba(136,136,136,0.1); border: 1px solid rgba(136,136,136,0.2); }

.terminal-preview {
  padding: 1rem;
}

.terminal-preview .sealed-box {
  min-height: 150px;
}

.terminal-placeholder {
  display: grid;
  min-height: calc(100vh - 160px);
  padding: clamp(2rem, 5vw, 5rem);
  place-content: center;
  text-align: center;
}

.terminal-placeholder span {
  color: rgba(247, 248, 238, 0.62);
  font-size: 1.05rem;
  margin: 1rem auto 0;
  max-width: 680px;
}

@media (max-width: 1100px) {
  .terminal-app-header,
  .terminal-otc-grid,
  .terminal-hero {
    grid-template-columns: 1fr;
  }

  .terminal-app-header,
  .terminal-hero {
    display: grid;
  }

  .terminal-tabs {
    justify-self: stretch;
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .terminal-app-header {
    padding: 1rem;
  }

  .terminal-tabs button {
    white-space: nowrap;
  }

  .terminal-app-main {
    padding: 1rem;
  }

  .terminal-row,
  .terminal-swap-line {
    grid-template-columns: 1fr;
  }

  .terminal-swap-line button {
    justify-self: center;
    width: 56px;
  }
}

/* Compact terminal app so OTC form and chart fit in a single desktop viewport. */
.sylphy-terminal-app .terminal-app-header {
  grid-template-columns: auto minmax(320px, 1fr) auto;
  min-height: 56px;
  padding: 0 clamp(0.8rem, 3vw, 3rem);
}

.sylphy-terminal-app .terminal-brand {
  font-size: 1rem;
  gap: 0.6rem;
}

.sylphy-terminal-app .terminal-brand span {
  height: 30px;
  width: 30px;
}

.sylphy-terminal-app .terminal-tabs {
  padding: 0.2rem;
}

.sylphy-terminal-app .terminal-tabs button {
  font-size: 0.72rem;
  padding: 0.48rem 0.9rem;
}

.sylphy-terminal-app .terminal-wallet {
  font-size: 0.72rem;
  min-height: 32px;
  padding: 0 0.75rem;
}

.sylphy-terminal-app .terminal-app-main {
  padding: clamp(0.8rem, 1.8vw, 1.4rem);
}

.sylphy-terminal-app .terminal-hero {
  margin-bottom: 0.75rem;
}

.sylphy-terminal-app .terminal-hero p {
  font-size: 0.68rem;
  margin-bottom: 0.35rem;
}

.sylphy-terminal-app .terminal-hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 3.5rem);
}

.sylphy-terminal-app .terminal-status {
  gap: 0.45rem;
}

.sylphy-terminal-app .terminal-status span {
  font-size: 0.68rem;
  padding: 0.52rem 0.72rem;
}

.sylphy-terminal-app .terminal-otc-grid {
  gap: 0.75rem;
  grid-template-columns: minmax(350px, 0.42fr) minmax(280px, 1fr);
}

.sylphy-terminal-app .terminal-trade-card {
  padding: 0.85rem;
}

.sylphy-terminal-app .terminal-card-head {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
}

.sylphy-terminal-app .terminal-card-head span,
.sylphy-terminal-app .terminal-preview-title {
  font-size: 0.66rem;
}

.sylphy-terminal-app .terminal-card-head h2 {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  margin-top: 0.2rem;
}

.sylphy-terminal-app .terminal-card-head small,
.sylphy-terminal-app .terminal-trade-card p {
  font-size: 0.68rem;
  max-width: 190px;
}

.sylphy-terminal-app .terminal-field,
.sylphy-terminal-app .terminal-swap-line label,
.sylphy-terminal-app .terminal-fee {
  gap: 0.38rem;
  padding: 0.62rem;
}

.sylphy-terminal-app .terminal-field {
  margin-bottom: 0.55rem;
}

.sylphy-terminal-app .terminal-row {
  gap: 0.55rem;
}

.sylphy-terminal-app .terminal-field span,
.sylphy-terminal-app .terminal-swap-line span,
.sylphy-terminal-app .terminal-fee span {
  font-size: 0.68rem;
}

.sylphy-terminal-app input,
.sylphy-terminal-app select {
  font-size: 0.8rem;
  min-height: 38px;
  padding: 0 0.65rem;
}

.sylphy-terminal-app .terminal-swap-line {
  gap: 0.55rem;
  grid-template-columns: 1fr 42px 1fr;
  margin-bottom: 0.55rem;
}

.sylphy-terminal-app .terminal-swap-line input {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 700;
  padding: 0.2rem 0.25rem 0.2rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
}

.sylphy-terminal-app .terminal-swap-line button {
  font-size: 1.1rem;
  height: 42px;
}

.sylphy-terminal-app .terminal-fee strong {
  font-size: 1rem;
}

.sylphy-terminal-app .terminal-submit {
  font-size: 0.78rem;
  min-height: 42px;
}

.sylphy-terminal-app .terminal-market {
  gap: 0.7rem;
  grid-template-rows: minmax(340px, 1fr) auto;
  padding: 0.7rem;
}

.sylphy-terminal-app .token-chart-panel,
.sylphy-terminal-app .chart-empty,
.sylphy-terminal-app .chart-view {
  min-height: 340px;
}

.sylphy-terminal-app .chart-empty {
  padding: 1rem;
}

.sylphy-terminal-app .chart-empty strong {
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.sylphy-terminal-app .chart-toolbar,
.sylphy-terminal-app .chart-footer {
  font-size: 0.75rem;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
}

.sylphy-terminal-app .chart-head {
  padding: 0.6rem 0.75rem 0;
}

.sylphy-terminal-app .chart-head h3 {
  font-size: 1rem;
}

.sylphy-terminal-app .chart-head p {
  font-size: 0.8rem;
}

.sylphy-terminal-app #chartLiveDot {
  border-width: 5px;
  height: 20px;
  width: 20px;
}

.sylphy-terminal-app .candles {
  min-height: 205px;
  padding: 1.1rem 0.75rem 2.2rem;
}

.sylphy-terminal-app .terminal-preview {
  padding: 0.75rem;
}

.sylphy-terminal-app .terminal-preview .sealed-box {
  min-height: 98px;
}

@media (max-width: 760px) {
  .sylphy-terminal-app .terminal-app-header {
    grid-template-columns: auto 1fr;
  }

  .sylphy-terminal-app .terminal-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .sylphy-terminal-app .terminal-wallet {
    justify-self: end;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sylphy-terminal-app .terminal-otc-grid {
    grid-template-columns: minmax(250px, 0.92fr) minmax(185px, 0.72fr);
  }

  .sylphy-terminal-app .terminal-row,
  .sylphy-terminal-app .terminal-swap-line {
    grid-template-columns: 1fr;
  }

  .sylphy-terminal-app .terminal-swap-line button {
    display: none;
  }

  .sylphy-terminal-app .terminal-card-head small {
    display: none;
  }

  .sylphy-terminal-app .chart-empty span,
  .sylphy-terminal-app .chart-empty small {
    font-size: 0.62rem;
  }
}

/* ── Settlement Explorer ─────────────────────────────── */
.sylphy-terminal-app .stl-explorer-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.sylphy-terminal-app .stl-search-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sylphy-terminal-app .stl-search-box {
  display: flex !important;
  align-items: center;
  background: rgba(3, 5, 4, 0.8) !important;
  border: 1px solid rgba(182, 255, 0, 0.25) !important;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
}

.sylphy-terminal-app .stl-search-icon {
  color: rgba(182, 255, 0, 0.5);
  font-size: 1rem;
  padding: 0 0.6rem;
  user-select: none;
  flex-shrink: 0;
}

.sylphy-terminal-app .stl-search-box input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  min-height: 36px !important;
  outline: 0;
  padding: 0 0.5rem;
  color: var(--ink);
  width: auto !important;
}

.sylphy-terminal-app .stl-search-box input::placeholder {
  color: rgba(247, 248, 238, 0.28);
}

.sylphy-terminal-app #settlementSearchBtn {
  background: var(--acid) !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #050704 !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  min-height: 36px;
  padding: 0 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.sylphy-terminal-app #settlementSearchBtn:hover {
  background: var(--acid-soft) !important;
}

.sylphy-terminal-app .stl-search-hint {
  color: rgba(247, 248, 238, 0.3);
  font-size: 0.67rem;
  letter-spacing: 0.03em;
}

/* Detail Panel */
.sylphy-terminal-app .stl-detail-panel {
  background: rgba(9, 13, 11, 0.95);
  border: 1px solid rgba(182, 255, 0, 0.25);
  overflow: hidden;
  animation: fadeSlideIn 0.18s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sylphy-terminal-app .stl-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: rgba(182, 255, 0, 0.05);
  border-bottom: 1px solid rgba(182, 255, 0, 0.1);
}

.sylphy-terminal-app .stl-detail-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sylphy-terminal-app .stl-detail-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.18rem 0.55rem;
}

.sylphy-terminal-app .stl-badge-settled {
  background: rgba(182, 255, 0, 0.1);
  color: var(--acid);
  border: 1px solid rgba(182, 255, 0, 0.3);
}

.sylphy-terminal-app .stl-detail-hash {
  color: rgba(247, 248, 238, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: help;
}

.sylphy-terminal-app .stl-detail-close {
  background: transparent;
  border: 1px solid rgba(247, 248, 238, 0.14);
  color: rgba(247, 248, 238, 0.4);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
}

.sylphy-terminal-app .stl-detail-close:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.sylphy-terminal-app .stl-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.35rem 0;
}

.sylphy-terminal-app .stl-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.28rem 0.85rem;
  border-bottom: 1px solid rgba(247, 248, 238, 0.04);
  font-size: 0.7rem;
  gap: 0.5rem;
}

.sylphy-terminal-app .stl-drow span {
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.sylphy-terminal-app .stl-drow strong {
  color: var(--ink);
  font-size: 0.68rem;
  text-align: right;
  font-weight: 600;
}

.sylphy-terminal-app .stl-drow a { color: rgba(182, 255, 0, 0.75); }
.sylphy-terminal-app .stl-drow a:hover { color: var(--acid); }

.sylphy-terminal-app .stl-detail-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
  padding: 0.45rem 0.85rem;
  border-top: 1px solid rgba(247, 248, 238, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.sylphy-terminal-app .stl-detail-footer .tl {
  font-size: 0.68rem;
  min-height: auto;
  padding: 0.08rem 0;
}

/* Not Found */
.sylphy-terminal-app .stl-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 91, 91, 0.03);
  border: 1px solid rgba(255, 91, 91, 0.14);
  text-align: center;
}

.sylphy-terminal-app .stl-not-found span {
  color: var(--bad);
  font-size: 1.2rem;
}

.sylphy-terminal-app .stl-not-found p {
  color: rgba(247, 248, 238, 0.6);
  font-size: 0.78rem;
  margin: 0;
}

.sylphy-terminal-app .stl-not-found small {
  color: var(--muted);
  font-size: 0.65rem;
}

/* Recent table */
.sylphy-terminal-app .stl-recent {
  background: rgba(9, 13, 11, 0.84);
  border: 1px solid rgba(247, 248, 238, 0.1);
  overflow: hidden;
}

.sylphy-terminal-app .stl-recent-title {
  padding: 0.45rem 0.85rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: rgba(182, 255, 0, 0.4);
  border-bottom: 1px solid rgba(182, 255, 0, 0.06);
  background: rgba(182, 255, 0, 0.02);
}

.sylphy-terminal-app .stl-table-wrap { overflow-x: auto; }

.sylphy-terminal-app .stl-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  min-width: 680px !important;
}

.sylphy-terminal-app .stl-table th {
  padding: 0.42rem 0.85rem;
  text-align: left;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(182, 255, 0, 0.4);
  font-weight: 700;
  border: 1px solid rgba(182, 255, 0, 0.06);
  white-space: nowrap;
  background: rgba(182, 255, 0, 0.02);
}

.sylphy-terminal-app .stl-table td {
  padding: 0.48rem 0.85rem;
  color: rgba(247, 248, 238, 0.78);
  border: 1px solid rgba(247, 248, 238, 0.05);
  white-space: nowrap;
  vertical-align: middle;
}

.sylphy-terminal-app .stl-table tr:hover td { background: rgba(182, 255, 0, 0.04); }

.sylphy-terminal-app .stl-txlink {
  color: rgba(182, 255, 0, 0.75);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.sylphy-terminal-app .stl-txlink:hover { color: var(--acid); }

.sylphy-terminal-app .stl-table code {
  color: var(--acid);
  background: rgba(182, 255, 0, 0.07);
  padding: 0.08rem 0.28rem;
  font-size: inherit;
}

.sylphy-terminal-app .stl-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(182, 255, 0, 0.22);
}

.sylphy-terminal-app .stl-table-empty span { font-size: 0.78rem; font-weight: 600; }
.sylphy-terminal-app .stl-table-empty small { font-size: 0.65rem; }

/* Responsive */
@media (max-width: 860px) {
  .sylphy-terminal-app .stl-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .sylphy-terminal-app .stl-detail-footer { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sylphy-terminal-app .stl-detail-grid { grid-template-columns: 1fr; }
}


/* Search */
.stl-search-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stl-search-box {
  display: flex;
  align-items: center;
  background: rgba(3, 5, 4, 0.75);
  border: 1px solid rgba(182, 255, 0, 0.22);
  gap: 0;
  overflow: hidden;
}

.stl-search-icon {
  color: rgba(182, 255, 0, 0.5);
  font-size: 1rem;
  padding: 0 0.6rem;
  user-select: none;
}

.stl-search-box input {
  background: transparent;
  border: 0;
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  min-height: 36px;
  outline: 0;
  padding: 0 0.5rem;
  color: var(--ink);
}

.stl-search-box input::placeholder {
  color: rgba(247, 248, 238, 0.28);
}

#settlementSearchBtn {
  background: var(--acid);
  border: 0;
  color: #050704;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  min-height: 36px;
  padding: 0 1rem;
  white-space: nowrap;
}

#settlementSearchBtn:hover {
  background: var(--acid-soft);
}

.stl-search-hint {
  color: rgba(247, 248, 238, 0.3);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* Detail Panel */
.stl-detail-panel {
  background: rgba(9, 13, 11, 0.92);
  border: 1px solid rgba(182, 255, 0, 0.25);
  border-radius: 6px;
  overflow: hidden;
  animation: fadeSlideIn 0.18s ease;
}

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

.stl-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(182, 255, 0, 0.06);
  border-bottom: 1px solid rgba(182, 255, 0, 0.12);
}

.stl-detail-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stl-detail-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.6rem;
}

.stl-badge-settled {
  background: rgba(182, 255, 0, 0.1);
  color: var(--acid);
  border: 1px solid rgba(182, 255, 0, 0.3);
}

.stl-detail-hash {
  color: rgba(247, 248, 238, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: help;
}

.stl-detail-close {
  background: transparent;
  border: 1px solid rgba(247, 248, 238, 0.15);
  color: rgba(247, 248, 238, 0.45);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
}

.stl-detail-close:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.stl-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0.5rem 0;
}

.stl-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.32rem 1rem;
  border-bottom: 1px solid rgba(247, 248, 238, 0.04);
  font-size: 0.72rem;
  gap: 0.5rem;
}

.stl-drow span {
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.stl-drow strong {
  color: var(--ink);
  font-size: 0.7rem;
  text-align: right;
}

.stl-drow a { color: rgba(182, 255, 0, 0.8); }
.stl-drow a:hover { color: var(--acid); }

.stl-detail-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid rgba(247, 248, 238, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.stl-detail-footer .tl {
  font-size: 0.7rem;
  min-height: auto;
  padding: 0.1rem 0;
}

/* Not Found */
.stl-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2rem 1rem;
  background: rgba(255, 91, 91, 0.04);
  border: 1px solid rgba(255, 91, 91, 0.15);
  text-align: center;
}

.stl-not-found span {
  color: var(--bad);
  font-size: 1.5rem;
}

.stl-not-found p {
  color: rgba(247, 248, 238, 0.65);
  font-size: 0.82rem;
  margin: 0;
}

.stl-not-found small {
  color: var(--muted);
  font-size: 0.68rem;
}

/* Recent table */
.stl-recent {
  background: rgba(9, 13, 11, 0.84);
  border: 1px solid rgba(247, 248, 238, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.stl-recent-title {
  padding: 0.55rem 1rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(182, 255, 0, 0.45);
  border-bottom: 1px solid rgba(182, 255, 0, 0.07);
  background: rgba(182, 255, 0, 0.02);
}

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

.stl-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  min-width: 680px !important;
}

.stl-table th {
  padding: 0.48rem 1rem;
  text-align: left;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(182, 255, 0, 0.4);
  font-weight: 700;
  border-bottom: 1px solid rgba(182, 255, 0, 0.07);
  white-space: nowrap;
  background: rgba(182, 255, 0, 0.02);
}

.stl-table td {
  padding: 0.55rem 1rem;
  color: #c8d8b0;
  border-bottom: 1px solid rgba(182, 255, 0, 0.04);
  white-space: nowrap;
}

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

.stl-row:hover td { background: rgba(182, 255, 0, 0.04); }

.stl-txlink {
  color: rgba(182, 255, 0, 0.75);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.stl-txlink:hover { color: var(--acid); }

.stl-table code {
  color: var(--acid);
  background: rgba(182, 255, 0, 0.07);
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}

.stl-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: rgba(182, 255, 0, 0.25);
}

.stl-table-empty span { font-size: 0.82rem; font-weight: 600; }
.stl-table-empty small { font-size: 0.68rem; }

/* Responsive */
@media (max-width: 860px) {
  .stl-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .stl-detail-footer { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stl-detail-grid { grid-template-columns: 1fr; }
}

/* ── Audit Lock System ───────────────────────────────────── */
.sylphy-terminal-app .audit-wrap {
  position: relative;
  contain: layout; /* isolate audit table paint from rest of page */
}

/* Blur state on the table when locked */
.sylphy-terminal-app .audit-blurred {
  filter: blur(3px); /* reduced from 5px — still obscures data, cheaper */
  pointer-events: none;
  user-select: none;
  transition: filter 0.35s ease;
  will-change: filter; /* hint compositor only while blur is active */
}

@media (prefers-reduced-motion: reduce) {
  .sylphy-terminal-app .audit-blurred {
    filter: none;
    opacity: 0.15; /* use opacity instead — zero layout cost */
    transition: opacity 0.2s;
  }
}

/* Overlay sits centered on top of the blurred table */
.sylphy-terminal-app .audit-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(3, 5, 4, 0.55); /* more opaque, removes need for backdrop-filter */
  /* removed backdrop-filter:blur(2px) — overlay bg is sufficient */
}

.sylphy-terminal-app .audit-lock-box {
  background: rgba(9, 13, 11, 0.96);
  border: 1px solid rgba(182, 255, 0, 0.22);
  padding: 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 320px;
  max-width: 440px;
  animation: fadeSlideIn 0.2s ease;
}

.sylphy-terminal-app .audit-lock-icon {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(182, 255, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(182, 255, 0, 0.04);
}

.sylphy-terminal-app .audit-lock-title {
  color: var(--acid);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0;
}

.sylphy-terminal-app .audit-lock-desc {
  color: rgba(247, 248, 238, 0.45);
  font-size: 0.74rem;
  line-height: 1.55;
  margin: 0;
  max-width: 280px;
}

.sylphy-terminal-app .audit-lock-btn {
  background: transparent;
  border: 1px solid rgba(182, 255, 0, 0.4);
  color: var(--acid);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.55rem 1.4rem;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 0.25rem;
}

.sylphy-terminal-app .audit-lock-btn:hover {
  background: rgba(182, 255, 0, 0.08);
  border-color: var(--acid);
}

.sylphy-terminal-app .audit-btn-granted {
  background: rgba(182, 255, 0, 0.12) !important;
  border-color: var(--acid) !important;
  color: var(--acid) !important;
}

.sylphy-terminal-app .audit-lock-status {
  font-size: 0.68rem;
  min-height: 1.2rem;
  letter-spacing: 0.04em;
}

.sylphy-terminal-app .audit-status-ok     { color: var(--acid); }
.sylphy-terminal-app .audit-status-denied { color: var(--bad); }
.sylphy-terminal-app .audit-status-info   { color: rgba(247, 248, 238, 0.4); }

/* =========================================================
   SYLPHY LANDING HERO VISUAL FIX
   Only affects navbar brand + hero mascot layering.
   Do not change layout, copy, buttons, or sections.
========================================================= */

/* ---------- NAVBAR LOGO / BRAND ---------- */

.logo,
.brand,
.nav-brand,
.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Circle ring wrapper for logo img */
.logo-ring {
  align-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.logo img,
.brand img,
.nav-brand img,
.header-logo img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  image-rendering: pixelated;
  mix-blend-mode: screen;
}

.logo span:not(.logo-ring),
.brand span:not(.logo-ring),
.nav-brand span:not(.logo-ring),
.header-logo span:not(.logo-ring),
.logo-text,
.brand-text {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: var(--acid) !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

.topbar .nav-brand {
  gap: 8px;
}

.topbar .nav-brand .logo-ring {
  height: 34px;
  width: 34px;
}

.topbar .nav-brand img {
  height: 26px !important;
  width: 26px !important;
}

.topbar .nav-brand span:not(.logo-ring) {
  font-size: 18px !important;
  letter-spacing: 0.02em !important;
}

/* ---------- HERO SECTION SAFE LAYERING ---------- */

.hero,
.hero-section,
.landing-hero {
  position: relative;
  overflow: hidden;
}

/* Mascot background behind SYLPHY title */
.hero-mascot,
.mascot-bg,
.hero-character,
.sylphy-mascot-bg {
  position: absolute !important;
  left: 50% !important;
  top: 42% !important;
  transform: translate(-50%, -50%) !important;
  width: clamp(260px, 32vw, 520px) !important;
  height: auto !important;
  opacity: 1 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none;
}

.hero-mascot img,
.mascot-bg img,
.hero-character img,
.sylphy-mascot-bg img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  mix-blend-mode: normal;
  filter:
    brightness(0.78)
    contrast(1.06)
    saturate(0.96);
  opacity: 0.72;
  image-rendering: auto;
  transform-origin: center;
}

.sylphy-character-stage::before {
  content: "";
  position: absolute;
  inset: 6% 10%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 44%,
    rgba(176, 255, 0, 0.3) 0%,
    rgba(176, 255, 0, 0.13) 38%,
    transparent 72%
  );
  filter: blur(26px);
  opacity: 0.74;
  transform-origin: center;
  /* animation: sylphyAuraPulse 3.8s ease-in-out infinite; */
}

.sylphy-character-stage::after {
  content: "";
  position: absolute;
  inset: 12% 4% 4%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(176, 255, 0, 0.22), rgba(176, 255, 0, 0.09) 34%, transparent 68%);
  filter: blur(18px);
  opacity: 0.9;
}


/* Hero content must stay above mascot */
.hero-content,
.hero-title,
.hero-badge,
.hero-subtitle,
.hero-kicker,
.hero-terminal-line,
.hero-actions,
.hero-cta,
.hero-buttons {
  position: relative !important;
  z-index: 3 !important;
}

.hero-title,
.hero-title * {
  position: relative !important;
  z-index: 4 !important;
}

.hero-content::before {
  background: transparent !important;
}

.hero-content {
  transform: translateY(146px) !important;
}

.hero-content {
  text-align: center !important;
}

.hero-badge {
  display: inline-flex !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-badge {
  margin-bottom: 1.15rem !important;
  padding: 0.48rem 0.95rem !important;
}

.hero-title {
  color: #f7f8ee !important;
  font-family: "JetBrains Mono", "Courier New", monospace !important;
  font-size: clamp(4.15rem, 7.55vw, 7.15rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.22em !important;
  line-height: 0.86 !important;
  margin: 0 0 0.18em !important;
  text-shadow:
    0 5px 0 rgba(0, 0, 0, 0.64),
    0 0 18px rgba(255, 255, 255, 0.11) !important;
  text-transform: uppercase !important;
}

.hero-title {
  display: block !important;
  transform: scaleX(1.13) !important;
  transform-origin: center !important;
  white-space: nowrap !important;
  width: max-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-title .text-neon {
  color: #b6ff00 !important;
  text-shadow:
    0 0 18px rgba(182, 255, 0, 0.76),
    0 0 46px rgba(182, 255, 0, 0.32) !important;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.35vw, 1.6rem) !important;
  margin-bottom: 0.55rem !important;
}

.hero-divider {
  margin-bottom: 0.45rem !important;
}

.hero-keywords {
  margin-bottom: 0.45rem !important;
}

.hero-btns {
  margin-top: 1rem !important;
}

@media (max-width: 768px) {
  .hero-content {
    transform: translateY(104px) !important;
  }

  .hero-title {
    font-size: clamp(4.2rem, 22vw, 6.1rem) !important;
    letter-spacing: 0.03em !important;
    line-height: 0.86 !important;
  }
}

.sylphy-character-wrap {
  overflow: visible !important;
  contain: layout style;
  background: transparent !important;
}

.sylphy-character-stage {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  background: transparent;
  /* will-change: transform; */
  /* animation: sylphyFloat 4.8s ease-in-out infinite; */
  transform-origin: center;
}

/* Legacy classes hidden — replaced by PNG layers */
.sylphy-character-img { display: none; }
.sylphy-eye-blink     { display: none; }
.sylphy-wing-glow     { display: none; }

/* ── FLOAT ───────────────────────────────────────────────── */
@keyframes sylphyFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes sylphyAuraPulse {
  0%, 100% { opacity: 0.62; transform: scale(0.98); }
  50%      { opacity: 0.92; transform: scale(1.04); }
}

/* ═══════════════════════════════════════════════════════════
   LAYERED PNG CHARACTER SYSTEM
   z-order: wings(1) < body(2) < eyes(3)
   All layers: position:absolute, width:100%, transparent bg
═══════════════════════════════════════════════════════════ */

/* Wrapper — same visual footprint as old single image */
.sylphy-character {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

/* Optional subtle neon glow behind character */
.sylphy-character::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(176, 255, 0, 0.14) 0%,
    rgba(176, 255, 0, 0.04) 45%,
    transparent 72%
  );
  filter: blur(20px);
  opacity: 0.85;
  /* animation: sylphyAuraPulse 3.8s ease-in-out infinite; */
}

/* All PNG layers share these base properties */
.sylphy-body,
.sylphy-eyes,
.sylphy-wing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  background: transparent !important;
  image-rendering: pixelated;
}

/* WINGS — behind body (z:1), white pixels on dark bg via screen blend */
.sylphy-wing {
  z-index: 1;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  filter: brightness(1.16) contrast(1.05) drop-shadow(0 0 8px rgba(255, 255, 255, 0.18)) !important;
}

.sylphy-mascot-bg img.sylphy-wing {
  width: 58% !important;
  top: 25% !important;
}

/* BODY — anchor element (position:relative sets wrapper height), above wings */
.sylphy-body {
  position: relative;   /* Makes wrapper height match body image height */
  z-index: 2;
  filter: brightness(0.86) contrast(1.08) saturate(1.05);
  opacity: 0.78;
}

.sylphy-mascot-bg img.sylphy-body {
  filter: brightness(0.96) contrast(1.1) saturate(1.12) !important;
  opacity: 0.86 !important;
}

/* EYES — top layer, blinks via scaleY */
.sylphy-eyes {
  z-index: 3;
  transform-origin: center 39%;
  /* will-change: transform; */
  filter: brightness(0.86) contrast(1.08) saturate(1.05);
  opacity: 0.78;
  /* animation: sylphyBlink2 4.5s ease-in-out infinite; */
}

.sylphy-mascot-bg img.sylphy-eyes {
  filter: brightness(0.96) contrast(1.1) saturate(1.12) !important;
  opacity: 0.86 !important;
}

/* Wing animations */
.sylphy-wing--left {
  left: 2% !important;
  transform-origin: 85% 50%;
  /* animation: sylphyWingLeft2 2.8s ease-in-out infinite; */
  opacity: 0.84;
}

.sylphy-wing--right {
  left: auto !important;
  right: 2% !important;
  transform-origin: 15% 50%;
  /* animation: sylphyWingRight2 2.8s ease-in-out infinite; */
  /* animation-delay: 0.12s; */
  opacity: 0.84;
}

/* ── KEYFRAMES ───────────────────────────────────────────── */

@keyframes sylphyBlink2 {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 96%      { transform: scaleY(0.12); }
}

@keyframes sylphyWingLeft2 {
  0%, 100% { transform: rotate(-3deg) translateY(0);    opacity: 0.86; }
  50%      { transform: rotate(-9deg) translateY(-4px); opacity: 0.94; }
}

@keyframes sylphyWingRight2 {
  0%, 100% { transform: rotate(3deg) translateY(0);    opacity: 0.86; }
  50%      { transform: rotate(9deg) translateY(-4px); opacity: 0.94; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .sylphy-character-stage,
  .sylphy-character::before,
  .sylphy-eyes,
  .sylphy-wing--left,
  .sylphy-wing--right {
    animation: none !important;
    transform: none !important;
  }
}

/* ── MOBILE ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .logo img,
  .brand img,
  .nav-brand img,
  .header-logo img {
    width: 24px !important;
    height: 24px !important;
  }

  .logo span,
  .brand span,
  .nav-brand span,
  .header-logo span,
  .logo-text,
  .brand-text {
    font-size: 18px !important;
    letter-spacing: 0.11em !important;
  }

  .hero-mascot,
  .mascot-bg,
  .hero-character,
  .sylphy-mascot-bg {
    top: 36% !important;
    width: clamp(240px, 72vw, 360px) !important;
    opacity: 1 !important;
  }
}

/* Final visible mascot animation. */
.hero .sylphy-mascot-bg.sylphy-character-wrap,
.sylphy-character-wrap {
  position: absolute !important;
  left: 50% !important;
  top: 39% !important;
  width: clamp(420px, 44vw, 720px) !important;
  aspect-ratio: 1 / 1 !important;
  transform: translate(-50%, -50%) !important;
  margin-top: 0;
  transform-origin: center !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  contain: none !important;
  animation: none !important;
  animation-timeline: auto !important;
}

.hero .sylphy-mascot-bg.sylphy-character-wrap::before,
.sylphy-character-wrap::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(182, 255, 0, 0.5) 0%,
    rgba(182, 255, 0, 0.22) 35%,
    transparent 70%
  );
  filter: blur(22px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
  /* animation: sylphyAuraVisible 2.8s ease-in-out infinite !important; */
  /* will-change: opacity, transform; */
}

.hero .sylphy-mascot-bg.sylphy-character-wrap::after {
  content: none !important;
}

.hero .sylphy-character-img,
.sylphy-character-img {
  display: none !important;
}

.hero .sylphy-character,
.sylphy-character {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

/* Disable legacy single-image helper overlays on the landing hero. */
.hero .sylphy-eye-blink,
.hero .sylphy-wing-glow,
.hero .sylphy-wing-hint {
  display: none !important;
}

.hero .sylphy-body,
.hero .sylphy-eyes,
.hero .sylphy-wing {
  display: block !important;
  height: 100% !important;
  inset: 0 !important;
  object-fit: contain !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 100% !important;
  image-rendering: pixelated !important;
}

.hero .sylphy-mascot-bg img.sylphy-body,
.hero .sylphy-mascot-bg img.sylphy-eyes,
.hero .sylphy-mascot-bg img.sylphy-wing {
  height: 100% !important;
  inset: 0 !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  width: 100% !important;
}

.hero .sylphy-body {
  filter:
    brightness(1.08)
    contrast(1.08)
    saturate(1.24)
    drop-shadow(0 0 22px rgba(182, 255, 0, 0.46)) !important;
  opacity: 0.96 !important;
  position: relative !important;
  z-index: 2 !important;
}

.hero .sylphy-eyes {
  filter: brightness(1.02) contrast(1.08) saturate(1.1) !important;
  opacity: 0.96 !important;
  transform: none !important;
  z-index: 3 !important;
  animation: none !important;
}

.hero .sylphy-wing {
  filter:
    brightness(1.22)
    contrast(1.05)
    saturate(1.06)
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.24)) !important;
  mix-blend-mode: screen;
  opacity: 0.94 !important;
  z-index: 1 !important;
  will-change: transform;
}

.hero .sylphy-eyelid,
.sylphy-eyelid {
  position: absolute;
  top: 46.4%;
  height: 5.8%;
  background: #bbd31d;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  animation: sylphyEyelidBlink 4.8s steps(1, end) infinite !important;
}

.hero .sylphy-eyelid::after,
.sylphy-eyelid::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 49%;
  height: 13%;
  background: rgba(5, 9, 4, 0.9);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.42);
}

.hero .sylphy-eyelid--left,
.sylphy-eyelid--left {
  left: 40.95%;
  width: 4.9%;
}

.hero .sylphy-eyelid--right,
.sylphy-eyelid--right {
  left: 54.7%;
  width: 5.25%;
}

.hero .sylphy-wing--left {
  transform-origin: 58% 52%;
  animation: sylphyWingLeft2 2.8s ease-in-out infinite !important;
}

.hero .sylphy-wing--right {
  transform-origin: 42% 52%;
  animation: sylphyWingRight2 2.8s ease-in-out infinite !important;
  animation-delay: 0.12s !important;
}

.hero .sylphy-blink,
.sylphy-blink {
  position: absolute;
  width: 5.4%;
  height: 1.4%;
  background: #0b1208;
  border-radius: 1px;
  opacity: 0;
  z-index: 5;
  /* animation: sylphyBlinkVisible 3.2s steps(1, end) infinite !important; */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
}

.hero .sylphy-blink--left,
.sylphy-blink--left {
  left: 42.4%;
  top: 40.9%;
}

.hero .sylphy-blink--right,
.sylphy-blink--right {
  left: 52.7%;
  top: 40.9%;
}

.hero .sylphy-wing-pulse,
.sylphy-wing-pulse {
  position: absolute;
  top: 39%;
  width: 25%;
  height: 18%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.36) 42%, transparent 72%);
  filter: blur(7px);
  opacity: 0.24;
  z-index: 2;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.hero .sylphy-wing-pulse--left,
.sylphy-wing-pulse--left {
  left: 17.5%;
  transform-origin: 92% 55%;
  /* animation: sylphyFairyWingLeft 1.55s ease-in-out infinite !important; */
}

.hero .sylphy-wing-pulse--right,
.sylphy-wing-pulse--right {
  right: 17.5%;
  transform-origin: 8% 55%;
  /* animation: sylphyFairyWingRight 1.55s ease-in-out infinite !important; */
}

@keyframes sylphyFloatVisible {
  0%, 100% {
    margin-top: 0;
  }
  50% {
    margin-top: -22px;
  }
}

@keyframes sylphyMicroTilt {
  0%, 100% {
    transform: rotate(-0.8deg) scale(1);
  }
  50% {
    transform: rotate(0.8deg) scale(1.015);
  }
}

@keyframes sylphyAuraVisible {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes sylphyBlinkVisible {
  0%, 88%, 100% {
    opacity: 0;
  }
  90%, 92% {
    opacity: 1;
  }
}

@keyframes sylphyWingPulseLeft {
  0%, 100% {
    opacity: 0.12;
    transform: rotate(-3deg) translateY(0) scale(0.96);
  }
  50% {
    opacity: 0.42;
    transform: rotate(-13deg) translateY(-12px) scale(1.12);
  }
}

@keyframes sylphyWingPulseRight {
  0%, 100% {
    opacity: 0.12;
    transform: rotate(3deg) translateY(0) scale(0.96);
  }
  50% {
    opacity: 0.42;
    transform: rotate(13deg) translateY(-12px) scale(1.12);
  }
}

@keyframes sylphyEyelidBlink {
  0%, 88%, 95%, 100% {
    opacity: 0;
  }
  90%, 93% {
    opacity: 1;
  }
}

@keyframes sylphyFairyWingLeft {
  0%, 100% {
    opacity: 0.2;
    transform: rotate(-4deg) translateY(8px) scale(0.92);
  }
  45% {
    opacity: 0.62;
    transform: rotate(-18deg) translateY(-18px) scale(1.12);
  }
  65% {
    opacity: 0.42;
    transform: rotate(-10deg) translateY(-6px) scale(1.02);
  }
}

@keyframes sylphyFairyWingRight {
  0%, 100% {
    opacity: 0.2;
    transform: rotate(4deg) translateY(8px) scale(0.92);
  }
  45% {
    opacity: 0.62;
    transform: rotate(18deg) translateY(-18px) scale(1.12);
  }
  65% {
    opacity: 0.42;
    transform: rotate(10deg) translateY(-6px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .hero .sylphy-mascot-bg.sylphy-character-wrap,
  .sylphy-character-wrap {
    top: 37% !important;
    width: clamp(320px, 82vw, 520px) !important;
  }
}

@media (max-width: 480px) {
  .hero .sylphy-mascot-bg.sylphy-character-wrap,
  .sylphy-character-wrap {
    top: 35% !important;
    width: min(92vw, 430px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sylphy-character-wrap,
  .sylphy-character-wrap::before,
  .sylphy-character-img,
  .sylphy-eyes,
  .sylphy-eyelid,
  .sylphy-wing,
  .sylphy-blink,
  .sylphy-wing-pulse {
    animation: none !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   SWAP PANEL — sw-* namespace  (complete rewrite)
   ═══════════════════════════════════════════════════════════ */

/* ─── outer layout ─── */
.sw-layout {
  display: grid;
  grid-template-columns: minmax(340px, 500px) 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

/* ─── shared card base ─── */
.sw-card,
.sw-detail-card {
  background: rgba(8, 15, 12, 0.82);
  border: 1px solid rgba(163, 255, 18, 0.28);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.75rem;
}

/* ══════════════════════════════════
   LEFT CARD
══════════════════════════════════ */

/* header */
.sw-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sw-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sw-eyebrow {
  color: #a3ff12;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sw-eyebrow-sm {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.sw-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  color: #f7f8ee;
}

.sw-gear {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(247, 248, 238, 0.55);
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  transition: all 0.2s;
  width: 42px;
  flex-shrink: 0;
}

.sw-gear:hover {
  background: rgba(163, 255, 18, 0.1);
  border-color: rgba(163, 255, 18, 0.4);
  color: #a3ff12;
}

.sw-gear.active {
  background: rgba(163, 255, 18, 0.15);
  border-color: rgba(163, 255, 18, 0.6);
  color: #a3ff12;
  box-shadow: 0 0 12px rgba(163, 255, 18, 0.2);
}

.sw-gear.active svg {
  animation: sw-gear-spin 2s linear infinite;
}

@keyframes sw-gear-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Settings panel — slides in below swap header */
.sw-settings-panel {
  border-top: 1px solid rgba(163, 255, 18, 0.15);
  margin-top: 1rem;
  padding-top: 1rem;
  animation: sw-settings-in 0.18s ease;
}

.sw-settings-panel[hidden] {
  display: none !important;
}

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

/* ─── token card ─── */
.sw-token-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 1.1rem 1.2rem 0.9rem;
  margin-bottom: 0;
  transition: border-color 0.2s;
}

.sw-token-card:focus-within {
  border-color: rgba(163, 255, 18, 0.45);
}

/* top row: label + balance */
.sw-token-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.sw-tc-label {
  color: rgba(247, 248, 238, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sw-tc-balance {
  color: rgba(247, 248, 238, 0.45);
  font-size: 0.72rem;
  cursor: pointer;
  transition: color 0.15s;
}

.sw-tc-balance strong {
  color: rgba(163, 255, 18, 0.8);
  font-weight: 700;
}

.sw-tc-balance:hover strong {
  color: #a3ff12;
}

/* middle row: amount input + token btn */
.sw-token-card-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

/* amount input — takes all remaining width */
.sw-amount {
  background: transparent;
  border: none;
  color: #f7f8ee;
  flex: 1;
  font-family: inherit;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  min-width: 0;
  outline: none;
  padding: 0;
}

.sw-amount::placeholder {
  color: rgba(247, 248, 238, 0.18);
}

.sw-amount:read-only {
  color: rgba(247, 248, 238, 0.75);
}

/* token button */
.sw-token-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  color: #f7f8ee;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.sw-token-btn:hover {
  background: rgba(163, 255, 18, 0.12);
  border-color: rgba(163, 255, 18, 0.4);
}

/* token icon circle */
.sw-token-icon {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  overflow: hidden;
  width: 26px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #627eea, #3b4bcc);
}

.sw-token-icon[data-token="ETH"]  { background: linear-gradient(135deg, #627eea, #3b4bcc); }
.sw-token-icon[data-token="USDC"] { background: linear-gradient(135deg, #2775ca, #1a5a9e); }
.sw-token-icon[data-token="USDT"] { background: linear-gradient(135deg, #26a17b, #1a7a5a); }
.sw-token-icon[data-token="BTC"]  { background: linear-gradient(135deg, #f7931a, #c97316); }
.sw-token-icon[data-token="BNB"]  { background: linear-gradient(135deg, #f3ba2f, #c8950d); color: #1a1200; }
.sw-token-icon[data-token="XLM"]  { background: linear-gradient(135deg, #14b6e7, #0b8ab5); }
.sw-token-icon[data-token="SOL"]  { background: linear-gradient(135deg, #9945ff, #14f195); }
.sw-token-icon[data-token="MATIC"]{ background: linear-gradient(135deg, #8247e5, #5a2ba3); }
.sw-token-icon[data-token="DAI"]  { background: linear-gradient(135deg, #f5ac37, #c98a1a); color: #1a0f00; }

.sw-token-sym {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.sw-chev {
  opacity: 0.45;
}

/* usd sub-label */
.sw-tc-usd {
  color: rgba(247, 248, 238, 0.3);
  font-size: 0.72rem;
  margin-top: 0.55rem;
}

/* ─── flip button separator ─── */
.sw-swap-mid {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0.65rem 0;
}

.sw-flip-btn {
  align-items: center;
  background: rgba(8, 15, 12, 0.95);
  border: 2px solid rgba(163, 255, 18, 0.35);
  border-radius: 14px;
  color: #a3ff12;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  transition: all 0.25s;
  width: 44px;
  box-shadow: 0 0 0 6px rgba(8,15,12,0.6);
}

.sw-flip-btn:hover {
  background: rgba(163, 255, 18, 0.12);
  border-color: #a3ff12;
  box-shadow: 0 0 22px rgba(163, 255, 18, 0.28), 0 0 0 6px rgba(8,15,12,0.6);
  transform: rotate(180deg);
}

/* ─── section blocks (slippage / speed) ─── */
.sw-section {
  margin-top: 1.15rem;
}

.sw-section-hd {
  align-items: center;
  color: rgba(163, 255, 18, 0.55);
  display: flex;
  font-size: 0.62rem;
  font-weight: 800;
  gap: 0.45rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.sw-info-tip {
  color: rgba(247, 248, 238, 0.22);
  cursor: help;
  font-size: 0.72rem;
  transition: color 0.15s;
}

.sw-info-tip:hover {
  color: #a3ff12;
}

/* pill row */
.sw-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sw-pills-equal .sw-pill {
  flex: 1;
  text-align: center;
}

.sw-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  color: rgba(247, 248, 238, 0.55);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  transition: all 0.18s;
}

.sw-pill:hover {
  border-color: rgba(163, 255, 18, 0.35);
  color: #a3ff12;
  background: rgba(163, 255, 18, 0.06);
}

.sw-pill.active {
  background: rgba(163, 255, 18, 0.14);
  border-color: rgba(163, 255, 18, 0.7);
  color: #a3ff12;
}

/* custom slippage pill (contains input) */
.sw-pill-input {
  align-items: center;
  display: flex;
  padding: 0 0.7rem;
}

.sw-pill-input input {
  background: transparent;
  border: 0;
  color: #f7f8ee;
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
  padding: 0.45rem 0;
  width: 60px;
}

.sw-pill-input input::placeholder {
  color: rgba(247, 248, 238, 0.28);
}

/* ─── CTA button ─── */
.sw-cta {
  align-items: center;
  background: linear-gradient(135deg, #a3ff12 0%, #72c800 100%);
  border: none;
  border-radius: 16px;
  color: #060e04;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  letter-spacing: 0.1em;
  margin-top: 1.3rem;
  text-transform: uppercase;
  transition: all 0.22s;
  width: 100%;
  box-shadow: 0 4px 24px rgba(163, 255, 18, 0.28);
}

.sw-cta:hover {
  box-shadow: 0 6px 36px rgba(163, 255, 18, 0.48);
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.sw-cta:active {
  transform: translateY(0);
  filter: brightness(0.94);
}

/* ══════════════════════════════════
   RIGHT CARD — Detail Overview
══════════════════════════════════ */

.sw-detail-card {
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

/* detail header */
.sw-detail-hd {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sw-detail-hd-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sw-detail-title {
  color: #f7f8ee;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

/* live pulse dot */
.sw-live-dot {
  background: #a3ff12;
  border-radius: 50%;
  box-shadow: 0 0 10px #a3ff12;
  display: inline-block;
  flex-shrink: 0;
  height: 8px;
  margin-top: 4px;
  width: 8px;
  animation: sw-pulse 2s infinite;
}

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

/* rate row */
.sw-rate-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
}

.sw-rate-left {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.sw-rate-dot {
  background: #a3ff12;
  border-radius: 50%;
  box-shadow: 0 0 6px #a3ff12;
  display: inline-block;
  flex-shrink: 0;
  height: 7px;
  width: 7px;
}

.sw-rate-text {
  color: rgba(247, 248, 238, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
}

.sw-rate-gas {
  align-items: center;
  color: rgba(247, 248, 238, 0.5);
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.3rem;
}

.sw-gas-flame {
  font-size: 0.88rem;
}

/* detail rows */
.sw-rows {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sw-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0;
  transition: background 0.12s;
}

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

.sw-row-label {
  align-items: center;
  color: rgba(247, 248, 238, 0.5);
  display: flex;
  font-size: 0.8rem;
  gap: 0.3rem;
  flex-wrap: wrap;
  line-height: 1.4;
}

.sw-tip {
  color: rgba(247, 248, 238, 0.22);
  cursor: help;
  font-size: 0.75rem;
  transition: color 0.15s;
}

.sw-tip:hover {
  color: #a3ff12;
}

.sw-row-val {
  color: rgba(247, 248, 238, 0.95);
  flex-shrink: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.sw-val-ok {
  color: #a3ff12 !important;
}

/* route badge */
.sw-route-badge {
  background: rgba(163, 255, 18, 0.1);
  border: 1px solid rgba(163, 255, 18, 0.3);
  border-radius: 6px;
  color: #a3ff12;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
}

/* footer */
.sw-detail-footer {
  border-top: 1px solid rgba(163, 255, 18, 0.1);
  margin-top: auto;
  padding-top: 1rem;
}

.sw-detail-footer .sw-cta {
  margin-top: 0;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .sw-layout {
    grid-template-columns: 1fr;
  }

  .sw-detail-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .sw-amount {
    font-size: 1.8rem;
  }

  .sw-token-btn {
    padding: 0.4rem 0.65rem 0.4rem 0.45rem;
  }

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

/* ── Smooth Scroll Reveal Animations ────────────────────────── */
.js-active .scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  will-change: transform, opacity;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-active .scroll-reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .js-active .scroll-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
  }
}



/* ═══════════════════════════════════════════════════════════
   TOKEN AVATAR — sw-avatar-*
   ═══════════════════════════════════════════════════════════ */
.sw-avatar-wrap { position:relative; flex-shrink:0; width:28px; height:28px; }
.sw-token-logo { width:28px; height:28px; border-radius:50%; object-fit:cover; display:block; background:rgba(255,255,255,0.06); }
.sw-avatar-loading { width:28px; height:28px; border-radius:50%; display:block; background:linear-gradient(90deg,rgba(255,255,255,0.05) 0%,rgba(255,255,255,0.14) 50%,rgba(255,255,255,0.05) 100%); background-size:200% 100%; animation:sw-shimmer 1.4s infinite linear; }
@keyframes sw-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sw-avatar-fallback { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:rgba(163,255,18,0.12); color:#a3ff12; font-family:'JetBrains Mono',monospace; font-size:11px; font-weight:900; line-height:1; }

/* ═══════════════════════════════════════════════════════════
   TOKEN SEARCH MODAL — tsm-*
   ═══════════════════════════════════════════════════════════ */
/* — Overlay: true full-viewport fixed modal, above everything — */
.tsm-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  padding: 1rem;
  animation: tsm-fade-in 0.10s ease;
}
.tsm-overlay[hidden] { display:none !important; }
@keyframes tsm-fade-in { from{opacity:0} to{opacity:1} }
/* — Dialog card: centered, constrained, not affected by sidebar layout — */
.tsm-dialog {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  background: rgba(8,15,12,0.97);
  border: 1px solid rgba(163,255,18,0.22);
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(163,255,18,0.06) inset, 0 24px 60px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  animation: tsm-slide-up 0.12s cubic-bezier(0.16,1,0.3,1);
}
@keyframes tsm-slide-up { from{opacity:0;transform:translateY(24px) scale(0.97)} to{opacity:1;transform:translateY(0) scale(1)} }
.tsm-header { align-items:center; border-bottom:1px solid rgba(255,255,255,0.07); display:flex; justify-content:space-between; padding:1.2rem 1.4rem 1rem; }
.tsm-title { color:#f7f8ee; font-size:1.05rem; font-weight:800; margin:0; }
.tsm-close { align-items:center; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); border-radius:8px; color:rgba(247,248,238,0.5); cursor:pointer; display:flex; height:34px; justify-content:center; transition:all 0.15s; width:34px; }
.tsm-close:hover { background:rgba(163,255,18,0.1); border-color:rgba(163,255,18,0.3); color:#a3ff12; }
.tsm-search-wrap { align-items:center; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.10); border-radius:14px; display:flex; gap:0.55rem; margin:1rem 1.2rem 0.75rem; padding:0 0.9rem; transition:border-color 0.2s; }
.tsm-search-wrap:focus-within { border-color:rgba(163,255,18,0.45); }
.tsm-search-icon { color:rgba(247,248,238,0.3); flex-shrink:0; }
.tsm-search { background:transparent; border:none; color:#f7f8ee; flex:1; font-family:inherit; font-size:0.88rem; min-width:0; outline:none; padding:0.85rem 0; }
.tsm-search::placeholder { color:rgba(247,248,238,0.28); }
.tsm-search-clear { align-items:center; background:rgba(255,255,255,0.07); border:none; border-radius:6px; color:rgba(247,248,238,0.4); cursor:pointer; display:flex; height:26px; justify-content:center; transition:all 0.15s; width:26px; flex-shrink:0; }
.tsm-search-clear:hover { color:#a3ff12; }
.tsm-search-clear[hidden] { display:none; }
.tsm-status { align-items:center; border-radius:8px; display:flex; font-size:0.75rem; gap:0.45rem; margin:0 1.2rem 0.5rem; padding:0.5rem 0.75rem; }
.tsm-status[hidden] { display:none; }
.tsm-status.tsm-status-error { background:rgba(255,80,80,0.08); border:1px solid rgba(255,80,80,0.2); color:rgba(255,130,130,0.9); }
.tsm-status.tsm-status-loading { background:rgba(163,255,18,0.06); border:1px solid rgba(163,255,18,0.15); color:rgba(163,255,18,0.7); }
.tsm-status.tsm-status-ok { background:rgba(163,255,18,0.06); border:1px solid rgba(163,255,18,0.2); color:rgba(163,255,18,0.8); }
.tsm-section-label { color:rgba(163,255,18,0.5); font-size:0.6rem; font-weight:800; letter-spacing:0.18em; margin:0.6rem 1.2rem 0.4rem; text-transform:uppercase; }
.tsm-list { flex:1; overflow-y:auto; padding:0 0.5rem 0.75rem; scrollbar-width:thin; scrollbar-color:rgba(163,255,18,0.15) transparent; }
.tsm-list::-webkit-scrollbar { width:4px; }
.tsm-list::-webkit-scrollbar-thumb { background:rgba(163,255,18,0.15); border-radius:4px; }
.tsm-result-wrap { padding:0 0.5rem 0.25rem; }
.tsm-result-wrap[hidden] { display:none; }
.tsm-token-row { align-items:center; border-radius:14px; cursor:pointer; display:flex; gap:0.85rem; padding:0.7rem 0.75rem; transition:background 0.14s; }
.tsm-token-row:hover { background:rgba(163,255,18,0.06); }
.tsm-token-row.tsm-selected { background:rgba(163,255,18,0.08); box-shadow:0 0 0 1px rgba(163,255,18,0.2) inset; }
.tsm-token-row.tsm-loading { cursor:default; pointer-events:none; }
.tsm-avatar-wrap { position:relative; flex-shrink:0; width:38px; height:38px; }
.tsm-token-logo { width:38px; height:38px; border-radius:50%; object-fit:cover; display:block; background:rgba(255,255,255,0.05); }
.tsm-avatar-loading { width:38px; height:38px; border-radius:50%; display:block; background:linear-gradient(90deg,rgba(255,255,255,0.05) 0%,rgba(255,255,255,0.14) 50%,rgba(255,255,255,0.05) 100%); background-size:200% 100%; animation:sw-shimmer 1.4s infinite linear; }
.tsm-avatar-fallback { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:rgba(163,255,18,0.12); color:#a3ff12; font-family:'JetBrains Mono',monospace; font-size:13px; font-weight:900; line-height:1; }
.tsm-token-info { display:flex; flex-direction:column; flex:1; gap:0.15rem; min-width:0; }
.tsm-token-symbol { color:#f7f8ee; font-size:0.92rem; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tsm-token-name { color:rgba(247,248,238,0.38); font-size:0.72rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tsm-token-address { color:rgba(163,255,18,0.55); font-family:'JetBrains Mono',monospace; font-size:0.65rem; }
.tsm-skeleton-row { align-items:center; display:flex; gap:0.85rem; padding:0.7rem 0.75rem; pointer-events:none; }
.tsm-skeleton-circle { border-radius:50%; flex-shrink:0; height:38px; width:38px; background:linear-gradient(90deg,rgba(255,255,255,0.05) 0%,rgba(255,255,255,0.12) 50%,rgba(255,255,255,0.05) 100%); background-size:200% 100%; animation:sw-shimmer 1.4s infinite linear; }
.tsm-skeleton-lines { display:flex; flex-direction:column; gap:0.4rem; flex:1; }
.tsm-skeleton-line { border-radius:6px; height:10px; background:linear-gradient(90deg,rgba(255,255,255,0.05) 0%,rgba(255,255,255,0.12) 50%,rgba(255,255,255,0.05) 100%); background-size:200% 100%; animation:sw-shimmer 1.4s infinite linear; }
.tsm-skeleton-line.tsm-sk-short { width:45%; }
.tsm-empty { align-items:center; color:rgba(247,248,238,0.3); display:flex; flex-direction:column; font-size:0.82rem; gap:0.85rem; justify-content:center; padding:2.5rem 1rem; text-align:center; }
.tsm-empty[hidden] { display:none; }
@media (max-width:480px) { .tsm-dialog{border-radius:20px 20px 0 0;max-height:85vh} .tsm-overlay{align-items:flex-end;padding:0} }

/* ═══════════════════════════════════════════════════════════
   TOKEN ICON — ti-wrap (v2 clean single-source-of-truth)
   Used in both modal rows and swap card buttons.
   ═══════════════════════════════════════════════════════════ */

/* The container: inline-flex circle */
.ti-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  /* width/height set inline via JS */
}

/* Fallback initials — always in DOM, hidden by img overlay when loaded */
.ti-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  user-select: none;
  pointer-events: none;
  /* color / font-size set inline via JS */
}

/* Logo image — overlays fallback when loaded */
.ti-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  /* display toggled by JS: none → block on load */
}

/* Make sw-avatar-wrap a neutral pass-through — JS owns its content */
.sw-avatar-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* NO background, NO fixed size — ti-wrap inside handles it */
  background: none !important;
}

/* Remove any orphan sw-avatar-* styles that could add extra circles */
.sw-avatar-wrap .sw-token-logo,
.sw-avatar-wrap .sw-avatar-loading,
.sw-avatar-wrap .sw-avatar-fallback {
  /* These old elements are replaced by JS; hide as safety net */
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   SWAP PANEL — header/badge alignment fix
   Hero mirrors the same grid as sw-layout so text ↔ left card
   and badge ↔ right card are pixel-perfect.
   ═══════════════════════════════════════════════════════════ */

/* 1. Hero: match sw-layout's max-width exactly */
[data-app-panel="swap"] .terminal-hero {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;

  /* Mirror the same two-column grid as .sw-layout */
  display: grid;
  grid-template-columns: minmax(340px, 500px) 1fr;
  gap: 1.5rem;       /* same gap as sw-layout */
  align-items: end;  /* baseline-align text and badge */
  margin-bottom: 1rem;
}

/* 2. Left column — "// PRIVATE SWAP" + h1 — flush with left card */
[data-app-panel="swap"] .terminal-hero > div:first-child {
  padding-left: 0;
  min-width: 0;
}

/* 3. Right column — "BASE CHAIN" badge — aligns with right card */
[data-app-panel="swap"] .terminal-status {
  display: flex;
  justify-content: flex-end;  /* hug right edge */
  align-items: flex-end;
  min-width: 0;
}

/* 4. Ensure sw-layout itself has zero top gap after the hero */
[data-app-panel="swap"] .sw-layout {
  margin-top: 0;
}

/* 5. Responsive: stack hero like cards stack */
@media (max-width: 860px) {
  [data-app-panel="swap"] .terminal-hero {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  [data-app-panel="swap"] .terminal-status {
    justify-content: flex-start;
  }
}

/* Swap hero h1 — single line, no wrap */
[data-app-panel="swap"] .terminal-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  white-space: nowrap;
  line-height: 1.05;
}

/* ── Swap detail clarifications ── */
.sw-row-min .sw-row-label { color: rgba(247,248,238,0.7); }
.sw-val-min { color: #a3ff12 !important; font-weight: 700; }

.sw-row-divider {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0.5rem 0;
}

.sw-slippage-note {
  background: rgba(163,255,18,0.05);
  border: 1px solid rgba(163,255,18,0.15);
  border-radius: 10px;
  color: rgba(247,248,238,0.5);
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
}

/* ── Order cancel confirmation modal ── */
.ob-cancel-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}
.ob-cancel-modal-box {
  background: #0c1a0f;
  border: 1px solid rgba(163,255,18,0.25);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}
.ob-cancel-modal-title {
  color: #f7f8ee;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}
.ob-cancel-modal-sub {
  color: rgba(247,248,238,0.5);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.ob-cancel-modal-btns {
  display: flex;
  gap: 0.75rem;
}
.ob-cancel-confirm {
  background: rgba(255,60,60,0.15);
  border: 1px solid rgba(255,60,60,0.5);
  border-radius: 8px;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.6rem 1rem;
  transition: all 0.15s;
  flex: 1;
}
.ob-cancel-confirm:hover {
  background: rgba(255,60,60,0.3);
  border-color: #ff6b6b;
}
.ob-cancel-dismiss {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(247,248,238,0.6);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  transition: all 0.15s;
  flex: 1;
}
.ob-cancel-dismiss:hover {
  background: rgba(255,255,255,0.1);
  color: #f7f8ee;
}

/* Cancelled badge */
.ob-cancelled {
  color: #ff9f43 !important;
  border-color: rgba(255,159,67,0.3) !important;
}

/* Intent ID code style */
.ob-intent-id {
  color: rgba(163,255,18,0.7);
  cursor: default;
  font-size: 0.75rem;
}

/* ── Terminal brand logo image ── */
.terminal-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR LAYOUT
   ═══════════════════════════════════════════════════════════ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100vh;
  background: rgba(3, 5, 4, 0.96);
  border-right: 1px solid rgba(182, 255, 0, 0.14);
  display: flex;
  flex-direction: column;
  z-index: 100;
  backdrop-filter: blur(10px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Brand ── */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.4rem 1.2rem 1.2rem;
  text-decoration: none;
  color: var(--acid, #B6FF00);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(182, 255, 0, 0.1);
  flex-shrink: 0;
}

.sidebar-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Nav ── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.6rem;
  gap: 0.2rem;
  flex: 1;
}

.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.72rem 0.9rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(247, 248, 238, 0.55);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  position: relative;
  text-align: left;
}

.sidebar-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.18s;
}

.sidebar-tab:hover {
  background: rgba(182, 255, 0, 0.06);
  color: rgba(247, 248, 238, 0.85);
}

.sidebar-tab:hover .sidebar-tab-icon {
  opacity: 0.85;
}

/* Active tab */
.sidebar-tab.active {
  background: rgba(182, 255, 0, 0.1);
  border-color: rgba(182, 255, 0, 0.3);
  color: #B6FF00;
  box-shadow: 0 0 12px rgba(182, 255, 0, 0.08);
}

.sidebar-tab.active .sidebar-tab-icon {
  opacity: 1;
}

/* Right indicator line for active tab */
.sidebar-tab.active::after {
  content: '';
  position: absolute;
  right: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  background: #B6FF00;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(182, 255, 0, 0.5);
}

/* ── Sidebar Footer ── */
.sidebar-footer {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid rgba(182, 255, 0, 0.08);
  flex-shrink: 0;
}

.sidebar-wallet-btn {
  width: 100%;
  margin-bottom: 0.95rem;
  justify-content: center;
}

.sidebar-chain {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(182, 255, 0, 0.75);
  letter-spacing: 0.07em;
}

.sidebar-chain-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B6FF00;
  box-shadow: 0 0 8px rgba(182, 255, 0, 0.6);
  flex-shrink: 0;
}

.sidebar-chain-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgba(182, 255, 0, 0.35);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   GLOW UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */

/* Glowing panel — for cards, forms, market section, preview */
.glow-panel {
  border: 1px solid rgba(166, 255, 0, 0.22) !important;
  box-shadow:
    0 0 18px rgba(166, 255, 0, 0.08),
    inset 0 0 24px rgba(166, 255, 0, 0.03) !important;
}

/* Subtle glowing border only (no box-shadow) */
.glow-border {
  border: 1px solid rgba(166, 255, 0, 0.35) !important;
}

/* Glowing CTA button */
.glow-button {
  box-shadow: 0 0 14px rgba(166, 255, 0, 0.22), inset 0 0 8px rgba(166, 255, 0, 0.06) !important;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s !important;
}

.glow-button:hover {
  box-shadow: 0 0 28px rgba(166, 255, 0, 0.38), inset 0 0 12px rgba(166, 255, 0, 0.1) !important;
}

/* Active sidebar tab — additional lime glow layer */
.glow-active-tab {
  background: rgba(166, 255, 0, 0.1) !important;
  border-color: rgba(166, 255, 0, 0.32) !important;
  box-shadow: 0 0 16px rgba(166, 255, 0, 0.12), inset 0 0 10px rgba(166, 255, 0, 0.05) !important;
}

/* Ambient radial glow behind main content — no position:relative to avoid stacking context */
.dashboard-ambient-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 230px;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 42% at 72% 18%, rgba(166, 255, 0, 0.055) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 28% 80%, rgba(166, 255, 0, 0.028) 0%, transparent 65%);
}

/* Apply glow-border to sidebar itself */
.sylphy-terminal-app .sidebar {
  border-right: 1px solid rgba(166, 255, 0, 0.2);
  box-shadow: 2px 0 24px rgba(166, 255, 0, 0.06);
}

/* Apply glow-active-tab to active sidebar tab */
.sylphy-terminal-app .sidebar-tab.active {
  background: rgba(166, 255, 0, 0.1);
  border-color: rgba(166, 255, 0, 0.32);
  color: #B6FF00;
  box-shadow: 0 0 16px rgba(166, 255, 0, 0.1), inset 0 0 10px rgba(166, 255, 0, 0.04);
}

/* ── Dashboard Top Bar (wallet top-right, scoped to app page) ── */
.sylphy-terminal-app .dashboard-topbar {
  display: none;
}

.sylphy-terminal-app .dashboard-topbar .wallet-btn {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(3, 6, 3, 0.88);
  border: 1px solid rgba(166, 255, 0, 0.45);
  border-radius: 7px;
  color: #B6FF00;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 1.1rem;
  height: 34px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(166, 255, 0, 0.2), inset 0 0 8px rgba(166, 255, 0, 0.06);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.sylphy-terminal-app .sidebar-footer .wallet-btn {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  max-width: none;
  background: rgba(3, 6, 3, 0.88);
  border: 1px solid rgba(166, 255, 0, 0.45);
  border-radius: 7px;
  color: #B6FF00;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 0.75rem;
  min-height: 34px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(166, 255, 0, 0.2), inset 0 0 8px rgba(166, 255, 0, 0.06);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.sylphy-terminal-app .sidebar-footer .wallet-btn:hover {
  background: rgba(166, 255, 0, 0.1);
  border-color: rgba(166, 255, 0, 0.7);
  box-shadow: 0 0 24px rgba(166, 255, 0, 0.32), inset 0 0 10px rgba(166, 255, 0, 0.08);
}

.sylphy-terminal-app .dashboard-topbar .wallet-btn:hover {
  background: rgba(166, 255, 0, 0.1);
  border-color: rgba(166, 255, 0, 0.7);
  box-shadow: 0 0 24px rgba(166, 255, 0, 0.32), inset 0 0 10px rgba(166, 255, 0, 0.08);
}

/* Offset main content for topbar + sidebar */
.sylphy-terminal-app .terminal-app-main {
  margin-left: 230px;
  padding-top: 52px;
}

/* ── Hide old header (safety fallback) ── */
.terminal-app-header {
  display: none !important;
}

/* ── Mobile sidebar toggle button ── */
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 110;
  background: rgba(3, 5, 4, 0.9);
  border: 1px solid rgba(182, 255, 0, 0.2);
  border-radius: 8px;
  color: var(--acid, #B6FF00);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ── Mobile overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 95;
}

.sidebar-overlay.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE: MOBILE / TABLET (≤900px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  .sidebar-mobile-toggle {
    display: flex;
  }

  .sylphy-terminal-app .dashboard-topbar {
    left: 0;
    padding-left: 56px;
  }

  .sylphy-terminal-app .terminal-app-main {
    margin-left: 0;
  }

  .dashboard-ambient-bg::before {
    left: 0;
  }
}

/* Final landing hero character tuning. Keep this last so older mascot rules
   above cannot dull the separated PNG layers. */
body:not(.sylphy-terminal-app) .hero .sylphy-character {
  opacity: 1 !important;
}

body:not(.sylphy-terminal-app) .hero .sylphy-body {
  filter:
    brightness(1.08)
    contrast(1.08)
    saturate(1.24)
    drop-shadow(0 0 22px rgba(182, 255, 0, 0.46)) !important;
  opacity: 0.96 !important;
}

body:not(.sylphy-terminal-app) .hero .sylphy-eyes {
  animation: none !important;
  filter: brightness(1.02) contrast(1.08) saturate(1.1) !important;
  opacity: 0.96 !important;
  transform: none !important;
}

body:not(.sylphy-terminal-app) .hero .sylphy-wing {
  filter:
    brightness(1.22)
    contrast(1.05)
    saturate(1.06)
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.24)) !important;
  opacity: 0.94 !important;
}

body:not(.sylphy-terminal-app) .hero .sylphy-wing--left {
  animation: sylphyWingLeft2 2.8s ease-in-out infinite !important;
}

body:not(.sylphy-terminal-app) .hero .sylphy-wing--right {
  animation: sylphyWingRight2 2.8s ease-in-out infinite !important;
  animation-delay: 0.12s !important;
}

body:not(.sylphy-terminal-app) .hero .sylphy-eyelid {
  animation: sylphyEyelidBlink 4.8s steps(1, end) infinite !important;
  background: #bbd31d !important;
}

/* Landing typography only: clean Hyre-like techno/digital face. */
.landing-page,
.landing-page * ,
.landing-page *::before,
.landing-page *::after {
  font-family:
    "Share Tech Mono",
    "JetBrains Mono",
    "Courier New",
    monospace !important;
  line-height: inherit;
}

.landing-page .nav-brand,
.landing-page .nav-mid a,
.landing-page .nav-r a,
.landing-page .hero-badge,
.landing-page .hero-subtitle,
.landing-page .hero-keywords,
.landing-page .hero-type,
.landing-page .btn-f,
.landing-page .btn-o,
.landing-page button {
  font-weight: 400 !important;
  letter-spacing: inherit;
}

.landing-page .hero-title {
  font-family:
    "Orbitron",
    "Share Tech Mono",
    "JetBrains Mono",
    monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  line-height: 0.88 !important;
}

.landing-page .topbar .nav-brand span:not(.logo-ring) {
  font-family:
    "Share Tech Mono",
    "JetBrains Mono",
    "Courier New",
    monospace !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

.landing-page .nav-mid a,
.landing-page .nav-r a {
  letter-spacing: 0.18em !important;
  line-height: 1 !important;
}

.landing-page .hero-badge,
.landing-page .hero-subtitle,
.landing-page .hero-keywords,
.landing-page .hero-type,
.landing-page .btn-f,
.landing-page .btn-o,
.landing-page button {
  line-height: 1.15 !important;
}

/* Landing performance pass: keep the same composition, reduce paint-heavy hero effects. */
.landing-page #bg {
  opacity: 0.94;
}

.landing-page .topbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.landing-page .hero-content::before {
  background: radial-gradient(ellipse at center, rgba(3, 5, 4, 0.72), rgba(3, 5, 4, 0.36) 44%, transparent 70%) !important;
}

.landing-page .hero .sylphy-character::before,
.landing-page .hero .sylphy-mascot-bg.sylphy-character-wrap::before,
.landing-page .sylphy-character-wrap::before {
  filter: blur(10px) !important;
  opacity: 0.38 !important;
}

.landing-page .hero .sylphy-body,
body:not(.sylphy-terminal-app) .hero .sylphy-body {
  filter: brightness(1.08) contrast(1.08) saturate(1.2) !important;
}

.landing-page .hero .sylphy-wing,
body:not(.sylphy-terminal-app) .hero .sylphy-wing {
  filter: brightness(1.16) contrast(1.04) saturate(1.04) !important;
  will-change: transform;
}

.landing-page .hero .sylphy-eyes,
body:not(.sylphy-terminal-app) .hero .sylphy-eyes {
  filter: brightness(1.02) contrast(1.06) saturate(1.08) !important;
  will-change: auto !important;
}

.landing-page .hero-divider-pixel {
  filter: none !important;
  text-shadow: 0 0 6px rgba(182,255,0,0.55);
}

.landing-page .dot-live,
.landing-page .dot-sm {
  box-shadow: 0 0 8px rgba(182,255,0,0.65);
}

/* Dashboard typography: match the updated Sylphy landing/docs font style. */
.sylphy-terminal-app,
.sylphy-terminal-app * ,
.sylphy-terminal-app *::before,
.sylphy-terminal-app *::after {
  font-family:
    "Share Tech Mono",
    "JetBrains Mono",
    "Courier New",
    monospace !important;
}

.sylphy-terminal-app .terminal-hero h1,
.sylphy-terminal-app .terminal-placeholder h1 {
  font-family:
    "Orbitron",
    "Share Tech Mono",
    "JetBrains Mono",
    monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.sylphy-terminal-app .sidebar-brand strong,
.sylphy-terminal-app .terminal-card-head h2,
.sylphy-terminal-app .chart-empty strong,
.sylphy-terminal-app .terminal-submit,
.sylphy-terminal-app .dashboard-topbar .wallet-btn,
.sylphy-terminal-app .sidebar-footer .wallet-btn,
.sylphy-terminal-app .sidebar-tab {
  font-weight: 400 !important;
}

.sylphy-terminal-app .terminal-hero p,
.sylphy-terminal-app .terminal-status span,
.sylphy-terminal-app .terminal-card-head span,
.sylphy-terminal-app .terminal-preview-title,
.sylphy-terminal-app .sidebar-tab,
.sylphy-terminal-app .sidebar-chain,
.sylphy-terminal-app .dashboard-topbar .wallet-btn,
.sylphy-terminal-app .sidebar-footer .wallet-btn,
.sylphy-terminal-app .terminal-submit {
  letter-spacing: 0.16em !important;
}

.sylphy-terminal-app .sidebar-brand {
  letter-spacing: 0.05em !important;
}

/* Keep dashboard status badges readable in OTC, Orders, and Audit headers. */
.sylphy-terminal-app .terminal-status {
  align-items: center !important;
  flex-wrap: nowrap !important;
  min-width: max-content;
}

.sylphy-terminal-app .terminal-status span {
  align-items: center !important;
  display: inline-flex !important;
  gap: 0.5rem;
  justify-content: center !important;
  letter-spacing: 0.12em !important;
  line-height: 1 !important;
  min-width: max-content;
  white-space: nowrap !important;
  word-break: keep-all;
}

.sylphy-terminal-app .terminal-status b {
  flex: 0 0 9px;
  margin-right: 0 !important;
}
