:root {
  --bg: #ebe8f8;
  --bg-pattern: rgba(91, 79, 214, 0.08);
  --surface: #ffffff;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent-green: #22c55e;
  --text: #1e1b4b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --dark: #1e1b4b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(79, 70, 229, 0.12);
  --font: "Vazirmatn", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 0;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 0;
}

.hero-wrap::before,
.hero-wrap::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--bg-pattern);
  border-radius: 24px;
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-wrap::before {
  top: 8%;
  right: -80px;
}

.hero-wrap::after {
  top: 20%;
  left: -60px;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Calculator card */
.calc-card {
  background: var(--dark);
  color: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 2rem;
  margin-top: 2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}

.calc-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.calc-card p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.95rem;
}

.calc-display {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-value {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--accent-green);
}

.calc-pct {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent-green);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary-light);
  margin: 1rem 0;
}

.calc-compare {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.calc-compare button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}

.calc-compare button.active {
  color: var(--accent-green);
  font-weight: 700;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 2rem;
}

.section-center {
  text-align: center;
}

.section-center .section-lead {
  margin-inline: auto;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Experts */
.expert-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 480px;
  margin: 2rem auto 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.testimonial {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.testimonial-thumb {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.testimonial-excerpt {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-details {
  margin-bottom: 0.75rem;
  text-align: right;
}

.testimonial-details summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  list-style: none;
}

.testimonial-details summary::-webkit-details-marker {
  display: none;
}

.testimonial-details p {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.testimonial time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Chat demo */
.chat-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

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

.chat-window {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.chat-messages {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 360px;
  overflow-y: auto;
}

.bubble {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.bubble-user {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
}

.bubble-bot {
  align-self: flex-end;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.bubble-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pill strong {
  color: var(--text);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

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

.price-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price-card .tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 0.5rem;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0;
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}

.faq-q::after {
  content: "+";
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

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

.site-footer a {
  color: var(--primary-light);
}

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Blog — Ecotrust-style index */
.blog-page {
  background: #f6f6fb;
}

.blog-page main {
  background: white;
}

.blog-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  background: white;
}

.blog-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
}

.blog-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.blog-block {
  padding: 2rem 0 2.5rem;
}

.blog-block--soft {
  background: #f8f8fc;
}

.blog-block-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.blog-carousel {
  position: relative;
}

#featured-carousel,
#hot-carousel {
  overflow: hidden;
}

.blog-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.25rem 0 1rem;
}

.blog-carousel-track::-webkit-scrollbar {
  display: none;
}

.blog-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.blog-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary);
}

.blog-post-card {
  flex: 0 0 min(220px, 70vw);
  scroll-snap-align: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.blog-post-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.blog-post-card--lg {
  flex: unset;
  width: 100%;
  max-width: none;
}

.blog-post-card-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg);
}

.blog-post-card--sm {
  flex: 1;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
}

.blog-post-card--sm .blog-post-card-img-wrap {
  aspect-ratio: 1;
}

.blog-post-card--sm .blog-post-card-body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-card-body {
  padding: 0.85rem 1rem 1.1rem;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-post-cat::before {
  content: "●";
  color: var(--primary);
  margin-left: 0.35rem;
  font-size: 0.55rem;
  vertical-align: middle;
}

.blog-post-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.blog-post-card--lg .blog-post-title {
  font-size: 1.05rem;
}

.blog-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.blog-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.blog-cat-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.blog-cat-icon {
  font-size: 1.5rem;
}

.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.blog-quick-tag {
  padding: 0.45rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}

.blog-quick-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.blog-archive {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

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

.blog-archive-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-archive-tab {
  width: 100%;
  text-align: right;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-muted);
}

.blog-archive-tab.active,
.blog-archive-tab:hover {
  background: #eef2ff;
  color: var(--primary);
  font-weight: 600;
}

.blog-archive-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.blog-archive-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.blog-archive-all {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.blog-archive-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-archive-empty {
  color: var(--text-muted);
  padding: 2rem 1rem;
  text-align: center;
}

.blog-trust {
  background: linear-gradient(180deg, #f0effa 0%, white 100%);
  padding: 3rem 0 4rem;
  text-align: center;
}

.blog-trust-inner h2 {
  margin: 0 0 0.5rem;
}

.blog-trust-inner > p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.blog-trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin: 0;
}

.blog-trust-stats div {
  text-align: center;
}

.blog-trust-stats dt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.blog-trust-stats dd {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.blog-section-title {
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.blog-card-thumb {
  width: calc(100% + 2.5rem);
  margin: -1.25rem -1.25rem 1rem;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.blog-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary);
  background: #eef2ff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.blog-card time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-hero {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 1rem 0 1.25rem;
}

.article-wrap h1 {
  margin: 0.75rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body {
  margin-top: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.article-body h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.prose-ecotrust {
  line-height: 1.9;
  font-size: 0.98rem;
}

.prose-ecotrust p,
.prose-ecotrust .wp-block-paragraph {
  margin: 0 0 1rem;
}

.prose-ecotrust h2,
.prose-ecotrust h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.prose-ecotrust img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.prose-ecotrust ul,
.prose-ecotrust ol {
  margin: 0 0 1rem;
  padding-right: 1.25rem;
}

.prose-ecotrust table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.prose-ecotrust th,
.prose-ecotrust td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: right;
}

.prose-ecotrust a {
  color: var(--primary);
  text-decoration: underline;
}

.prose-ecotrust details {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

/* Onboarding */
.onboarding-body {
  background: var(--bg);
  min-height: 100vh;
}

.onboarding-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.onboarding-card {
  width: min(440px, 100%);
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.onboarding-visual {
  position: relative;
  height: 160px;
  margin-bottom: 1rem;
}

.onboarding-orbit {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef2ff, #c7d2fe);
  border: 3px solid var(--primary-light);
}

.onboarding-step-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.onboarding-text {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.onboarding-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c7d2fe;
  cursor: pointer;
  padding: 0;
}

.onboarding-dots button.active {
  background: var(--primary);
  transform: scale(1.2);
}

.onboarding-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.onboarding-cta {
  width: 100%;
}

/* Auth */
.auth-body {
  background: var(--bg);
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 3rem 1rem 4rem;
  min-height: calc(100vh - 80px);
}

.auth-card {
  width: min(400px, 100%);
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-card-wide {
  width: min(440px, 100%);
}

.auth-form {
  text-align: right;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-field input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.auth-field input:focus {
  outline: 2px solid var(--primary-light);
  border-color: var(--primary);
  background: white;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.auth-actions .btn {
  width: 100%;
}

.auth-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin: 0;
}

.auth-hint,
.auth-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* App shell */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.app-user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.avatar-img,
.avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-mini {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
}

.app-main h1 {
  margin-top: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.dash-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.dash-panel.wide {
  grid-column: 1 / -1;
}

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

.dash-stat {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: var(--primary);
}

.dash-delta.positive {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.dash-list {
  margin: 0;
  padding-right: 1.25rem;
  color: var(--text-muted);
}

.market-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.plan-toast {
  margin-top: 1.5rem;
  color: var(--accent-green);
  font-weight: 600;
}

.profile-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.25rem 0;
}

.profile-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.profile-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

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

.profile-dl dd {
  margin: 0;
  font-weight: 600;
}