:root {
  --bg: #020617;
  --ink: #ffffff;
  --muted: #9ca3af;
  --surface: rgba(15, 23, 42, 0.72);
  --soft: rgba(34, 197, 94, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --teal: #22c55e;
  --lime: #25d366;
  --coral: #facc15;
  --graphite: #0f172a;
  --dark-900: #050b18;
  --dark-800: #0b1220;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 24% 4%, rgba(34, 197, 94, 0.08), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(20, 184, 166, 0.06), transparent 26%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 900;
  flex: 0 0 auto;
  color: #fff;
}
.brand-word {
  display: inline-block;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.brand-word span { color: var(--teal); }
.brand.compact { margin-bottom: 24px; color: #fff; }
.brand-logo {
  display: block;
  width: 188px;
  max-width: 34vw;
  height: auto;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}
.brand-mark-img {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--lime);
  color: var(--graphite);
}
nav { display: flex; gap: 24px; color: var(--muted); font-weight: 700; }
nav a { text-decoration: none; }
.header-actions, .hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.primary-btn, .secondary-btn, .ghost-btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  border: 0;
  font-weight: 900;
}
.primary-btn { background: var(--teal); color: #fff; box-shadow: 0 12px 34px rgba(34, 197, 94, 0.24); }
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.secondary-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.ghost-btn { background: transparent; color: #d1d5db; border: 1px solid rgba(255, 255, 255, 0.1); }
.link-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.large { min-height: 50px; padding: 0 22px; }
.full { width: 100%; justify-content: center; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 30px;
  padding: 72px 28px 64px;
  max-width: 1240px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--teal);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 6.6vw, 5.4rem);
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 760px;
  font-weight: 900;
  letter-spacing: 0;
}
h1 span {
  background: linear-gradient(90deg, #22c55e, #34d399, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.05; }
h2 {
  font-weight: 900;
  letter-spacing: 0;
}
h3 { margin-bottom: 8px; }
.hero-copy > p, .demo-band p, .pricing p, .steps p, .muted {
  color: var(--muted);
  line-height: 1.6;
}
.hero-copy > p {
  font-size: clamp(1.08rem, 1.55vw, 1.25rem);
  max-width: 640px;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trust-row span, .badge {
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--teal);
  padding: 8px 12px;
  font-weight: 900;
  font-size: 0.82rem;
}
.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.avatars { display: flex; }
.avatars i {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4ade80, #059669);
  color: #fff;
  border: 2px solid var(--bg);
  margin-left: -8px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
}
.avatars i:first-child { margin-left: 0; }
.social-proof small { display: block; color: var(--muted); }
.rating-proof b {
  display: flex;
  align-items: center;
  gap: 3px;
}
.rating-proof span {
  color: #facc15;
  font-size: 0.95rem;
  line-height: 1;
}
.rating-proof em {
  margin-left: 6px;
  color: #d1d5db;
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 800;
}
.hero-media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.demo-band, .pricing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 30px;
  align-items: center;
}
.phone-demo {
  max-width: 390px;
  justify-self: center;
  width: 100%;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid var(--line);
}
.phone-head small { display: block; color: #4ade80; }
.phone-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  padding: 3px;
}
.wa-dot { width: 36px; height: 36px; border-radius: 999px; background: var(--lime); }
.phone-thread {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: rgba(2, 6, 23, 0.48);
}
.static-thread {
  min-height: 360px;
}
.hero-phone {
  justify-self: center;
}
.post-preview {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.post-preview span {
  color: var(--teal);
  font-weight: 900;
}
.post-preview strong {
  font-size: 1.2rem;
}
.post-preview div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.post-preview button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}
.post-preview button:first-child {
  background: var(--teal);
  color: #fff;
}
.post-preview button:last-child {
  background: rgba(255, 255, 255, 0.05);
  color: #d1d5db;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.92);
  border-top: 1px solid var(--line);
}
.phone-status b { color: var(--teal); }
.phone-status span { color: var(--muted); }
.bubble {
  max-width: 82%;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.45;
  white-space: pre-line;
}
.bubble.user { align-self: flex-end; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.2); color: #fff; }
.bubble.bot { align-self: flex-start; background: rgba(15, 23, 42, 0.72); border: 1px solid var(--line); color: #fff; }

.audiences,
.features,
.proof,
.faq,
.testimonials,
.final-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 28px;
}
.audiences {
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.35);
  position: relative;
}
.audiences h2 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.chip-grid {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 0;
}
.chip-grid span {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.steps {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.section-title {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 18px;
}
.section-title p {
  color: var(--muted);
}
.center-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.steps article, .price-card, .panel-card, .stats-grid article, .feature-grid article, .proof-grid article, .faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.steps article {
  padding: 26px;
}
.steps span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}
.steps h3 {
  font-size: 1.18rem;
  color: #fff;
}
.steps p {
  font-size: 0.98rem;
}
.features {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  border-top: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature-grid p { color: var(--muted); }

.metric-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 28px 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric-band article {
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  opacity: 0;
  transform: translateY(18px);
  overflow: hidden;
  position: relative;
}
.metric-band article::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #25d366, #14b8a6);
  transform: scaleX(0);
  transform-origin: left;
}
.metric-band article.metric-visible {
  animation: metricReveal 0.68s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.metric-band article.metric-visible::before {
  animation: metricFill 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.metric-band article:nth-child(2).metric-visible { animation-delay: 0.08s; }
.metric-band article:nth-child(3).metric-visible { animation-delay: 0.16s; }
.metric-band article:nth-child(4).metric-visible { animation-delay: 0.24s; }
.metric-band strong {
  display: block;
  color: var(--lime);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}
.metric-band span { color: #d4dfda; }

.pricing {
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
}
.pricing-head { max-width: 760px; }
.billing-toggle {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  margin-top: 14px;
  max-width: 100%;
}
.billing-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}
.billing-toggle b {
  color: var(--teal);
  font-size: 0.78rem;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.price-card strong { display: block; font-size: 2.5rem; margin: 14px 0; }
.price-card small { color: var(--muted); font-size: 1rem; }
.price-card ul { color: var(--muted); display: grid; gap: 10px; margin: 0 0 18px; padding-left: 18px; }
.price-card button + button { margin-top: 10px; }
.price-card.featured {
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  transform: translateY(-8px);
  border-color: rgba(183, 217, 90, 0.55);
  box-shadow: 0 24px 70px rgba(32, 37, 35, 0.22);
}
.price-card.featured ul,
.price-card.featured small { color: #cdd8d3; }
.price-card.featured .badge { background: var(--lime); color: var(--graphite); }

.proof { border-top: 1px solid var(--line); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.proof-grid strong {
  display: block;
  font-size: 2.4rem;
  color: var(--teal);
  margin-bottom: 8px;
}
.proof-grid span { color: var(--muted); }
.faq {
  padding-top: 40px;
}
.testimonials { border-top: 1px solid var(--line); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.testimonial-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.testimonial-grid i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
  margin-bottom: 12px;
}
.testimonial-grid p { color: var(--muted); }
.testimonial-grid b { color: var(--coral); }
.faq details { margin-top: 10px; }
.faq summary {
  cursor: pointer;
  font-weight: 900;
}
.faq p { color: var(--muted); margin: 10px 0 0; }
.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.12), transparent 42%),
    rgba(15, 23, 42, 0.96);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-bottom: 60px;
}
.final-cta .avatars { justify-content: center; margin-bottom: 18px; }
.final-cta .avatars i { border-color: var(--graphite); background: var(--lime); color: var(--graphite); }
.final-cta p { color: #d4dfda; }
.final-cta small { display: block; margin-top: 12px; color: #aebbb5; }

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 46px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 22px;
  color: var(--muted);
}
.footer p { max-width: 340px; line-height: 1.55; }
.footer .brand-logo { width: 218px; max-width: 100%; }
.footer .brand-mark-img {
  width: 46px;
  height: 46px;
}
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1.7rem;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.3);
}

.home-page .brand,
.home-page nav a,
.home-page .header-actions,
.home-page .hero-copy > *,
.home-page .hero-phone {
  animation: fadeLift 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.home-page nav a:nth-child(2),
.home-page .hero-copy > *:nth-child(2) { animation-delay: 0.05s; }
.home-page nav a:nth-child(3),
.home-page .hero-copy > *:nth-child(3) { animation-delay: 0.1s; }
.home-page nav a:nth-child(4),
.home-page .hero-copy > *:nth-child(4) { animation-delay: 0.15s; }
.home-page nav a:nth-child(5),
.home-page .hero-copy > *:nth-child(5) { animation-delay: 0.2s; }
.home-page .hero-phone {
  animation-name: fadeLift, phoneFloat;
  animation-duration: 0.8s, 5.8s;
  animation-delay: 0.18s, 1s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease-in-out;
  animation-fill-mode: both, both;
  animation-iteration-count: 1, infinite;
}
.home-page .primary-btn,
.home-page .secondary-btn,
.home-page .ghost-btn,
.home-page .price-card,
.home-page .feature-grid article,
.home-page .steps article,
.home-page .testimonial-grid article,
.home-page .metric-band article,
.home-page .whatsapp-float {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.home-page .primary-btn:hover,
.home-page .secondary-btn:hover,
.home-page .ghost-btn:hover {
  transform: translateY(-2px);
}
.home-page .primary-btn:hover {
  background: #16a34a;
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.34);
}
.home-page .feature-grid article:hover,
.home-page .steps article:hover,
.home-page .testimonial-grid article:hover,
.home-page .metric-band article:hover,
.home-page .price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}
.home-page .price-card.featured:hover {
  transform: translateY(-12px);
}
.home-page .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.72);
  animation: pulseDot 2s ease-in-out infinite;
}
.home-page .bubble,
.home-page .post-preview,
.home-page .phone-status {
  animation: chatPop 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.home-page .bubble.bot { animation-delay: 0.35s; }
.home-page .post-preview { animation-delay: 0.7s; }
.home-page .phone-status:first-of-type { animation-delay: 0.9s; }
.home-page .phone-status:last-of-type { animation-delay: 1.05s; }
.home-page .repeat-list {
  width: max-content;
  min-width: max-content;
  flex-wrap: nowrap;
  justify-content: flex-start;
  animation: marquee 26s linear infinite;
}
.home-page .audience-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.home-page .audiences {
  max-width: none;
}
.home-page .audiences .eyebrow,
.home-page .audiences h2 {
  margin-left: auto;
  margin-right: auto;
}
.home-page .audiences .chip-grid {
  padding-left: 28px;
}
.home-page .reveal-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1), transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-page .reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.home-page .whatsapp-float {
  animation: whatsappPulse 2.6s ease-in-out infinite;
}
.home-page .whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
}
.footer h3 { color: var(--ink); }
.footer a { display: block; text-decoration: none; margin-bottom: 8px; }
.footer > small {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.app-shell {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.app-page {
  min-height: 100vh;
  background: #edf3ec;
}
.app-page .app-shell {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 18px;
}
.app-sidebar {
  background: var(--graphite);
  padding: 20px;
  border-radius: 8px 0 0 8px;
}
.nav-item {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  color: #dce7e2;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
}
.nav-item.active, .nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.app-main {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  padding: 24px;
  min-width: 0;
}
.app-main h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  margin-bottom: 0;
}
.app-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.panel-view { display: none; }
.panel-view.active { display: block; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.stats-grid span { color: var(--muted); }
.stats-grid strong { display: block; font-size: 2rem; margin-top: 6px; }
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.chat-box { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.chat-thread {
  height: 390px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--soft);
}
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfdfb;
}
code {
  display: block;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  overflow-wrap: anywhere;
}
.post-list { display: grid; gap: 12px; }
.post-card { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.post-card p { color: var(--muted); white-space: pre-line; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.list-empty { color: var(--muted); }

.app-page {
  --dash-bg: #0f1f1a;
  --dash-card: #1a2f28;
  --dash-field: #243b33;
  --dash-line: rgba(255,255,255,0.08);
  --dash-text: #ffffff;
  --dash-muted: #9ca3af;
  --dash-primary: #16a34a;
  background: var(--dash-bg);
  color: var(--dash-text);
}
.app-page .app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}
.app-page .app-sidebar {
  min-height: 100vh;
  border-radius: 0;
  background: linear-gradient(180deg, #0d1a16 0%, #10241e 100%);
  border-right: 1px solid var(--dash-line);
  padding: 0 12px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 18px 0 50px rgba(0,0,0,0.16);
}
.dashboard-brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 900;
  border-bottom: 1px solid var(--dash-line);
  margin: 0 -12px 14px;
  padding: 0 16px;
}
.dashboard-brand img { width: 32px; height: 32px; object-fit: contain; }
.dashboard-brand b { color: var(--dash-primary); }
.dashboard-nav { display: grid; gap: 4px; }
.app-page .nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--dash-muted);
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.app-page .nav-item.active,
.app-page .nav-item:hover {
  background: rgba(22,163,74,0.12);
  color: var(--dash-primary);
}
.app-page .nav-item:hover {
  transform: translateX(2px);
}
.nav-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255,255,255,0.045);
  color: #d1d5db;
  font-size: 0.98rem;
  line-height: 1;
}
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  background: rgba(22,163,74,0.18);
  color: var(--dash-primary);
}
.app-page .nav-logout {
  margin-top: auto;
  color: #fca5a5;
}
.app-page .app-main {
  background:
    radial-gradient(circle at top right, rgba(22,163,74,0.09), transparent 34rem),
    var(--dash-bg);
  border: 0;
  border-radius: 0;
  padding: 32px;
}
.app-page .app-top {
  margin-bottom: 24px;
}
.app-page .app-top h1,
.app-page .dashboard-card h2,
.app-page .dashboard-card h3,
.app-page .plan-card h3 {
  color: #fff;
}
.app-page .eyebrow,
.app-page p,
.app-page .list-empty,
.app-page .stats-grid span {
  color: var(--dash-muted);
}
.app-page .secondary-btn {
  border-color: var(--dash-line);
  color: #d1d5db;
  background: rgba(255,255,255,0.03);
}
.app-page .primary-btn {
  background: var(--dash-primary);
  color: #fff;
  border: 0;
}
.app-page .stats-grid article,
.dashboard-card,
.plan-card,
.help-card {
  background: var(--dash-card);
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
.app-page .stats-grid strong { color: #fff; }
.dashboard-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.dashboard-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-card {
  display: grid;
  gap: 14px;
}
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.app-page .chat-box {
  border-color: var(--dash-line);
  border-radius: 16px;
  background: var(--dash-card);
}
.app-page .chat-thread,
.app-page code,
.app-page .post-card {
  background: var(--dash-field);
  border-color: var(--dash-line);
}
.app-page .chat-form { border-color: var(--dash-line); }
.app-page input,
.app-page textarea,
.app-page select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--dash-field);
  color: #fff;
}
.app-page textarea {
  min-height: auto;
  padding: 12px;
  resize: vertical;
}
.app-page label {
  display: grid;
  gap: 8px;
  color: #d1d5db;
  font-size: 0.9rem;
  font-weight: 800;
}
.app-page .full { grid-column: 1 / -1; }
.brand-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-swatches span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--dash-line);
}
.calendar-preview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-preview span,
.calendar-preview b {
  min-height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dash-field);
  color: var(--dash-muted);
  font-size: 0.82rem;
}
.calendar-preview b {
  min-height: 88px;
  color: transparent;
}
.calendar-preview b.has-item {
  color: #fff;
  background: rgba(22,163,74,0.18);
  border: 1px solid rgba(22,163,74,0.35);
}
.instagram-status {
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fb923c;
  background: rgba(251,146,60,0.12);
  font-weight: 900;
}
.instagram-connect {
  margin-left: auto;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(90deg,#9333ea,#ec4899,#fb923c);
}
.help-card {
  display: grid;
  gap: 4px;
  text-align: left;
  color: #fff;
  text-decoration: none;
}
.help-card span { color: var(--dash-muted); }
.status-pill {
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--dash-primary);
  background: rgba(22,163,74,0.12);
  font-size: 0.78rem;
  font-weight: 900;
}
.usage-line {
  display: flex;
  justify-content: space-between;
  color: var(--dash-muted);
}
.usage-line strong { color: #fff; }
.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--dash-field);
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--dash-primary);
}
.trial-callout {
  border: 1px solid rgba(22,163,74,0.35);
  border-radius: 16px;
  padding: 18px;
  background: rgba(22,163,74,0.1);
}
.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.billing-view {
  max-width: 1180px;
  display: grid;
  gap: 24px;
}
.billing-view > h2,
.billing-plans > h2 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
}
.billing-current-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: var(--dash-card);
  padding: 22px;
}
.billing-current-head,
.billing-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.billing-current-head {
  justify-content: space-between;
}
.billing-brand-row img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}
.billing-brand-row strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}
.billing-brand-row p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.billing-plans {
  display: grid;
  gap: 14px;
}
.plan-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.plan-card.current {
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.35);
}
.plan-card small {
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: var(--dash-primary);
  font-weight: 900;
}
.plan-card strong {
  color: #fff;
  font-size: 1.8rem;
}
.plan-card strong span {
  color: var(--dash-muted);
  font-size: 0.9rem;
}
.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--dash-muted);
  font-size: 0.92rem;
}
.plan-card li::before {
  content: "✓";
  color: var(--dash-primary);
  font-weight: 900;
}
.plan-card .primary-btn,
.plan-card .secondary-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
}
.plan-note {
  margin: -4px 0 0;
  color: rgba(22,163,74,0.85);
  text-align: center;
  font-size: 0.75rem;
}
.cancel-subscription {
  width: max-content;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-weight: 800;
  cursor: pointer;
}
.cancel-subscription:hover {
  color: #d1d5db;
}
.setting-list {
  display: grid;
  gap: 12px;
}
.setting-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 12px;
  background: var(--dash-field);
}
.setting-list input {
  width: auto;
  min-height: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-page .nav-collapse {
  margin-top: auto;
}
.app-page .nav-logout {
  margin-top: 4px;
}
.home-dashboard {
  max-width: 1120px;
  display: grid;
  gap: 24px;
}
.dashboard-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.dashboard-welcome h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.12;
}
.dashboard-welcome p {
  margin: 0;
  font-size: 0.96rem;
}
.dashboard-welcome .primary-btn {
  min-width: 124px;
  min-height: 44px;
  border-radius: 12px;
}
.whatsapp-create-card,
.recent-posts-card {
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: var(--dash-card);
  padding: 22px;
}
.whatsapp-create-card {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.whatsapp-copy {
  display: grid;
  gap: 8px;
}
.whatsapp-copy span {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}
.whatsapp-copy p {
  margin: 0;
}
.whatsapp-open-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 18px;
  color: #fff;
  background: var(--dash-primary);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-metrics article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: var(--dash-card);
  padding: 22px;
}
.dashboard-metrics strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}
.dashboard-metrics strong span {
  color: inherit;
}
.dashboard-metrics p {
  margin: 0;
  font-size: 0.92rem;
}
.recent-posts-card {
  display: grid;
  gap: 18px;
}
.recent-posts-card .section-row {
  align-items: center;
}
.recent-posts-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
}
.recent-posts-card .section-row button {
  border: 0;
  background: transparent;
  color: var(--dash-primary);
  font-weight: 900;
  cursor: pointer;
}
.recent-post-list {
  display: grid;
  gap: 12px;
}
.recent-post-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border-radius: 14px;
  background: var(--dash-field);
  padding: 10px;
}
.recent-thumb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-post-list h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 800;
}
.recent-post-list p {
  margin: 0;
  font-size: 0.82rem;
}
.posts-view,
.calendar-view,
.brand-view {
  max-width: 1180px;
  display: grid;
  gap: 18px;
}
.posts-view > .section-row h2,
.calendar-view > .section-row h2,
.brand-title-row h2 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
}
.post-search {
  max-width: 420px;
}
.post-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tabs button {
  min-height: 38px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--dash-card);
  color: var(--dash-muted);
  font-weight: 800;
}
.post-tabs button.active {
  color: #fff;
  background: var(--dash-primary);
  border-color: var(--dash-primary);
}
.post-catalog {
  display: grid;
  gap: 12px;
}
.facebook-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}
.facebook-gallery article {
  min-height: 160px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: var(--dash-card);
}
.facebook-gallery img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}
.facebook-gallery article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.68));
}
.facebook-gallery span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.post-row-card {
  width: 100%;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  background: var(--dash-card);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}
.post-row-card:hover {
  border-color: rgba(22,163,74,0.5);
}
.post-row-thumb {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--dash-field);
  overflow: hidden;
}
.post-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-row-card b {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.3;
}
.post-row-card small {
  display: block;
  margin-top: 6px;
  color: var(--dash-muted);
  font-size: 0.82rem;
}
.calendar-actions {
  display: flex;
  gap: 10px;
}
.calendar-card {
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: var(--dash-card);
  padding: 22px;
}
.calendar-month-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.calendar-month-head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}
.calendar-month-head span {
  color: var(--dash-muted);
  font-size: 0.9rem;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.month-grid span,
.month-grid button,
.month-grid b {
  min-height: 66px;
  border: 1px solid var(--dash-line);
  border-radius: 14px;
  background: var(--dash-field);
  color: #d1d5db;
  font-weight: 800;
}
.month-grid span {
  min-height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--dash-muted);
}
.month-grid button {
  cursor: pointer;
  text-align: left;
  padding: 10px;
}
.month-grid button:hover {
  border-color: rgba(22,163,74,0.5);
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--dash-muted);
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.calendar-legend .done { background: #22c55e; }
.calendar-legend .scheduled { background: #38bdf8; }
.calendar-legend .failed { background: #ef4444; }
.calendar-legend .pending { background: #f59e0b; }
.brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.brand-column {
  display: grid;
  align-content: start;
  gap: 18px;
}
.brand-view .dashboard-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.brand-view .dashboard-card p {
  margin: 0;
  font-size: 0.82rem;
}
.brand-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo-box {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: var(--dash-field);
}
.brand-logo-box img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.color-row input {
  width: 64px;
  padding: 0;
}
.color-row b {
  color: #d1d5db;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.brand-gradient-preview {
  min-height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3cb72, #592b40);
}
.visual-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.visual-card {
  overflow: hidden;
  display: grid;
  border: 2px solid var(--dash-line);
  border-radius: 16px;
  background: var(--dash-field);
  text-align: left;
  cursor: pointer;
}
.visual-card.active {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 2px rgba(22,163,74,0.2);
}
.visual-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.visual-card span {
  display: grid;
  gap: 5px;
  padding: 12px;
}
.visual-card b {
  color: #fff;
}
.visual-card small,
.visual-card em {
  color: var(--dash-muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.25;
}
.post-detail-card {
  max-width: 620px;
  background: var(--dash-card);
  color: #fff;
}
.post-media-preview {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 0 0 18px;
  border: 1px solid var(--dash-line);
  background: var(--dash-field);
}
.post-media-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.post-media-preview span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(0,0,0,0.48);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.post-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.post-detail-head > span {
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--dash-field);
  color: #d1d5db;
  font-weight: 900;
}
.post-detail-actions,
.post-caption-box .section-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-detail-actions button,
.post-caption-box button {
  min-height: 36px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: var(--dash-field);
  color: #fff;
  font-weight: 800;
}
.post-caption-box {
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  padding: 16px;
  background: #0f1f1a;
}
.post-caption-box h2 {
  margin: 0;
}
.post-caption-box p {
  color: #e5e7eb;
  line-height: 1.65;
  white-space: normal;
}
.settings-view {
  width: min(100%, 980px);
  display: grid;
  gap: 18px;
}
.settings-title-row h2 {
  margin: 0;
  color: #fff;
  font-size: 1.65rem;
}
.settings-card {
  display: grid;
  gap: 15px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background: var(--dash-card);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.18);
}
.settings-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-card-head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}
.settings-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(34,197,94,0.12);
  color: var(--dash-primary);
}
.settings-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-field {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}
.phone-field span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: var(--dash-field);
  color: var(--dash-muted);
  font-weight: 900;
}
.setting-list.rich label {
  gap: 14px;
}
.setting-list.rich b,
.setting-list.rich small {
  display: block;
}
.setting-list.rich b {
  color: #fff;
  font-size: 0.94rem;
}
.setting-list.rich small {
  margin-top: 4px;
  color: var(--dash-muted);
  font-weight: 700;
}
.setting-list.rich input[type="checkbox"] {
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  position: relative;
  cursor: pointer;
}
.setting-list.rich input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}
.setting-list.rich input[type="checkbox"]:checked {
  background: var(--dash-primary);
}
.setting-list.rich input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.time-grid label {
  margin: 0;
}
.time-grid input {
  text-align: center;
  font-weight: 900;
}
.privacy-settings-card .secondary-btn {
  width: max-content;
  max-width: 100%;
}

.modal {
  width: min(720px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}
.modal::backdrop { background: rgba(12, 18, 16, 0.72); backdrop-filter: blur(8px); }
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.modal-card.small { max-width: 430px; margin: 0 auto; display: grid; gap: 12px; }
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  font-size: 1.4rem;
}
.form-note { color: var(--teal); min-height: 20px; margin: 10px 0 0; }

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(183, 217, 90, 0.22), transparent 34%),
    linear-gradient(135deg, #edf3ec 0%, #f9fbf7 52%, #eef5f1 100%);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.auth-brand {
  position: fixed;
  top: 24px;
  left: 28px;
}
.auth-brand .brand-logo {
  width: 230px;
  max-width: 54vw;
}
.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}
.auth-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  margin-bottom: 8px;
}
.auth-subtitle,
.auth-help,
.auth-legal {
  color: var(--muted);
  line-height: 1.55;
}
.auth-help {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.94rem;
}
.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-weight: 900;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 18px 0;
  font-weight: 800;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.auth-actions {
  display: grid;
  gap: 10px;
}
.auth-legal {
  font-size: 0.84rem;
  margin: 18px 0 0;
}
.auth-legal a {
  font-weight: 900;
}

.quiz-page {
  min-height: 100vh;
  background: #f5f5f7;
}
.quiz-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 24px 16px;
}
.quiz-brand {
  position: static;
  z-index: 4;
  justify-self: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 18px;
}
.quiz-brand .brand-logo {
  width: 154px;
  max-width: 54vw;
}
.quiz-progress {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 4;
  width: min(420px, calc(100vw - 190px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
}
.quiz-progress span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}
.quiz-progress div {
  height: 8px;
  background: rgba(0,0,0,0.06);
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress i {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--teal));
  border-radius: inherit;
  transition: width 0.25s ease;
}
.quiz-card {
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 22px;
}
.quiz-card-hero {
  width: 100%;
  display: grid;
  gap: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: grid;
  gap: 18px;
}
.quiz-card h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 0;
}
.quiz-card h1 span { color: #e74c3c; }
.quiz-card h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  margin-bottom: 0;
}
.quiz-copy {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.quiz-copy strong {
  color: var(--graphite);
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 139, 141, 0.2);
  background: rgba(15, 139, 141, 0.08);
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.intro-badge span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  animation: pulseDot 2s ease-in-out infinite;
}
.quiz-social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.quiz-social-strip div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.quiz-social-strip strong {
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}
.quiz-card-hero .primary-btn {
  min-height: 58px;
  border-radius: 14px;
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
  text-transform: uppercase;
}
.quiz-card-hero .primary-btn:hover {
  background: #1da851;
}
.quiz-card-hero small {
  display: block;
  text-align: center;
}
.quiz-question-head {
  display: grid;
  gap: 10px;
}
.quiz-hero-panel {
  background: var(--graphite);
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.quiz-score {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 18px;
}
.quiz-score strong {
  display: block;
  color: var(--lime);
  font-size: 2.4rem;
}
.quiz-score span {
  color: #cbd8d3;
}
.quiz-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.quiz-stats article,
.offer-metrics article {
  background: #f8fbf6;
  border: 1px solid #dfe7e1;
  border-radius: 8px;
  padding: 16px;
}
.quiz-hero-panel .quiz-stats article {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}
.quiz-stats strong,
.offer-metrics strong {
  display: block;
  font-size: 1.7rem;
  color: var(--teal);
}
.quiz-hero-panel .quiz-stats strong {
  color: var(--lime);
}
.quiz-stats span,
.offer-metrics span {
  color: var(--muted);
}
.quiz-hero-panel .quiz-stats span {
  color: #cbd8d3;
}
.quiz-mini-chat {
  background: #edf3ec;
  color: var(--graphite);
  border-radius: 8px;
  padding: 14px;
}
.quiz-mini-chat span {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.quiz-mini-chat p {
  margin: 0;
  font-weight: 900;
}
.quiz-card small {
  color: var(--muted);
  text-align: center;
}
.quiz-options {
  display: grid;
  gap: 12px;
}
.quiz-options button {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #dfe7e1;
  border-radius: 8px;
  background: #f9fbf7;
  color: var(--graphite);
  padding: 16px 18px;
  text-align: left;
  font-weight: 900;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.quiz-options button:hover {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 35, 32, 0.12);
  transform: translateY(-2px);
}
.quiz-options span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 8px;
  font-size: 1.35rem;
}
.quiz-options.text-only button {
  min-height: 58px;
}
.quiz-back {
  width: fit-content;
  padding-left: 0;
}
.quiz-result {
  width: min(980px, 100%);
}
.quiz-result-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.video-box {
  background: #101715;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 24px 70px rgba(16, 23, 21, 0.22);
}
.video-frame {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  padding: 28px;
}
.video-frame strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.video-frame span {
  color: #cdd8d3;
}
.video-pulse {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: var(--lime);
  position: relative;
}
.video-pulse::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 24px;
  border-left: 24px solid var(--graphite);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}
.video-pulse::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  border: 2px solid rgba(183, 217, 90, 0.46);
  animation: videoPulse 1.5s infinite;
}
.video-progress {
  height: 8px;
  background: rgba(255,255,255,0.13);
}
.video-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width 0.35s ease;
}
.offer-lock,
.offer-panel {
  border-radius: 8px;
  border: 1px solid #dfe7e1;
  background: #f8fbf6;
  padding: 18px;
}
.offer-panel {
  display: grid;
  gap: 14px;
}
.offer-panel[hidden],
.offer-lock[hidden] {
  display: none;
}
.offer-panel p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.plan-head {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.plan-head h2 {
  margin-bottom: 0;
}
.quiz-billing {
  width: fit-content;
}
.quiz-plan-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.quiz-plan-grid.single {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}
.quiz-plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.quiz-plan-card.featured {
  background: var(--graphite);
  color: #fff;
  border-color: rgba(183, 217, 90, 0.62);
  box-shadow: 0 22px 60px rgba(32, 37, 35, 0.2);
  transform: translateY(-6px);
}
.quiz-plan-card h3 {
  margin: 0;
}
.quiz-plan-card strong {
  font-size: 2rem;
}
.quiz-plan-card small,
.quiz-plan-card p,
.quiz-plan-card li {
  color: var(--muted);
}
.quiz-plan-card.featured small,
.quiz-plan-card.featured p,
.quiz-plan-card.featured li {
  color: #d4dfda;
}
.quiz-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}
.quiz-plan-card .badge {
  width: fit-content;
  background: var(--lime);
  color: var(--graphite);
}
.quiz-plan-card.compact {
  align-content: center;
}
.plan-speed {
  font-weight: 900;
}
.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-row span {
  background: var(--soft);
  color: var(--graphite);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.checkout-page {
  min-height: 100vh;
  background: #edf3ec;
}
.checkout-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.checkout-back {
  position: fixed;
  top: 20px;
  left: 24px;
}
.checkout-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.checkout-summary {
  background: var(--graphite);
  color: #fff;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  gap: 16px;
}
.checkout-summary .eyebrow {
  color: var(--lime);
}
.checkout-summary h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 4px 0 0;
}
.checkout-summary p,
.checkout-summary li,
.checkout-summary small {
  color: #d4dfda;
}
.checkout-summary ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  margin: 0;
}
.checkout-price-row,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 14px;
}
.checkout-total {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 16px;
}
.checkout-total strong,
.checkout-price-row strong {
  color: var(--lime);
  font-size: 1.35rem;
  white-space: nowrap;
}
.checkout-note {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.55;
}
.checkout-trust {
  display: grid;
  gap: 8px;
}
.checkout-trust span::before {
  content: "✓ ";
  color: var(--lime);
  font-weight: 900;
}
.checkout-form-panel {
  padding: clamp(24px, 4vw, 38px);
}
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}
.checkout-steps span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.85rem;
}
.checkout-steps .active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.checkout-form {
  display: grid;
  gap: 14px;
}
.checkout-form h2 {
  font-size: 1.5rem;
  margin: 10px 0 0;
}
.checkout-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}
.phone-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  overflow: hidden;
}
.phone-input span {
  padding: 0 12px;
  color: var(--muted);
  font-weight: 900;
}
.phone-input input {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.payment-method {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 6px;
}
.payment-method.active {
  border-color: var(--teal);
  background: var(--soft);
}
.payment-method span {
  color: var(--muted);
}

.checkout-dark-page {
  min-height: 100vh;
  --teal: #16a34a;
  --checkout-bg: #0f1f1a;
  --checkout-card: #1a2f28;
  --checkout-field: #243b33;
  --checkout-muted: #9ca3af;
  background: var(--checkout-bg);
  color: #fff;
  padding-bottom: 82px;
}
.checkout-dark-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px;
}
.checkout-dark-header > div {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--checkout-muted);
  font-size: 0.86rem;
}
.checkout-back-dark {
  color: var(--checkout-muted);
  text-decoration: none;
  font-weight: 800;
}
.checkout-back-dark:hover {
  color: #fff;
}
.checkout-dark-shell {
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}
.checkout-dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}
.checkout-main-column {
  display: grid;
  gap: 16px;
}
.checkout-dark-form {
  display: grid;
  gap: 16px;
}
.checkout-section-card,
.checkout-summary-dark,
.checkout-mobile-summary {
  background: var(--checkout-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
}
.checkout-section-card {
  padding: 16px;
}
.checkout-section-card h2 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-dark-form label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--checkout-muted);
  font-size: 0.75rem;
  font-weight: 800;
}
.checkout-dark-form input {
  background: var(--checkout-field);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 0.875rem;
}
.checkout-dark-form input::placeholder {
  color: #6b7280;
}
.checkout-phone-dark {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}
.checkout-phone-dark span {
  min-height: 44px;
  display: grid;
  place-items: center;
  background: var(--checkout-field);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--checkout-muted);
}
.checkout-pay-tabs {
  background: var(--checkout-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 8px;
}
.checkout-pay-tabs button {
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--checkout-muted);
  display: grid;
  place-items: center;
  gap: 3px;
}
.checkout-pay-tabs button.active {
  background: rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.4);
  color: #fff;
}
.checkout-pay-tabs small {
  font-size: 0.68rem;
  opacity: 0.76;
}
.payment-block {
  padding: 0;
  overflow: hidden;
}
.payment-toggle {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 18px;
  font-weight: 900;
}
.payment-toggle small {
  color: #6b7280;
  font-weight: 700;
}
.payment-content {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
}
.pix-hint {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #bbf0cf;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.82rem;
}
.secure-copy {
  color: #4b5563;
  text-align: center;
  font-size: 0.72rem;
  margin: 0;
}
.secure-copy a {
  color: var(--checkout-muted);
}
.checkout-summary-dark {
  position: sticky;
  top: 24px;
  padding: 24px;
  display: grid;
  gap: 18px;
}
.checkout-summary-dark .brand {
  align-items: center;
}
.checkout-brand .brand-mark-img {
  width: 42px;
  height: 42px;
}
.checkout-brand .brand-word {
  font-size: 1.24rem;
}
.checkout-plan-head {
  display: grid;
  gap: 8px;
}
.checkout-mobile-summary .checkout-brand {
  margin-bottom: 4px;
}
.checkout-mobile-summary .checkout-brand .brand-mark-img {
  width: 36px;
  height: 36px;
}
.checkout-mobile-summary .checkout-brand .brand-word {
  font-size: 1.05rem;
}
.checkout-summary-dark h3 {
  margin: 0;
  color: #fff;
}
.checkout-summary-dark p,
.checkout-summary-dark li {
  color: var(--checkout-muted);
}
.checkout-summary-dark ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checkout-summary-dark li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 900;
}
.checkout-summary-lines {
  border-top: 1px solid rgba(255,255,255,0.07);
  display: grid;
  gap: 10px;
  padding-top: 16px;
}
.checkout-summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--checkout-muted);
  font-size: 0.88rem;
}
.checkout-summary-lines strong {
  color: #fff;
  white-space: nowrap;
}
.checkout-summary-lines .total {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 12px;
  color: #fff;
  font-weight: 900;
}
.checkout-summary-lines .total strong,
.checkout-summary-lines div:first-child strong {
  color: var(--teal);
  font-size: 1.1rem;
}
.checkout-renew-warning {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.76rem;
  line-height: 1.5;
}
.checkout-trust-dark {
  display: grid;
  gap: 12px;
  color: var(--checkout-muted);
  font-size: 0.9rem;
}
.checkout-note-strip {
  background: rgba(22, 163, 74, 0.05);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}
.checkout-note-strip span {
  color: var(--teal);
}
.checkout-mobile-summary,
.checkout-mobile-details {
  display: none;
}
.checkout-step-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--checkout-card);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 14px 24px;
}
.checkout-step-footer > div {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.checkout-step-footer span {
  color: var(--checkout-muted);
  font-size: 0.9rem;
}
.checkout-step-footer span.active {
  color: #fff;
  font-weight: 900;
}
.checkout-step-footer b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin-right: 6px;
}
.checkout-step-footer .active b {
  background: var(--teal);
}
.checkout-step-footer i {
  width: 34px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.checkout-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.8rem;
  box-shadow: 0 14px 34px rgba(37,211,102,0.28);
  z-index: 50;
}
.offer-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@keyframes videoPulse {
  from { transform: scale(0.82); opacity: 1; }
  to { transform: scale(1.22); opacity: 0; }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(1.22); }
}
@keyframes fadeLift {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes chatPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 18px 40px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 18px 52px rgba(37, 211, 102, 0.48); }
}
@keyframes metricReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes metricFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page *,
  .quiz-page * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .hero, .demo-band, .pricing, .app-shell, .chat-grid, .features { grid-template-columns: 1fr; }
  .app-sidebar { border-radius: 8px 8px 0 0; }
  .app-main { border-left: 1px solid var(--line); border-radius: 0 0 8px 8px; }
  .steps, .stats-grid, .pricing-cards, .proof-grid, .metric-band, .testimonial-grid, .footer { grid-template-columns: 1fr 1fr; }
  .home-page .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .home-page .site-header nav {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
  .home-page .hero {
    min-height: auto;
    text-align: center;
    padding-top: 54px;
  }
  .home-page .hero-copy,
  .home-page .hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }
  .home-page .hero-actions,
  .home-page .social-proof {
    justify-content: center;
  }
  .home-page .hero-phone {
    max-width: 430px;
  }
  .home-page .features > div:first-child {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header, .hero, .demo-band, .pricing, .steps, .app-shell, .audiences, .features, .proof, .faq, .testimonials, .final-cta { padding-left: 16px; padding-right: 16px; }
  .steps, .stats-grid, .form-grid.two, .chat-form, .pricing-cards, .feature-grid, .proof-grid, .metric-band, .testimonial-grid, .footer { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .home-page .site-header {
    position: sticky;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
  }
  .home-page .site-header nav {
    display: none;
  }
  .home-page .brand {
    min-width: 0;
    gap: 7px;
  }
  .home-page .brand-mark-img {
    width: 34px;
    height: 34px;
  }
  .home-page .brand-word {
    font-size: 1rem;
    white-space: nowrap;
  }
  .home-page .header-actions {
    gap: 7px;
    flex: 0 0 auto;
  }
  .home-page .header-actions .ghost-btn {
    display: none;
  }
  .home-page .header-actions .primary-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }
  .home-page .hero {
    padding-top: 44px;
    padding-bottom: 42px;
    gap: 32px;
  }
  .home-page h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
    line-height: 1.05;
  }
  .home-page h2 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }
  .home-page .eyebrow {
    margin-bottom: 18px;
    font-size: 0.78rem;
    text-align: left;
  }
  .home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-page .hero-actions .primary-btn,
  .home-page .hero-actions .secondary-btn,
  .home-page .center-row .primary-btn,
  .home-page .final-cta .primary-btn {
    width: 100%;
  }
  .home-page .social-proof {
    align-items: flex-start;
    text-align: left;
  }
  .home-page .phone-demo {
    max-width: 100%;
    border-radius: 22px;
  }
  .home-page .phone-thread {
    min-height: 310px;
    padding: 14px;
  }
  .home-page .post-preview strong {
    font-size: 1rem;
  }
  .home-page .phone-status {
    align-items: center;
    font-size: 0.9rem;
  }
  .home-page .audiences,
  .home-page .features,
  .home-page .testimonials,
  .home-page .final-cta,
  .home-page .pricing,
  .home-page .faq {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .home-page .steps {
    padding-top: 24px;
    padding-bottom: 48px;
  }
  .home-page .metric-band {
    padding-bottom: 48px;
  }
  .home-page .repeat-list {
    animation-duration: 22s;
  }
  .home-page .price-card.featured:hover,
  .home-page .price-card:hover,
  .home-page .feature-grid article:hover,
  .home-page .steps article:hover,
  .home-page .testimonial-grid article:hover,
  .home-page .metric-band article:hover {
    transform: none;
  }
  .home-page .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .hero-media img { min-height: 260px; }
  .auth-brand {
    position: static;
    justify-self: start;
    margin-bottom: 18px;
  }
  .auth-shell {
    place-items: start center;
  }
  .quiz-brand {
    position: static;
    justify-self: center;
    margin-bottom: 18px;
    color: var(--graphite);
  }
  .quiz-shell {
    place-items: start center;
    padding-top: 24px;
  }
  .quiz-progress {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 14px;
  }
  .quiz-progress span {
    color: var(--graphite);
  }
  .quiz-card-hero {
    grid-template-columns: 1fr;
  }
  .quiz-plan-card.featured {
    transform: none;
  }
  .quiz-stats,
  .offer-metrics,
  .quiz-plan-grid,
  .checkout-card,
  .checkout-steps {
    grid-template-columns: 1fr;
  }
  .video-frame {
    min-height: 240px;
  }
  .checkout-back {
    position: static;
    justify-self: start;
    margin-bottom: 14px;
  }
  .checkout-dark-grid {
    grid-template-columns: 1fr;
  }
  .checkout-summary-dark {
    display: none;
  }
  .checkout-mobile-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    margin-bottom: 14px;
  }
  .checkout-mobile-summary strong {
    display: block;
    color: var(--teal);
    text-align: right;
  }
  .checkout-mobile-summary small {
    color: #66736f;
  }
  .checkout-mobile-details {
    display: grid;
    gap: 12px;
    color: #98a5a0;
    font-size: 0.84rem;
  }
  .checkout-mobile-details summary {
    cursor: pointer;
  }
  .checkout-mobile-details ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
  }
  .checkout-step-footer span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: 0;
    display: block;
  }
  .checkout-step-footer span.active {
    background: var(--teal);
  }
  .checkout-step-footer b {
    display: none;
  }
  .checkout-step-footer i {
    display: none;
  }
  .checkout-step-footer > div {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .billing-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(100%, 360px);
    border-radius: 8px;
  }
  .billing-toggle span {
    min-width: 0;
    padding: 9px 10px;
    white-space: normal;
  }
  .billing-toggle b {
    display: block;
    flex-basis: 100%;
    font-size: 0.7rem;
  }
  .quiz-billing {
    width: min(100%, 340px);
  }
  .checkout-dark-header,
  .checkout-dark-shell,
  .checkout-step-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .checkout-dark-header > div {
    align-items: flex-start;
  }
  .checkout-pay-tabs {
    grid-template-columns: 1fr;
  }
  .payment-toggle {
    grid-template-columns: 1fr auto;
  }
  .payment-toggle small {
    grid-column: 1 / -1;
  }
  .checkout-whatsapp {
    width: 50px;
    height: 50px;
    right: 14px;
  }
}

.onboarding-page {
  --publica-primary: #16a34a;
  --publica-primary-dark: #15803d;
  --publica-dark: #0f1f1a;
  --publica-card: #1a2f28;
  --publica-field: #243b33;
  --publica-line: rgba(255, 255, 255, 0.1);
  --publica-line-soft: rgba(255, 255, 255, 0.06);
  --publica-muted: #99a1af;
  min-height: 100vh;
  background: var(--publica-dark);
  color: #fff;
}

.onboarding-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.onboarding-head {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.onboarding-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.onboarding-brand img {
  width: 32px;
  height: 32px;
}

.onboarding-brand-word,
.onboarding-brand-word strong,
.onboarding-brand-word em {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
}

.onboarding-brand-word {
  color: #fff;
}

.onboarding-brand-word em {
  color: var(--publica-primary);
}

.onboarding-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  color: var(--publica-muted);
  font-weight: 700;
}

.onboarding-progress i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.onboarding-progress b {
  display: block;
  width: 33%;
  height: 100%;
  background: var(--publica-primary);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.onboarding-steps button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--publica-line);
  background: var(--publica-field);
  color: #d1d5dc;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.onboarding-steps b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5dc;
}

.onboarding-steps .active {
  border-color: rgba(22, 163, 74, 0.6);
  color: #fff;
  background: rgba(22, 163, 74, 0.12);
}

.onboarding-steps .active b {
  background: var(--publica-primary);
  color: #fff;
}

.onboarding-card {
  background: var(--publica-card);
  border: 1px solid var(--publica-line-soft);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.onboarding-panel {
  display: none;
}

.onboarding-panel.active {
  display: grid;
  gap: 18px;
}

.onboarding-title h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: 0;
}

.onboarding-title p {
  margin: 4px 0 0;
  color: var(--publica-muted);
  font-weight: 700;
}

.onboarding-card label,
.category-field {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.onboarding-card label > span,
.category-field legend {
  font-weight: 800;
  color: #f9fafb;
}

.onboarding-card input[type="text"],
.onboarding-card input[type="email"],
.onboarding-card input[type="tel"],
.onboarding-card input:not([type]),
.onboarding-card textarea {
  width: 100%;
  border: 1px solid var(--publica-line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  background: var(--publica-field);
  color: #fff;
}

.onboarding-card input::placeholder,
.onboarding-card textarea::placeholder {
  color: #6a7282;
}

.onboarding-card input:focus,
.onboarding-card textarea:focus {
  border-color: var(--publica-primary);
  outline: none;
}

.onboarding-card textarea {
  resize: vertical;
}

.onboarding-card small {
  color: var(--publica-muted);
  line-height: 1.5;
}

.logo-upload,
.brand-colors,
.style-picker,
.whatsapp-field {
  display: grid;
  gap: 12px;
}

.logo-upload-box {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 168px;
  width: 100%;
  border: 2px dashed var(--publica-line);
  border-radius: 12px;
  padding: 28px;
  background: var(--publica-field);
  color: #d1d5dc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.logo-upload-box:hover,
.logo-upload-box.has-logo {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.08);
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--publica-line);
  color: var(--publica-muted);
  font-size: 1.35rem;
  line-height: 1;
}

.text-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #d1d5dc;
  font: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.brand-colors h2 {
  margin: 0;
  font-size: 1rem;
  color: #f9fafb;
}

.brand-colors p {
  margin: 2px 0 0;
  color: var(--publica-muted);
  font-size: 0.82rem;
}

.color-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.color-picker {
  display: grid;
  gap: 8px;
}

.color-picker > span {
  color: var(--publica-muted);
  font-size: 0.78rem;
}

.color-picker > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.color-picker input[type="color"] {
  width: 48px;
  min-width: 48px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.swatches button {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.swatches button.active {
  border-color: #fff;
  transform: scale(1.08);
}

.color-preview {
  height: 32px;
  border: 1px solid var(--publica-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #0f172a);
}

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

.style-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 2px solid var(--publica-line);
  border-radius: 16px;
  padding: 0;
  background: var(--publica-field);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.style-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.style-card.active {
  border-color: var(--publica-primary);
  box-shadow: 0 14px 36px rgba(22, 163, 74, 0.18);
}

.style-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--publica-field);
}

.style-card span {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: var(--publica-field);
}

.style-card.active span {
  background: rgba(22, 163, 74, 0.1);
}

.style-card strong {
  font-size: 0.92rem;
}

.style-card.active strong {
  color: var(--publica-primary);
}

.style-card small,
.style-card em {
  color: var(--publica-muted);
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.35;
}

.style-card em {
  font-size: 0.67rem;
}

.onboarding-tip {
  padding: 12px 14px;
  border: 1px solid var(--publica-line);
  border-radius: 12px;
  background: var(--publica-field);
  color: var(--publica-muted);
  font-size: 0.82rem;
}

.onboarding-tip strong {
  color: #d1d5dc;
}

.phone-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.phone-row span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--publica-line);
  border-radius: 12px;
  background: var(--publica-field);
  color: #d1d5dc;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.category-grid label {
  display: block;
}

.category-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-grid span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--publica-line);
  border-radius: 12px;
  padding: 9px 10px;
  text-align: center;
  font-weight: 800;
  color: #d1d5dc;
  background: var(--publica-field);
  cursor: pointer;
}

.category-grid input:checked + span {
  border-color: rgba(22, 163, 74, 0.7);
  color: var(--publica-primary);
  background: rgba(22, 163, 74, 0.12);
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: start;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 12px;
  padding: 14px;
}

.checkbox-line input {
  margin-top: 3px;
}

.onboarding-finish {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  padding: 16px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #fff;
}

.onboarding-finish p {
  margin: 0;
  color: #d1d5dc;
  font-size: 0.86rem;
  line-height: 1.5;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.onboarding-actions button {
  min-width: 132px;
  border-radius: 12px;
}

.onboarding-actions .primary-btn {
  background: var(--publica-primary);
  box-shadow: none;
}

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

.onboarding-actions .secondary-btn {
  background: var(--publica-field);
  border-color: var(--publica-line);
  color: #d1d5dc;
}

.onboarding-actions [disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.onboarding-page .onboarding-shell {
  width: min(768px, calc(100% - 32px));
  padding: 18px 0 42px;
}

.onboarding-page .onboarding-head {
  gap: 20px;
  margin-bottom: 28px;
}

.onboarding-page .onboarding-brand {
  justify-content: flex-start;
  padding: 6px 0 2px;
}

.onboarding-page .onboarding-brand img {
  width: 30px;
  height: 30px;
}

.onboarding-page .onboarding-brand-word,
.onboarding-page .onboarding-brand-word strong,
.onboarding-page .onboarding-brand-word em {
  font-size: 1.25rem;
  font-weight: 800;
}

.onboarding-page .onboarding-progress {
  font-size: 0.86rem;
  font-weight: 500;
}

.onboarding-page .onboarding-progress i {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-page .onboarding-steps {
  gap: 8px;
  margin-bottom: 28px;
}

.onboarding-page .onboarding-steps button {
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(26, 47, 40, 0.82);
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 600;
}

.onboarding-page .onboarding-steps b {
  width: 22px;
  height: 22px;
  font-size: 0.68rem;
}

.onboarding-page .onboarding-steps .active {
  border-color: rgba(22, 163, 74, 0.32);
  color: var(--publica-primary);
  background: rgba(22, 163, 74, 0.12);
}

.onboarding-page .onboarding-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(26, 47, 40, 0.88);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
}

.onboarding-page .onboarding-panel.active {
  gap: 20px;
}

.onboarding-page .onboarding-title {
  margin-bottom: 2px;
}

.onboarding-page .onboarding-title h1 {
  font-size: 1.55rem;
  font-weight: 800;
}

.onboarding-page .onboarding-title p {
  font-size: 0.94rem;
  font-weight: 500;
}

.onboarding-page .onboarding-card label > span,
.onboarding-page .category-field legend {
  font-size: 0.9rem;
  font-weight: 650;
  color: #d8dee6;
}

.onboarding-page .onboarding-card input[type="text"],
.onboarding-page .onboarding-card input[type="email"],
.onboarding-page .onboarding-card input[type="tel"],
.onboarding-page .onboarding-card input:not([type]),
.onboarding-page .onboarding-card textarea {
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(36, 59, 51, 0.78);
  font-size: 0.94rem;
}

.onboarding-page .category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-page .category-grid span {
  min-height: 40px;
  padding: 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 650;
}

.onboarding-page .logo-upload-box {
  min-height: 142px;
  border-radius: 16px;
  background: rgba(36, 59, 51, 0.62);
}

.onboarding-page .upload-icon {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--publica-primary);
}

.onboarding-page .color-columns {
  gap: 14px;
}

.onboarding-page .swatches button {
  width: 25px;
  height: 25px;
  border-radius: 7px;
}

.onboarding-page .color-preview {
  height: 26px;
}

.onboarding-page .style-grid {
  gap: 10px;
}

.onboarding-page .style-card {
  border-width: 1px;
  border-radius: 14px;
  background: rgba(36, 59, 51, 0.72);
}

.onboarding-page .style-card.active {
  border-color: rgba(22, 163, 74, 0.82);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.14);
}

.onboarding-page .style-card img {
  aspect-ratio: 1.08;
}

.onboarding-page .style-card span {
  padding: 10px;
  gap: 4px;
  background: rgba(36, 59, 51, 0.72);
}

.onboarding-page .style-card strong {
  font-size: 0.86rem;
}

.onboarding-page .style-card small {
  font-size: 0.7rem;
}

.onboarding-page .style-card em {
  font-size: 0.64rem;
}

.onboarding-page .onboarding-tip,
.onboarding-page .onboarding-finish {
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.07);
}

.onboarding-page .phone-row span {
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(36, 59, 51, 0.78);
}

.onboarding-page .onboarding-actions {
  margin-top: 28px;
}

.onboarding-page .onboarding-actions button {
  min-height: 42px;
  min-width: 118px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
}

@media (max-width: 760px) {
  .onboarding-page .onboarding-shell {
    width: min(100% - 24px, 768px);
    padding-top: 14px;
  }
  .onboarding-card {
    padding: 20px;
  }
  .onboarding-page .onboarding-card {
    padding: 18px;
  }
  .onboarding-steps {
    gap: 8px;
  }
  .onboarding-steps button {
    justify-content: center;
    padding: 10px 8px;
  }
  .onboarding-steps span {
    display: none;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .onboarding-page .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .color-columns,
  .style-grid {
    grid-template-columns: 1fr 1fr;
  }
  .onboarding-page .style-card span {
    padding: 9px;
  }
  .onboarding-page .style-card small,
  .onboarding-page .style-card em {
    display: none;
  }
  .onboarding-page .logo-upload-box {
    min-height: 124px;
  }
  .phone-row {
    grid-template-columns: 1fr;
  }
  .onboarding-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .onboarding-actions button {
    min-width: 0;
  }
  .onboarding-actions [data-onboarding-submit] {
    grid-column: 2;
  }
}

.first-post-page {
  min-height: 100vh;
  background: #0f1f1a;
  color: #fff;
}

.dashboard-layout {
  min-height: 100vh;
}

.dashboard-mobile-head {
  display: none;
}

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f1f1a;
  padding: 18px 14px;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.dashboard-logo img {
  width: 32px;
  height: 32px;
}

.dashboard-logo span {
  font-size: 1.25rem;
}

.dashboard-logo em {
  color: #16a34a;
  font-style: normal;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 4px;
}

.dashboard-sidebar nav a {
  padding: 11px 12px;
  border-radius: 12px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.dashboard-sidebar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-sidebar nav a.active {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.11);
}

.first-post-main {
  min-height: 100vh;
  margin-left: 260px;
  display: grid;
  place-items: center;
  padding: 42px 24px;
}

.first-post-wrap {
  width: min(672px, 100%);
}

.success-hero {
  text-align: center;
  margin-bottom: 34px;
}

.success-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.17);
  color: #16a34a;
  font-size: 2rem;
  font-weight: 800;
}

.success-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.success-hero p {
  max-width: 440px;
  margin: 0 auto;
  color: #9ca3af;
  line-height: 1.55;
}

.first-post-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 24px;
  background: #1a2f28;
}

.first-post-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.first-post-card-head span {
  color: #16a34a;
  font-size: 1.2rem;
}

.first-post-card-head h2 {
  margin: 0;
  font-size: 0.98rem;
}

.post-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.post-type {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #243b33;
  color: #d1d5dc;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.post-type:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 163, 74, 0.75);
  background: rgba(22, 163, 74, 0.1);
  color: #fff;
}

.post-type strong {
  font-size: 1.55rem;
  line-height: 1;
}

.post-type span {
  font-size: 0.94rem;
  font-weight: 700;
}

.post-type em {
  margin-left: auto;
  color: #6b7280;
  font-style: normal;
  font-weight: 800;
}

.post-type:hover em {
  color: #16a34a;
}

.custom-post-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  margin: 18px 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
}

.custom-post-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.how-it-works article {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #1a2f28;
  color: #9ca3af;
  text-align: center;
  font-size: 0.78rem;
}

.how-it-works img,
.how-it-works b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

@media (max-width: 820px) {
  .dashboard-mobile-head {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 31, 26, 0.95);
  }

  .dashboard-sidebar {
    display: none;
  }

  .first-post-main {
    margin-left: 0;
    min-height: calc(100vh - 56px);
    padding: 28px 16px;
  }

  .first-post-card {
    padding: 18px;
  }

  .post-type-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    gap: 8px;
  }

  .how-it-works article {
    padding: 12px 6px;
  }
}

/* Dashboard polish pass */
.app-page {
  --dash-bg: #07110e;
  --dash-panel: #0b1814;
  --dash-card: rgba(20, 39, 33, 0.92);
  --dash-field: rgba(31, 55, 47, 0.96);
  --dash-line: rgba(255,255,255,0.09);
  --dash-muted: #93a39b;
  --dash-primary: #22c55e;
  --dash-primary-soft: rgba(34,197,94,0.14);
}
.app-page .app-shell {
  background:
    radial-gradient(circle at 72% 0%, rgba(34,197,94,0.12), transparent 28rem),
    radial-gradient(circle at 20% 100%, rgba(20,184,166,0.08), transparent 26rem),
    var(--dash-bg);
}
.app-page .app-sidebar {
  width: 260px;
  background: rgba(8, 18, 15, 0.92);
  backdrop-filter: blur(18px);
}
.dashboard-brand {
  gap: 12px;
  height: 72px;
  font-size: 1.18rem;
}
.dashboard-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
}
.dashboard-nav {
  gap: 6px;
}
.app-page .nav-item {
  position: relative;
  min-height: 46px;
  border: 1px solid transparent;
  color: #a8b7b0;
  font-size: 0.92rem;
}
.app-page .nav-item.active {
  background: linear-gradient(90deg, rgba(34,197,94,0.18), rgba(34,197,94,0.07));
  border-color: rgba(34,197,94,0.22);
  color: #ecfdf5;
}
.app-page .nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 999px;
  background: var(--dash-primary);
}
.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-page .app-main {
  min-height: 100vh;
  padding: clamp(22px, 3vw, 42px);
}
.panel-view.active {
  animation: dashboardPanelIn 0.22s ease-out;
}
@keyframes dashboardPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-dashboard,
.posts-view,
.calendar-view,
.brand-view,
.billing-view {
  width: min(100%, 1180px);
}
.dashboard-welcome,
.whatsapp-create-card,
.dashboard-metrics article,
.recent-posts-card,
.dashboard-card,
.billing-current-card,
.plan-card,
.calendar-card,
.post-row-card,
.facebook-gallery article {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0,0,0,0.18);
}
.dashboard-welcome {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(34,197,94,0.16), rgba(20,39,33,0.88) 52%, rgba(20,184,166,0.10)),
    var(--dash-card);
}
.dashboard-welcome::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -54px;
  top: -70px;
  border-radius: 50%;
  background: rgba(34,197,94,0.13);
  filter: blur(4px);
}
.dashboard-welcome h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: 0;
}
.app-page .primary-btn,
.whatsapp-open-btn {
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 14px 34px rgba(34,197,94,0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.app-page .primary-btn:hover,
.whatsapp-open-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 42px rgba(34,197,94,0.28);
}
.app-page .secondary-btn {
  border-radius: 12px;
}
.whatsapp-create-card {
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34,197,94,0.12), rgba(20,39,33,0.9)),
    var(--dash-card);
}
.dashboard-metrics article {
  border-radius: 20px;
}
.dashboard-metrics strong {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}
.recent-post-list article,
.post-row-card {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.recent-post-list article:hover,
.post-row-card:hover {
  transform: translateY(-1px);
  background: rgba(31, 55, 47, 0.82);
}
.facebook-gallery article {
  min-height: 190px;
}
.facebook-gallery img {
  min-height: 190px;
}
.brand-view .dashboard-card,
.calendar-card,
.billing-current-card,
.recent-posts-card,
.posts-view .post-row-card {
  border-radius: 22px;
}
.visual-card {
  border-radius: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.visual-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34,197,94,0.45);
}
.month-grid button,
.post-tabs button,
.setting-list label {
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.month-grid button:hover,
.post-tabs button:hover {
  transform: translateY(-1px);
}
.post-detail-card {
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 90px rgba(0,0,0,0.36);
}
.app-page input:focus,
.app-page textarea:focus,
.app-page select:focus {
  border-color: rgba(34,197,94,0.58);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
  outline: none;
}

@media (max-width: 980px) {
  .app-page .app-sidebar {
    width: 100%;
  }
  .dashboard-brand {
    height: 62px;
  }
  .app-page .nav-item.active::before {
    display: none;
  }
}

@media (max-width: 980px) {
  .app-page .app-shell {
    grid-template-columns: 1fr;
  }

  .app-page .app-sidebar {
    display: flex;
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    border-right: 0;
    border-bottom: 1px solid var(--dash-line);
  }

  .app-page .dashboard-brand {
    height: 56px;
    margin-bottom: 10px;
  }

  .app-page .dashboard-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .app-page .nav-item {
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .app-page .nav-logout {
    display: none;
  }

  .app-page .nav-collapse {
    display: none;
  }

  .app-page .app-main {
    padding: 22px 16px 42px;
  }

  .dashboard-grid.two,
  .billing-plan-grid,
  .chat-grid,
  .app-page .stats-grid,
  .app-page .form-grid.two {
    grid-template-columns: 1fr;
  }

  .section-row,
  .instagram-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .instagram-connect {
    margin-left: 0;
  }

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

  .dashboard-welcome,
  .whatsapp-create-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-welcome .primary-btn,
  .whatsapp-open-btn {
    width: 100%;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .facebook-gallery {
    grid-template-columns: 1fr;
  }

  .facebook-gallery article,
  .facebook-gallery img {
    min-height: 190px;
  }

  .brand-grid,
  .visual-style-grid {
    grid-template-columns: 1fr;
  }

  .month-grid {
    gap: 5px;
  }

  .month-grid button,
  .month-grid b {
    min-height: 48px;
    border-radius: 10px;
  }

  .calendar-month-head,
  .post-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
