:root {
  --bg: #0b0b0d;
  --bg-soft: #111115;
  --panel: #141418;
  --line: #2a2a31;
  --line-soft: #1f1f26;
  --text: #f1f1f4;
  --muted: #a0a0ad;
  --accent: #f0444a;
  --accent-soft: rgba(240, 68, 74, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(900px 360px at 20% -10%, rgba(240, 68, 74, 0.1), transparent 60%),
    linear-gradient(180deg, #0a0a0c, #09090b 62%);
}

.top-cta {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 10, 12, 0.95);
}

.top-cta-inner {
  width: min(1120px, calc(100% - 16px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.top-cta-label {
  font-size: 15px;
  font-weight: 700;
  color: #e3e3ea;
  letter-spacing: -0.01em;
}

.top-cta-link,
.year-btn,
.mode-btn,
.add-btn,
.remove-btn,
.primary-btn,
.secondary-btn {
  border: 1px solid #3a3a45;
  border-radius: 10px;
  background: #17171d;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
  text-decoration: none;
}

.top-cta-link {
  border-color: #15563f;
  background: #0b2218;
  color: #42e4ac;
}

.top-cta-link:hover,
.year-btn:hover,
.mode-btn:hover,
.add-btn:hover,
.remove-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  border-color: rgba(240, 68, 74, 0.82);
  box-shadow: 0 0 0 2px rgba(240, 68, 74, 0.11);
}

.top-cta-link:hover {
  border-color: #1c6b4f;
  box-shadow: 0 0 0 2px rgba(66, 228, 172, 0.15);
}

.masthead {
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(620px 200px at 80% 10%, rgba(240, 68, 74, 0.13), transparent 60%),
    linear-gradient(180deg, #0f1014, #0d0e12);
}

.masthead-inner {
  width: min(1120px, calc(100% - 16px));
  margin: 0 auto;
  padding: 42px 0 36px;
}

.masthead-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.masthead-logo {
  width: 18px;
  height: 18px;
  display: block;
}

.masthead-title {
  margin: 10px 0 8px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(44px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.masthead-title span {
  color: #f67b80;
}

.masthead-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.masthead-exchange {
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #3a3a45;
  border-radius: 999px;
  padding: 4px 9px;
  text-decoration: none;
  color: #f0f0f6;
  background: #17171d;
}

.app-shell {
  width: min(1120px, calc(100% - 16px));
  margin: 12px auto 14px;
}

.hero-meta {
  margin-bottom: 8px;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 10px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.98), rgba(16, 16, 19, 0.98));
  padding: 10px;
}

.panel-header {
  margin-bottom: 8px;
}

.panel-header h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.panel-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.result-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.copy-status {
  color: var(--muted);
  font-size: 11px;
}

.ipo-value-block {
  margin-bottom: 8px;
}

.ipo-value-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.small-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.ipo-value-live {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.ipo-value-slider {
  width: 100%;
  margin-top: 8px;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #2d2d36;
  background: linear-gradient(90deg, rgba(240, 68, 74, 0.35), rgba(240, 68, 74, 0.08));
}

.ipo-value-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff4f4;
  border: 3px solid var(--accent);
}

.ipo-value-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff4f4;
  border: 3px solid var(--accent);
}

.ipo-value-scale {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.ipo-block {
  margin: 8px 0;
}

.year-switch,
.mode-switch {
  display: grid;
  gap: 7px;
}

.year-switch {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.year-btn.active,
.mode-btn.active {
  border-color: rgba(240, 68, 74, 0.8);
  background: var(--accent-soft);
}

.token-section,
.pool-section {
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.token-section.hidden,
.pool-section.hidden {
  display: none;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.add-btn {
  padding: 6px 9px;
}

.grid {
  display: grid;
  gap: 8px;
}

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

.stake-entries {
  display: grid;
}

.stake-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.stake-row:last-child {
  border-bottom: 0;
}

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

.entry-title {
  font-size: 13px;
  font-weight: 700;
}

.remove-btn {
  padding: 5px 8px;
}

.remove-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mini-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-field span {
  color: var(--muted);
  font-size: 11px;
}

.mini-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #353541;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  padding: 2px 0 4px;
}

.mini-field input:focus {
  border-bottom-color: rgba(240, 68, 74, 0.8);
}

.stake-row-meta {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.entry-track {
  margin-top: 5px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid #2b2b36;
  background: #1a1a22;
  overflow: hidden;
}

.entry-track-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #dc5a5f, #f1888d);
}

.actions {
  margin-top: 6px;
  min-height: 14px;
}

.result-metas {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.summary-capture-area {
  display: grid;
  gap: 8px;
}

.result-config-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.result-config-pill {
  min-width: 0;
  border: 1px solid #2f2f3a;
  border-radius: 10px;
  padding: 8px 10px;
  background:
    radial-gradient(260px 90px at 85% 0%, rgba(240, 68, 74, 0.1), transparent 68%),
    rgba(16, 16, 21, 0.72);
}

.result-config-pill span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.result-config-pill strong {
  display: block;
  margin-top: 2px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sub-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-group-block {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 7px 8px;
  background:
    radial-gradient(300px 100px at 0% 0%, rgba(240, 68, 74, 0.06), transparent 60%),
    rgba(16, 16, 21, 0.65);
}

.current-block {
  border-color: rgba(240, 68, 74, 0.26);
}

.ipo-result-block {
  border-color: rgba(91, 231, 255, 0.25);
}

.result-group-title {
  margin: 0 0 4px;
  color: #ececf2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-item {
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}

.result-group-block .result-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.card-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
}

.card-value {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.breakdown {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}

.breakdown h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.unlock-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.unlock-item {
  min-width: 0;
}

.mini-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
}

.mini-value {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.track-wrap {
  margin-top: 7px;
}

.track-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.track {
  height: 8px;
  border: 1px solid #2c2c39;
  border-radius: 999px;
  background: #1a1a23;
  overflow: hidden;
}

.track-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #dc5a5f, #f1888d);
}

.note-text {
  margin-top: 5px;
}

.snapshot-card {
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.snapshot-header {
  margin-bottom: 6px;
}

.snapshot-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 15px;
}

.snapshot-grid {
  display: grid;
  gap: 6px;
}

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

.snapshot-item {
  min-width: 0;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
}

.snapshot-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.snapshot-item strong {
  display: block;
  margin-top: 2px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snapshot-foot {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.dopamine-chart {
  margin-bottom: 10px;
  border: 1px solid #2f2f39;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px 8px;
  background:
    radial-gradient(380px 130px at 90% 0%, rgba(91, 231, 255, 0.11), transparent 62%),
    radial-gradient(340px 120px at 10% 100%, rgba(249, 115, 117, 0.14), transparent 62%),
    linear-gradient(180deg, #15151c, #111117);
}

.dopamine-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 2px;
  grid-column: 1 / -1;
  grid-row: 1;
}

.dopamine-head span {
  color: var(--muted);
  font-size: 11px;
}

.dopamine-head strong {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dopamine-head small {
  font-size: 12px;
  color: #79ffc8;
  font-weight: 700;
}

.trajectory-svg {
  width: 100%;
  height: 130px;
  display: block;
  grid-column: 2;
  grid-row: 2;
}

.trajectory-y-axis {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: #a9aab6;
  font-size: 10px;
  line-height: 1;
  padding-top: 4px;
  padding-bottom: 10px;
}

.trajectory-area {
  fill: url(#trajectoryAreaGradient);
}

.trajectory-line {
  fill: none;
  stroke: url(#trajectoryLineGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(249, 115, 117, 0.34));
}

.trajectory-dot {
  fill: #ffd2d3;
  stroke: #1f1f26;
  stroke-width: 2;
}

.trajectory-hit {
  fill: transparent;
  cursor: pointer;
}

.trajectory-dot.peak {
  fill: #9cf4ff;
  stroke: #1c1f28;
  animation: peakPulse 1.6s ease-in-out infinite;
}

.trajectory-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
  grid-column: 2;
  grid-row: 3;
}

.tokenomics-showcase {
  margin-top: 16px;
  border: 1px solid #252533;
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(620px 220px at 70% 0%, rgba(103, 86, 255, 0.11), transparent 64%),
    radial-gradient(520px 220px at 10% 100%, rgba(240, 68, 74, 0.12), transparent 66%),
    linear-gradient(180deg, #11121a, #0d0f16);
}

.tokenomics-kicker {
  margin: 0;
  color: #8f96b0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tokenomics-title {
  margin: 6px 0 6px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
}

.tokenomics-subtitle {
  margin: 0;
  color: #a7abc0;
  font-size: 14px;
  max-width: 980px;
}

.tokenomics-progress {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 25fr 37.5fr 37.5fr;
  gap: 6px;
  height: 14px;
}

.tokenomics-progress-segment {
  border-radius: 999px;
}

.seg-tge {
  background: linear-gradient(90deg, #4f8fff, #5aa2ff);
}

.seg-pre {
  background: linear-gradient(90deg, #c862f6, #d37cff);
}

.seg-post {
  background: #262a37;
}

.tokenomics-legend {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: #a7abc0;
  font-size: 14px;
}

.tokenomics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-tge {
  background: #5aa2ff;
}

.dot-pre {
  background: #d37cff;
}

.dot-post {
  background: #34394a;
}

.tokenomics-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tokenomics-card {
  border: 1px solid #2b2f3e;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(19, 22, 33, 0.84), rgba(14, 16, 24, 0.9));
}

.tokenomics-card-active {
  border-color: rgba(211, 124, 255, 0.5);
  background:
    radial-gradient(300px 120px at 80% 0%, rgba(211, 124, 255, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(27, 20, 39, 0.86), rgba(14, 16, 24, 0.92));
}

.tokenomics-card-muted {
  opacity: 0.64;
}

.card-mini {
  margin: 0;
  color: #9298b1;
  font-size: 12px;
}

.status-green {
  color: #2fe196;
  font-weight: 700;
}

.status-purple {
  color: #e689ff;
  font-weight: 700;
}

.status-muted {
  color: #757c94;
  font-weight: 700;
}

.card-big {
  margin: 6px 0 2px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.card-mid {
  margin: 0 0 10px;
  color: #9ea3ba;
  font-size: 14px;
}

.card-line {
  margin: 0 0 4px;
  color: #9ea3ba;
  font-size: 13px;
}

@keyframes peakPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .masthead-inner {
    padding: 34px 0 28px;
  }

  .masthead-title {
    font-size: clamp(36px, 8vw, 54px);
  }

  .top-cta-label {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .app-shell,
  .top-cta-inner,
  .masthead-inner {
    width: calc(100% - 12px);
  }

  .top-cta-inner {
    min-height: 48px;
    justify-content: space-between;
  }

  .top-cta-label {
    font-size: 13px;
  }

  .top-cta-link {
    padding: 7px 10px;
    font-size: 12px;
  }

  .masthead-inner {
    padding: 24px 0 20px;
  }

  .masthead-brand {
    font-size: 20px;
  }

  .masthead-title {
    font-size: clamp(30px, 10vw, 40px);
  }

  .masthead-subtitle {
    font-size: 13px;
  }

  .year-switch,
  .mode-switch,
  .result-config-pills,
  .tokenomics-legend,
  .tokenomics-cards,
  .grid.two,
  .result-grid,
  .unlock-inline,
  .snapshot-grid-compact,
  .stake-row .grid.two {
    grid-template-columns: 1fr;
  }

  .section-top {
    flex-direction: column;
    align-items: stretch;
  }

  .mini-field input {
    font-size: 21px;
  }

  .card-value {
    font-size: clamp(18px, 7vw, 26px);
  }
}
