:root {
  --bg-0: #080b05;
  --bg-1: #10150b;
  --bg-2: #0a0f07;
  --line: #4a6218;
  --line-soft: rgba(183, 223, 58, 0.28);
  --text: #f2efdc;
  --muted: #b0b986;
  --gold: #cda257;
  --gold-bright: #f3d996;
  --green: #beff22;
  --green-strong: #92d00e;
  --green-soft: #d5ff66;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Exo 2', sans-serif;
  color: var(--text);
  background:
    radial-gradient(740px 400px at 16% 12%, rgba(197, 255, 40, 0.16), transparent 72%),
    radial-gradient(780px 420px at 85% 8%, rgba(233, 195, 114, 0.17), transparent 75%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 58%, var(--bg-2));
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(171, 214, 36, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 214, 36, 0.11) 1px, transparent 1px);
  background-size: 38px 38px;
}

.layout {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 34px 0 28px;
}

.hero {
  text-align: center;
  margin-bottom: 18px;
}

.hero-logo-wrap {
  width: 108px;
  height: 108px;
  margin: 0 auto 12px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(246, 215, 150, 0.5);
  box-shadow:
    0 0 0 2px rgba(164, 223, 14, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(185, 232, 25, 0.32);
}

.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold) 45%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(197, 255, 40, 0.2);
}

.hero p {
  margin: 8px 0 0;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.24em;
  font-size: 0.73rem;
  color: #c9d59a;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(130deg, rgba(11, 16, 8, 0.88), rgba(21, 26, 15, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(247, 225, 170, 0.14),
    0 0 35px rgba(167, 214, 29, 0.12);
  backdrop-filter: blur(5px);
}

.vault-panel,
.launch-panel {
  margin-bottom: 12px;
}

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

.vault-metric {
  min-width: 0;
  border: 1px solid rgba(188, 231, 34, 0.27);
  border-radius: 14px;
  padding: 14px;
  background: rgba(10, 14, 7, 0.7);
  box-shadow: inset 0 1px 0 rgba(247, 225, 170, 0.08);
}

.vault-metric-value {
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  line-height: 1.15;
  word-break: break-all;
}

#burnedAmountValue {
  font-size: clamp(1.52rem, 2.75vw, 1.92rem);
  line-height: 1.2;
}

.panel-label {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  color: #e7cf9b;
}

.panel-value {
  display: block;
  margin-top: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  color: var(--green-soft);
  text-shadow: 0 0 20px rgba(190, 255, 34, 0.34);
}

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

.panel-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(228, 195, 124, 0.48);
  background: rgba(53, 41, 16, 0.56);
  color: #f0d9a9;
  font-size: 0.7rem;
  white-space: nowrap;
}

.launch-value {
  display: block;
  margin-top: 24px;
  margin-bottom: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  color: #c7ff3f;
}

.token-progress-hidden {
  display: none;
}

.token-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(221, 193, 131, 0.4);
  background: rgba(19, 24, 12, 0.92);
  overflow: hidden;
}

.token-progress-fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    90deg,
    #f4dcaa 0px,
    #ddb669 24px,
    #b8f931 48px,
    #93d60e 72px,
    #d6c181 96px,
    #b4f92a 120px,
    #f4dcaa 144px
  );
  background-size: 144px 100%;
  box-shadow: 0 0 16px rgba(185, 232, 35, 0.4);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width, background-position;
  animation: progress-rainbow 2.8s linear infinite, progress-breathe 3.4s ease-in-out infinite;
}

.token-progress-fill::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 240, 206, 0.85) 0%, rgba(233, 204, 131, 0.58) 46%, rgba(179, 255, 45, 0.08) 100%);
  box-shadow: 0 0 10px rgba(233, 200, 117, 0.4), 0 0 14px rgba(182, 235, 28, 0.26);
}


.trade-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wallet-badge {
  font-size: 0.78rem;
  color: #b8c587;
}

.wallet-badge b {
  font-family: 'IBM Plex Mono', monospace;
  color: #e6d1a0;
}

label {
  display: block;
  margin: 12px 0 8px;
  color: var(--muted);
}

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

.sell-head label {
  margin: 12px 0 8px;
}

.sell-note {
  display: inline-block;
  margin: 12px 0 8px;
  font-size: 0.76rem;
  color: #b8c88c;
  white-space: nowrap;
}

input {
  width: 100%;
  border: 1px solid rgba(213, 186, 124, 0.4);
  border-radius: 12px;
  padding: 12px;
  background: rgba(10, 13, 7, 0.92);
  color: #eef4cf;
  font-family: 'IBM Plex Mono', monospace;
}

input::placeholder {
  color: rgba(185, 196, 142, 0.72);
}

input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(190, 255, 34, 0.2);
}

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

.pct-btn,
.btn {
  border: 1px solid rgba(224, 192, 127, 0.55);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: #151a0e;
  background: linear-gradient(95deg, rgba(245, 220, 162, 0.9), rgba(187, 255, 36, 0.9));
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.pct-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(124, 177, 8, 0.24);
}

.pct-btn.active {
  background: linear-gradient(95deg, #fadf9f, #a8f20d);
  box-shadow: 0 0 0 2px rgba(195, 255, 54, 0.2);
}

.estimate {
  margin-top: 12px;
  border: 1px solid rgba(211, 182, 119, 0.38);
  border-radius: 12px;
  padding: 11px;
  background: rgba(12, 16, 8, 0.82);
}

.estimate span {
  color: #c4cf94;
  font-size: 0.9rem;
}

.estimate strong {
  display: block;
  margin-top: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  color: var(--green-soft);
}

.action-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result {
  margin-top: 12px;
  border: 1px solid rgba(208, 178, 114, 0.36);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 84px;
  white-space: pre-wrap;
  font-family: 'IBM Plex Mono', monospace;
  color: #dce9af;
  background: rgba(11, 14, 8, 0.92);
}

.social-link-wrap {
  margin-top: 12px;
  text-align: center;
}

.contact-strip {
  margin-top: 12px;
}

.contact-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.contact-row::-webkit-scrollbar {
  height: 6px;
}

.contact-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(194, 165, 100, 0.5);
}

.contact-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(218, 191, 130, 0.42);
  background: rgba(12, 17, 8, 0.8);
  color: #e9d6a6;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.contact-chip.qq {
  background: linear-gradient(120deg, rgba(221, 190, 124, 0.32), rgba(154, 214, 20, 0.24));
}

.contact-chip.dbox {
  background: linear-gradient(120deg, rgba(178, 240, 45, 0.29), rgba(218, 183, 113, 0.24));
}

.contact-chip.x {
  background: linear-gradient(120deg, rgba(223, 194, 127, 0.3), rgba(136, 191, 22, 0.24));
}

.contact-chip.tg {
  background: linear-gradient(120deg, rgba(200, 255, 71, 0.28), rgba(203, 171, 102, 0.23));
}

button.contact-chip {
  cursor: pointer;
}

.contact-chip:hover {
  border-color: rgba(191, 255, 35, 0.64);
  color: #f8ecce;
}

.social-link {
  color: #c8d591;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 213, 145, 0.34);
}

.social-link:hover {
  color: #f6e2b2;
}

@keyframes progress-rainbow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 144px 0;
  }
}

@keyframes progress-breathe {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.04);
  }
}

@media (max-width: 760px) {
  .layout {
    padding-top: 20px;
  }

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

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

  .action-row {
    grid-template-columns: 1fr;
  }

  .trade-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-row {
    gap: 7px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
}
