.page {
  padding-top: 5.5rem;
  min-height: 100vh;
}

.page-narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.page-wide {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.page-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  line-height: 1.05;
}

.page-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.grid-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-cards.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card .value {
  margin-top: 0.4rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}

.balance-hero {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  padding: 1.4rem;
}

.chart-box {
  height: 220px;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: min(100%, 440px);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card-solid);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.stepper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stepper span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
}

.stepper span.active {
  background: var(--accent);
}

.timeline {
  position: relative;
  padding-left: 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.02rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 0;
  color: var(--text-strong);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}

.faq-item .answer {
  display: none;
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.open .answer {
  display: block;
}

.pricing-toggle {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 0.25rem;
}

.pricing-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.pricing-toggle button.active {
  background: var(--accent);
  color: #000;
}

.card-visual {
  aspect-ratio: 1.6;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #1a1a1a, #ff4f00 140%);
  color: white;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

[data-theme="light"] .card-visual {
  background: linear-gradient(135deg, #222, #ff4f00 150%);
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 1rem;
  background: white;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box canvas,
.qr-box img {
  width: 100% !important;
  height: 100% !important;
}

.blog-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
  }
  .filter-bar .search-wrap {
    flex: 1;
  }
}
