:root {
  --bg: #08141f;
  --bg-soft: rgba(8, 20, 31, 0.8);
  --panel: rgba(8, 20, 31, 0.68);
  --line: rgba(159, 198, 255, 0.18);
  --text: #eff7ff;
  --muted: #8ca8c3;
  --gold: #f7c978;
  --teal: #6be2d7;
  --rose: #ff8e7a;
  --cyan: #8dd6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247, 201, 120, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(107, 226, 215, 0.15), transparent 24%),
    linear-gradient(135deg, #071018 0%, #0e2231 52%, #09131f 100%);
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient-left {
  top: -10vw;
  left: -8vw;
  background: rgba(247, 201, 120, 0.22);
}

.ambient-right {
  right: -10vw;
  bottom: -12vw;
  background: rgba(107, 226, 215, 0.18);
}

.shell {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.hero,
.grid {
  max-width: 1440px;
  margin: 0 auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.hero-wide {
  align-items: stretch;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 12px;
}

h1,
h2,
h3 {
  font-family: "Noto Serif SC", serif;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  max-width: 9ch;
}

.hero-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  margin: 14px 0 0;
  line-height: 1.7;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 14px;
  min-width: min(100%, 360px);
}

.meta-card,
.panel,
.board-card,
.stat-card,
.tips-card {
  backdrop-filter: blur(20px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.meta-card {
  border-radius: 22px;
  padding: 18px 20px;
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.meta-card strong {
  font-size: 24px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
}

.dashboard-only {
  max-width: 1440px;
  margin: 0 auto;
}

.panel {
  border-radius: 28px;
  padding: 24px;
  position: relative;
}

.full-width {
  width: 100%;
}

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

.no-gap {
  margin-bottom: 0;
}

.deal-form {
  display: grid;
  gap: 14px;
}

.deal-form label {
  display: grid;
  gap: 8px;
}

.deal-form span {
  font-size: 13px;
  color: var(--muted);
}

.deal-form input,
.deal-form select,
.deal-form button,
.ghost-button {
  border: 0;
  border-radius: 16px;
  font: inherit;
}

.deal-form input,
.deal-form select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.deal-form button {
  margin-top: 6px;
  padding: 15px 18px;
  background: linear-gradient(120deg, var(--gold), #ffdca3);
  color: #10212f;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.deal-form button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.ghost-button {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ghost-button.danger {
  color: #ffc7c7;
}

.tips-card {
  border-radius: 22px;
  padding: 18px;
}

.target-card {
  margin: 18px 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247, 201, 120, 0.09), rgba(255, 255, 255, 0.03));
}

.compact {
  margin-bottom: 14px;
}

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

.target-form label {
  display: grid;
  gap: 8px;
}

.target-form span {
  font-size: 13px;
  color: var(--muted);
}

.target-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ghost-button.accent {
  background: rgba(247, 201, 120, 0.14);
  color: var(--gold);
}

.target-tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.tips-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.monthly-wrap {
  margin-bottom: 22px;
}

.monthly-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stat-card {
  border-radius: 22px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.stat-card strong {
  display: block;
  font-size: clamp(24px, 2vw, 34px);
  margin-bottom: 8px;
}

.stat-card small {
  color: var(--gold);
}

.stat-card.monthly {
  min-height: 146px;
}

.stat-card.monthly.accent {
  background: linear-gradient(135deg, rgba(247, 201, 120, 0.16), rgba(107, 226, 215, 0.14));
}

.progress-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.progress-copy strong {
  font-size: 20px;
}

.progress-copy span {
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: width 280ms ease;
}

.daily-head,
.monthly-head {
  margin-bottom: 14px;
}

.board-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.board-card {
  border-radius: 24px;
  padding: 20px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}

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

.leader-row,
.channel-row,
.recent-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leader-row {
  grid-template-columns: 42px 1fr auto;
}

.rank-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(247, 201, 120, 0.14);
  color: var(--gold);
  font-weight: 700;
}

.leader-row strong,
.recent-row strong {
  display: block;
  margin-bottom: 4px;
}

.leader-row span,
.recent-row span,
.channel-row span {
  color: var(--muted);
  font-size: 13px;
}

.leader-row em,
.recent-row em {
  font-style: normal;
  color: var(--teal);
  font-weight: 700;
}

.trend {
  min-height: 260px;
}

.trend svg {
  width: 100%;
  height: 260px;
  overflow: visible;
}

.axis-label {
  fill: var(--muted);
  font-size: 12px;
}

.trend-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-area {
  fill: url(#trend-gradient);
}

.trend-dot {
  fill: var(--gold);
}

.channel-row {
  grid-template-columns: 92px 1fr auto;
}

.bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
}

.recent-row {
  grid-template-columns: 1.2fr auto;
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

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

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

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

@media (max-width: 760px) {
  .shell {
    padding: 16px;
  }

  .hero,
  .card-head,
  .dashboard-topbar {
    display: block;
  }

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

  .board-grid,
  .stats-grid,
  .quick-actions,
  .monthly-grid {
    grid-template-columns: 1fr;
  }

  .progress-copy {
    display: block;
  }
}
