:root {
  --bg: #0c0710;
  --card: #180f1f;
  --border: #33203d;
  --purple: #a64ca6;
  --purple-light: #c874d9;
  --purple-dark: #3a1a45;
  --orange: #ff7a3d;
  --text: #f2e9f5;
  --text-muted: #b9a3c4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(90deg, var(--purple), var(--orange));
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  padding: 14px 32px;
  box-shadow: 0 8px 24px rgba(166, 76, 166, 0.35);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(166, 76, 166, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.hero {
  text-align: center;
  padding: 48px 0 64px;
}

.hero .logo {
  width: min(220px, 60vw);
  filter: drop-shadow(0 0 40px var(--purple-dark));
}

h1 {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(90deg, var(--purple-light), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 56px;
}

.stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 8px;
}

.stat b {
  display: block;
  font-size: 1.5rem;
  color: var(--orange);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-title {
  text-align: center;
  margin-bottom: 4px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 32px;
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}

.cmd-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.cmd-group h3 {
  margin-top: 0;
  color: var(--purple-light);
}

.cmd-row {
  margin-bottom: 12px;
}

.cmd-row:last-child {
  margin-bottom: 0;
}

.cmd-row code {
  color: var(--orange);
  font-size: 0.9rem;
}

.cmd-row p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.cta {
  text-align: center;
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.page-header {
  text-align: center;
  padding: 40px 0 32px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 8px auto 0;
  line-height: 1.6;
}

.mock-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  max-width: fit-content;
  margin: 0 auto 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mock-banner .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-orange {
  background: rgba(255, 122, 61, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 122, 61, 0.35);
}

.badge-muted {
  background: rgba(185, 163, 196, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding-bottom: 32px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.profile-info h3 {
  margin: 0 0 4px;
}

.profile-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--orange));
}

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

.pokemon-slot {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
}

.pokemon-slot .mon-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: var(--purple-dark);
}

.pokemon-slot b {
  display: block;
  font-size: 0.85rem;
}

.pokemon-slot span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gym-badge {
  text-align: center;
  padding: 14px 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
}

.gym-badge.unlocked {
  background: rgba(255, 122, 61, 0.08);
  border-color: rgba(255, 122, 61, 0.4);
  color: var(--text);
}

.gym-badge.locked {
  color: var(--text-muted);
  opacity: 0.55;
}

.gym-badge .icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 4px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.mon-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  position: relative;
}

.mon-card img {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
}

.mon-card b {
  display: block;
  font-size: 0.85rem;
  margin-top: 4px;
}

.mon-card .mon-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mon-card .mon-stars {
  color: var(--orange);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.mon-card .mon-team-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.62rem;
  background: rgba(255, 122, 61, 0.18);
  color: var(--orange);
  border-radius: 999px;
  padding: 2px 6px;
}

.mon-card .mon-shiny {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.85rem;
}

.state-message {
  text-align: center;
  max-width: 440px;
  margin: 40px auto;
  padding: 40px 32px;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.state-message h2 {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.state-message p {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.state-message p:last-of-type {
  margin-bottom: 22px;
}

.state-message code {
  color: var(--orange);
}

.state-message .btn {
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 56px;
}

.price-card {
  text-align: center;
  position: relative;
}

.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.price-card .tier {
  color: var(--purple-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0 4px;
}

.price-card .price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 2;
}

.price-card ul li::before {
  content: "✓ ";
  color: var(--orange);
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

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