:root {
  --bg: #f4efe6;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffaf1;
  --text: #1f1d1a;
  --muted: #70675d;
  --primary: #b54d1a;
  --primary-dark: #8e3810;
  --line: rgba(31, 29, 26, 0.12);
  --danger: #9d2020;
  --shadow: 0 20px 50px rgba(92, 55, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top right, rgba(181, 77, 26, 0.16), transparent 30%),
    linear-gradient(180deg, #f8f0e3 0%, #f4efe6 35%, #ebe1d1 100%);
}

.embed-body {
  min-height: auto;
  background: transparent;
  overflow: hidden;
}

.embed-main {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  padding: 0;
}

.embed-swap-shell {
  width: min(980px, 100%);
  margin: 0;
  transform: scale(0.8);
  transform-origin: top center;
}

.embed-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
}

.embed-tabs a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.56);
  border: 1px solid rgba(129, 84, 44, 0.12);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.embed-tabs a.active {
  background: rgba(181, 77, 26, 0.16);
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  width: 100%;
  margin-top: 0;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, rgba(255, 244, 228, 0.96) 0%, rgba(247, 230, 205, 0.94) 100%);
  border-bottom: 1px solid rgba(129, 84, 44, 0.12);
  box-shadow: 0 14px 28px rgba(92, 55, 29, 0.08);
}

.header-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 10px 18px 12px;
  padding-inline: 18px;
  border-radius: 28px;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(129, 84, 44, 0.1);
  box-shadow: 0 16px 32px rgba(92, 55, 29, 0.08);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header .brand,
.site-header nav a,
.site-header .muted,
.site-header .sandwich-menu summary::before {
  color: var(--text);
}

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

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 26px;
}

.admin-subnav a {
  padding: 10px 14px;
  border: 1px solid rgba(129, 84, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.7);
  font-weight: 700;
}

.admin-subnav a.active,
.admin-subnav a:hover {
  background: rgba(181, 77, 26, 0.14);
  border-color: rgba(181, 77, 26, 0.26);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(129, 84, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.74);
}

.language-switcher select {
  min-width: 128px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 8px 34px 8px 12px;
  cursor: pointer;
  outline: none;
}

.header-wallet-select,
.header-chain-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(129, 84, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.74);
}

.header-wallet-select select,
.header-chain-select select {
  max-width: 150px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
}

.header-chain-select .chain-logo-select {
  width: 28px;
  height: 28px;
  margin-left: 6px;
}

.swap-protocol-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.swap-protocol-buttons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(129, 84, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.74);
}

.swap-protocol-buttons button,
.swap-protocol-current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 8px;
}

.swap-protocol-buttons button {
  cursor: pointer;
}

.swap-protocol-buttons button.active {
  background: rgba(39, 147, 82, 0.15);
  color: #146c36;
}

.swap-protocol-buttons svg,
.swap-protocol-current svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.swap-protocol-buttons svg circle,
.swap-protocol-current svg circle {
  fill: #1f9f55;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
}

.swap-protocol-buttons svg text,
.swap-protocol-current svg text {
  fill: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 900;
}

.swap-protocol-current {
  background: rgba(39, 147, 82, 0.12);
  border: 1px solid rgba(39, 147, 82, 0.2);
  color: #146c36;
}

.renounce-ok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(39, 147, 82, 0.13);
  color: #116734;
  font-size: 0.82rem;
  font-weight: 900;
}

.renounce-ok svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.renounce-ok circle {
  fill: #1f9f55;
}

.renounce-ok path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.wallet-float-toggle {
  border: 1px solid rgba(129, 84, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.74);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}

.swap-float-toggle {
  background: rgba(232, 255, 236, 0.74);
}

.language-switcher select:focus-visible {
  box-shadow: 0 0 0 3px rgba(181, 77, 26, 0.18);
}

.language-switcher a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
}

.language-switcher a.active,
.language-switcher a:hover {
  background: rgba(181, 77, 26, 0.12);
}

.sandwich-menu {
  position: relative;
}

.sandwich-menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
}

.sandwich-menu summary::-webkit-details-marker {
  display: none;
}

.sandwich-menu summary::before {
  content: "\2261";
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text);
}

.sandwich-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 20;
}

.sandwich-panel a {
  padding: 10px 12px;
  border-radius: 14px;
}

.sandwich-panel a:hover {
  background: rgba(181, 77, 26, 0.08);
}

.dashboard-menu .sandwich-panel {
  min-width: 260px;
}

.dashboard-menu .sandwich-panel a:last-child {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
}

.ticker-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 10px 0 26px;
}

.ticker-label {
  padding: 12px 16px;
  border-radius: 999px;
  background: #1f1d1a;
  color: #fff8f0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
}

.ticker-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 240, 0.7);
  box-shadow: var(--shadow);
}

.ticker-viewport::before,
.ticker-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 1;
  pointer-events: none;
}

.ticker-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #f4efe6 0%, rgba(244, 239, 230, 0) 100%);
}

.ticker-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #f4efe6 0%, rgba(244, 239, 230, 0) 100%);
}

.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 14px;
  animation: ticker-slide 42s linear infinite;
}

.ticker-card {
  min-width: 260px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.96) 0%, rgba(248, 237, 219, 0.96) 100%);
  border: 1px solid rgba(31, 29, 26, 0.08);
}

.ticker-token-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ticker-token-head img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.ticker-token-head strong,
.ticker-token-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-token-head small {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .04em;
}

.ticker-card.placeholder {
  opacity: 0.72;
}

.ticker-rank {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

main.shell {
  padding: 12px 0 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-wrap {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: cover;
  flex: 0 0 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

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

.hero,
.token-layout,
.stats,
.meta-grid,
.grid {
  display: grid;
  gap: 20px;
}

.hero,
.token-layout {
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}

.hero {
  margin: 30px 0 36px;
}

.hero-brand-panel {
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: min(100%, 240px);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto 18px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
  filter: drop-shadow(0 18px 34px rgba(83, 18, 170, 0.16));
}

.home-section {
  margin: 0 0 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.82) 0%, rgba(248, 238, 224, 0.68) 100%);
  box-shadow: var(--shadow);
}

.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  margin: 18px 0 28px;
  overflow: hidden;
  border: 1px dashed rgba(129, 84, 44, 0.28);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.9) 0%, rgba(246, 226, 197, 0.72) 100%);
  box-shadow: 0 16px 34px rgba(92, 55, 29, 0.09);
}

.ad-wide {
  width: 100%;
}

.ad-compact {
  min-height: 170px;
  margin: 22px 0 0;
}

.ad-slot img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.ad-link {
  width: 100%;
  height: 100%;
  display: block;
}

.ad-slot small {
  position: absolute;
  right: 12px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 29, 26, 0.76);
  color: #fff8f0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-empty {
  color: var(--muted);
  text-align: center;
}

.ad-empty strong,
.ad-empty span {
  display: block;
}

.ad-empty strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.ad-rotator {
  position: relative;
  width: 100%;
  min-height: inherit;
}

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.ad-slide:first-child {
  position: relative;
}

.ad-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.ad-admin-grid {
  display: grid;
  gap: 18px;
}

.ad-admin-card {
  display: grid;
  gap: 16px;
}

.ad-admin-form {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ad-preview {
  min-height: 120px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.72);
}

.ad-preview img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
}

.ad-preview.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.section-header.compact {
  margin-bottom: 0;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(181, 77, 26, 0.1);
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
}

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

.section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
}

.section-header p {
  margin: 0;
  max-width: 58ch;
}

.hero h1,
h1,
h2,
h3 {
  line-height: 1.06;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  margin: 8px 0 14px;
  max-width: 11ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--primary-dark);
  margin: 0;
}

.hero-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.dex-chain-admin-form {
  min-width: min(720px, 72vw);
}

.dex-chain-admin-table td {
  vertical-align: top;
}

@media (max-width: 760px) {
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .dex-chain-admin-form {
    min-width: 0;
  }
}

.button,
button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff8f0;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.button.danger {
  background: var(--danger);
}

.oauth-login-row {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.telegram-login-row {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  min-height: 42px;
}

.telegram-auth-button {
  min-height: 42px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(34, 158, 217, .35);
  border-radius: 8px;
  background: #229ed9;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(34, 158, 217, .22);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.telegram-auth-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(34, 158, 217, .28);
}

.telegram-auth-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-weight: 900;
}

.google-auth-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #3c4043;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .25px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .16);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.google-auth-button:hover {
  background: #f8fafd;
  border-color: #d2e3fc;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .24);
}

.google-auth-button:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.google-auth-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel,
.card,
.purchase-card,
.auth-card,
.wallet-panel,
table,
.notice,
.embed-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel,
.card,
.purchase-card,
.auth-card,
.wallet-panel,
.notice,
.embed-card {
  border-radius: 28px;
  padding: 24px;
}

.home-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(249, 241, 228, 0.94) 100%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 77, 26, 0.14) 0%, rgba(181, 77, 26, 0) 70%);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(92, 55, 29, 0.16);
  border-color: rgba(181, 77, 26, 0.22);
}

.presale-list-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  min-width: 0;
}

.presale-list-title.table-title {
  margin: 0;
}

.presale-list-title strong,
.presale-list-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presale-list-title strong {
  color: var(--text);
  font-size: 1.04rem;
}

.presale-list-title span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.presale-list-logo {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(92, 55, 29, 0.12);
}

.presale-price-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 147, 74, 0.11);
  color: #14673a;
  font-size: .8rem;
  font-weight: 900;
}

.presale-list-progress-wrap {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.presale-list-progress-wrap small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.3;
}

.presale-list-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(157, 32, 32, 0.16), rgba(225, 172, 24, 0.16), rgba(23, 147, 74, 0.14));
  overflow: hidden;
}

.presale-list-progress span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #bd2020 0%, #e6b21b 52%, #17934a 100%);
  box-shadow: 0 0 18px rgba(23, 147, 74, 0.18);
  transition: width 180ms ease;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 18px 0 30px;
}

.panel strong {
  display: block;
  font-size: 2rem;
}

.badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(181, 77, 26, 0.12);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge.outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.audit-card {
  margin-bottom: 22px;
}

.audit-result {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: var(--shadow);
}

.audit-result.good {
  border-color: rgba(23, 147, 74, 0.35);
}

.audit-result.warn {
  border-color: rgba(215, 128, 30, 0.45);
}

.audit-result.bad {
  border-color: rgba(157, 32, 32, 0.38);
}

.audit-result.compact {
  margin-top: 10px;
  padding: 14px;
  box-shadow: none;
}

.audit-score {
  display: flex;
  align-items: center;
  gap: 18px;
}

.audit-score-ring {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.audit-live-meta {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  list-style: none;
}

.audit-live-meta li {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.audit-live-meta li::before {
  content: "- ";
  color: var(--primary-dark);
  font-weight: 900;
}

.audit-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.audit-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.audit-check p {
  margin: 4px 0;
}

.audit-check small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.audit-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.audit-check.good .audit-icon,
.audit-badge.good {
  background: #17934a;
  color: #fff;
}

.audit-check.warn .audit-icon,
.audit-badge.warn {
  background: #d7801e;
  color: #fff;
}

.audit-check.bad .audit-icon,
.audit-badge.bad {
  background: var(--danger);
  color: #fff;
}

.audit-inline summary {
  cursor: pointer;
  list-style: none;
}

.audit-inline summary::-webkit-details-marker {
  display: none;
}

.progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(157, 32, 32, 0.16), rgba(225, 172, 24, 0.16), rgba(23, 147, 74, 0.14));
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bd2020 0%, #e6b21b 52%, #17934a 100%);
  box-shadow: 0 0 18px rgba(23, 147, 74, 0.18);
}

.presale-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
}

.presale-overview-card,
.presale-buy-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.presale-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.token-logo-large {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.presale-title-row h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.presale-title-row h1 span {
  color: var(--muted);
  font-size: .72em;
}

.presale-progress-strip,
.presale-info-grid,
.embed-main-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}

.presale-progress-strip div,
.presale-info-grid div,
.embed-main-metrics span,
.presale-mini-stats span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.presale-progress-strip strong,
.presale-info-grid strong,
.embed-main-metrics strong,
.presale-mini-stats strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presale-progress-strip span,
.presale-info-grid span,
.embed-main-metrics span {
  color: var(--muted);
  font-size: .78rem;
}

.presale-stage-pills,
.embed-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.presale-stage-pills span,
.embed-meta-line span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(181, 77, 26, 0.1);
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 700;
}

.presale-stage-pills span.active {
  background: #17934a;
  color: #fff;
}

.presale-details-compact {
  margin-top: 14px;
}

.presale-details-compact summary {
  cursor: pointer;
  font-weight: 800;
}

.presale-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  gap: 14px;
  margin-top: 12px;
}

.presale-purchase-history {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.table-scroll {
  overflow-x: auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.pagination-status {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.button.disabled {
  opacity: .45;
  pointer-events: none;
}

.presale-mini-stats {
  display: grid;
  gap: 8px;
}

.presale-buy-card {
  position: sticky;
  top: 92px;
}

.presale-buy-card h2 {
  margin-top: 0;
}

.presale-buy-card p {
  margin: 8px 0;
  font-size: .93rem;
}

.presale-embed-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.3fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
}

.embed-token-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.embed-token-head h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-token-head h2 span {
  color: var(--muted);
  font-size: .8em;
}

.presale-embed-card .progress {
  grid-column: 1 / -1;
  height: 8px;
  margin-top: -4px;
}

.presale-embed-card .embed-meta-line {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.presale-list-embed {
  display: block;
  max-width: 760px;
  margin: 0 auto;
}

.presale-embed-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.presale-embed-list-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,.05);
}

.presale-embed-list-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.presale-embed-list-main strong,
.presale-embed-list-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presale-embed-list-metrics {
  text-align: right;
  display: grid;
  gap: 2px;
  font-size: .82rem;
}

@media (max-width: 900px) {
  .presale-page,
  .presale-detail-columns,
  .presale-embed-card {
    grid-template-columns: 1fr;
  }

  .presale-buy-card {
    position: static;
  }

  .presale-progress-strip,
  .presale-info-grid,
  .embed-main-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.auth-card {
  width: min(720px, 100%);
  margin: 40px auto;
}

.auth-card.wide {
  width: min(920px, 100%);
}

.stack {
  display: grid;
  gap: 14px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

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

.check input {
  width: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 24px;
}

th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.inline-form {
  display: inline-block;
  margin: 0 8px 8px 0;
}

.small-input {
  width: 110px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.compact-tool-head {
  justify-content: center;
  margin-bottom: -18px;
}

.meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 24px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0 0 28px;
}

.token-type-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
}

.token-type-switch button,
.token-type-switch a {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.token-type-switch button.active,
.token-type-switch a.active {
  background: #17934a;
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 147, 74, 0.22);
}

.presale-type-switch {
  margin-bottom: 16px;
}

.preset-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.presale-type-panel {
  display: grid;
  gap: 14px;
}

.presale-type-panel[hidden] {
  display: none !important;
}

.token-deploy-grid {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0 0 28px;
}

.token-deploy-form {
  width: min(980px, 100%);
  max-width: 980px;
}

.token-deploy-form[hidden],
.token-deploy-form:not(.active) {
  display: none !important;
}

.token-deploy-form.active {
  display: grid;
}

.chain-allocation-rows {
  display: grid;
  gap: 10px;
}

.chain-allocation-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.bridge-config-grid {
  align-items: stretch;
}

.bridge-provider-config {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.bridge-provider-config legend {
  padding: 0 6px;
  font-weight: 900;
}

.chain-allocation-row .button.secondary {
  white-space: nowrap;
}

div[data-holder-yield-token-row] {
  margin-top: 8px;
}

.vesting-grid {
  display: grid;
  gap: 14px;
}

.vesting-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
}

.staking-row {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.stage-row {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
}

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

.inline-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.dex-router-card code {
  display: inline-block;
  max-width: 100%;
  padding: 6px 8px;
  overflow-wrap: anywhere;
  border-radius: 10px;
  background: rgba(31, 29, 26, 0.06);
  font-size: 0.82rem;
}

.router-accordion {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.72);
  overflow: hidden;
}

.router-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.router-accordion summary::-webkit-details-marker {
  display: none;
}

.router-accordion summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(181, 77, 26, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
}

.router-accordion[open] summary::after {
  content: "-";
}

.router-accordion summary strong {
  display: block;
  font-size: 1.28rem;
}

.router-accordion summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.router-accordion .grid {
  padding: 0 20px 20px;
}

.dex-status {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(31, 29, 26, 0.06);
  padding: 14px;
  color: var(--muted);
}

.dex-tool hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.dex-swap-shell {
  width: min(680px, 100%);
  margin: 38px auto;
}

.dex-swap-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(181, 77, 26, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(248, 238, 224, 0.96) 100%);
  border: 1px solid rgba(129, 84, 44, 0.14);
  box-shadow: 0 24px 60px rgba(92, 55, 29, 0.16);
}

.dex-swap-head,
.swap-token-row,
.swap-route-info,
.swap-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.swap-token-row {
  min-width: 0;
}

.dex-swap-head h1 {
  margin: 4px 0 0;
}

.dex-chain-select {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  font-size: 0.82rem;
}

.dex-chain-select {
  color: var(--muted);
}

.dex-chain-select::first-letter {
  color: inherit;
}

.dex-chain-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--text);
}

.dex-chain-select select {
  flex: 1;
  min-width: 0;
}

.chain-display-only {
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.68);
  border: 1px solid rgba(129, 84, 44, 0.12);
}

.chain-logo-select {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(31, 29, 26, 0.12);
}

.dex-address-field {
  font-size: 0.84rem;
}

.swap-token-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(31, 29, 26, 0.045);
  border: 1px solid rgba(31, 29, 26, 0.06);
}

.token-picker {
  display: none;
}

.token-combo {
  position: relative;
}

.token-combo-button,
.token-combo-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.94);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 700;
}

.token-combo-button span,
.token-combo-item span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.token-combo-button small,
.token-combo-item small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.token-combo-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  max-height: 280px;
  display: none;
  overflow: auto;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.98);
  box-shadow: var(--shadow);
}

.token-combo.open .token-combo-menu {
  display: grid;
  gap: 6px;
}

.token-combo-item {
  border-radius: 14px;
  background: transparent;
}

.token-combo-item:hover {
  background: rgba(181, 77, 26, 0.08);
}

.token-avatar,
.token-logo-mini {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.token-avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: rgba(181, 77, 26, 0.14);
  color: var(--primary-dark);
  font-weight: 700;
}

.token-logo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.token-logo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 12px 28px rgba(92, 55, 29, 0.14);
}

.token-listing-form {
  margin-top: 16px;
}

.pool-manager {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.pool-list {
  display: grid;
  gap: 12px;
}

.pool-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.72);
}

.pool-card h3 {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.pool-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.pool-card-actions label {
  flex: 1 1 180px;
  margin: 0;
}

.pool-card-actions input {
  margin-top: 6px;
}

.pool-safe {
  background: rgba(26, 127, 55, 0.14);
  border-color: rgba(26, 127, 55, 0.28);
  color: #1a7f37;
}

.liquidity-stats-accordion {
  margin: 24px auto 0;
  width: min(1080px, 100%);
}

.liquidity-stats-accordion > summary {
  cursor: pointer;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.72);
  font-weight: 800;
}

.liquidity-stats-panel {
  margin-top: 14px;
}

.liquidity-stats-grid {
  margin-bottom: 18px;
}

.liquidity-stats-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.liquidity-stats-lists article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
}

.liquidity-stats-lists ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.liquidity-stats-lists li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(129, 84, 44, 0.1);
}

.swap-token-row span,
.swap-route-info span {
  color: var(--muted);
  font-size: 0.88rem;
}

.swap-token-row input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 700;
}

.swap-token-row output {
  color: var(--text);
  max-width: 58%;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: clamp(1.18rem, 2.2vw, 1.6rem);
  font-weight: 700;
}

.swap-balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.swap-balance-bar button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.swap-balance-bar button:disabled {
  cursor: default;
  opacity: 0.55;
}

.swap-balance-bar strong {
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}

.swap-percent-controls {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.swap-percent-controls button {
  padding: 4px 7px;
  border: 1px solid rgba(129, 84, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.68);
  color: var(--primary-dark);
  font-weight: 800;
}

.swap-percent-controls button:hover {
  background: rgba(181, 77, 26, 0.12);
}

.swap-flip {
  justify-self: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: -8px 0;
  padding: 0;
  border: 4px solid rgba(255, 252, 247, 0.98);
  border-radius: 16px;
  background: #1f1d1a;
  color: #fff8f0;
  box-shadow: 0 12px 26px rgba(31, 29, 26, 0.18);
  z-index: 1;
}

.swap-details {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.68);
}

.swap-details summary {
  cursor: pointer;
  font-weight: 700;
}

.swap-route-info {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(181, 77, 26, 0.08);
}

.swap-actions {
  align-items: stretch;
}

.swap-actions .button {
  flex: 1;
}

.swap-submit {
  min-height: 54px;
  font-size: 1rem;
}

.swap-submit.approved {
  background: linear-gradient(135deg, #159447, #2fba66);
  border-color: rgba(21, 148, 71, 0.28);
  color: #fff;
}

.swap-submit.route-loading {
  background: linear-gradient(135deg, #a51f1f, #d14632);
  border-color: rgba(157, 32, 32, 0.34);
  color: #fff;
}

.button:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.token-copy h1 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  margin: 10px 0 14px;
}

.purchase-card {
  position: sticky;
  top: 16px;
}

.notice {
  margin-bottom: 20px;
}

.toast-notice {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10000;
  transform: translateX(-50%);
  min-width: min(420px, calc(100vw - 28px));
  max-width: 680px;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(20, 24, 34, 0.18);
  font-weight: 800;
  text-align: center;
  animation: toast-pop 0.18s ease-out;
}

.toast-notice.success {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid rgba(15, 81, 50, 0.22);
}

.toast-notice.error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid rgba(132, 32, 41, 0.22);
}

@keyframes toast-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.wallet-float {
  position: fixed;
  right: 20px;
  top: 96px;
  z-index: 9000;
  width: min(380px, calc(100vw - 28px));
  min-width: 300px;
  min-height: 58px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  border: 1px solid rgba(129, 84, 44, 0.18);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 24px 70px rgba(52, 40, 26, 0.24);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.swap-float {
  right: 420px;
  width: min(620px, calc(100vw - 28px));
  background: rgba(255, 250, 241, 0.86);
}

.swap-float-body {
  padding: 12px;
}

.swap-popup-shell {
  margin: 0;
  max-width: none;
  width: 100%;
}

.swap-popup-card {
  width: 100%;
  box-shadow: none;
  border-color: rgba(129, 84, 44, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 1100px) {
  .swap-float {
    right: 14px;
    width: min(620px, calc(100vw - 28px));
  }
}

.wallet-float.collapsed {
  height: auto !important;
  min-height: 0;
}

.wallet-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.52);
  cursor: move;
  user-select: none;
}

.wallet-float-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.wallet-float-selected-address,
.wallet-popup-selected-address {
  font-size: 0.78rem;
  color: #2f2216;
  opacity: 0.95;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid rgba(129, 84, 44, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-popup-select {
  flex: 1;
  min-width: 0;
}

.wallet-popup-select select {
  width: 100%;
  border: 1px solid rgba(129, 84, 44, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 800;
}

.wallet-float-head button {
  border: 0;
  background: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #15100b;
  line-height: 1;
  pointer-events: auto;
}

.wallet-float-head button:hover {
  background: rgba(129, 84, 44, 0.1);
}

.wallet-float-control {
  color: #2f2216;
}

.wallet-float-control:hover {
  color: #111111;
}

.wallet-float-body {
  padding: 16px;
  max-height: calc(100% - 56px);
  overflow: auto;
}

.wallet-float.collapsed .wallet-float-body,
.wallet-float.collapsed .wallet-resize-handle {
  display: none;
}

.wallet-float code {
  display: block;
  max-width: 100%;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  overflow-wrap: anywhere;
}

.wallet-address-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.wallet-address-line code {
  flex: 1;
  min-width: 0;
}

.wallet-address-line.table-copy {
  min-width: 260px;
}

.copy-button {
  flex: 0 0 auto;
  border: 1px solid rgba(129, 84, 44, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.copy-button:hover {
  background: #fff;
}

.wallet-balance-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.wallet-zero-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text);
  opacity: 0.9;
}

.wallet-zero-filter input {
  transform: scale(0.95);
}

.wallet-summary {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(56, 142, 60, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(214, 242, 210, 0.72), rgba(255, 255, 255, 0.72));
}

.wallet-summary span,
.wallet-summary small {
  color: var(--muted);
}

.wallet-summary strong {
  font-size: 1.15rem;
}

.wallet-summary-compact {
  gap: 4px;
}

.wallet-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.wallet-summary-line strong,
.wallet-summary-line span {
  font-variant-numeric: tabular-nums;
}

.wallet-token-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 1.25fr) minmax(82px, 0.62fr) minmax(86px, 0.58fr) minmax(58px, 0.38fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.wallet-token-main,
.wallet-token-row span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.wallet-contract {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-token-row span:nth-child(4) {
  display: grid;
}

.wallet-token-amount,
.wallet-token-value,
.wallet-token-change {
  justify-self: end;
  min-width: 0;
  width: 100%;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: "Courier New", Courier, monospace;
  white-space: nowrap;
}

.wallet-token-value {
  display: grid;
  gap: 2px;
}

.wallet-token-value small {
  font-family: Georgia, "Times New Roman", serif;
}

.wallet-token-row:hover {
  background: rgba(255, 255, 255, 0.9);
}

.wallet-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(129, 84, 44, 0.1);
}

.wallet-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.wallet-tabs button.active {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(72, 46, 27, 0.12);
}

.wallet-tab-panel {
  display: none;
  gap: 8px;
}

.wallet-tab-panel.active {
  display: grid;
}

.wallet-lp-token {
  border: 1px solid rgba(21, 96, 148, 0.18);
  background: rgba(226, 240, 250, 0.68);
}

.wallet-offchain-token {
  border: 1px dashed rgba(129, 84, 44, 0.28);
  background: rgba(255, 248, 232, 0.72);
}

.wallet-presale-section {
  display: grid;
  gap: 8px;
}

.wallet-presale-section h4 {
  margin: 4px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-presale-position.locked {
  opacity: 0.48;
  filter: grayscale(0.55);
  cursor: default;
}

.wallet-presale-position.claimable {
  border: 1px solid rgba(21, 148, 71, 0.22);
  background: rgba(225, 246, 229, 0.66);
}

.wallet-presale-position.claimed {
  opacity: 0.7;
}

.wallet-presale-position.direct {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.56);
}

.wallet-presale-badge {
  justify-self: end;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(129, 84, 44, 0.1);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.wallet-presale-claim {
  justify-self: end;
}

.wallet-token-row .token-copy {
  padding: 6px 8px;
}

.wallet-action-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(129, 84, 44, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.wallet-action-panel input {
  width: 100%;
}

.wallet-action-panel select {
  width: 100%;
}

.wallet-resize-handle {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
}

.wallet-resize-handle::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-right: 3px solid rgba(129, 84, 44, 0.45);
  border-bottom: 3px solid rgba(129, 84, 44, 0.45);
  border-radius: 2px;
}

.wallet-token-row small {
  color: var(--muted);
}

.wallet-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 25, 18, 0.28);
  backdrop-filter: blur(10px);
}

.wallet-confirm-card {
  width: min(430px, 100%);
  padding: 20px;
  border: 1px solid rgba(129, 84, 44, 0.2);
  border-radius: 24px;
  background: rgba(255, 249, 238, 0.94);
  box-shadow: 0 24px 70px rgba(63, 42, 22, 0.22);
}

.wallet-confirm-card h3 {
  margin: 0 0 8px;
}

.wallet-confirm-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.wallet-confirm-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.wallet-confirm-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.wallet-confirm-list strong {
  max-width: 62%;
  overflow-wrap: anywhere;
  text-align: right;
}

.wallet-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.wallet-confirm-choice {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(63, 42, 22, 0.18);
}

.wallet-confirm-choice.reject {
  background: #c93636;
}

.wallet-confirm-choice.accept {
  background: #17934a;
}

.claim-form {
  margin-top: 16px;
}

.metric-negative {
  color: #c22f2f;
}

.metric-positive {
  color: #1a7f37;
}

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

.embed-body {
  background: transparent;
  padding: 12px;
}

.embed-card {
  min-height: calc(100vh - 24px);
}

.site-footer {
  width: 100%;
  margin-top: 10px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(249, 236, 214, 0.97) 0%, rgba(241, 222, 194, 0.96) 100%);
  border-top: 1px solid rgba(129, 84, 44, 0.12);
  box-shadow: 0 -10px 24px rgba(92, 55, 29, 0.05);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 22px;
  color: #5d4837;
  font-size: 0.92rem;
}

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

@media (max-width: 840px) {
  .header-shell,
  .hero,
  .token-layout,
  .ticker-shell,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ticker-label {
    justify-self: start;
  }

  .header-actions,
  .footer-shell {
    display: grid;
    justify-content: start;
  }

  .ticker-card {
    min-width: 190px;
  }

  .ad-slot {
    min-height: 96px;
    border-radius: 20px;
  }

  .ad-compact {
    min-height: 130px;
  }

  .dex-swap-head,
  .swap-actions {
    display: grid;
  }

  .dex-chain-select {
    min-width: 0;
  }

  .swap-token-row {
    align-items: start;
  }

  .swap-token-row input {
    max-width: 58%;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    padding-top: 8px;
  }
}

.embed-swap-shell .swap-actions .button {
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  padding-inline: 16px;
  font-size: 1rem;
}

.embed-swap-shell:not(.liquidity-shell) .dex-swap-card {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(181, 77, 26, 0.1), transparent 34%),
    rgba(255, 252, 247, 0.58);
  border-color: rgba(129, 84, 44, 0.08);
  box-shadow: 0 24px 60px rgba(92, 55, 29, 0.08);
  backdrop-filter: blur(14px);
}

.embed-swap-shell:not(.liquidity-shell) .dex-swap-head,
.embed-swap-shell:not(.liquidity-shell) .dex-address-field,
.embed-swap-shell:not(.liquidity-shell) .swap-details,
.embed-swap-shell:not(.liquidity-shell) .swap-route-info,
.embed-swap-shell:not(.liquidity-shell) .swap-actions,
.embed-swap-shell:not(.liquidity-shell) .dex-status {
  grid-column: 1 / -1;
}

.embed-swap-shell .swap-token-box {
  min-width: 0;
  height: 100%;
  background: rgba(255, 250, 241, 0.5);
}

.embed-swap-shell .swap-flip {
  grid-column: auto;
  align-self: center;
  transform: rotate(-90deg);
}

@media (max-width: 760px) {
  .embed-swap-shell {
    width: 125vw;
    max-width: none;
  }

  .embed-swap-shell:not(.liquidity-shell) .dex-swap-card {
    grid-template-columns: 1fr;
  }

  .embed-swap-shell .swap-flip {
    transform: none;
  }
}
