:root {
  color-scheme: dark;
  --bg: #0a0b0e;
  --bg-deep: #0a0b0e;
  --bg-surface: #11131a;
  --bg-elevated: #1a1d2b;
  --bg-grid: rgba(0, 240, 255, 0.055);
  --panel: rgba(17, 19, 26, 0.72);
  --panel-2: rgba(26, 29, 43, 0.64);
  --panel-3: rgba(26, 29, 43, 0.88);
  --line: rgba(0, 240, 255, 0.22);
  --line-soft: rgba(0, 240, 255, 0.14);
  --border-glow: rgba(0, 255, 255, 0.2);
  --text: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #b0b5c8;
  --text-tertiary: #6c7289;
  --text-accent: #00f0ff;
  --muted: var(--text-secondary);
  --gold: #00f0ff;
  --green: #00f0ff;
  --violet: #b100ff;
  --pink: #ff3bd5;
  --danger: #ff5d75;
  --radius: 24px;
  --radius-sm: 12px;
  --glass: rgba(17, 19, 26, 0.62);
  --glass-line: rgba(0, 240, 255, 0.16);
  --neon-gradient: linear-gradient(135deg, #00f0ff, #b100ff);
  --progress-gradient: linear-gradient(90deg, #00f0ff, #b100ff);
  --warm-gradient: var(--neon-gradient);
  --rail-width: 80px;
  --content-max: 1420px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"),
    radial-gradient(circle at 18% 8%, rgba(0, 240, 255, 0.12), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(177, 0, 255, 0.16), transparent 36%),
    linear-gradient(135deg, #0a0b0e 0%, #11131a 48%, #0a0b0e 100%),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  transition: all 0.2s ease;
}

input,
select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  padding-left: var(--rail-width);
  transition: padding-left 180ms ease;
}

.app-shell.sidebar-expanded {
  --rail-width: 188px;
}

.rail-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--rail-width);
  padding: 18px 14px;
  border-right: 1px solid var(--glass-line);
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(22px);
  transition: width 180ms ease;
}

.rail-collapse,
.rail-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: transparent;
}

.rail-collapse {
  height: 30px;
  margin-bottom: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 22px;
  overflow: hidden;
}

.rail-brand img {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.rail-brand span,
.rail-item strong {
  display: none;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.sidebar-expanded .rail-brand span,
.sidebar-expanded .rail-item strong {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.rail-brand strong,
.rail-brand small {
  display: block;
}

.rail-brand small {
  color: var(--muted);
  font-size: 11px;
}

.rail-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 0 10px;
  text-align: left;
  font-weight: 900;
}

.sidebar-collapsed .rail-item {
  display: flex;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
}

.rail-item span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--text-accent);
}

.sidebar-collapsed .rail-brand {
  justify-content: center;
}

.sidebar-collapsed .rail-collapse {
  width: 44px;
  margin-right: auto;
  margin-left: auto;
}

.rail-item.active {
  border-color: rgba(0, 240, 255, 0.46);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(177, 0, 255, 0.14));
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.18), inset 0 0 20px rgba(177, 0, 255, 0.08);
}

.rail-item.active span {
  color: #ffffff;
  background: var(--neon-gradient);
}

.trade-ticker {
  position: sticky;
  top: 0;
  z-index: 12;
  overflow: hidden;
  padding: 10px 48px;
  border-bottom: 1px solid var(--glass-line);
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(20px);
}

.trade-ticker-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: ticker-scroll 34s linear infinite;
}

.trade-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 6px 10px;
  color: #05070a;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.trade-chip b,
.trade-chip strong {
  color: #030303;
  text-decoration: underline;
}

.chip-0 { background: #00f0ff; }
.chip-1 { background: #54f6ff; }
.chip-2 { background: #b100ff; color: #fff; }
.chip-3 { background: #ff3bd5; color: #fff; }
.chip-4 { background: #66ff9a; }
.chip-5 { background: #263044; color: #fff; border: 1px solid rgba(0, 240, 255, 0.24); }

.chip-5 b,
.chip-5 strong {
  color: var(--text-primary);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.topbar {
  position: sticky;
  top: 41px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px 48px;
  border-bottom: 1px solid var(--glass-line);
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(22px);
}

.menu-button {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--glass);
}

@media (min-width: 761px) {
  .topbar > .menu-button {
    display: none;
  }
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-accent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: auto;
}

.brand-mark,
.coin-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-accent);
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), 0 0 28px rgba(177, 0, 255, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.tabs {
  display: flex;
  align-items: center;
  padding: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.tab,
.filter {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  padding: 9px 16px;
}

.tab.active,
.filter.active {
  color: #ffffff;
  background: var(--neon-gradient);
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.38), 0 0 26px rgba(177, 0, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.top-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-language {
  order: 1;
}

.network-chip {
  order: 2;
}

.wallet-button {
  order: 3;
}

.language-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.language-toggle button.active {
  color: #ffffff;
  background: var(--neon-gradient);
}

.network-chip,
.wallet-button,
.primary-action,
.code-box button,
.ghost-action {
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.wallet-button,
.primary-action {
  border-color: transparent;
  background: var(--neon-gradient);
  color: #ffffff;
  border-radius: 40px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5), 0 12px 34px rgba(177, 0, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wallet-button:hover,
.primary-action:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.62), 0 18px 42px rgba(177, 0, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ghost-action {
  background: transparent;
  color: var(--text);
}

.ghost-action:hover,
.network-chip:hover,
.market-sort button:hover,
.filter:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.launch-action-box {
  margin-top: 16px;
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.action-wide {
  width: 100%;
}

.create-status {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.create-status.success {
  color: #9cf0df;
}

.create-status.warning {
  color: #f5c067;
}

.panel-page {
  display: none;
  width: 100%;
  padding: 0;
}

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

.panel-page:not(#marketPanel) {
  padding: 24px;
}

.market-layout,
.creator-layout,
.treasury-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
}

.market-home {
  width: min(var(--content-max), calc(100vw - var(--rail-width) - 96px));
  margin: 0 48px;
  padding: 48px 0 44px;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(420px, 0.95fr);
  gap: 32px;
  align-items: stretch;
  min-height: 300px;
  margin-bottom: 32px;
}

.roo-console {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.07), transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(177, 0, 255, 0.055), transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 15% 16%, rgba(0, 240, 255, 0.16), transparent 31%),
    radial-gradient(circle at 86% 22%, rgba(177, 0, 255, 0.16), transparent 34%),
    var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.24);
}

.roo-console::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 50%;
  width: min(42vw, 560px);
  height: 180px;
  transform: translateX(-8%);
  border: 1px solid rgba(0, 240, 255, 0.16);
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(0, 240, 255, 0.16) 18% 20%, transparent 20% 38%, rgba(177, 0, 255, 0.15) 38% 40%, transparent 40%),
    rgba(0, 240, 255, 0.035);
  clip-path: polygon(5% 0, 100% 0, 91% 100%, 0 100%);
  pointer-events: none;
}

.kangaroo-silhouette {
  position: absolute;
  top: -56px;
  right: -92px;
  z-index: 0;
  width: min(44vw, 560px);
  min-width: 420px;
  aspect-ratio: 1.24;
  transform: translate3d(var(--roo-parallax-x, 0px), var(--roo-parallax-y, 0px), 0) rotate(-4deg);
  opacity: 0.78;
  pointer-events: none;
  transition: transform 0.18s ease-out;
}

.kangaroo-glow {
  position: absolute;
  inset: 12% 4% 2% 12%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 38%, rgba(0, 240, 255, 0.24), transparent 44%),
    radial-gradient(circle at 66% 58%, rgba(177, 0, 255, 0.2), transparent 48%);
  filter: blur(22px);
  opacity: 0.85;
}

.kangaroo-silhouette svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(0, 240, 255, 0.36);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.34)) drop-shadow(0 0 24px rgba(177, 0, 255, 0.2));
}

.kangaroo-copy {
  position: absolute;
  right: 116px;
  bottom: 62px;
  display: grid;
  gap: 7px;
  transform: rotate(-18deg);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: right;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.18);
}

.roo-console-copy,
.roo-search-hub {
  position: relative;
  z-index: 1;
}

.roo-console-copy {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.console-brandline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 999px;
  background: rgba(26, 29, 43, 0.68);
  color: var(--text-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.console-brandline em {
  padding: 3px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--neon-gradient);
  font-style: normal;
  letter-spacing: 0;
}

.roo-console-copy h1 {
  max-width: 780px;
  margin: 18px 0 12px;
  color: var(--text-primary);
  font-size: clamp(42px, 4vw, 64px);
  line-height: 0.94;
}

.roo-console-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-weight: 700;
}

.roo-search-hub {
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 24px;
  border-left: 1px solid var(--glass-line);
}

.create-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 40px;
  background: var(--neon-gradient);
  color: #ffffff;
  padding: 15px 18px;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5), 0 18px 42px rgba(177, 0, 255, 0.24);
}

.create-frame-nut {
  width: 44px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px 999px 999px 12px;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.7), transparent 16%),
    #0a5360;
  transform: rotate(-18deg);
}

.create-frame-nut:last-child {
  transform: rotate(18deg) scaleX(-1);
}

.market-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  padding: 4px;
  border: 1px solid #2a2f3f;
  background: var(--bg-elevated);
  border-radius: 40px;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.market-search:focus-within {
  border-color: rgba(0, 240, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08), 0 0 22px rgba(0, 240, 255, 0.18);
}

.market-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 15px 14px;
  font-size: 16px;
}

.market-search button,
.market-sort button {
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 40px;
  background: rgba(17, 19, 26, 0.7);
  color: var(--text);
  padding: 12px 18px;
  font-weight: 900;
}

.market-search button {
  color: #ffffff;
  background: var(--neon-gradient);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.32);
}

.market-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.listed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  white-space: nowrap;
  color: var(--text);
  font-weight: 900;
}

.listed-toggle input {
  position: absolute;
  opacity: 0;
}

.listed-toggle strong {
  display: inline-block;
  line-height: 1.2;
}

.listed-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 34px;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #767676;
}

.listed-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8e8e8;
  transition: transform 160ms ease;
}

.listed-toggle input:checked + .listed-switch {
  background: var(--green);
}

.listed-toggle input:checked + .listed-switch::after {
  transform: translateX(14px);
  background: #ffffff;
}

.market-toolbar .filters {
  margin: 0;
}

.market-extra-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.market-extra-filters select {
  min-height: 40px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  padding: 0 34px 0 12px;
  font-weight: 850;
}

.market-sort {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.launch-board,
.creator-main,
.preview-panel,
.side-panel,
.treasury-layout {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.launch-board,
.creator-main,
.preview-panel,
.side-panel {
  padding: 20px;
}

.treasury-layout {
  display: block;
  padding: 22px;
}

.profile-layout,
.faq-layout {
  width: min(1500px, calc(100vw - 28px));
  margin: 24px auto;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 15, 15, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.profile-summary div,
.profile-card,
.faq-list details {
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(17, 19, 26, 0.62);
}

.profile-summary div {
  padding: 14px;
}

.profile-summary span,
.profile-token-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text-accent);
  font-size: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  padding: 16px;
}

.profile-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-token-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(17, 19, 26, 0.8);
  padding: 8px;
  text-align: left;
}

.profile-token-row .project-avatar-image,
.profile-token-row span:first-child {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 6px;
}

.profile-token-row b {
  color: var(--text-accent);
  font-size: 12px;
}

.profile-empty,
.loading-state {
  color: var(--text-accent);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 15px 16px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 950;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.side-drawer[hidden] {
  display: none;
}

.side-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.drawer-panel {
  position: relative;
  width: min(360px, calc(100vw - 28px));
  min-height: 100%;
  padding: 18px;
  border-right: 1px solid rgba(0, 240, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.08), transparent 38%),
    rgba(10, 11, 14, 0.97);
  box-shadow: 26px 0 70px rgba(0, 0, 0, 0.58);
}

.drawer-brand {
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.drawer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.drawer-brand button,
.drawer-panel > button {
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.drawer-brand button {
  height: 36px;
  font-size: 20px;
}

.drawer-panel > button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  text-align: left;
  font-weight: 950;
}

.drawer-panel > button:hover {
  color: #ffffff;
  background: var(--neon-gradient);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  line-height: 1.1;
}

.section-head h1 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 54px);
}

.section-head h2 {
  font-size: 18px;
}

.section-head strong,
.section-head span {
  color: var(--text);
}

.eyebrow {
  display: block;
  color: var(--text-accent);
  font-weight: 900;
  margin-bottom: 9px;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.hero-copy p {
  max-width: 760px;
  color: var(--muted);
  margin: 20px 0 0;
  line-height: 1.7;
}

.hero-art {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-row div,
.project-card,
.flow-card,
.side-section,
.range-section,
.tax-panel,
.code-box,
.media-section,
.social-section,
.wallet-section {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.metric-row div {
  padding: 14px;
}

.metric-row span,
.project-meta span,
.flow-card span,
.summary-list dt,
.config-list dt,
.avatar-meta p {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.filter {
  background: rgba(26, 29, 43, 0.46);
  border: 1px solid rgba(0, 240, 255, 0.14);
  color: var(--muted);
  border-radius: 999px;
}

.filter:hover {
  color: #fff;
  border-color: rgba(0, 240, 255, 0.42);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.empty-market-rich {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 42px 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.14), transparent 34%),
    radial-gradient(circle at 70% 18%, rgba(177, 0, 255, 0.1), transparent 30%),
    var(--glass);
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.empty-illustration {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(177, 0, 255, 0.1)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 48px rgba(0, 240, 255, 0.16);
  font-size: 54px;
}

.empty-market-rich h2 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.empty-market-rich p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.project-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  align-items: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(135deg, rgba(17, 19, 26, 0.96), rgba(14, 16, 23, 0.96)),
    rgba(17, 19, 26, 0.92);
  border-color: rgba(0, 240, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.6);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(177, 0, 255, 0.08)),
    #11131a;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.46);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(0, 240, 255, 0.06);
  border-radius: 16px;
  pointer-events: none;
}

.project-card::before {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.project-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(0deg, rgba(177, 0, 255, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 50% 38%, hsl(var(--hue, 38) 68% 48% / 0.58), transparent 40%),
    #0e1017;
  border: 1px solid rgba(0, 240, 255, 0.16);
}

.project-card:nth-child(2n) .project-thumb { --hue: 38; }
.project-card:nth-child(3n) .project-thumb { --hue: 188; }
.project-card:nth-child(4n) .project-thumb { --hue: 292; }
.project-card:nth-child(5n) .project-thumb { --hue: 12; }

.project-thumb span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 74px;
  border: 3px solid rgba(0, 240, 255, 0.58);
  border-radius: 52% 52% 48% 48% / 60% 60% 42% 42%;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.6), transparent 17%),
    linear-gradient(145deg, #00f0ff, #33106a 72%);
  color: #ffffff;
  font-size: 25px;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.project-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-thumb button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  color: var(--text-accent);
  background: rgba(0, 0, 0, 0.38);
}

.project-body {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 7px;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.project-title-row h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.05;
}

.badge {
  color: #ffffff;
  background: var(--neon-gradient);
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.token-kind {
  display: inline-block;
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 900;
}

.change-badge {
  align-self: start;
  min-width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 240, 255, 0.12);
  font-size: 11px;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  font-size: 11px;
}

.project-facts div {
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt {
  color: var(--text-tertiary);
  font-weight: 800;
}

.project-facts dd {
  color: var(--text-primary);
  overflow-wrap: anywhere;
  font-weight: 900;
}

.project-progress-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
  color: var(--text-accent);
  font-size: 12px;
  font-weight: 950;
}

.project-progress-line i {
  display: block;
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  height: 9px;
  width: var(--value);
  min-width: 8px;
  border-radius: 999px;
  background: var(--progress-gradient);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.28);
}

.project-progress-line::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  height: 9px;
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 999px;
  background: #2a2f3f;
}

.project-progress-line b {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 800;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.market-pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
}

.market-pagination button {
  min-width: 86px;
  min-height: 38px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(17, 19, 26, 0.78);
  font-weight: 900;
}

.market-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.market-pagination span {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 900;
}

.empty-market {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.modal-open {
  overflow: hidden;
}

.trade-modal[hidden] {
  display: none;
}

.dev-buy-modal[hidden] {
  display: none;
}

.dev-buy-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.dev-buy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.dev-buy-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(14, 14, 18, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.dev-buy-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 24px;
}

.dev-buy-dialog h2 {
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: 28px;
}

.dev-buy-dialog p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.dev-buy-toggle,
.dev-buy-input,
.dev-buy-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dev-buy-toggle {
  justify-content: flex-end;
  margin-bottom: 14px;
  color: var(--text-primary);
  font-weight: 900;
}

.dev-buy-toggle input {
  display: none;
}

.dev-buy-toggle i {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.dev-buy-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 23px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.dev-buy-input {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 8px;
  background: #171a22;
}

.dev-buy-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 16px;
  color: var(--text-primary);
  background: transparent;
  font-size: 16px;
}

.dev-buy-input strong {
  min-width: 88px;
  padding: 16px;
  border-left: 1px solid rgba(0, 240, 255, 0.16);
  text-align: center;
}

.dev-buy-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.trade-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 26px;
}

.trade-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.trade-dialog {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100vw - 40px));
  max-height: calc(100vh - 46px);
  overflow: auto;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--radius);
  background: var(--bg-deep);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.68);
}

.trade-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 4;
  width: 36px;
  height: 36px;
  margin: 12px 12px -48px 0;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 50%;
  color: var(--text-accent);
  background: var(--bg-surface);
  font-size: 24px;
  line-height: 1;
}

.trade-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 24px;
}

.trade-section-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 8px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 999px;
  background: rgba(17, 19, 26, 0.72);
}

.trade-section-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.trade-section-tabs button.active {
  color: #fff;
  background: var(--neon-gradient);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.28);
}

.trade-modal[data-trade-view="info"] .chart-toolbar,
.trade-modal[data-trade-view="info"] .roo-chart,
.trade-modal[data-trade-view="info"] .trade-tabs,
.trade-modal[data-trade-view="info"] .trade-table,
.trade-modal[data-trade-view="info"] .swap-panel,
.trade-modal[data-trade-view="info"] .bonding-panel,
.trade-modal[data-trade-view="chart"] .swap-panel,
.trade-modal[data-trade-view="swap"] .trade-main,
.trade-modal[data-trade-view="swap"] .bonding-panel,
.trade-modal[data-trade-view="swap"] .token-info-panel,
.trade-modal[data-trade-view="swap"] .holder-panel {
  display: none;
}

.trade-modal[data-trade-view="chart"] .token-info-panel,
.trade-modal[data-trade-view="chart"] .holder-panel {
  display: block;
}

@media (min-width: 841px) {
  .trade-section-tabs {
    display: none;
  }

  .trade-modal[data-trade-view] .trade-main,
  .trade-modal[data-trade-view] .trade-side,
  .trade-modal[data-trade-view] .swap-panel,
  .trade-modal[data-trade-view] .bonding-panel,
  .trade-modal[data-trade-view] .token-info-panel,
  .trade-modal[data-trade-view] .holder-panel,
  .trade-modal[data-trade-view] .chart-toolbar,
  .trade-modal[data-trade-view] .roo-chart,
  .trade-modal[data-trade-view] .trade-tabs,
  .trade-modal[data-trade-view] .trade-table {
    display: block;
  }

  .trade-modal[data-trade-view] .trade-layout {
    display: grid;
  }

  .trade-modal[data-trade-view] .trade-side {
    display: grid;
  }
}

.trade-main,
.swap-panel,
.bonding-panel,
.token-info-panel,
.holder-panel {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: var(--radius-sm);
}

.trade-token-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.trade-token-id,
.token-info-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.trade-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.32), transparent 22%),
    var(--neon-gradient);
  font-size: 22px;
  font-weight: 950;
}

.trade-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.trade-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trade-name-row h2,
.token-info-panel h3,
.bonding-panel h3 {
  margin: 0;
}

.trade-name-row button {
  width: 30px;
  height: 30px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
}

.trade-token-id p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.contract-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.contract-copy,
.copy-contract-button {
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--text-accent);
  background: rgba(26, 29, 43, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.contract-copy {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-contract-button {
  color: #ffffff;
  background: var(--neon-gradient);
  border-color: transparent;
}

.trade-price-box {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 8px;
  min-width: max-content;
}

.trade-price-box strong {
  color: var(--text-accent);
  font-size: 19px;
}

.trade-price-box span {
  color: var(--green);
  font-weight: 900;
}

.trade-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 18px;
}

.trade-stats div {
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: var(--radius-sm);
}

.trade-stats span {
  color: var(--muted);
  font-size: 12px;
}

.trade-stats strong {
  margin-left: 6px;
  color: var(--text-primary);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #202020;
}

.chart-toolbar button {
  border: 0;
  padding: 0;
  color: #d5d5d5;
  background: transparent;
  font-weight: 800;
}

.chart-toolbar button.active {
  color: #37ff14;
}

.chart-toolbar span {
  flex: 1;
}

.roo-chart {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #171717;
}

.trade-chart-surface {
  width: 100%;
  height: 360px;
  padding-right: 24px;
}

.chart-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #37ff14;
  font-weight: 900;
}

.chart-attribution {
  position: absolute;
  right: 10px;
  bottom: 6px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  text-decoration: none;
}

.chart-attribution:hover {
  color: rgba(255, 255, 255, 0.72);
}

.chart-tools {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 10px;
  width: 48px;
  padding: 12px 8px;
  background: rgba(13, 14, 17, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-tools button {
  border: 0;
  color: #e8e8e8;
  background: transparent;
  font-size: 20px;
}

.chart-price-tag {
  position: absolute;
  right: 8px;
  top: 61%;
  padding: 4px 8px;
  color: #111;
  background: #37ff14;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(55, 255, 20, 0.22);
}

.trade-tabs {
  display: flex;
  gap: 24px;
  padding: 20px 20px 0;
}

.trade-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 0 12px;
  color: #fff;
  background: transparent;
  font-size: 16px;
  font-weight: 950;
}

.trade-tabs button.active {
  border-color: var(--green);
  color: var(--text-accent);
}

.trade-table {
  padding: 0 16px 18px;
}

.trade-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: 14px 10px;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  color: #d6d6d6;
  font-size: 12px;
}

.trade-row:not(.trade-row-head) {
  background: rgba(26, 29, 43, 0.58);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  border-top: 0;
}

.trade-row-head {
  color: var(--muted);
}

.trade-row.buy strong {
  color: var(--green);
}

.trade-row.sell strong {
  color: #ff5b49;
}

.trade-row button {
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 18px;
}

.trade-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.swap-panel,
.bonding-panel,
.token-info-panel {
  padding: 16px;
}

.swap-topline,
.bonding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mev-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.mev-toggle input {
  position: absolute;
  opacity: 0;
}

.mev-toggle span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #777;
  position: relative;
}

.mev-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.mev-toggle input:checked + span {
  background: linear-gradient(135deg, #00f0ff, #b100ff);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.34);
}

.mev-toggle input:checked + span::after {
  transform: translateX(18px);
}

.swap-topline > button {
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  font-weight: 900;
}

.swap-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 28px 0 14px;
  padding: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.swap-tabs button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.swap-tabs button.active {
  border-color: var(--green);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(177, 0, 255, 0.2));
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.16);
}

.swap-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
}

.token-buy-input {
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  border-color: rgba(177, 0, 255, 0.22);
}

.swap-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  font-size: 20px;
  font-weight: 900;
}

.swap-input button,
.route-button {
  border: 0;
  color: var(--text-secondary);
  background: transparent;
  font-weight: 900;
}

.token-buy-input button {
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 999px;
  padding: 6px 0;
  color: var(--text-accent);
  background: rgba(0, 240, 255, 0.08);
}

.quick-amounts,
.sell-percentages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0;
}

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

.quick-amounts button,
.sell-percentages button {
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  font-weight: 900;
}

.sell-percentages button {
  color: var(--text-accent);
  background: rgba(0, 240, 255, 0.08);
}

.swap-limit,
.swap-receive,
.token-balance,
.buy-cap-quote {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.buy-cap-quote {
  margin: 8px 0 4px;
  color: var(--text-accent);
  font-weight: 800;
}

.inline-copy-address {
  max-width: 100%;
  border: 0;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}

.token-balance {
  margin: 6px 0 0;
  text-align: right;
}

.swap-submit {
  width: 100%;
  border: 0;
  border-radius: 40px;
  padding: 17px;
  color: #ffffff;
  background: var(--neon-gradient);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.38);
  font-size: 17px;
  font-weight: 950;
}

.swap-submit:disabled {
  cursor: not-allowed;
  color: #8d8174;
  background: #2a2420;
}

.route-button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.bonding-head strong {
  color: var(--green);
}

.bonding-bar {
  height: 14px;
  margin: 14px 0;
  background: #2a2f3f;
  overflow: hidden;
  transform: skewX(-28deg);
}

.bonding-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--progress-gradient);
}

.bonding-panel p,
.token-info-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 13px;
}

.bonding-panel strong {
  color: var(--green);
}

.token-info-top {
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.token-info-panel h3 {
  font-size: 24px;
}

.holder-panel {
  padding: 16px;
}

.holder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.holder-head h3 {
  margin: 0;
}

.holder-head span,
.holder-head strong {
  color: var(--text-accent);
  font-weight: 900;
}

.holder-supply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(177, 0, 255, 0.06));
}

.holder-supply-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.holder-supply-row strong {
  color: var(--text-primary);
  font-size: 15px;
}

.holder-column-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.holder-list {
  display: grid;
  gap: 9px;
  margin-top: 8px;
  max-height: 360px;
  overflow: auto;
}

.holder-row {
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.holder-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.holder-row-main span {
  color: var(--text-primary);
  font-weight: 800;
}

.holder-row strong {
  color: var(--text-accent);
  font-weight: 900;
}

.holder-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.holder-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00f0ff, #b100ff);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.42);
}

.holder-row small {
  color: var(--muted);
  font-size: 11px;
}

.holder-empty {
  display: block;
  padding: 12px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.side-section {
  padding: 16px;
}

.config-list,
.summary-list {
  margin: 0;
}

.config-list div,
.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.config-list dd,
.summary-list dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.creator-layout {
  align-items: start;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

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

.field input {
  width: 100%;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: rgba(0, 240, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08), 0 0 18px rgba(0, 240, 255, 0.12);
}

.media-section,
.social-section,
.wallet-section,
.range-section,
.tax-panel {
  margin-top: 14px;
  padding: 16px;
}

.media-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.avatar-uploader {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px;
  overflow: hidden;
  border: 1px dashed rgba(0, 240, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.08), rgba(177, 0, 255, 0.035));
}

.avatar-uploader input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.avatar-uploader img {
  width: 100%;
  height: 100%;
  max-height: 188px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

.avatar-uploader span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 9, 15, 0.82);
  border: 1px solid var(--line-soft);
  font-weight: 800;
}

.avatar-meta strong {
  display: block;
  font-size: 18px;
}

.avatar-meta p {
  margin: 10px 0 0;
  line-height: 1.7;
  font-size: 14px;
}

.slider {
  width: 100%;
  accent-color: var(--text-accent);
}

.step-pills,
.threshold-pills {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.step-pills {
  flex-wrap: wrap;
}

.step-pills button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: transparent;
}

.step-pills button.active {
  color: #ffffff;
  background: var(--neon-gradient);
  border-color: transparent;
  font-weight: 900;
}

.tax-warning {
  border: 1px solid rgba(0, 240, 255, 0.36);
  background: rgba(0, 240, 255, 0.1);
  color: var(--text-accent);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-weight: 800;
}

.tax-warning.invalid {
  border-color: rgba(255, 93, 117, 0.45);
  background: rgba(255, 93, 117, 0.12);
  color: #ff91a2;
}

.tax-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #2a3141;
  border: 1px solid var(--line);
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dfe6f1;
  transition: transform 160ms ease;
}

.switch-control input:checked + .switch-track {
  background: var(--neon-gradient);
  border-color: rgba(0, 240, 255, 0.4);
}

.switch-control input:checked + .switch-track::after {
  transform: translateX(22px);
  background: #ffffff;
}

.tax-settings {
  margin-top: 16px;
}

.cap-settings {
  margin-top: 16px;
}

.tax-rate-panel {
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.tax-rate-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tax-rate-option {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 10px;
  font-weight: 900;
}

.tax-rate-option.active {
  color: #ffffff;
  background: var(--neon-gradient);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.18);
}

.tax-rate-input {
  margin-top: 12px;
}

.tax-allocation-head {
  margin-top: 16px;
}

.tax-content {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  background: conic-gradient(var(--violet) 0 32%, var(--pink) 32% 66%, var(--green) 66% 87%, var(--gold) 87% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #080c13;
}

.donut span {
  position: relative;
  z-index: 1;
  font-size: 32px;
  font-weight: 950;
}

.tax-sliders {
  display: grid;
  gap: 16px;
}

.tax-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 8px 14px;
  align-items: center;
  font-weight: 800;
}

.tax-row input {
  grid-column: 1 / -1;
}

.preview-panel {
  position: sticky;
  top: 86px;
}

.token-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: #0a1018;
}

.token-preview h2,
.token-preview p {
  margin: 0;
}

.token-preview p {
  color: var(--muted);
  margin-top: 4px;
}

.code-box {
  padding: 14px;
  margin-top: 16px;
}

.code-box pre {
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  margin: 0;
  color: #d6deff;
  white-space: pre-wrap;
  font-size: 12px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flow-card {
  padding: 18px;
}

.flow-card h2 {
  margin: 8px 0 10px;
}

.flow-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1180px) {
  .market-layout,
  .creator-layout {
    grid-template-columns: 1fr;
  }

  .market-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .roo-console::before {
    inset: 14px 14px auto auto;
    width: 46vw;
    min-width: 320px;
    transform: none;
  }

  .kangaroo-silhouette {
    top: -34px;
    right: -120px;
    width: 500px;
    min-width: 360px;
    opacity: 0.52;
  }

  .roo-search-hub {
    border-left: 0;
    border-top: 1px solid rgba(0, 240, 255, 0.14);
  }

  .trade-layout {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 840px) {
  .hero-grid,
  .form-grid,
  .media-grid,
  .tax-content,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .market-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-sort {
    margin-left: 0;
  }

  .market-extra-filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .market-extra-filters select {
    flex: 1;
    min-width: 150px;
  }

  .profile-summary,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .trade-modal {
    padding: 10px;
    align-items: start;
  }

  .trade-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .trade-layout {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .trade-section-tabs {
    order: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    gap: 8px;
    padding: 6px;
    background: rgba(10, 11, 14, 0.94);
    backdrop-filter: blur(16px);
  }

  .trade-section-tabs button {
    padding: 10px 8px;
    font-size: 14px;
  }

  .trade-token-head,
  .trade-stats {
    grid-template-columns: 1fr;
  }

  .trade-side {
    order: -1;
    width: 100%;
  }

  .swap-panel {
    padding: 16px;
  }

  .swap-tabs {
    margin: 18px 0 12px;
  }

  .swap-tabs button,
  .quick-amounts button,
  .sell-percentages button {
    padding: 10px;
  }

  .swap-input {
    padding: 10px 12px;
  }

  .swap-input input {
    font-size: 18px;
  }

  .swap-submit {
    padding: 14px;
    font-size: 15px;
  }

  .trade-main,
  .trade-side,
  .bonding-panel,
  .token-info-panel,
  .holder-panel {
    display: none;
  }

  .trade-main {
    overflow: hidden;
    order: 2;
  }

  .trade-modal[data-trade-view="info"] .trade-side,
  .trade-modal[data-trade-view="info"] .token-info-panel,
  .trade-modal[data-trade-view="info"] .holder-panel,
  .trade-modal[data-trade-view="chart"] .trade-main,
  .trade-modal[data-trade-view="swap"] .trade-side,
  .trade-modal[data-trade-view="swap"] .swap-panel {
    display: block;
  }

  .trade-token-head,
  .trade-stats,
  .chart-toolbar {
    display: none;
  }

  .trade-modal[data-trade-view="chart"] .roo-chart {
    display: block;
  }

  .trade-tabs {
    padding: 14px 12px 0;
    gap: 22px;
  }

  .trade-table {
    padding: 0 8px 12px;
    overflow-x: auto;
  }

  .trade-row {
    grid-template-columns: minmax(112px, 1fr) minmax(92px, 0.8fr) minmax(86px, 0.8fr);
    min-width: 330px;
    gap: 8px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .trade-row span:nth-child(2),
  .trade-row strong:nth-child(2),
  .trade-row strong:nth-child(4),
  .trade-row button {
    display: none;
  }

  .trade-row:not(.trade-row-head) {
    min-height: 42px;
    margin-top: 6px;
    border-left: 2px solid rgba(0, 240, 255, 0.32);
    border-radius: 10px;
  }

  .trade-price-box {
    justify-items: start;
  }

  .trade-chart-surface {
    height: 300px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    width: 100%;
    max-width: 100vw;
    padding-left: 0;
    overflow-x: hidden;
  }

  .rail-nav {
    display: none;
  }

  .ticker {
    display: none;
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 44px minmax(76px, 1fr) minmax(0, auto);
    gap: 10px;
    width: 100%;
    max-width: 100vw;
    padding: 10px;
  }

  .brand {
    min-width: 0;
    overflow: hidden;
  }

  .brand strong {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabs,
  .tabs {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tabs {
    justify-content: space-between;
  }

  .top-actions {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    display: grid;
    grid-template-columns: 62px 52px minmax(98px, 1fr);
    gap: 6px;
    align-items: center;
    width: auto;
  }

  .top-actions button,
  .tab {
    min-width: 0;
  }

  .network-chip,
  .wallet-button {
    padding: 9px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-toggle {
    width: auto;
  }

  .language-toggle button {
    min-width: 0;
    padding: 7px 8px;
    font-size: 12px;
  }

  .panel-page:not(#marketPanel) {
    padding: 12px;
  }

  .metric-row,
  .project-list,
  .market-search {
    grid-template-columns: 1fr;
  }

  .market-home {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 16px 10px 28px;
    overflow-x: hidden;
  }

  .market-hero {
    width: 100%;
    min-height: 0;
    gap: 14px;
    margin-bottom: 18px;
  }

  .roo-console {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 18px;
  }

  .roo-console::before {
    width: 220px;
    min-width: 0;
    opacity: 0.42;
  }

  .kangaroo-silhouette {
    top: -30px;
    right: -150px;
    width: 320px;
    min-width: 0;
    opacity: 0.28;
  }

  .kangaroo-copy {
    display: none;
  }

  .roo-console-copy {
    min-height: auto;
    padding: 12px;
  }

  .roo-console-copy h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .roo-console-copy p {
    font-size: 16px;
    line-height: 1.65;
  }

  .roo-search-hub {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .market-search {
    width: 100%;
    max-width: 100%;
  }

  .project-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-height: 138px;
    padding: 12px;
    border-radius: 18px;
    align-items: stretch;
  }

  .project-card::after {
    inset: 6px;
    border-radius: 14px;
  }

  .project-card::before {
    width: 92px;
    height: 92px;
    right: -34px;
    top: -34px;
  }

  .project-thumb {
    width: 92px;
    height: 92px;
    align-self: start;
    border-radius: 12px;
  }

  .project-thumb span {
    width: 58px;
    height: 64px;
    font-size: 22px;
  }

  .project-thumb button {
    width: 24px;
    height: 24px;
    top: 6px;
    right: 6px;
  }

  .project-title-row {
    gap: 8px;
  }

  .project-title-row h3 {
    font-size: 17px;
    line-height: 1.15;
  }

  .token-kind {
    margin-top: 3px;
    font-size: 11px;
  }

  .change-badge {
    font-size: 10px;
    padding: 4px 7px;
  }

  .project-facts {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 10px;
  }

  .project-facts div {
    padding: 6px;
    border-radius: 10px;
  }

  .project-facts dt {
    display: none;
  }

  .project-progress-line {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 7px;
    font-size: 11px;
  }

  .project-progress-line i,
  .project-progress-line::before {
    height: 8px;
  }

  .project-card-footer {
    padding-top: 6px;
    font-size: 10px;
  }

  .market-pagination {
    padding-bottom: 12px;
  }

  .market-pagination button {
    min-width: 78px;
    min-height: 34px;
    font-size: 12px;
  }

  .create-frame {
    font-size: 18px;
  }

  .hero-copy {
    min-height: auto;
  }
}
