:root {
  --bg: #06070b;
  --panel: rgba(13, 16, 25, 0.92);
  --panel-strong: #111622;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f3e8;
  --muted: #9aa3b8;
  --gold: #e7c66b;
  --gold-strong: #ffd978;
  --cyan: #4fe7ff;
  --green: #7cffb2;
  --danger: #ff6b88;
  --radius: 8px;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0b0d14 0%, var(--bg) 42%, #030408 100%);
  color: var(--text);
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(231, 198, 107, 0.22);
  border-radius: 18px;
  background: #080a10;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.hero-art,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-art {
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0.08), rgba(7, 8, 13, 0.8)),
    url("./assets/city-night.svg") center / cover no-repeat,
    linear-gradient(180deg, #151a2a 0%, #07080d 58%, #030408 100%);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.18), rgba(6, 7, 11, 0.78)),
    linear-gradient(110deg, rgba(6, 7, 11, 0.84), rgba(6, 7, 11, 0.08) 58%);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-content {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: end;
  padding: 22px 20px 20px;
}

.progress-orb {
  position: relative;
  width: 136px;
  height: 136px;
}

.progress-orb svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.orb-track,
.orb-fill {
  fill: none;
  stroke-width: 10;
}

.orb-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.orb-fill {
  stroke: var(--gold-strong);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  filter: drop-shadow(0 0 12px rgba(231, 198, 107, 0.58));
  transition: stroke-dashoffset 180ms ease;
}

.orb-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.orb-text strong {
  font-size: 34px;
  line-height: 1;
}

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

.hero-stats {
  display: grid;
  gap: 9px;
}

.hero-stats div,
.metric-grid article,
.spotlight,
.task-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 12px;
}

.hero-stats span,
.metric-grid span,
.task-card small {
  color: var(--muted);
  font-size: 12px;
}

.hero-stats strong,
.metric-grid strong {
  font-size: 15px;
}

.panel {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--panel);
  padding: 12px;
}

.vip-switch,
.tabs,
.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.vip-switch::-webkit-scrollbar,
.tabs::-webkit-scrollbar,
.category-strip::-webkit-scrollbar {
  display: none;
}

.vip-pill,
.tab,
.category-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  white-space: nowrap;
}

.vip-pill {
  padding: 0 13px;
}

.vip-pill.active,
.tab.active,
.category-pill.active {
  border-color: rgba(231, 198, 107, 0.65);
  background: linear-gradient(180deg, rgba(231, 198, 107, 0.24), rgba(231, 198, 107, 0.08));
  color: var(--text);
}

.tabs {
  margin-top: 12px;
}

.tab {
  flex: 1 0 auto;
  padding: 0 12px;
}

.view {
  display: none;
  padding-top: 16px;
}

.view.active {
  display: block;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 20px;
}

.section-title span {
  color: var(--gold);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-grid article {
  min-height: 78px;
  padding: 12px;
}

.metric-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.spotlight {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
}

.spotlight-mark {
  width: 12px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
}

.spotlight p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.category-strip {
  margin-bottom: 12px;
}

.category-pill {
  padding: 0 12px;
}

.task-list {
  display: grid;
  gap: 9px;
}

.task-card {
  display: grid;
  grid-template-columns: 1fr 44px;
  min-height: 68px;
  overflow: hidden;
}

.task-main,
.task-action {
  border: 0;
  background: transparent;
  color: var(--text);
}

.task-main {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  text-align: left;
}

.task-status {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--muted);
}

.task-card.completed .task-status {
  border-color: rgba(124, 255, 178, 0.6);
  color: var(--green);
}

.task-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.28;
}

.task-copy small {
  display: block;
  margin-top: 5px;
}

.task-action {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--gold);
  font-size: 22px;
}

.task-card.selected .task-action {
  color: var(--danger);
}

.empty {
  padding: 24px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 390px) {
  .topbar {
    padding: 16px;
  }

  h1 {
    font-size: 30px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 18px 14px 16px;
  }

  .progress-orb {
    margin: 0 auto;
  }

  .vip-switch,
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .vip-pill,
  .tab {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    white-space: normal;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}
