/* DegensPro — cream waitlist landing + launchpad routes */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:wght@500;600;700&family=Oswald:wght@500;600;700&family=Outfit:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --cream: #F6E7C4;
  --cream-light: #FBF7EE;
  --cream-mid: #F3E4BE;
  --cream-soft: #FBF3DD;
  --cream-card: #F7EFDE;
  --ink: #3A2417;
  --ink-soft: #5A4230;
  --ink-deep: #2C1A10;
  --orange: #E8631E;
  --orange-bright: #E77123;
  --red: #C0331F;
  --gold: #F2A81D;
  --muted: #D8C494;
  --muted-brown: #8A5A2E;
  --card-border: #E2CE9E;
  --tan: #C4A574;
  --radius: 16px;
  --radius-pill: 999px;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Archivo Black', 'Oswald', sans-serif;
  --font-oswald: 'Oswald', sans-serif;
  --font-outfit: 'Outfit', sans-serif;
  --font-caps: 'Montserrat', 'Space Grotesk', sans-serif;
  --max: 1240px;
  --track: 0.28em;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: radial-gradient(ellipse at 50% 0%, #FBF7EE 0%, #F6E7C4 42%, #F0DCB0 100%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
[hidden] { display: none !important; }

/* Paper grain + vignette */
.paper-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(58,36,23,0.12) 100%);
}

/* Twinkling stars */
.bg-stars {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bg-stars span {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--ink);
  opacity: 0.14;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.08; transform: scale(0.7); }
  50% { opacity: 0.28; transform: scale(1.15); }
}

/* Floating planets */
.planet {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.planet-tl {
  width: 90px; height: 90px;
  left: 8%; top: 14%;
  background: radial-gradient(circle at 35% 32%, #E8D4A8, #C4A574 65%, #8A6A3E);
  box-shadow: inset -10px -8px 20px rgba(44,26,16,0.28);
  opacity: 0.7;
  animation: floaty 9s ease-in-out infinite;
}
.planet-left {
  width: 28px; height: 28px;
  left: 14%; top: 42%;
  background: radial-gradient(circle at 35% 30%, #5A4230, #2C1A10);
  opacity: 0.55;
  animation: floaty 7s ease-in-out infinite reverse;
}
.planet-right {
  width: 320px; height: 320px;
  right: -110px; top: 12%;
  background: radial-gradient(circle at 38% 32%, #E07A3A, #C0331F 50%, #7A3218 85%);
  box-shadow: inset -28px -22px 50px rgba(44,26,16,0.4);
  opacity: 0.85;
  animation: floaty 12s ease-in-out infinite;
}
.planet-sm {
  width: 14px; height: 14px;
  right: 22%; top: 38%;
  background: var(--ink);
  opacity: 0.2;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.app-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* —— Header (live: HOME TRADE EXPLORE | socials CONNECT) —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.75rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 60;
}
.nav-main {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-main a {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.88;
  transition: opacity 0.15s, color 0.15s;
}
.nav-main a:hover, .nav-main a.active { opacity: 1; color: var(--orange); }

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-left: auto;
  flex: 0 0 auto;
  width: auto;
}
.header-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--cream-light);
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(58,36,23,0.12);
  transition: transform 0.12s, background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.header-icon-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: translate(-1px, -1px);
}
.header-icon-btn svg { width: 18px; height: 18px; display: block; }
.header-icon-btn.active {
  background: var(--ink);
  color: var(--cream-light);
}
.socials { display: flex; gap: 0.35rem; align-items: center; }
.socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s;
}
.socials a:hover { opacity: 1; background: rgba(58,36,23,0.08); }
.socials svg { width: 15px; height: 15px; fill: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-caps);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  white-space: nowrap;
}
.btn:active { transform: translate(2px, 2px); }

.btn-connect {
  background: var(--ink-deep);
  color: var(--cream-light);
  letter-spacing: 0.18em;
  padding: 0.72rem 1.4rem;
  box-shadow: none;
}
.btn-connect:hover { background: var(--ink); }

.btn-stay {
  background: var(--cream-light);
  color: var(--ink-deep);
  border: 2px solid var(--ink-deep);
  box-shadow: 4px 4px 0 var(--orange), 7px 7px 0 var(--red);
  padding: 0.95rem 1.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}
.btn-stay:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--orange), 8px 8px 0 var(--red);
}
.btn-stay:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--orange), 4px 4px 0 var(--red);
}

.btn-claim {
  width: 100%;
  background: var(--ink-deep);
  color: var(--cream-light);
  letter-spacing: 0.18em;
  padding: 0.95rem 1.5rem;
  margin-top: 0.85rem;
  border-radius: var(--radius-pill);
}
.btn-claim:hover { background: var(--ink); }

.btn-primary {
  background: var(--cream-light);
  color: var(--ink-deep);
  border: 2px solid var(--ink-deep);
  box-shadow: 4px 4px 0 var(--orange), 7px 7px 0 var(--red);
  padding: 0.85rem 1.5rem;
  font-size: 0.8rem;
}
.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--orange), 8px 8px 0 var(--red);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 3px 3px 0 var(--red);
}
.btn-orange:hover { background: var(--orange-bright); }

.btn-ghost {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--muted);
}
.btn-ghost:hover { background: rgba(58,36,23,0.05); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.65rem; }

.menu-toggle {
  display: none;
  background: var(--ink);
  color: var(--cream);
  border: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Soft demo chip (replaces loud banner) */
.demo-chip {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 40;
  font-family: var(--font-caps);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(251,247,238,0.85);
  border: 1px solid var(--muted);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.7rem;
  backdrop-filter: blur(6px);
  opacity: 0.75;
}

/* —— Views —— */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 0;
  position: relative;
}
.view { display: none; animation: fadeIn 0.35s ease; }
.view.active {
  display: block;
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.view-home.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 88px);
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  position: relative;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Side decorative labels */
.side-label {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-caps);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.55;
  pointer-events: none;
}
.side-label i {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ink-soft);
  margin-top: 0.45rem;
  opacity: 0.6;
}
.side-label-l { left: clamp(0.75rem, 4vw, 2.5rem); text-align: left; }
.side-label-r { right: clamp(0.75rem, 4vw, 2.5rem); text-align: right; align-items: flex-end; }

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 1.5rem 1.25rem 1rem;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  width: min(148px, 36vw);
  height: auto;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 10px 20px rgba(192,51,31,0.22));
}
.hero-tagline {
  font-family: 'Oswald', 'Archivo Black', sans-serif;
  font-size: clamp(2.35rem, 7.2vw, 4.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  text-align: center;
}
.hero-tagline .line1 {
  color: var(--ink);
  display: block;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-tagline .line2 {
  display: block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.12em;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-lede {
  max-width: 36rem;
  margin: 0 auto 1.35rem;
  text-align: center;
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.55;
  color: var(--ink-soft, #5c4a3a);
}
.hero-lede strong { color: var(--ink); font-weight: 700; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.35rem;
}
.hero-ctas .btn { text-decoration: none; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 920px;
  margin: 0 auto 0.5rem;
}
.home-stat {
  background: var(--cream-soft, #fff8e8);
  border: 1px solid rgba(216,196,148,0.7);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  text-align: left;
  box-shadow: 0 3px 10px rgba(58,36,23,0.06);
}
.home-stat strong {
  display: block;
  font-family: var(--font-display, inherit);
  font-size: 0.98rem;
  color: var(--orange, #E8631E);
  margin-bottom: 0.2rem;
}
.home-stat span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft, #5c4a3a);
}
@media (max-width: 820px) {
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-section {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0.5rem auto 1.75rem;
  padding: 0 1rem;
}
.home-section-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 0 0 1rem;
  text-align: center;
  color: var(--ink);
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.how-steps li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--cream-light, #fbf7ee);
  border: 1.5px solid rgba(58,36,23,0.1);
  border-radius: 16px;
  padding: 1rem 0.95rem;
  box-shadow: 3px 3px 0 rgba(232,99,30,0.18);
}
.how-num {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--orange, #E8631E);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  font-family: var(--font-oswald, sans-serif);
}
.how-steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--ink);
}
.how-steps p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft, #5c4a3a);
}
@media (max-width: 980px) {
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .how-steps { grid-template-columns: 1fr; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.feature-card {
  background: var(--cream-soft, #fff8e8);
  border: 1px solid rgba(216,196,148,0.75);
  border-radius: 16px;
  padding: 1.05rem 1rem;
}
.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--ink);
}
.feature-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft, #5c4a3a);
}
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}


/* Legal / FAQ / Docs pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 1.35rem 1.5rem 1.6rem;
  text-align: left;
}
.legal-content h2 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
  color: var(--ink);
}
.legal-content h2:first-child { margin-top: 0.25rem; }
.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft, #5c4a3a);
}
.legal-content ul {
  margin: 0.35rem 0 0.75rem 1.15rem;
  padding: 0;
}
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a { color: var(--orange); }
.legal-foot {
  margin-top: 1.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 600;
}
.faq-static {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(58,36,23,0.1);
}
.faq-static:last-of-type { border-bottom: none; }
.faq-static h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--ink);
}
.faq-static p { margin: 0; }

/* Launch buy Max + upload progress */
.launch-buy-row .btn-max {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.launch-balance-line {
  margin-top: 0.4rem;
  margin-bottom: 0.15rem;
}
.upload-progress {
  margin-top: 0.65rem;
}
.upload-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(58,36,23,0.1);
  overflow: hidden;
  border: 1px solid rgba(216,196,148,0.6);
}
.upload-progress-fill {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange, #E8631E), #ff9a4a);
  animation: upload-indeterminate 1.1s ease-in-out infinite;
}
.upload-progress.is-done .upload-progress-fill {
  width: 100%;
  animation: none;
}
@keyframes upload-indeterminate {
  0% { transform: translateX(-120%); width: 40%; }
  50% { width: 55%; }
  100% { transform: translateX(280%); width: 40%; }
}
.upload-progress-label {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft, #5c4a3a);
}
.btn-launch:disabled,
.btn-launch[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

/* Aboard / rank card after claim */
.aboard-card {
  margin-top: 1.25rem;
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.15rem 1.5rem;
  box-shadow: 4px 4px 0 var(--orange);
  max-width: 360px;
}
.aboard-kicker {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.aboard-rank {
  margin: 0.35rem 0;
  font-family: var(--font-outfit);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.aboard-rank strong { color: var(--orange); font-size: 1.15rem; }
.aboard-email {
  font-size: 0.78rem;
  color: var(--muted-brown);
  margin-bottom: 0.75rem;
  word-break: break-all;
}

/* —— Landscape strip —— */
.landscape {
  margin-top: auto;
  height: min(280px, 38vh);
  min-height: 180px;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(246,231,196,0.4) 18%, #F3E4BE 55%, #E8D4A8 100%);
}
.landscape .sun {
  position: absolute;
  width: min(420px, 70vw);
  height: min(210px, 35vw);
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, #F2A81D 0%, #E8631E 45%, #C0331F 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 0 60px rgba(232,99,30,0.4);
}
.landscape .beam {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(120px, 22vw);
  height: 72%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(251,247,238,0.15));
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  opacity: 0.75;
  z-index: 2;
}
.landscape .road {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(280px, 50vw);
  height: 28%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(251,247,238,0.5), transparent);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  opacity: 0.55;
  z-index: 1;
}
.cloud {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  z-index: 1;
}
.cloud-l1 {
  width: 220px; height: 90px;
  left: 8%; bottom: 32%;
  background: radial-gradient(ellipse, rgba(232,99,30,0.45), transparent 70%);
}
.cloud-l2 {
  width: 160px; height: 70px;
  left: 18%; bottom: 40%;
  background: radial-gradient(ellipse, rgba(196,165,116,0.5), transparent 70%);
}
.cloud-r1 {
  width: 240px; height: 100px;
  right: 6%; bottom: 30%;
  background: radial-gradient(ellipse, rgba(192,51,31,0.4), transparent 70%);
}
.cloud-r2 {
  width: 140px; height: 60px;
  right: 22%; bottom: 42%;
  background: radial-gradient(ellipse, rgba(242,168,29,0.35), transparent 70%);
}
.pyramid {
  position: absolute;
  bottom: 22%;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid var(--ink-deep);
  opacity: 0.7;
  z-index: 2;
}
.py-l { left: calc(50% - 90px); }
.py-r { left: calc(50% + 62px); border-left-width: 10px; border-right-width: 10px; border-bottom-width: 16px; }
.dune-l, .dune-r {
  position: absolute;
  bottom: 0;
  width: 42%;
  height: 55%;
  background: var(--ink-deep);
  z-index: 3;
}
.dune-l {
  left: 0;
  clip-path: polygon(0 100%, 0 35%, 22% 18%, 48% 48%, 72% 28%, 100% 100%);
}
.dune-r {
  right: 0;
  clip-path: polygon(0 100%, 18% 40%, 40% 22%, 68% 48%, 100% 25%, 100% 100%);
}

/* Product sub-nav on secondary routes */
.product-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-caps);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.product-nav a { color: var(--ink-soft); opacity: 0.8; }
.product-nav a:hover { color: var(--orange); opacity: 1; }

/* —— Cards / product pages —— */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}
.token-card {
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(58,36,23,0.12);
  transition: transform 0.12s, box-shadow 0.12s;
  text-align: left;
}
.token-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--orange);
}
.token-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.token-emoji {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--cream-mid);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.token-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--font);
}
.token-card .sym {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-brown);
  text-transform: uppercase;
}
.token-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.token-meta strong {
  display: block;
  color: var(--ink-deep);
  font-size: 0.88rem;
  font-weight: 700;
}
.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-top: 0.65rem;
  font-family: var(--font-caps);
}
.badge-live { background: rgba(232,99,30,0.15); color: var(--orange); border: 1px solid var(--orange); }
.badge-grad { background: rgba(242,168,29,0.2); color: #7C4A1E; border: 1px solid var(--gold); }

.progress {
  height: 8px;
  background: var(--cream-mid);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.75rem;
  border: 1px solid rgba(58,36,23,0.15);
}
.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 4px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.35rem;
}
.page-sub { color: var(--ink-soft); margin-bottom: 1.5rem; font-size: 0.95rem; font-family: var(--font-outfit); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: center;
}
.search-input, .filter-select, .field input, .field textarea, .field select {
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  outline: none;
  box-shadow: 2px 2px 0 rgba(58,36,23,0.08);
  font-family: var(--font);
}
.search-input:focus, .filter-select:focus, .field input:focus, .field textarea:focus {
  border-color: var(--orange);
  box-shadow: 3px 3px 0 var(--orange);
}
.search-input { flex: 1; min-width: 180px; }
.filter-select { min-width: 140px; }

.panel {
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 5px 5px 0 rgba(58,36,23,0.1);
  max-width: 560px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.panel h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select { width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hint { font-size: 0.75rem; color: var(--muted-brown); margin-top: 0.35rem; }

/* Trade */
.trade-layout {
  display: grid;
  grid-template-columns: 1.4fr 360px;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2rem;
}
@media (max-width: 820px) {
  .trade-layout { grid-template-columns: 1fr; }
}
.chart-panel {
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 5px 5px 0 rgba(58,36,23,0.1);
  min-height: 0;
}
.chart-panel canvas { width: 100% !important; height: 200px !important; }
.trade-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.stat-box {
  background: var(--cream-soft);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem;
}
.stat-box .lbl {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-brown);
}
.stat-box .val {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.2rem;
}
.trade-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.trade-tabs button {
  flex: 1;
  padding: 0.65rem;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: transparent;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.trade-tabs button.active-buy {
  background: var(--orange);
  color: #fff;
  border-color: var(--ink);
}
.trade-tabs button.active-sell {
  background: var(--red);
  color: #fff;
  border-color: var(--ink);
}

/* Leaderboard */
.rank-hero {
  background: linear-gradient(135deg, var(--cream-light), var(--cream-mid));
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 6px 6px 0 var(--orange);
  margin-bottom: 1.5rem;
  text-align: center;
}
.rank-hero h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}
.rank-hero p { color: var(--ink-soft); margin: 0.5rem 0 1.25rem; }
.rank-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(58,36,23,0.1);
  margin-bottom: 2rem;
}
.rank-table th, .rank-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.88rem;
}
.rank-table th {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-brown);
  background: var(--cream-soft);
}
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr:hover td { background: rgba(232,99,30,0.06); }
.wallet-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* —— Modals —— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(58,36,23,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease;
}
.modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--cream-soft);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 20px 50px rgba(44,26,16,0.22);
  border: 1px solid rgba(216,196,148,0.7);
}
.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.25rem;
}
.modal-close:hover { color: var(--ink); }
.modal-title {
  font-family: var(--font-caps);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.modal-sub {
  font-family: var(--font-outfit);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
}
#waitlist-form input {
  width: 100%;
  background: var(--cream-mid);
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  outline: none;
  font-family: var(--font-outfit);
}
#waitlist-form input:focus {
  border-color: var(--orange);
}
#waitlist-form input::placeholder { color: var(--tan); }

.modal-wallet-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}
.wallet-icon { color: var(--orange); display: grid; place-items: center; }
.wallet-list { display: flex; flex-direction: column; gap: 0.55rem; }
.wallet-opt {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  width: 100%;
  background: var(--cream-light);
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font);
  text-align: left;
}
.wallet-opt:hover {
  border-color: var(--ink);
  background: #fff8ea;
}
.w-name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.w-select {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(58,36,23,0.15);
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
}
.site-footer .copy {
  font-family: var(--font-caps);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.footer-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.footer-links a:hover { color: var(--orange); }
.disclaimer {
  max-width: 640px;
  margin: 0.85rem auto 0;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--muted-brown);
  font-family: var(--font-outfit);
}

/* —— Toast —— */
.toast-wrap {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--ink-deep);
  color: var(--cream-light);
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 4px 4px 0 var(--orange);
  animation: fadeIn 0.25s ease;
  max-width: 320px;
  font-family: var(--font-outfit);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-soft);
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
}

/* —— Mobile header / nav (phones + narrow tablets) —— */
@media (max-width: 900px) {
  .site-header {
    position: relative;
    z-index: 60;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }
  .header-right {
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.45rem;
    width: auto;
    flex: 0 0 auto;
  }
  .socials { display: none !important; }
  /* Closed: fully removed from paint + hit-testing (no opacity ghosting) */
  .nav-main {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .nav-main.open {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    position: absolute !important;
    top: calc(100% + 0.35rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    background: var(--cream-light);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    z-index: 200;
    box-shadow: 5px 5px 0 var(--orange);
  }
  html[data-theme="dark"] .nav-main.open {
    background: var(--cream-card);
    border-color: var(--card-border);
    box-shadow: 5px 5px 0 rgba(240,122,53,0.45);
  }
  .nav-main.open a {
    opacity: 1;
    padding: 0.55rem 0.35rem;
  }
  .menu-toggle { display: grid; place-items: center; }
}

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .trade-stats { grid-template-columns: 1fr; }
  .planet-right { width: 160px; height: 160px; opacity: 0.45; right: -60px; }
  .planet-tl { width: 56px; height: 56px; opacity: 0.5; }
  .side-label { display: none; }
  .cd-box { min-width: 64px; padding: 0.65rem 0.55rem; }
  .landscape { height: 160px; min-height: 140px; }
}



/* —— PONS-style launch layout (DegensPro cream) —— */
.launch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .launch-layout { grid-template-columns: 1fr; }
}
.launch-form h3 { margin: 0 0 0.75rem; }
.opt { font-weight: 500; color: var(--muted-brown); text-transform: none; letter-spacing: 0; font-size: 0.75em; }
.image-picker .image-drop {
  width: 100%;
  min-height: 120px;
  border: 2px dashed rgba(58,36,23,0.28);
  border-radius: 16px;
  background: var(--cream-mid);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.image-picker .image-drop:hover { border-color: var(--orange); transform: translateY(-1px); }
.image-drop-idle { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.image-drop-preview {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.image-drop-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.paired-row { display: flex; flex-direction: column; gap: 0.35rem; }
.paired-row select {
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff8e8;
  padding: 0.7rem 0.9rem;
  font: inherit; font-weight: 600;
  color: var(--ink-deep);
}
.paired-hint, .hint { font-size: 0.78rem; color: var(--ink-soft); margin: 0.25rem 0 0; }
.hint.err { color: var(--red, #C0331F); font-weight: 600; }
.input-with-unit { display: flex; align-items: center; gap: 0.5rem; }
.input-with-unit input { flex: 1; }
.input-with-unit .unit, .fee-row .unit {
  font-weight: 700; font-size: 0.8rem; color: var(--muted-brown); letter-spacing: 0.06em;
}
.fee-row { display: flex; align-items: center; gap: 0.65rem; }
.fee-row input[type="range"] { flex: 1; accent-color: var(--orange); }
.fee-row input[type="number"] { width: 4.5rem; }
.advanced {
  margin-top: 0.75rem;
  border: 1px solid rgba(58,36,23,0.15);
  border-radius: 14px;
  background: rgba(251,243,221,0.6);
  padding: 0.35rem 0.85rem 0.85rem;
}
.advanced summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.55rem 0;
  list-style: none;
  color: var(--ink-deep);
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: '▸ '; color: var(--orange); }
.advanced[open] summary::before { content: '▾ '; }
.advanced-body { display: grid; gap: 0.75rem; padding-top: 0.25rem; }
.launch-due {
  margin: 1rem 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.btn-launch {
  width: 100%;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 0.95rem 1.2rem;
}
.launch-preview {
  position: sticky;
  top: 1rem;
  text-align: left;
}
.preview-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: var(--cream-mid);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.preview-art img { width: 100%; height: 100%; object-fit: cover; }
.preview-mono {
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}
.launch-preview h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.preview-ticker {
  margin: 0.15rem 0 0.85rem;
  color: var(--muted-brown);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.preview-stats {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.preview-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  border-bottom: 1px dashed rgba(58,36,23,0.12);
  padding-bottom: 0.35rem;
}
.preview-stats dt { color: var(--ink-soft); font-weight: 600; }
.preview-stats dd { margin: 0; font-weight: 700; color: var(--ink-deep); }

/* —— Token cards with photos —— */
.token-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.token-card-media {
  position: relative;
  background: var(--cream-mid);
}
.token-card-media .badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  margin: 0;
  z-index: 1;
}
.token-card-body { padding: 0.85rem 0.95rem 1rem; }
.token-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--cream-mid);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-caps), Oswald, sans-serif;
  letter-spacing: 0.04em;
  color: var(--orange);
  flex-shrink: 0;
  overflow: hidden;
}
.token-avatar.lg {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid rgba(58,36,23,0.12);
  font-size: 2.2rem;
}
.token-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.token-avatar.mono { background: linear-gradient(145deg, #FBF3DD, #E8D4A8); }
.token-emoji { /* legacy alias */
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--cream-mid);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.token-socials {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-brown);
}
.token-socials a { color: var(--orange); text-decoration: none; }
.token-socials a:hover { text-decoration: underline; }
.social-icon-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid rgba(58,36,23,0.18);
  background: var(--cream-soft);
  color: var(--ink);
  text-decoration: none !important;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.social-icon svg { width: 15px; height: 15px; display: block; }
.social-icon:hover {
  transform: translateY(-1px);
  border-color: var(--orange);
  background: #fff8e8;
  color: var(--orange);
}
.trade-head .social-icon-row { margin-top: 0.45rem; }
.stat-box .val-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
  font-weight: 600;
}
.balance-line {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.15rem 0 0.45rem;
  font-weight: 600;
}
.balance-line strong { color: var(--ink); font-weight: 700; }
.pct-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.pct-row button {
  appearance: none;
  border: 1.5px solid rgba(58,36,23,0.16);
  background: var(--cream-soft);
  color: var(--ink);
  border-radius: 9px;
  padding: 0.4rem 0.2rem;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.pct-row button:hover {
  border-color: var(--orange);
  background: #fff8e8;
  color: var(--orange);
}
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0.15rem 0 0.55rem;
}
.chart-tfs {
  display: inline-flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  background: rgba(58,36,23,0.04);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(58,36,23,0.1);
}
.chart-tf {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 7px;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.chart-tf.active {
  background: var(--cream-light);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(58,36,23,0.08);
  border: 1px solid rgba(58,36,23,0.12);
}
.chart-tf:hover:not(.active) { color: var(--orange); }
.quote-box {
  margin-top: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--cream-mid);
  border: 1px solid rgba(58,36,23,0.12);
  font-size: 0.9rem;
  line-height: 1.45;
}
.quote-box strong { font-weight: 700; }
.quote-box .muted { display: block; margin-top: 0.25rem; font-size: 0.78rem; }

.trade-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.trade-head .token-avatar.lg {
  width: 64px;
  height: 64px;
  aspect-ratio: auto;
  border-radius: 16px;
  border: 2px solid var(--ink);
  font-size: 1.2rem;
  flex: 0 0 64px;
}
.trade-head h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.trade-desc { font-size: 0.85rem; color: var(--ink-soft); margin: 0.2rem 0 0.35rem; }
.grad-row { margin-top: 0.75rem; font-size: 0.75rem; font-weight: 700; }
.grad-banner {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(242,168,29,0.18);
  border: 1px solid var(--gold);
  font-size: 0.85rem;
}
.claim-panel {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(232,99,30,0.1);
  border: 1px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.muted { color: var(--ink-soft); }
.chart-panel canvas { width: 100% !important; height: 260px !important; border-radius: 14px; border: 1px solid rgba(58,36,23,0.12); }

/* —— Explore sorts / CA / progress —— */
.progress-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.progress-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 2.2rem;
}
.token-ca-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.token-ca {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.btn-copy-ca,
#btn-copy-ca {
  appearance: none;
  border: 1.5px solid rgba(58, 36, 23, 0.18);
  background: var(--cream-soft, #fff8e8);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-copy-ca:hover,
#btn-copy-ca:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.ca-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.ca-text {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.grad-block { margin-top: 0.75rem; }
.grad-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.grad-note { margin-top: 0.4rem; font-size: 0.75rem; }

/* —— Profile —— */
.profile-gate {
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
}
.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.profile-head .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.wallet-mono {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.92rem;
  word-break: break-all;
  font-weight: 600;
}
.profile-sections {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .profile-sections { grid-template-columns: repeat(3, 1fr); }
}
.profile-list { margin-top: 0.65rem; }
.profile-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.15rem;
  border-bottom: 1px solid rgba(58, 36, 23, 0.08);
  text-decoration: none;
  color: inherit;
}
.profile-row:last-child { border-bottom: none; }
.fee-summary { margin-bottom: 0.5rem; }
.empty-state, .profile-gate .page-sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* —— Wallet modal EIP-6963 —— */
.wallet-opt {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  width: 100%;
}
.w-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}
.w-icon-fallback {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(58, 36, 23, 0.08);
  font-size: 0.95rem;
}
.wallet-hint { margin-top: 0.75rem; text-align: center; }
.toolbar .filter-select { min-width: 120px; }

/* —— Wallet wrap + connected menu —— */
.wallet-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.wallet-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 80;
  min-width: 240px;
  background: var(--cream-light);
  border: 1.5px solid var(--ink-deep);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(58, 36, 23, 0.18);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wallet-menu[hidden] { display: none !important; }
.wallet-menu-addr {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--ink-soft);
  padding: 0.45rem 0.55rem 0.55rem;
  border-bottom: 1px solid rgba(58, 36, 23, 0.1);
  margin-bottom: 0.15rem;
}
.wallet-menu-item {
  appearance: none;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.wallet-menu-item:hover { background: rgba(232, 99, 30, 0.12); }
.wallet-menu-danger { color: #C0331F; }

.wallet-opt-ico {
  flex: none;
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}
.wallet-opt-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  text-align: left;
  min-width: 0;
}
.wallet-opt-text strong {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.wallet-opt-text small {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.wallet-opt-missing .w-name { opacity: 0.85; }
.w-install { color: var(--orange) !important; opacity: 1 !important; }

/* —— Chart polish —— */
.chart-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.chart-mcap-label {
  font-family: var(--font-caps, var(--font));
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chart-mcap-label strong {
  font-family: var(--font);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-deep);
  margin-left: 0.35rem;
}
.chart-stage {
  position: relative;
}
.chart-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  pointer-events: none;
  color: rgba(58, 36, 23, 0.45);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.chart-caption[hidden] { display: none !important; }

.chart-stage { cursor: crosshair; }
#curve-chart { cursor: crosshair; }
.chart-float-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 128px;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: rgba(251, 246, 232, 0.96);
  box-shadow: 3px 3px 0 rgba(58,36,23,0.14);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink);
  transform: translate(12px, 12px);
  white-space: nowrap;
}
.chart-float-tip .tip-time {
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-brown, #7a6550);
  margin-bottom: 0.15rem;
}
.chart-float-tip .tip-mcap {
  font-weight: 700;
  font-size: 0.88rem;
}
.chart-float-tip .tip-price {
  color: var(--ink-soft);
  font-size: 0.7rem;
  margin-top: 0.1rem;
}
.chart-float-tip.is-pinned {
  border-color: var(--orange);
  box-shadow: 3px 3px 0 rgba(232,99,30,0.25);
}
.analytics-chart-card { position: relative; }
.analytics-float-tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: rgba(251, 246, 232, 0.97);
  box-shadow: 3px 3px 0 rgba(58,36,23,0.12);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transform: translate(10px, -110%);
}
.analytics-chart-card canvas { cursor: crosshair; }

/* Profile holdings / claim */
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.profile-holdings, .profile-launches, .profile-fees-panel {
  margin-top: 1rem;
}
.profile-holding-row, .profile-launch-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid rgba(58,36,23,0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.profile-holding-row:hover, .profile-launch-row:hover {
  background: rgba(232,99,30,0.05);
}
.profile-holding-meta, .profile-launch-meta { flex: 1; min-width: 0; }
.profile-holding-meta strong, .profile-launch-meta strong {
  display: block;
  font-size: 0.95rem;
}
.profile-holding-meta span, .profile-launch-meta span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.profile-holding-val, .profile-fee-val {
  text-align: right;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.profile-fee-val .sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.btn-claim-all {
  width: 100%;
  max-width: 320px;
  padding: 0.95rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin: 0.85rem 0 0.35rem;
}
.profile-stats .val { font-size: 1.25rem; font-weight: 800; }
.profile-stats .val-sub { font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; }


/* —— Dex links —— */
.dex-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.25rem;
}
.dex-hint {
  margin-top: 0.65rem;
}


/* —— DegensPro batch UX —— */
.home-launches {
  position: relative;
  z-index: 2;
  margin: 1.5rem auto 2.5rem;
  max-width: 1100px;
  padding: 1.25rem 1.35rem 1.5rem;
}
.home-launches-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.home-launches-title {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  margin: 0;
}
.home-launches-sub {
  margin: 0.25rem 0 0;
  color: var(--muted-brown, #7a6550);
  font-size: 0.9rem;
}
.home-toolbar { margin-bottom: 0.85rem; gap: 0.5rem; }

.field-err { color: #C0331F; font-weight: 600; }
input.invalid, textarea.invalid {
  border-color: #C0331F !important;
  outline-color: #C0331F;
}

.ca-full-row, .ca-full-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: var(--cream-soft, #fff8e8);
  border: 1.5px solid rgba(58,36,23,0.12);
  border-radius: 12px;
}
.ca-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-brown, #7a6550);
}
.ca-full, code.ca-full {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--ink, #3a2417);
  flex: 1;
  min-width: 12rem;
}

.creator-line {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-soft, #5a4030);
}
.creator-line a { color: var(--orange, #e8631e); font-weight: 600; }

.trade-detail { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 2rem; }
.trade-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
}
.trade-head-meta { flex: 1; min-width: 0; }
.trade-stats-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.grad-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.grad-row .progress { flex: 1; height: 8px; }

.chart-stage {
  position: relative;
  margin-top: 0.5rem;
}
.chart-stage canvas {
  width: 100% !important;
  height: 280px !important;
  border-radius: 14px;
  border: 1px solid rgba(58,36,23,0.1);
  background: #FBF6E8;
}
.chart-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-brown, #7a6550);
  pointer-events: none;
}

.activity-panel { margin-top: 0.25rem; }
.activity-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.activity-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted-brown, #7a6550);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.activity-tab.active {
  background: rgba(58,36,23,0.08);
  color: var(--ink, #3a2417);
}
.activity-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted-brown, #7a6550);
  background: rgba(58,36,23,0.06);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.activity-list { display: flex; flex-direction: column; gap: 0.35rem; max-height: 420px; overflow: auto; }
.activity-row, .holder-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(58,36,23,0.06);
  font-size: 0.85rem;
}
.activity-row.buy .side-ico { color: #2F9E44; }
.activity-row.sell .side-ico { color: #C0331F; }
.side-ico { font-weight: 800; width: 1.2rem; text-align: center; }
.activity-main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.activity-main .who, .activity-meta .sub { font-size: 0.72rem; color: var(--muted-brown, #7a6550); }
.activity-meta { text-align: right; }
.activity-meta strong { display: inline; }
.activity-row .when { font-size: 0.75rem; color: var(--muted-brown, #7a6550); }
.tx-link { font-size: 0.72rem; font-weight: 700; color: var(--orange, #e8631e); }
.holder-row { grid-template-columns: auto 1fr auto auto; }
.holder-row .rank { font-weight: 700; color: var(--muted-brown, #7a6550); }
.holder-row em { font-style: normal; font-weight: 700; color: var(--orange, #e8631e); }

.analytics-banner {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}
.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.analytics-card {
  background: var(--cream-light, #fbf6e8);
  border: 2px solid var(--ink, #3a2417);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 3px 3px 0 rgba(58,36,23,0.08);
}
.analytics-card .lbl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-brown, #7a6550);
}
.analytics-card .val {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 0.25rem;
}
.analytics-card .val-sub {
  font-size: 0.75rem;
  color: var(--muted-brown, #7a6550);
  font-weight: 600;
}
.analytics-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.analytics-chart-card h3,
.analytics-table-wrap h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}
.analytics-chart-card canvas {
  width: 100% !important;
  height: 200px !important;
  border-radius: 12px;
  background: #FBF6E8;
  border: 1px solid rgba(58,36,23,0.08);
}
.analytics-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.analytics-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.analytics-table th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-brown, #7a6550);
  padding: 0.4rem;
  border-bottom: 1px solid rgba(58,36,23,0.12);
}
.analytics-table td { padding: 0.55rem 0.4rem; border-bottom: 1px solid rgba(58,36,23,0.06); vertical-align: middle; }
.analytics-row { cursor: pointer; }
.analytics-row:hover { background: rgba(232,99,30,0.06); }
.analytics-tok { display: flex; align-items: center; gap: 0.55rem; }
.analytics-tok .sym { display: block; font-size: 0.75rem; color: var(--muted-brown, #7a6550); }

.profile-gate { text-align: center; padding: 2rem 1.25rem; }
.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.profile-stats { display: flex; gap: 1.25rem; }
.section-title { margin: 1rem 0 0.65rem; font-size: 1.05rem; }

@media (max-width: 820px) {
  .analytics-charts { grid-template-columns: 1fr; }
  .trade-stats-inline { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: auto 1fr auto; }
  .activity-row .when, .activity-row .tx-link { grid-column: 2 / -1; }
}



/* —— Home launches: compact horizontal cards —— */
#home-tokens-grid.token-grid,
.home-launches .token-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
  align-items: stretch;
  padding-bottom: 0.25rem;
}
.home-launches {
  position: relative;
  z-index: 2;
  margin: 1.25rem auto 2rem;
  max-width: min(1280px, calc(100% - 1.5rem));
  width: 100%;
  padding: 1rem 1.1rem 1.15rem;
}
.home-launches .token-card {
  width: 152px;
  max-width: 152px;
  flex: 0 0 152px;
  padding: 0;
  box-shadow: 3px 3px 0 rgba(58,36,23,0.1);
}
.home-launches .token-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--orange);
}
.home-launches .token-card-media {
  height: 96px;
  overflow: hidden;
}
.home-launches .token-avatar.lg {
  width: 100%;
  height: 96px;
  aspect-ratio: auto;
  font-size: 1.25rem;
  border-radius: 0;
}
.home-launches .token-card-body {
  padding: 0.5rem 0.55rem 0.6rem;
}
.home-launches .token-card h3 {
  font-size: 0.78rem;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-launches .token-card .sym {
  font-size: 0.65rem;
  margin-top: 0.1rem;
}
.home-launches .token-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  margin-top: 0.35rem;
  font-size: 0.62rem;
}
.home-launches .token-meta span {
  display: block;
  opacity: 0.7;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-launches .token-meta strong {
  font-size: 0.68rem;
}
.home-launches .token-card .progress {
  height: 5px;
  margin-top: 0.4rem;
}
.home-launches .token-socials,
.home-launches .social-icon-row {
  display: none !important;
}
.home-launches .token-card-media .badge {
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.55rem;
  padding: 0.15rem 0.35rem;
}

.aboard-card { display: none !important; }

/* —— Token detail: full-width horizontal layout —— */
#view-trade.active {
  max-width: none !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.75rem 1.5rem 2rem;
  box-sizing: border-box;
}
#view-trade.active > .page-title,
#view-trade.active > .page-sub {
  display: none;
}
#view-trade.active > .product-nav {
  max-width: 1440px;
  margin: 0 auto 0.75rem;
}

.trade-detail {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
}

/* —— Token page v2 —— */
.td-v2 { gap: 1.1rem; }

.td-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.15rem;
  align-items: stretch;
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(58,36,23,0.1);
  padding: 0 1.25rem 0 0;
  overflow: hidden;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.td-hero-main {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
  padding: 1.15rem 0 1.15rem 1.15rem;
}
.td-media-tile {
  position: relative;
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  flex: none;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: linear-gradient(145deg, #FBF3DD, #F0D9A8);
  box-shadow: 4px 4px 0 rgba(232, 99, 30, 0.22);
  overflow: hidden;
}
.td-media-tile .td-media-photo,
.td-media-tile .token-avatar {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  aspect-ratio: auto;
  font-size: 1.55rem !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}
.td-media-tile .td-media-photo img,
.td-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.td-media-pip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #E8631E;
  box-shadow: 1px 1px 0 rgba(58,36,23,0.2);
}
.td-media-pip.is-ready { background: #F5B942; }
.td-media-pip.is-grad { background: #3D9A4A; }
.td-hero-copy {
  min-width: 0;
  flex: 1;
  padding: 0.15rem 0 0.15rem 0;
  align-self: center;
}
.td-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
}
.td-name {
  font-family: var(--font-display), 'Archivo Black', sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.td-sym {
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}
.td-status {
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #fff6e8;
  color: var(--ink);
}
.td-status.is-ready { background: #ffe0a8; }
.td-status.is-grad {
  background: #d8f5c8;
  border-color: #2f6b2f;
  color: #1f4d1f;
}
.td-desc {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 52ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.45rem;
}
.td-ca {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream-soft, #f7efe0);
  border: 1.5px solid var(--card-border, rgba(58,36,23,0.18));
  border-radius: 999px;
  padding: 0.28rem 0.35rem 0.28rem 0.7rem;
  max-width: 100%;
}
.td-ca-lbl {
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-brown);
}
.td-ca-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  background: none;
  border: 0;
  padding: 0;
  max-width: min(340px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.td-ca-copy {
  appearance: none;
  border: 1.5px solid var(--ink);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
}
.td-ca-copy:hover { filter: brightness(1.05); }
.td-creator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.td-creator a { color: var(--orange); font-weight: 600; }
.td-creator .dot { opacity: 0.45; }

.td-hero-side {
  min-width: 0;
  padding: 1.15rem 0 1.15rem 0;
  display: flex;
  align-items: stretch;
}
.td-grad-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(160deg, #fff8ec 0%, #ffe8c8 100%);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 3px 3px 0 rgba(58,36,23,0.08);
}
.td-grad-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-brown);
}
.td-grad-top strong {
  font-size: 1.35rem;
  color: var(--orange);
  letter-spacing: 0;
}
.td-grad-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(58,36,23,0.1);
  border: 1.5px solid var(--ink);
  overflow: hidden;
}
.td-grad-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e8631e, #c0331f);
  border-radius: 999px;
}
.td-grad-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.td-grad-card .grad-banner {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
}
.td-grad-card .dex-hint {
  font-size: 0.75rem;
  margin: 0;
}

.td-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}
.td-stat {
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  box-shadow: 3px 3px 0 rgba(58,36,23,0.07);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.td-stat .lbl {
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-brown);
}
.td-stat .val {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
  color: var(--ink);
}
.td-stat .sub {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.td-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}
.td-chart {
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(58,36,23,0.1);
  padding: 0.9rem 1rem 1rem;
  min-width: 0;
  max-width: none !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  box-sizing: border-box;
}
.td-chart .chart-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  margin-top: 0.35rem;
}
.td-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}
.td-chart-mcap {
  font-family: var(--font-caps), Oswald, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-brown);
}
.td-chart-mcap strong {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-family: inherit;
}
.td-chart .chart-stage canvas,
.td-chart #curve-chart {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px !important;
  max-height: none !important;
  flex: 1 1 auto;
  border-radius: 14px;
  border: 1px solid rgba(58,36,23,0.1);
  background: #FBF6E8;
  display: block;
}

.td-trade {
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(58,36,23,0.1);
  padding: 1rem 1.1rem 1.15rem;
  position: relative;
  top: auto;
  max-width: none;
  margin-bottom: 0;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.td-activity {
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(58,36,23,0.1);
  padding: 1rem 1.15rem 1.15rem;
  width: 100%;
  max-width: none !important;
  margin-bottom: 0;
  box-sizing: border-box;
}
.td-activity .activity-tabs {
  margin-bottom: 0.75rem;
}
.td-activity .activity-tab {
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 0.4rem 0.85rem;
}
.td-activity .activity-tab.active {
  border-color: var(--ink);
  background: #fff6e8;
  box-shadow: 2px 2px 0 rgba(58,36,23,0.08);
}

.bubble-map-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#bubble-map {
  width: 100% !important;
  height: 360px !important;
  max-height: 360px;
  display: block;
  background: var(--cream-soft, #f7efe0);
  border: 1px solid var(--card-border, rgba(58,36,23,0.15));
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .td-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .td-hero { grid-template-columns: 1fr; padding-right: 0; }
  .td-hero-side { padding: 0 1.15rem 1.15rem; }
  .td-stage { grid-template-columns: 1fr; }
  .td-chart, .td-trade { min-height: 0; height: auto; }
  .td-trade { position: static; }
  #view-trade.active {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem 1rem 2rem;
  }
  .home-launches .token-card {
    width: 136px;
    max-width: 136px;
    flex-basis: 136px;
  }
  .home-launches .token-card-media,
  .home-launches .token-avatar.lg {
    height: 84px;
  }
}
@media (max-width: 640px) {
  .td-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-media-tile {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
  }
  .td-hero-main { padding: 1rem; gap: 0.85rem; }
  .td-ca-val { max-width: 46vw; }
}


/* Token page v2: never inherit .panel max-width */
#view-trade .trade-detail,
#view-trade .td-hero,
#view-trade .td-stats,
#view-trade .td-stage,
#view-trade .td-chart,
#view-trade .td-trade,
#view-trade .td-activity {
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
}
#view-trade .td-trade {
  max-width: 420px !important;
}
@media (max-width: 980px) {
  #view-trade .td-trade { max-width: none !important; }
}


/* —— Quote picker (paired asset) —— */
.quote-picker { position: relative; width: 100%; }
.quote-picker-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff8e8;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink-deep);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.quote-picker-btn:hover { border-color: var(--orange); transform: translateY(-1px); }
.quote-picker-logo {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; background: #e8eaed; flex-shrink: 0;
  border: 2px solid #2f9e6e;
  box-shadow: 0 0 8px rgba(212,175,120,0.55), 0 0 12px rgba(47,158,110,0.35);
  box-sizing: border-box;
}
.quote-picker-text { display: flex; flex-direction: column; gap: 0.05rem; flex: 1; min-width: 0; }
.quote-picker-sym { font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }
.quote-picker-meta { font-size: 0.72rem; font-weight: 500; color: var(--muted-brown); }
.quote-picker-chevron { color: var(--ink-soft); font-size: 0.85rem; }
.quote-picker-panel {
  position: absolute;
  z-index: 40;
  left: 0; right: 0;
  top: calc(100% + 6px);
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 6px 0 rgba(58,36,23,0.18);
  overflow: hidden;
  max-height: min(360px, 55vh);
  display: flex;
  flex-direction: column;
}
.quote-picker-search {
  border: 0;
  border-bottom: 1px solid var(--card-border);
  background: #fffaf0;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink-deep);
  outline: none;
}
.quote-picker-search:focus { box-shadow: inset 0 0 0 2px rgba(232,99,30,0.35); }
.quote-picker-list {
  overflow-y: auto;
  padding: 0.35rem;
  flex: 1;
}
.quote-picker-group {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-brown);
  padding: 0.45rem 0.55rem 0.25rem;
}
.quote-picker-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  text-align: left;
  color: var(--ink-deep);
  font: inherit;
}
.quote-picker-item:hover,
.quote-picker-item.is-active {
  background: rgba(232,99,30,0.12);
}
.quote-picker-item.is-active { outline: 1.5px solid rgba(232,99,30,0.45); }
.quote-picker-item-logo {
  position: relative;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #7bc49a, #2f9e6e);
  box-shadow: 0 0 10px rgba(212,175,120,0.4), 0 0 14px rgba(47,158,110,0.28);
  overflow: hidden; flex-shrink: 0;
  color: #FBF7EE;
}
.quote-picker-item-logo img {
  position: absolute; inset: 2px;
  width: calc(100% - 4px); height: calc(100% - 4px);
  border-radius: 50%; object-fit: cover; background: #e8eaed;
  border: 2px solid #2f9e6e;
  box-shadow: 0 0 8px rgba(212,175,120,0.55), 0 0 12px rgba(47,158,110,0.35);
  box-sizing: border-box;
}
.quote-picker-fallback {
  font-size: 0.65rem; font-weight: 800; color: #FBF7EE;
  letter-spacing: 0.02em; line-height: 1;
}
.quote-picker-item-text { display: flex; flex-direction: column; min-width: 0; }
.quote-picker-item-text .sym { font-weight: 700; line-height: 1.15; }
.quote-picker-item-text .meta { font-size: 0.7rem; color: var(--muted-brown); font-weight: 500; }
.quote-picker-empty { padding: 1rem; text-align: center; color: var(--muted-brown); font-weight: 600; }
/* Theme toggle icons: driven by data-theme so contrast is correct before JS */
#btn-theme-toggle .icon-sun,
#btn-theme-toggle .icon-moon { display: none !important; }
html:not([data-theme="dark"]) #btn-theme-toggle .icon-moon,
html[data-theme="light"] #btn-theme-toggle .icon-moon { display: block !important; }
html[data-theme="dark"] #btn-theme-toggle .icon-sun { display: block !important; }
#btn-theme-toggle {
  color: var(--ink);
  background: var(--cream-light);
  border: 2px solid var(--ink);
}
html[data-theme="dark"] #btn-theme-toggle {
  background: #1a1510;
  border: 2px solid var(--orange);
  color: #FBF7EE;
  box-shadow: 2px 2px 0 rgba(240,122,53,0.4);
}
html[data-theme="dark"] #btn-theme-toggle:hover,
html[data-theme="dark"] #btn-theme-toggle:focus-visible {
  background: var(--orange);
  color: #1a1008;
  border-color: var(--orange-bright);
}
html[data-theme="dark"] #btn-theme-toggle svg,
html[data-theme="dark"] #btn-theme-toggle path {
  fill: currentColor;
  color: inherit;
}

/* —— Night / dark theme —— */
html[data-theme="dark"],
body.theme-dark {
  color-scheme: dark;
}
html[data-theme="dark"] {
  --cream: #1a1510;
  --cream-light: #221c16;
  --cream-mid: #2a221a;
  --cream-soft: #1e1914;
  --cream-card: #241e17;
  --ink: #F3E6D0;
  --ink-soft: #C9B08E;
  --ink-deep: #FBF3E4;
  --orange: #F07A35;
  --orange-bright: #FF8B45;
  --red: #F0715E;
  --gold: #F2B84A;
  --muted: #4A3B2C;
  --muted-brown: #B89672;
  --card-border: #3A2E22;
  --tan: #8A6E4E;
}
html[data-theme="dark"] body,
body.theme-dark {
  background: radial-gradient(ellipse at 50% 0%, #1a1510 0%, #120f0c 45%, #0e0c0a 100%);
  background-attachment: fixed;
  color: var(--ink);
}
html[data-theme="dark"] .paper-grain {
  opacity: 0.18;
  mix-blend-mode: soft-light;
}
html[data-theme="dark"] .vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}
html[data-theme="dark"] .site-header {
  background: rgba(14,12,10,0.82);
  border-bottom-color: var(--card-border);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .nav-main a {
  color: var(--ink-soft);
}
html[data-theme="dark"] .nav-main a.active,
html[data-theme="dark"] .nav-main a:hover {
  color: var(--ink-deep);
}
html[data-theme="dark"] .header-icon-btn:not(#btn-theme-toggle),
html[data-theme="dark"] .socials a {
  background: var(--cream-mid);
  border-color: var(--card-border);
  color: var(--ink);
}
html[data-theme="dark"] .header-icon-btn:not(#btn-theme-toggle):hover,
html[data-theme="dark"] .header-icon-btn:not(#btn-theme-toggle).active {
  background: var(--orange);
  color: #1a1008;
  border-color: var(--orange);
}
html[data-theme="dark"] .menu-toggle {
  background: var(--orange);
  color: #1a1008;
}
html[data-theme="dark"] .btn-connect {
  background: var(--orange);
  color: #1a1008;
  border-color: var(--orange);
}
html[data-theme="dark"] .btn-connect:hover {
  background: var(--orange-bright);
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .token-card,
html[data-theme="dark"] .launch-preview,
html[data-theme="dark"] .wallet-menu,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .aboard-card,
html[data-theme="dark"] .td-hero,
html[data-theme="dark"] .td-chart,
html[data-theme="dark"] .td-trade,
html[data-theme="dark"] .td-activity,
html[data-theme="dark"] .td-stage {
  background: var(--cream-card);
  border-color: var(--card-border);
  color: var(--ink);
}
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .filter-select,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .quote-picker-btn,
html[data-theme="dark"] .quote-picker-panel,
html[data-theme="dark"] .quote-picker-search,
html[data-theme="dark"] .paired-row select,
html[data-theme="dark"] .image-drop {
  background: #16120e;
  border-color: var(--card-border);
  color: var(--ink-deep);
}
html[data-theme="dark"] .quote-picker-panel {
  box-shadow: 4px 6px 0 rgba(0,0,0,0.45);
}
html[data-theme="dark"] .quote-picker-item:hover,
html[data-theme="dark"] .quote-picker-item.is-active {
  background: rgba(240,122,53,0.18);
}
html[data-theme="dark"] .quote-picker-logo,
html[data-theme="dark"] .quote-picker-item-logo img {
  background: #3a3f46;
  border-color: #3cb87a;
  box-shadow: 0 0 8px rgba(212,175,120,0.45), 0 0 14px rgba(60,184,122,0.4);
}

html[data-theme="dark"] .hint,
html[data-theme="dark"] .paired-hint,
html[data-theme="dark"] .opt,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .preview-ticker {
  color: var(--muted-brown);
}
html[data-theme="dark"] .btn-orange,
html[data-theme="dark"] .btn-launch {
  background: var(--orange);
  color: #1a1008;
  border-color: #c45a18;
}
html[data-theme="dark"] .btn-orange:hover,
html[data-theme="dark"] .btn-launch:hover {
  background: var(--orange-bright);
}
html[data-theme="dark"] .advanced {
  background: rgba(30,25,20,0.7);
  border-color: var(--card-border);
}
html[data-theme="dark"] .product-nav a { color: var(--ink-soft); }
html[data-theme="dark"] .product-nav a.active {
  color: var(--ink-deep);
  border-color: var(--orange);
}
html[data-theme="dark"] .demo-chip {
  background: var(--cream-mid);
  color: var(--gold);
  border-color: var(--card-border);
}
html[data-theme="dark"] .bg-stars span {
  background: #F3E6D0;
  opacity: 0.55;
}
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .view-title,
html[data-theme="dark"] .section-title {
  color: var(--ink-deep);
}
html[data-theme="dark"] .token-avatar,
html[data-theme="dark"] .preview-art {
  background: var(--cream-mid);
  border-color: var(--card-border);
}
html[data-theme="dark"] .wallet-menu-item:hover {
  background: rgba(240,122,53,0.15);
}
html[data-theme="dark"] .modal-backdrop {
  background: rgba(0,0,0,0.72);
}

.btn-hero-primary,
.btn-hero-secondary {
  min-width: 168px;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-oswald, var(--font-display), sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-hero-primary {
  box-shadow: 4px 4px 0 rgba(58,36,23,0.85);
}
.btn-hero-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(58,36,23,0.85);
}
.btn-hero-secondary {
  border-width: 2px;
  background: var(--cream-light, #fbf7ee);
}
