:root {
  --bg-0: #03041a;
  --bg-1: #070a2d;
  --line: #203a73;
  --line-soft: rgba(96, 137, 234, 0.28);
  --text: #d9ebff;
  --muted: #81a3d9;
  --cyan: #17d3ff;
  --violet: #a937ff;
  --blue: #4a7dff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Exo 2', sans-serif;
  color: var(--text);
  background:
    radial-gradient(700px 350px at 20% 20%, rgba(0, 188, 255, 0.2), transparent 70%),
    radial-gradient(800px 420px at 80% 25%, rgba(174, 0, 255, 0.2), transparent 75%),
    linear-gradient(170deg, var(--bg-0), var(--bg-1));
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 106, 190, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 106, 190, 0.12) 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 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, #34d8ff, #7b87ff 50%, #d440ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(92, 149, 255, 0.28);
}

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

.panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(130deg, rgba(16, 25, 63, 0.82), rgba(44, 24, 76, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(177, 205, 255, 0.18),
    0 0 35px rgba(24, 153, 255, 0.14);
  backdrop-filter: blur(5px);
}

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

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

.panel-value {
  display: block;
  margin-top: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  color: #58c5ff;
  text-shadow: 0 0 20px rgba(56, 183, 255, 0.35);
}

.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(169, 86, 255, 0.52);
  background: rgba(101, 35, 153, 0.34);
  color: #d8b7ff;
  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: #8be3ff;
}

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

.token-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 178, 255, 0.25);
  background: rgba(12, 26, 66, 0.9);
  overflow: hidden;
}

.token-progress-fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    90deg,
    #22d7ff 0px,
    #45b9ff 24px,
    #658fff 48px,
    #8b6aff 72px,
    #b75dff 96px,
    #d549ff 120px,
    #22d7ff 144px
  );
  background-size: 144px 100%;
  box-shadow: 0 0 16px rgba(110, 189, 255, 0.45);
  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, 238, 214, 0.82) 0%, rgba(255, 210, 155, 0.5) 45%, rgba(255, 182, 97, 0.04) 100%);
  box-shadow: 0 0 8px rgba(255, 188, 118, 0.36), 0 0 14px rgba(120, 186, 255, 0.2);
}


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

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

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

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: #92b2e8;
  white-space: nowrap;
}

input {
  width: 100%;
  border: 1px solid rgba(103, 152, 250, 0.34);
  border-radius: 12px;
  padding: 12px;
  background: rgba(4, 11, 35, 0.85);
  color: #d6e7ff;
  font-family: 'IBM Plex Mono', monospace;
}

input::placeholder {
  color: rgba(135, 167, 220, 0.64);
}

input:focus {
  outline: none;
  border-color: #42beff;
  box-shadow: 0 0 0 3px rgba(66, 190, 255, 0.22);
}

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

.pct-btn,
.btn {
  border: 1px solid rgba(117, 156, 255, 0.46);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: #def0ff;
  background: linear-gradient(95deg, rgba(16, 186, 255, 0.52), rgba(139, 68, 255, 0.56));
}

.pct-btn.active {
  background: linear-gradient(95deg, #10c6ff, #a03bff);
}

.estimate {
  margin-top: 12px;
  border: 1px solid rgba(112, 160, 255, 0.35);
  border-radius: 12px;
  padding: 11px;
  background: rgba(5, 13, 41, 0.8);
}

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

.estimate strong {
  display: block;
  margin-top: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  color: #9ee6ff;
}

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

.result {
  margin-top: 12px;
  border: 1px solid rgba(110, 154, 250, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 84px;
  white-space: pre-wrap;
  font-family: 'IBM Plex Mono', monospace;
  color: #b4d6ff;
  background: rgba(4, 10, 31, 0.9);
}

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

.social-link {
  color: #8fb0ea;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 176, 234, 0.32);
}

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

@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;
  }

  .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;
  }
}
