:root {
  --bg: #07111a;
  --panel: rgba(10, 22, 35, 0.82);
  --panel-soft: rgba(16, 31, 47, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef5ff;
  --muted: #8fa6c2;
  --accent: #df8d3f;
  --accent-2: #6bc8a5;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(223, 141, 63, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(107, 200, 165, 0.12), transparent 20%),
    linear-gradient(180deg, #041019 0%, #06111b 45%, #091723 100%);
}

.page-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

.home-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.section-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  margin: 0 0 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(16, 31, 47, 0.76);
}

.section-tab {
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
}

.section-tab.active {
  color: var(--text);
  background: rgba(223, 141, 63, 0.14);
  border: 1px solid rgba(223, 141, 63, 0.2);
}

.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(223, 141, 63, 0.15), transparent 22%),
    linear-gradient(180deg, rgba(17, 30, 46, 0.88), rgba(10, 22, 35, 0.88));
}

.hero-topline,
.hero-meta,
.panel-head,
.kpi-row,
.action-list {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(223, 141, 63, 0.14);
  color: #ffd19d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pill-strong {
  background: rgba(107, 200, 165, 0.14);
  color: #9ff1d1;
}

.hero-copy h1,
.panel-head h2 {
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  margin: 16px 0 10px;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-meta {
  margin-top: 20px;
}

.hero-meta > div,
.metric-card {
  min-width: 160px;
  flex: 1 1 0;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-label,
.panel-note,
.metric-card span,
.links-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

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

.panel {
  padding: 20px;
}

.helper-panel.hidden {
  display: none;
}

.panel.hidden {
  display: none;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head p,
.panel-note {
  margin: 0;
}

.kpi-row {
  margin-bottom: 14px;
}

.metric-card strong {
  font-size: 26px;
}

.stage-list,
.helper-list,
.task-list,
.reward-list,
.timeline-list {
  display: grid;
  gap: 12px;
}

.stage-card,
.helper-item,
.task-item,
.reward-item,
.timeline-item {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.stage-topline strong {
  font-size: 15px;
}

.stage-card p,
.helper-panel p,
.pdd-status {
  color: var(--muted);
  line-height: 1.6;
}

.pdd-status {
  padding: 12px 14px;
  margin: 0 0 14px;
  border-radius: var(--radius-md);
  background: rgba(107, 200, 165, 0.1);
  border: 1px solid rgba(107, 200, 165, 0.18);
}

.stage-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  margin-top: 12px;
}

.stage-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.action-list {
  margin-bottom: 16px;
}

.button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.button-primary {
  background: linear-gradient(180deg, #ef9550, #d36f1d);
  color: #fff8f0;
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.links-box {
  display: grid;
  gap: 10px;
}

.links-box label {
  display: grid;
  gap: 6px;
}

.links-box input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
}

.helper-item strong {
  display: block;
  margin-bottom: 4px;
}

.helper-item span,
.task-item span,
.reward-item span,
.timeline-item span {
  color: var(--muted);
  font-size: 13px;
}

.task-topline,
.reward-topline,
.timeline-topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.reward-actions {
  margin-top: 10px;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.state-pill.done {
  background: rgba(107, 200, 165, 0.14);
  color: #9ff1d1;
}

.state-pill.locked {
  background: rgba(223, 141, 63, 0.14);
  color: #ffd19d;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(5, 13, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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