/* -----------------------------------------------------------------------
   Token Creator — Premium Black Glass theme
   Matches the mascot logo: pure near-black base, saturated neon-green glow,
   crisp white type. Dark frosted glass (heavy blur + saturation) sits over
   a colorful animated mesh so panels actually refract light instead of
   reading as flat tinted boxes; every glass surface gets a faint light-
   catching rim at its top edge plus a soft green brand-glow ring. Film
   grain adds a filmic, non-generic texture.
   ----------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #050806;
  --bg-alt: #090d0a;
  --ink: #050806;

  --white: #f3f9f4;
  --text: #e6f0e8;
  --text-soft: #9caea2;
  --text-faint: #667069;

  --green: #ccff00;
  --green-bright: #d6f542;
  --green-deep: #9acd00;
  --green-glow: rgba(204, 255, 0, 0.22);
  --green-wash: rgba(204, 255, 0, 0.1);
  --green-wash-strong: rgba(204, 255, 0, 0.16);

  --red: #ff5c5c;
  --line: var(--border);

  /* ---- dark glass surfaces ---- */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-soft: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --surface: var(--glass);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-hover: rgba(255, 255, 255, 0.11);

  --blur: blur(30px) saturate(160%);
  --blur-sm: blur(16px) saturate(150%);

  --border-w: 1px;
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.4);
  --shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 34px 80px -16px rgba(0, 0, 0, 0.75);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(204, 255, 0, 0.1);
  --edge-strong: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(204, 255, 0, 0.16);

  --radius: 20px;
  --radius-sm: 12px;

  --font-display: "Sora", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body { position: relative; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hide-mobile { display: inline; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Animated gradient-mesh background + grain ----------------
   .bg-grid is a single empty, fixed, full-viewport div on every page.
   Its ::before/::after carry large, saturated neon-green fields drifting
   slowly — the color behind the glass that makes it read as real glass
   instead of a flat tinted panel. Grain sits on top, static, very low
   opacity, for a filmic premium texture instead of flat digital black. */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    var(--noise),
    radial-gradient(1100px 700px at 10% -10%, rgba(204, 255, 0, 0.22), transparent 58%),
    radial-gradient(900px 650px at 100% 6%, rgba(57, 255, 94, 0.10), transparent 55%),
    radial-gradient(1000px 800px at 50% 118%, rgba(0, 130, 20, 0.14), transparent 60%),
    linear-gradient(180deg, #06090a 0%, #050807 55%, #030504 100%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 140px 140px, auto, auto, auto, auto;
  background-blend-mode: overlay, normal, normal, normal, normal;
}
.bg-grid::before,
.bg-grid::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
.bg-grid::before {
  width: 620px; height: 620px;
  top: -170px; left: -140px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.55), rgba(204, 255, 0, 0) 70%);
  opacity: 0.55;
  animation: drift-a 28s ease-in-out infinite alternate;
}
.bg-grid::after {
  width: 560px; height: 560px;
  top: 24vh; right: -180px;
  background: radial-gradient(circle, rgba(57, 255, 94, 0.4), rgba(57, 255, 94, 0) 70%);
  opacity: 0.32;
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, 90px) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-80px, -60px) scale(1.1); }
}

/* ---------------- Ticker ---------------- */

.ticker {
  background: #000;
  color: var(--green-bright);
  border-bottom: var(--border-w) solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 30;
}
#site-ticker { min-height: 34px; background: #000; display: block; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll 26s linear infinite;
  padding: 8px 0;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}
.ticker-item .dot { color: var(--green-bright); text-shadow: 0 0 8px var(--green-glow); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Topbar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 8, 6, 0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: var(--border-w) solid var(--border);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-inner .main-nav { margin: 0 auto; }
.topbar-inner .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.35), 0 4px 16px -4px var(--green-glow);
}
.brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }
.brand-chain { color: var(--text-faint); font-size: 12px; font-family: var(--font-mono); }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text-soft); position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--green-bright); transform: scaleX(0); transform-origin: left;
  transition: transform 0.15s ease;
  box-shadow: 0 0 8px var(--green-glow);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }

/* ---------------- Buttons ---------------- */

.btn {
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-weight: 600;
  font-size: 13.5px;
  font-family: var(--font-body);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm), var(--edge);
  background: var(--glass-strong);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--text);
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow), var(--edge-strong); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(155deg, var(--green-bright) 0%, var(--green) 55%, var(--green-deep) 100%);
  color: #03130a;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.5), 0 12px 32px -8px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.6), 0 18px 40px -8px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45); filter: brightness(1.05); }

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn-outline:hover:not(:disabled) { background: var(--glass-soft); }

.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-soft); backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn-ghost:hover:not(:disabled) { color: var(--white); border-color: transparent; transform: none; box-shadow: none; }
.btn-ghost:active:not(:disabled) { transform: none; box-shadow: none; }

.btn-full { width: 100%; }
.btn-large { padding: 13px 20px; font-size: 15px; }
.btn-small { padding: 6px 12px; font-size: 12px; box-shadow: none; }

/* ---------------- Layout ---------------- */

.page { max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; --page-pad: 24px; }

.hero {
  padding: 44px 0 30px;
  position: relative;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero-text { min-width: 0; width: fit-content; max-width: 100%; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--white);
  white-space: nowrap;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green-deep), var(--green-bright) 65%, #baffca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px var(--green-glow));
}
.hero-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 auto 22px;
  max-width: 520px;
  font-weight: 400;
}

.fee-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-strong);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--green-bright);
  border: var(--border-w) solid rgba(204, 255, 0, 0.3);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm), var(--edge);
}
.fee-sticker::before { content: "●"; font-size: 8px; color: var(--green-bright); filter: drop-shadow(0 0 5px var(--green-glow)); }

.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.stat {
  display: flex; flex-direction: row; align-items: baseline; gap: 6px;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: var(--border-w) solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm), var(--edge);
}
.stat-value { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--white); }
.stat-label { font-size: 11.5px; color: var(--text-faint); font-weight: 500; }

/* Decorative token-preview glass card on the right of the hero */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  filter: blur(34px);
  opacity: 0.7;
  z-index: 0;
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.1); opacity: 0.85; }
}
.hero-visual-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(200deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: var(--border-w) solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg), var(--edge-strong);
  animation: float-card 7s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-visual-token { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: var(--border-w) dashed var(--border); }
.hero-visual-token-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-wash-strong); color: var(--green-bright);
  border: var(--border-w) solid rgba(204, 255, 0, 0.4);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
  box-shadow: var(--edge);
}
.hero-visual-token-name { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--white); }
.hero-visual-token-sym { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.hero-visual-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.hero-visual-row span:first-child { color: var(--text-faint); }
.hero-visual-row span:last-child { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.hero-visual-status {
  margin-top: 14px; padding-top: 12px; border-top: var(--border-w) solid var(--border);
  font-size: 12px; font-family: var(--font-mono); color: var(--green-bright); font-weight: 600;
  text-shadow: 0 0 10px var(--green-glow);
}

/* ---------------- Grid + glass cards ---------------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 900px) {
  .grid { grid-template-columns: 1.15fr 0.85fr; }
  .preview-card { position: sticky; top: 84px; }
}

/* Once a token is deployed, the form is hidden entirely — center the
   result panel alone instead of leaving it pinned to one side of an
   otherwise-empty two-column grid. */
.grid-result-only {
  grid-template-columns: 1fr;
}
.grid-result-only .preview-card {
  max-width: 640px;
  margin: 0 auto;
  position: static;
}

.card {
  position: relative;
  border: 1.5px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 40%) padding-box,
    linear-gradient(185deg, rgba(10, 13, 11, 0.86), rgba(7, 9, 8, 0.82)) padding-box,
    linear-gradient(150deg, rgba(204, 255, 0, 0.5) 0%, rgba(204, 255, 0, 0.08) 100%) border-box;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--edge), 0 0 22px -14px var(--green-glow);
  padding: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -36px;
  z-index: -1;
  background: radial-gradient(circle at 28% 18%, rgba(204, 255, 0, 0.06), transparent 60%);
  filter: blur(24px);
  pointer-events: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-head h2 { font-family: var(--font-display); font-size: 18px; margin: 0; font-weight: 700; color: var(--white); }

.step-indicator {
  font-size: 11.5px; font-family: var(--font-mono); font-weight: 600;
  background: var(--green-wash-strong); color: var(--green-bright); padding: 4px 10px; border-radius: 999px;
  border: var(--border-w) solid rgba(204, 255, 0, 0.35);
}

/* ---------------- Form fields ---------------- */

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.field label .optional { font-weight: 400; color: var(--text-faint); }
.field label .required { color: var(--green-bright); font-weight: 700; }

input[type="text"],
input[type="number"] {
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px var(--green-wash), inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
input::placeholder { color: var(--text-faint); font-family: var(--font-body); }

.field.error input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.15); }
.field-error { font-size: 12px; color: var(--red); margin-top: 2px; font-weight: 500; }

/* Visually hidden — the real <select> stays in the DOM purely as the data
   source the app's JS reads/writes; the custom dropdown below is what's
   actually shown and clicked, since browsers don't allow styling a native
   <select>'s open option list. */
.sr-only-select {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.custom-select { position: relative; }

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.custom-select-trigger:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.custom-select-trigger:disabled { color: var(--text-faint); cursor: not-allowed; }

.custom-select-arrow {
  width: 0; height: 0; flex-shrink: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-soft);
  transition: transform 0.15s ease;
}
.custom-select-trigger:disabled + .custom-select-list,
.custom-select-trigger:disabled .custom-select-arrow { border-top-color: var(--text-faint); }
.custom-select.is-open .custom-select-arrow { transform: rotate(180deg); }

.custom-select-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 15;
  background: rgba(10, 14, 11, 0.9);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: var(--border-w) solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg), var(--edge);
  max-height: 280px;
  overflow-y: auto;
}

.custom-select-option {
  padding: 11px 13px;
  font-size: 13.5px;
  font-family: var(--font-mono);
  color: var(--text);
  cursor: pointer;
  border-bottom: var(--border-w) solid var(--border);
}
.custom-select-option:last-child { border-bottom: none; }
.custom-select-option:hover,
.custom-select-option.is-active { background: var(--green-wash); color: var(--green-bright); }
.custom-select-option.is-disabled { color: var(--text-faint); cursor: default; background: transparent !important; }

.divider { height: var(--border-w); background: var(--border); margin: 20px 0; border: none; }

.section-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; margin: 0 0 12px; color: var(--white); text-transform: uppercase; letter-spacing: 0.04em; }

/* Logo picker */
.logo-picker { display: flex; align-items: center; gap: 18px; }

.logo-preview {
  position: relative;
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--green-wash);
  border: var(--border-w) dashed rgba(204, 255, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  color: var(--green-bright); font-size: 24px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.logo-preview:hover { border-color: rgba(204, 255, 0, 0.7); box-shadow: var(--edge), 0 0 0 4px var(--green-wash); }
.logo-preview:active { transform: scale(0.97); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

.logo-preview-edit {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.logo-preview-edit svg { width: 18px; height: 18px; color: var(--white); }
.logo-preview:hover .logo-preview-edit { opacity: 1; }

/* Token basics grid: Decimals + Supply stacked in one column, with a tall
   circular logo picker spanning both rows beside them — matches a common
   "mint form" layout pattern (fields left, big image target right). */
.token-basics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 8px;
}
.token-basics-grid .field { margin-bottom: 0; }
.logo-preview-tall {
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 116px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  font-size: 32px;
}
.logo-preview-tall .logo-preview-edit { border-radius: 50%; }
.logo-preview-tall .logo-preview-edit svg { width: 24px; height: 24px; }
@media (max-width: 420px) {
  .logo-preview-tall { max-width: 92px; font-size: 26px; }
}

#logoUploadStatus.is-success { color: var(--green-bright); }
#logoUploadStatus.is-error { color: var(--red); }

.logo-picker-text { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }

.logo-upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: var(--border-w) solid var(--border-strong);
  background: var(--glass-strong);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-sm), var(--edge);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.logo-upload-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.logo-upload-btn:hover { border-color: rgba(204, 255, 0, 0.45); background: var(--green-wash); color: var(--green-bright); transform: translateY(-1px); }
.logo-upload-btn:active { transform: translateY(0); }

.logo-picker-text .hint { font-size: 11.5px; color: var(--text-faint); max-width: 320px; }
.logo-picker-text .hint.is-success { color: var(--green-bright); }
.logo-picker-text .hint.is-error { color: var(--red); }

/* Toggles */
.toggle-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 560px) {
  .toggle-grid { grid-template-columns: 1fr 1fr; }
}

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  border: var(--border-w) solid transparent;
}
.toggle:hover { background: var(--glass); border-color: var(--border); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }

.toggle-track {
  width: 38px; height: 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: var(--border-w) solid var(--border-strong);
  position: relative; flex-shrink: 0; margin-top: 2px;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--text-soft);
  transition: transform 0.15s ease, background 0.15s ease;
}
.toggle input:checked + .toggle-track { background: var(--green-wash-strong); border-color: var(--green); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); background: var(--green-bright); box-shadow: 0 0 8px var(--green-glow); }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 4px var(--green-wash); }

.toggle-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-text strong { font-size: 13.5px; color: var(--text); font-weight: 600; }
.toggle-text small { font-size: 11.5px; color: var(--text-faint); line-height: 1.4; }

.toggle-label-row { display: flex; align-items: center; gap: 7px; }
.toggle-icon {
  width: 15px; height: 15px; flex-shrink: 0;
  color: var(--green-bright);
  filter: drop-shadow(0 0 4px var(--green-glow));
}
.toggle-free-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-bright);
  background: var(--green-wash);
  border: var(--border-w) solid rgba(204, 255, 0, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
}

.tax-block { margin-top: 4px; }
.tax-fields { padding: 4px 12px 4px; margin-top: 4px; }

/* ---------------- Preview panel ---------------- */

.panel-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px 20px; color: var(--text-faint);
}
.panel-empty-icon {
  font-size: 22px; margin-bottom: 12px; color: var(--green-bright);
  background: var(--green-wash-strong); border: var(--border-w) solid rgba(204, 255, 0, 0.35);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--edge);
}
.panel-empty p { font-size: 13.5px; max-width: 240px; margin: 0; font-weight: 400; }

.token-preview-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--green-wash-strong); border: var(--border-w) solid rgba(204, 255, 0, 0.35); border-radius: var(--radius-sm);
  margin-bottom: 18px;
  box-shadow: var(--edge);
}
.token-logo {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--green-bright);
  border: var(--border-w) solid rgba(204, 255, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; overflow: hidden; flex-shrink: 0;
}
.token-logo img { width: 100%; height: 100%; object-fit: cover; }
.token-preview-name { display: flex; flex-direction: column; overflow: hidden; }
.token-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--white); }
.token-symbol { font-size: 12px; color: var(--green-bright); font-family: var(--font-mono); font-weight: 600; }

.detail-list { margin: 0; }
.detail-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: var(--border-w) solid var(--border);
  font-size: 13.5px; gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row dt { color: var(--text-faint); font-weight: 500; }
.detail-row dd { margin: 0; font-weight: 600; text-align: right; font-family: var(--font-mono); color: var(--text); font-size: 13px; }
.detail-row dd.copyable { cursor: pointer; }
.detail-row dd.copyable:hover { color: var(--green-bright); }

.fee-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; margin-bottom: 16px; font-weight: 500; color: var(--text-soft);
}
.fee-row strong { font-size: 17px; font-family: var(--font-mono); color: var(--white); }

.fine-print { font-size: 11.5px; color: var(--text-faint); text-align: center; margin: 12px 0 0; line-height: 1.5; font-weight: 400; }

/* Result state */
.result-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(155deg, var(--green-bright), var(--green));
  color: #03130a;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; margin-bottom: 14px;
  box-shadow: 0 0 0 1px rgba(0,200,5,0.5), 0 12px 28px -6px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.panel-result h2 { font-family: var(--font-display); margin: 0 0 4px; font-size: 19px; font-weight: 700; color: var(--white); }
.result-sub { color: var(--text-soft); font-size: 13.5px; margin: 0 0 20px; font-weight: 400; }
.result-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.next-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.liquidity-panel { margin-top: 4px; }
.liquidity-warning {
  text-align: left; background: rgba(255, 255, 255, 0.04); padding: 14px;
  border: var(--border-w) dashed var(--border-strong); border-radius: var(--radius-sm);
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
}
.liquidity-warning a { color: var(--green-bright); font-weight: 600; }
.liquidity-warning code {
  background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 11.5px; border: var(--border-w) solid var(--border);
  color: var(--text);
}
.liquidity-status { text-align: left; min-height: 16px; font-weight: 500; }
.liquidity-status.is-error { color: var(--red); }
.liquidity-status.is-success { color: var(--green-bright); }

/* ---------------- Manage existing token ---------------- */

.manage-section { margin-top: 28px; }
.manage-card { max-width: 640px; margin: 0 auto; }
.manage-result .field { margin-top: 8px; }

/* ---------------- Liquidity tools page ---------------- */

.liquidity-grid { display: block; margin-top: 28px; }
.liquidity-tool-card { max-width: 640px; margin: 0 auto; }

.pill-tabs {
  display: flex;
  border: var(--border-w) solid var(--glass-border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--edge);
}
.pill-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pill-tab.is-active { background: var(--green); color: #03130a; box-shadow: 0 0 0 1px rgba(0,200,5,0.5), 0 8px 20px -4px var(--green-glow); }
.pill-tab:hover:not(.is-active) { color: var(--white); }

.liquidity-panel-view { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.percent-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.percent-row input[type="range"] {
  flex: 1;
  accent-color: var(--green);
  height: 6px;
}
.percent-value { font-family: var(--font-mono); font-weight: 700; font-size: 15px; min-width: 48px; text-align: right; color: var(--white); }
.percent-presets { flex-direction: row; margin-bottom: 16px; }
.percent-presets .btn { flex: 1; }
.burn-v2-percent-presets { flex-direction: row; margin-bottom: 16px; }
.burn-v2-percent-presets .btn { flex: 1; }

/* ---------------- Why Robinhood Chain (SEO content) ---------------- */

.why-chain { padding: 48px 0 8px; }
.why-chain-inner { max-width: 800px; }
.why-chain h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 32px); font-weight: 700; margin: 0 0 10px;
  color: var(--white);
}
.why-chain h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 28px 0 10px; color: var(--white); }
.why-chain p { font-size: 14.5px; line-height: 1.7; color: var(--text-soft); margin: 0 0 16px; font-weight: 400; }

.why-chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}
.why-stat {
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: var(--border-w) solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm), var(--edge);
}
.why-stat:nth-child(2) { border-color: rgba(204, 255, 0, 0.4); }
.why-stat-value { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--green-bright); text-shadow: 0 0 14px var(--green-glow); }
.why-stat-label { display: block; font-size: 12px; line-height: 1.5; color: var(--text-soft); font-weight: 500; }

/* ---------------- Section color blocks ---------------- */

.features {
  position: relative;
  padding: 64px 24px;
  margin: 52px calc(-1 * var(--page-pad, 24px)) 0;
  width: calc(100% + var(--page-pad, 24px) * 2);
  background: #000;
  color: var(--white);
  overflow: hidden;
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
}
.features::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(204, 255, 0, 0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.features-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.features h2 {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 0 0 10px;
  color: #fff;
}
.section-sub { color: var(--text-soft); font-size: 14.5px; max-width: 560px; margin: 0 0 28px; line-height: 1.5; font-weight: 400; }
.features .section-sub { color: var(--text-soft); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature-card {
  border: var(--border-w) solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--edge);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.feature-card:hover { border-color: rgba(204, 255, 0, 0.55); transform: translateY(-4px); background: rgba(204, 255, 0, 0.08); }
.feature-icon {
  margin-bottom: 10px; width: 36px; height: 36px; border-radius: 9px;
  background: rgba(204, 255, 0, 0.16); color: var(--green-bright); display: flex; align-items: center; justify-content: center;
  border: var(--border-w) solid rgba(204, 255, 0, 0.4);
}
.feature-icon svg { width: 18px; height: 18px; filter: drop-shadow(0 0 3px var(--green-glow)); }
.feature-card h3 { font-family: var(--font-display); font-size: 15px; margin: 0 0 6px; font-weight: 700; color: #fff; }
.feature-card p { font-size: 13px; color: var(--text-soft); line-height: 1.55; margin: 0; }

.link-more {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: #03130a;
  background: linear-gradient(155deg, var(--green-bright), var(--green));
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0,200,5,0.5), 0 10px 26px -6px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.features .link-more { color: #03130a; }
.link-more:hover { filter: brightness(1.08); }

/* ---------------- How it works ---------------- */

.how {
  padding: 60px 24px;
  margin: 0 calc(-1 * var(--page-pad, 24px));
  width: calc(100% + var(--page-pad, 24px) * 2);
  background: var(--bg-alt);
  border-bottom: var(--border-w) solid var(--border);
}
.how-inner { max-width: 1180px; margin: 0 auto; }
.how h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 0 0 10px; color: var(--white); }
.how .section-sub { color: var(--text-soft); }
.how-steps {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.how-steps li {
  display: flex; gap: 14px;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: var(--border-w) solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm), var(--edge);
}
.how-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-wash-strong); color: var(--green-bright);
  border: var(--border-w) solid rgba(204, 255, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.how-steps strong { font-family: var(--font-display); font-size: 14px; display: block; margin-bottom: 4px; font-weight: 700; color: var(--white); }
.how-steps p { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.5; font-weight: 400; }

/* ---------------- FAQ ---------------- */

.faq-section { padding: 56px 0 8px; }
.faq-section h2 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin: 0 0 24px; color: var(--white); }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item {
  border: var(--border-w) solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--shadow-sm), var(--edge);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.faq-question:hover { background: rgba(255, 255, 255, 0.05); }
.faq-icon {
  font-size: 15px; color: var(--text); flex-shrink: 0; transition: transform 0.15s ease;
  background: rgba(255, 255, 255, 0.08); width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  border: var(--border-w) solid var(--border);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--green); color: #03130a; border-color: var(--green); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease;
  padding: 0 18px;
  border-top: 0 solid var(--border);
}
.faq-item.is-open .faq-answer { max-height: 400px; padding: 4px 18px 18px; border-top: var(--border-w) solid var(--border); }
.faq-answer p { margin: 12px 0 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.6; font-weight: 400; }
.faq-item.is-open .faq-answer p { margin-top: 12px; }
.faq-answer code { background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; border: var(--border-w) solid var(--border); color: var(--text); }

/* ---------------- Footer ---------------- */

.site-footer {
  background: #000;
  color: var(--white);
  border-top: var(--border-w) solid var(--border);
  margin-top: 52px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 28px 24px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-size: 13px; line-height: 1.6; color: var(--text-faint);
  text-align: center;
}
.footer-inner p { margin: 0 0 6px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 4px; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--green-bright); }
.footer-links a:hover { color: #fff; }

/* ---------------- Static content pages ---------------- */

.static-page { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.static-page h1 {
  font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 42px); font-weight: 800;
  margin: 0 0 14px; color: var(--white);
}
.static-page .page-lede { font-size: 15px; color: var(--text-soft); line-height: 1.6; margin: 0 0 32px; font-weight: 400; }
.static-page h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 36px 0 12px; color: var(--white); }
.static-page h3 { font-size: 15px; margin: 22px 0 8px; font-weight: 600; color: var(--white); }
.static-page p { font-size: 14.5px; line-height: 1.7; color: var(--text-soft); margin: 0 0 16px; font-weight: 400; }
.static-page ul, .static-page ol { font-size: 14.5px; line-height: 1.7; color: var(--text-soft); padding-left: 22px; margin: 0 0 16px; font-weight: 400; }
.static-page li { margin-bottom: 6px; }
.static-page a { color: var(--green-bright); font-weight: 600; }
.static-page a:hover { text-decoration: underline; }
.static-page .updated-date { font-size: 12.5px; color: var(--text-faint); margin-bottom: 28px; font-family: var(--font-mono); }
.static-page .back-link { display: inline-block; margin-bottom: 24px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.static-page .back-link:hover { color: var(--green-bright); }

/* ---------------- Modal ---------------- */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 20px;
}
.modal {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(185deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: var(--border-w) solid var(--glass-border);
  border-radius: var(--radius);
  width: 100%; max-width: 380px; padding: 22px;
  box-shadow: var(--shadow-lg), var(--edge-strong);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; color: var(--white); }
.modal-close {
  border: var(--border-w) solid var(--border-strong); background: rgba(255, 255, 255, 0.08); color: var(--text);
  width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 700;
}

.wallet-options { display: flex; flex-direction: column; gap: 10px; }
.wallet-option {
  display: flex; align-items: center; gap: 14px;
  border: var(--border-w) solid var(--border); border-radius: var(--radius);
  padding: 13px; background: rgba(255, 255, 255, 0.04); text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.wallet-option:hover { background: var(--green-wash); border-color: rgba(204, 255, 0, 0.4); transform: translateY(-1px); }
.wallet-icon { font-size: 20px; }
.wallet-icon img { display: block; }
.wallet-option strong { display: block; font-size: 13.5px; color: var(--text); }
.wallet-option small { color: var(--text-faint); font-size: 11.5px; font-weight: 500; }

/* ---------------- Token selector (Swap) ---------------- */

.token-modal { max-width: 420px; }

.token-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 320px; overflow-y: auto; }
.token-list-item {
  display: flex; align-items: center; gap: 12px;
  border: var(--border-w) solid transparent; border-radius: var(--radius-sm);
  padding: 10px; background: transparent; text-align: left; width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.token-list-item:hover { background: var(--green-wash); border-color: rgba(204, 255, 0, 0.35); }
.token-list-item strong { display: block; font-size: 14px; color: var(--text); }
.token-list-item small { color: var(--text-faint); font-size: 11.5px; }
.token-list-info { flex: 1; min-width: 0; }
.token-list-custom-result { margin-top: 10px; border-color: rgba(204, 255, 0, 0.35); background: var(--green-wash); }

.token-list-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--green-bright);
  overflow: hidden;
}
.token-list-icon img { width: 100%; height: 100%; object-fit: cover; }

.token-select-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--green-bright);
  overflow: hidden;
}
.token-select-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(6, 10, 8, 0.85); color: var(--white); border: var(--border-w) solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  max-width: 92vw; width: 380px; box-shadow: var(--shadow-lg), var(--edge);
  z-index: 60;
}
.toast-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--green-bright);
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast-body { flex: 1; min-width: 0; }
.toast-body strong { display: block; font-size: 13px; font-family: var(--font-display); font-weight: 700; color: var(--white); }
.toast-body p { margin: 2px 0 0; font-size: 12px; color: var(--text-soft); word-break: break-word; font-family: var(--font-mono); }
.toast-close { background: none; border: none; color: var(--text-faint); font-size: 12px; flex-shrink: 0; }

.toast.toast-success .toast-spinner { display: none; }
.toast.toast-success::before {
  content: "✓"; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: #03130a; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toast.toast-error .toast-spinner { display: none; }
.toast.toast-error::before {
  content: "!"; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------------- Network pill ---------------- */

.network-pill {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  border: var(--border-w) solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--edge);
}
.network-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 10px var(--green-glow); }

@media (min-width: 640px) {
  .network-pill { display: inline-flex; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .hide-mobile { display: none; }
  .topbar-inner { padding: 12px 16px; }
  .page { padding: 0 16px 64px; --page-pad: 16px; }
  .hero { padding: 26px 0 20px; }
  .hero h1 { font-size: clamp(22px, 6.5vw, 34px); white-space: normal; }
  .hero-visual-card { animation: none; }
  .hero-visual-glow { animation: none; }
}

/* ---------------- Mode pill bar (Create Token / Quick Launch) ---------------- */

.mode-pillbar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 6px;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: var(--border-w) solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--edge);
}
.mode-pill {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.mode-pill.is-active {
  background: var(--green);
  color: #03130a;
  box-shadow: 0 0 0 1px rgba(0,200,5,0.5), 0 8px 20px -4px var(--green-glow);
}
.mode-pill:not(.is-active):hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.mode-pillbar-hint {
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
  max-width: 520px;
  margin: 0 auto 22px;
}
@media (max-width: 560px) {
  .mode-pillbar { width: 100%; justify-content: stretch; }
  .mode-pill { flex: 1; text-align: center; }
}

/* ---------------- Quick Launch form extras ---------------- */

.indent-field {
  margin: -6px 0 14px 46px;
}
@media (max-width: 560px) {
  .indent-field { margin-left: 0; }
}
.section-title + .fine-print,
.tax-block + .fine-print { margin-top: -6px; }
.toggle-grid .fine-print { grid-column: 1 / -1; }
#qlShareTotalHint.is-error { color: var(--red); font-weight: 600; }
#qlShareTotalHint.is-ok { color: var(--green-bright); font-weight: 600; }
.result-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.result-check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #03130a;
}
.result-banner p { margin: 4px 0 0; color: var(--text-soft); font-size: 12.5px; }

/* ---------------- Swap page ---------------- */

.swap-grid { display: flex; justify-content: center; }
.swap-card { max-width: 480px; width: 100%; }

.slippage-panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.slippage-label { font-size: 11.5px; font-weight: 600; display: block; margin-bottom: 8px; color: var(--text-soft); }
.slippage-options { display: flex; gap: 8px; flex-wrap: wrap; }
.slippage-pill {
  border: var(--border-w) solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 12.5px;
}
.slippage-pill.is-active { background: var(--green); color: #03130a; border-color: var(--green); }
.slippage-custom {
  border: var(--border-w) solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  width: 100px;
  font-family: var(--font-body);
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.swap-panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}
.swap-panel-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.swap-panel-body { display: flex; align-items: center; gap: 10px; }
.swap-amount-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  min-width: 0;
}
.swap-amount-input:focus { outline: none; }
.swap-token-picker { display: flex; align-items: center; gap: 6px; flex: none; }
.token-select-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: var(--border-w) solid var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}

.swap-flip-wrap { display: flex; justify-content: center; margin: 18px 0; position: relative; z-index: 1; }
.swap-flip-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: var(--border-w) solid var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--green-bright);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.swap-flip-btn:hover { border-color: rgba(204, 255, 0, 0.5); }

.swap-route-info { margin-top: 14px; }
.swap-status { min-height: 18px; }
.swap-status.is-error { color: var(--red); }
.swap-status.is-success { color: var(--green-bright); }

@media (max-width: 560px) {
  .swap-amount-input { font-size: 19px; }
}

/* ---------------- Left sidebar nav (desktop) ---------------- */

.app-shell {
  display: block;
}
.app-content { min-width: 0; }

.app-sidebar { display: none; } /* shown only at desktop widths, see below */

@media (min-width: 900px) {
  .app-shell { display: flex; align-items: flex-start; }
  .app-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 226px;
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 14px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-right: var(--border-w) solid var(--border);
  }
  .app-content { flex: 1; min-width: 0; }

  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 20px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
  }
  .sidebar-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.4), 0 4px 16px -4px var(--green-glow);
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 13.5px;
    color: var(--text-soft);
    border: var(--border-w) solid transparent;
  }
  .sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
  .sidebar-link.is-active {
    background: var(--green-wash-strong);
    border-color: rgba(204, 255, 0, 0.4);
    color: var(--green-bright);
    font-weight: 600;
    box-shadow: var(--edge);
  }
  .sidebar-link-icon {
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 8px;
    border: var(--border-w) solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .sidebar-link-icon svg { width: 15px; height: 15px; }
  .sidebar-link:hover .sidebar-link-icon { color: var(--text); }
  .sidebar-link.is-active .sidebar-link-icon {
    background: var(--green-wash-strong);
    border-color: rgba(204, 255, 0, 0.5);
    color: var(--green-bright);
    filter: drop-shadow(0 0 4px var(--green-glow));
  }

  .sidebar-footer {
    margin-top: auto;
    padding: 12px 10px 4px;
    font-size: 11.5px;
    color: var(--text-faint);
  }

  /* The sidebar replaces the topbar's center nav links on desktop. */
  .app-shell .main-nav { display: none; }
}

/* ---------------- Mobile navigation drawer ----------------
   The sidebar only appears at 900px+, and .main-nav is hidden below 560px —
   below that, there was no way to navigate between pages at all except the
   current one. This hamburger + slide-in drawer covers that gap. */

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--border-strong);
  background: var(--glass-strong);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mobile-menu-btn svg { width: 18px; height: 18px; }
.mobile-menu-btn:hover { border-color: rgba(204, 255, 0, 0.4); color: var(--green-bright); }

@media (min-width: 900px) {
  .mobile-menu-btn { display: none; }
}

/* Below 900px (wherever the hamburger takes over from the sidebar/top nav):
   hamburger on the left, logo genuinely centered regardless of how wide the
   wallet button on the right ends up being, wallet button on the right. */
@media (max-width: 899px) {
  .main-nav { display: none; }
  .topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .mobile-menu-btn { grid-column: 1; justify-self: start; }
  .brand { grid-column: 2; justify-self: center; }
  .topbar-right { grid-column: 3; justify-self: end; margin-left: 0; }
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
}
@media (min-width: 900px) {
  .mobile-nav-overlay { display: none !important; }
}

.mobile-nav-panel {
  width: min(300px, 84vw);
  height: 100%;
  background: rgba(8, 10, 9, 0.96);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-left: var(--border-w) solid var(--border-strong);
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: mobile-nav-slide-in 0.2s ease;
}
@keyframes mobile-nav-slide-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mobile-nav-brand { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--white); }
.mobile-nav-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: var(--border-w) solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.mobile-nav-links { display: flex; flex-direction: column; gap: 3px; }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-nav-links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }

.mobile-nav-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  border: var(--border-w) solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  overflow: hidden;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.mobile-nav-icon svg { width: 16px; height: 16px; }
.mobile-nav-links a:hover .mobile-nav-icon { color: var(--green-bright); border-color: rgba(204, 255, 0, 0.4); }

.mobile-nav-badge {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #f50db4;
  background: rgba(245, 13, 180, 0.12);
  border: 1px solid rgba(245, 13, 180, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}

.mobile-nav-divider { height: 1px; background: var(--border); margin: 10px 4px; border: none; }

.sidebar-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #f50db4;
  background: rgba(245, 13, 180, 0.12);
  border: 1px solid rgba(245, 13, 180, 0.35);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* ---------------- Wallet connect dropdown ---------------- */

.wallet-menu { position: relative; }

.connect-btn-icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; margin-right: 2px; }

.wallet-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 190px;
  background: rgba(8, 10, 9, 0.96);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg), var(--edge);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wallet-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.wallet-dropdown-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.wallet-dropdown-item:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); }
.wallet-dropdown-item-danger { color: #ff8080; }
.wallet-dropdown-item-danger:hover { background: rgba(255, 92, 92, 0.12); color: #ff8080; }


/* ---- Liquidity dropdown in the top nav ---- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  min-width: 190px; padding: 8px; margin-top: 10px;
  transform: translateX(-50%);
  background: rgba(14, 16, 12, 0.98);
  border: 1px solid rgba(204, 255, 0, 0.18);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.07); }

/* === liquidity pages layout (create / add / remove) === */
.liquidity-page { max-width: 720px; }
.liquidity-page .hero { padding: 32px 0 6px; text-align: center; }
.liquidity-page .hero-text { width: 100%; }
.liquidity-page .hero h1 { white-space: normal; font-size: clamp(26px, 4.2vw, 36px); margin-bottom: 12px; text-wrap: balance; }
.liquidity-page .hero-sub { max-width: 560px; margin: 0 auto 6px; }
.liquidity-page .liquidity-grid { margin-top: 14px; }
.liquidity-page .liquidity-tool-card { max-width: 100%; margin: 0; }
#panelCreate > .section-sub, #panelAdd > .section-sub, #panelRemove > .section-sub { display: none; }
html:has(.liquidity-page), body:has(.liquidity-page) { overflow-x: clip; }
.liquidity-info { margin-top: 18px; padding: 18px 22px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.liquidity-info h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.liquidity-info ol, .liquidity-info ul { margin: 0 0 10px 18px; padding: 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.liquidity-info p { margin: 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.6; }

/* === themed scrollbars + swap page layout === */
html, body, * { scrollbar-width: thin; scrollbar-color: rgba(204, 255, 0, 0.35) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(204, 255, 0, 0.28); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(204, 255, 0, 0.55); background-clip: content-box; border: 2px solid transparent; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
.token-list { padding-right: 4px; max-height: 360px; }
.swap-page { max-width: 720px; }
.swap-page .hero { padding: 32px 0 6px; text-align: center; }
.swap-page .hero-text { width: 100%; }
.swap-page .hero h1 { white-space: normal; font-size: clamp(26px, 4.2vw, 36px); margin-bottom: 12px; text-wrap: balance; }
.swap-page .hero-sub { max-width: 560px; margin: 0 auto 6px; }
.swap-page .swap-grid { margin-top: 14px; }
html:has(.swap-page), body:has(.swap-page) { overflow-x: clip; }
.swap-page .liquidity-info { margin: 18px auto 0; max-width: 480px; padding: 18px 22px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.swap-page .liquidity-info h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.swap-page .liquidity-info ol { margin: 0 0 10px 18px; padding: 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.swap-page .liquidity-info p { margin: 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.6; }
#tokenRowUsdg { display: none !important; }
