.onboarding-page {
  --sp-shell-gradient: linear-gradient(135deg, #ffffff 0%, #f7f8fb 46%, #eef2f7 100%);
  --sp-primary: #635bff;
  --sp-primary-strong: #5146e8;
  --sp-primary-soft: #f1efff;
  --sp-cyan: #19bdea;
  --sp-success: #2fbd6b;
  --sp-text: #121625;
  --sp-muted: #707684;
  --sp-subtle: #9aa0aa;
  --sp-page: #f3f6fa;
  --sp-panel: #ffffff;
  --sp-panel-soft: #f8f9fd;
  --sp-border: #e6e9ef;
  --sp-shadow: 0 10px 28px rgba(18, 22, 37, .08);
  --sp-shadow-soft: 0 8px 20px rgba(18, 22, 37, .055);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 18% -12%, rgba(99, 91, 255, .14), transparent 62%),
    radial-gradient(720px 420px at 92% 92%, rgba(25, 189, 234, .10), transparent 58%),
    var(--sp-shell-gradient);
}

.onboarding-page *,
.onboarding-page *::before,
.onboarding-page *::after {
  box-sizing: border-box;
}

.onboarding-shell {
  min-height: 100vh;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #121625;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: #635BFF;
}

.eyebrow.light {
  color: rgba(255, 255, 255, .72);
}

.progress-card h1,
.step-heading h2,
.auth-content h2,
.whatsapp-layout h2 {
  margin: 14px 0 0;
  color: #121625;
  font-size: 30px;
  line-height: 1.04;
  font-weight: 800;
}

.progress-card p,
.step-heading p,
.auth-content p,
.whatsapp-layout p {
  margin: 18px 0 0;
  color: #6B7280;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #6B7280;
  font-size: 14px;
  font-weight: 800;
}

.step-list span {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EDF0F9;
  color: #6B7280;
  font-size: 12px;
  flex: 0 0 auto;
}

.step-list li.is-active,
.step-list li.is-complete {
  background: #fff;
  border-color: #E3E7F2;
  color: #121625;
  box-shadow: 0 12px 28px rgba(18, 22, 37, .06);
}

.step-list li.is-active span {
  background: linear-gradient(135deg, #023CD1, #635BFF);
  color: #fff;
}

.step-list li.is-complete span {
  background: #E9F7EF;
  color: #16A34A;
}

.onboarding-stage {
  min-width: 0;
  min-height: 100vh;
  width: 100% !important;
  max-width: none !important;
  padding: 18px clamp(18px, 4vw, 48px) 42px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.onboarding-topbar {
  width: min(100%, 1280px);
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 10px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 800;
}

.onboarding-topbar a {
  color: #33384D;
  padding: 10px 14px;
  border: 1px solid #E3E7F2;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
}

.onboarding-step {
  width: 100%;
  display: none;
  animation: stepIn .35s ease both;
}

.onboarding-step.is-active {
  display: block;
}

.auth-step.is-active {
  min-height: 0;
  display: grid;
  align-self: stretch;
  place-items: center;
  padding: 10px 0 34px;
}

.marketplace-step.is-active {
  min-height: 0;
  display: grid;
  align-self: stretch;
  place-items: center;
  padding: 24px 0 44px;
}

.integration-step.is-active,
.whatsapp-step.is-active {
  min-height: 0;
  display: grid;
  align-self: stretch;
  place-items: center;
  padding: 24px 0 44px;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card {
  width: min(100%, 980px);
  min-height: 575px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(350px, .95fr) minmax(430px, 1.05fr);
  background: #fff;
  border: 1px solid rgba(18, 22, 37, .08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 64px rgba(18, 22, 37, .12);
}

.auth-content {
  padding: clamp(40px, 4.5vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  width: 158px;
  height: auto;
  margin-bottom: 42px;
}

.auth-content h2 {
  max-width: 420px;
  letter-spacing: -.035em;
}

.auth-content p {
  max-width: 390px;
  font-size: 12px;
}

.google-actions {
  width: min(100%, 370px);
  margin-top: 32px;
}

.google-button {
  width: 100%;
  height: 48px;
  border: 1px solid #1A73E8;
  border-radius: 7px;
  background: #1A73E8;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(26, 115, 232, .22);
  transition: transform .16s ease, box-shadow .16s ease;
}

.google-button.is-remembered {
  grid-template-columns: 38px minmax(0, 1fr) 18px 48px;
  text-align: left;
}

.google-button.is-loading {
  pointer-events: none;
  opacity: .74;
}

.google-button:hover,
.google-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(26, 115, 232, .3);
  outline: none;
}

.google-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.google-button.is-remembered .google-icon {
  width: 48px;
  border-left: 1px solid #1A73E8;
}

.google-avatar {
  display: none;
  width: 26px;
  height: 26px;
  margin-left: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F7D9B1, #D8E8FF);
  color: #121625;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.google-button.is-remembered .google-avatar {
  display: inline-flex;
}

.google-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.06;
  padding-left: 12px;
}

.google-button.is-remembered .google-copy {
  align-items: flex-start;
  padding-left: 0;
}

.google-copy strong,
.google-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-copy small {
  display: none;
  margin-top: 3px;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 700;
}

.google-button.is-remembered .google-copy small {
  display: block;
}

.google-chevron {
  display: none;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 900;
}

.google-button.is-remembered .google-chevron {
  display: block;
}

.google-switch {
  display: none;
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: #635BFF;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.google-switch.is-visible {
  display: block;
}

.secure-note {
  width: min(100%, 370px);
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #707684;
  font-size: 10px;
  font-weight: 700;
}

.secure-note span {
  width: 18px;
  height: 18px;
  color: #2FBD6B;
  flex: 0 0 auto;
}

.secure-note svg {
  display: block;
  width: 18px;
  height: 18px;
}

.auth-visual {
  padding: clamp(48px, 5vw, 66px);
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(150deg, #023CD1 0%, #1F4BEA 44%, #635BFF 100%);
  background-size: 40px 40px, 40px 40px, auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-visual > .eyebrow {
  align-self: flex-start;
  margin-bottom: 34px;
}

.auth-visual h3 {
  max-width: 330px;
  margin: 14px 0 34px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  font-weight: 900;
}

.mini-chart-card {
  width: min(100%, 390px);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, .94);
  color: #121625;
  box-shadow: 0 26px 54px rgba(18, 22, 37, .22);
  animation: chartCardFloat 5.6s ease-in-out infinite;
}

.chart-head,
.chart-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.chart-head strong {
  color: #6B7280;
  font-size: 13px;
  font-weight: 900;
}

.chart-head span {
  color: #16A34A;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mini-chart-card.is-changing .chart-head strong,
.mini-chart-card.is-changing .chart-metrics span {
  animation: dashboardTextSwap .26s ease both;
}

.mini-chart-card svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0 8px;
}

.chart-area {
  animation: chartAreaPulse 1.28s ease-in-out infinite;
  transform-origin: bottom;
}

.chart-line {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: chartLineDraw 1.28s cubic-bezier(.2,.8,.2,1) infinite;
}

.chart-points circle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: chartPointPop 1.28s ease-in-out infinite;
}

.chart-points circle:nth-child(1) { animation-delay: .1s; }
.chart-points circle:nth-child(2) { animation-delay: .22s; }
.chart-points circle:nth-child(3) { animation-delay: .34s; }
.chart-points circle:nth-child(4) { animation-delay: .46s; }
.chart-points circle:nth-child(5) { animation-delay: .58s; }
.chart-points circle:nth-child(6) { animation-delay: .70s; }
.chart-points circle:nth-child(7) { animation-delay: .82s; }
.chart-points circle:nth-child(8) { animation-delay: .94s; }

.chart-bars {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .42s ease, transform .42s ease;
}

.chart-bars rect {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: chartBarGrow 1.28s ease-in-out infinite;
}

.chart-bars rect:nth-child(2) { animation-delay: .08s; }
.chart-bars rect:nth-child(3) { animation-delay: .16s; }
.chart-bars rect:nth-child(4) { animation-delay: .24s; }
.chart-bars rect:nth-child(5) { animation-delay: .32s; }
.chart-bars rect:nth-child(6) { animation-delay: .40s; }
.chart-bars rect:nth-child(7) { animation-delay: .48s; }

.chart-line-view,
.chart-points {
  opacity: 1;
  transition: opacity .42s ease, transform .42s ease;
}

.mini-chart-card[data-chart-mode="bars"] .chart-line-view,
.mini-chart-card[data-chart-mode="bars"] .chart-points {
  opacity: 0;
  transform: translateY(-6px);
}

.mini-chart-card[data-chart-mode="bars"] .chart-bars {
  opacity: 1;
  transform: translateY(0);
}

@keyframes chartCardFloat {
  50% { transform: translateY(-7px); }
}

@keyframes chartAreaPulse {
  0%, 20% { opacity: .28; transform: scaleY(.82); }
  52%, 100% { opacity: 1; transform: scaleY(1); }
}

@keyframes chartLineDraw {
  0%, 14% { stroke-dashoffset: 520; }
  58%, 100% { stroke-dashoffset: 0; }
}

@keyframes chartPointPop {
  0%, 18% { opacity: 0; transform: scale(.4); }
  38%, 82% { opacity: 1; transform: scale(1); }
  100% { opacity: .72; transform: scale(.86); }
}

@keyframes chartBarGrow {
  0%, 18% { transform: scaleY(.34); opacity: .62; }
  48%, 86% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(.78); opacity: .8; }
}

@keyframes dashboardTextSwap {
  0% { opacity: .35; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.chart-metrics span {
  color: #6B7280;
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
}

.chart-metrics strong {
  display: block;
  color: #121625;
  font-size: 22px;
  line-height: 1.05;
}

.chart-metrics small {
  display: block;
  margin-top: 2px;
  color: #6B7280;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.12;
}

.visual-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 36px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 900;
}

.visual-pills span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}

.step-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.marketplace-panel {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.marketplace-grid {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 16px;
}

.marketplace-option {
  width: 100%;
  min-height: 150px;
  padding: 22px 24px;
  border: 1px solid #E3E7F2;
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  color: #121625;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  position: relative;
  box-shadow: 0 12px 30px rgba(18, 22, 37, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.marketplace-option:hover,
.marketplace-option:focus-visible,
.marketplace-option.is-selected {
  transform: translateY(-3px);
  border-color: rgba(99, 91, 255, .46);
  background: #fff;
  box-shadow: 0 20px 44px rgba(18, 22, 37, .1);
  outline: none;
}

.marketplace-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #F8F9FF;
  border: 1px solid #EDF0F9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marketplace-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.marketplace-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.option-check {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: #EDF0F9;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.marketplace-option.is-selected .option-check {
  background: #16A34A;
  color: #fff;
}

.actions-row {
  width: min(100%, 860px);
  max-width: 860px;
  margin: 28px auto 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.actions-row.left {
  justify-content: flex-start;
  margin: 26px 0 0;
}

.button {
  min-width: 124px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  background: linear-gradient(135deg, #023CD1, #635BFF);
  color: #fff;
  box-shadow: 0 12px 28px rgba(99, 91, 255, .28);
}

.button.secondary {
  background: #fff;
  color: #33384D;
  border: 1px solid #E3E7F2;
}

.button.is-loading {
  pointer-events: none;
  opacity: .74;
}

.integration-card,
.whatsapp-layout {
  width: min(100%, 980px);
  max-width: 980px;
  margin: 34px auto 0;
  background: #fff;
  border: 1px solid rgba(18, 22, 37, .08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 64px rgba(18, 22, 37, .1);
}

.onboarding-page .integration-card {
  display: block !important;
  align-items: stretch;
  text-align: left;
}

.onboarding-page .integration-card--connecting {
  width: min(100%, 900px) !important;
}

.integration-hero {
  padding: 32px 40px;
  color: #121625;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .45), transparent 28%),
    #FFE000;
}

.integration-hero.theme-shopee {
  color: #fff;
  background: linear-gradient(135deg, #EE4D2D, #FF7A45);
}

.integration-hero.theme-tiktok {
  color: #fff;
  background: linear-gradient(135deg, #121625, #00D4FF);
}

.integration-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .78);
  color: #121625;
}

.integration-icon svg {
  width: 26px;
  height: 26px;
}

.integration-card--connecting {
  max-width: 900px;
}

.integration-card--connecting .integration-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 300px;
  text-align: center;
}

.integration-orbit {
  position: relative;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 1px rgba(18, 22, 37, .08);
}

.integration-orbit__ring {
  position: absolute;
  inset: 30px;
  border: 1px dashed rgba(18, 22, 37, .28);
  border-radius: inherit;
  animation: integrationSpin 10s linear infinite;
}

.integration-orbit__packet {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #635BFF;
  box-shadow: 0 0 0 7px rgba(99, 91, 255, .16), 0 12px 24px rgba(18, 22, 37, .16);
  animation: integrationPacket 2.1s ease-in-out infinite;
}

.integration-orbit__node {
  position: absolute;
  z-index: 2;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 22, 37, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(18, 22, 37, .16);
}

.integration-orbit__node img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.marketplace-node {
  left: 8px;
}

.ascendor-node {
  right: 8px;
}

.ascendor-node img {
  width: 50px;
  height: 50px;
}

@keyframes integrationSpin {
  to { transform: rotate(360deg); }
}

@keyframes integrationPacket {
  0%, 100% { transform: translateX(-68px) scale(.88); opacity: .42; }
  45%, 55% { transform: translateX(68px) scale(1); opacity: 1; }
}

.integration-hero h2 {
  width: min(100%, 680px);
  margin: 20px auto 12px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: normal;
}

.integration-hero p {
  width: min(100%, 720px);
  margin: 0 auto;
  font-weight: 600;
  line-height: 1.55;
}

.integration-body {
  padding: 36px 40px 40px;
}

.integration-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.integration-steps span {
  color: #6B7280;
  font-size: 13px;
  font-weight: 900;
  padding-top: 18px;
  border-top: 5px solid #DCE2EC;
}

.integration-steps span.is-active {
  color: #635BFF;
  border-color: #635BFF;
}

.integration-steps span.is-complete {
  color: #2FBD6B;
  border-color: #2FBD6B;
}

.integration-status {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 0;
  padding: 20px;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  background: var(--sp-panel-soft);
}

.integration-status strong {
  display: block;
  color: var(--sp-text);
  font-size: 18px;
  font-weight: 900;
}

.integration-status p {
  margin: 5px 0 0;
  color: var(--sp-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.loader-orbit {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid var(--sp-border);
  border-radius: 50%;
}

.loader-orbit i {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
  border-top-color: var(--sp-primary);
  border-radius: 50%;
  animation: loaderSpin .8s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

.integration-checklist {
  margin: 38px 0 30px;
}

.integration-checklist h3 {
  margin: 0 0 18px;
  color: #121625;
  font-size: 24px;
  font-weight: 900;
}

.integration-checklist p {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6B7280;
  font-weight: 700;
}

.integration-checklist span {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  color: #16A34A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 900;
}

.integration-button {
  min-width: 300px;
  justify-content: space-between;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(248, 249, 255, .76);
  backdrop-filter: blur(8px);
}

.success-modal.is-open {
  display: flex;
}

.success-dialog {
  width: min(100%, 420px);
  padding: 42px 34px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  border: 1px solid rgba(18, 22, 37, .08);
  box-shadow: 0 32px 80px rgba(18, 22, 37, .16);
  animation: modalIn .26s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-animation {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  color: #16A34A;
  border-radius: 99px;
  background: #E9F7EF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-animation span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(22, 163, 74, .18);
  animation: successPulse 1.6s ease-out infinite;
}

@keyframes successPulse {
  to { transform: scale(1.55); opacity: 0; }
}

.success-animation svg {
  width: 48px;
  height: 48px;
  position: relative;
}

.success-dialog h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.whatsapp-layout {
  padding: clamp(28px, 5vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: center;
}

.whatsapp-form {
  margin-top: 30px;
}

.whatsapp-form label {
  display: block;
  margin-bottom: 10px;
  color: #121625;
  font-size: 14px;
  font-weight: 900;
}

.phone-field {
  width: min(100%, 430px);
  height: 54px;
  display: grid;
  grid-template-columns: 64px 1fr;
  border: 1px solid #DCE2EC;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.phone-field:focus-within {
  border-color: #635BFF;
  box-shadow: 0 0 0 4px rgba(99, 91, 255, .12);
}

.phone-field span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8F9FF;
  color: #33384D;
  font-weight: 900;
}

.phone-field input {
  width: 100%;
  border: 0;
  padding: 0 16px;
  color: #121625;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.whatsapp-form small {
  display: block;
  margin-top: 10px;
  color: #6B7280;
  font-weight: 700;
}

.whatsapp-form small.is-error {
  color: #DC2626;
}

.whatsapp-preview {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: 280px;
  height: 510px;
  border: 10px solid #121625;
  border-radius: 34px;
  background: linear-gradient(180deg, #E9F7EF, #F8F9FF);
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(18, 22, 37, .22);
}

.phone-top {
  height: 62px;
  padding: 18px 18px 12px;
  background: #16A34A;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-brand-logo {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(18, 22, 37, .14);
}

.message-list {
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 88%;
  margin: 0;
  padding: 11px 13px;
  border-radius: 16px;
  color: #121625;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
  box-shadow: 0 6px 16px rgba(18, 22, 37, .08);
}

.message.incoming {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
}

.message.outgoing {
  align-self: flex-end;
  background: #DCF8C6;
  border-bottom-right-radius: 4px;
}

.dashboard-placeholder {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #F8F9FF;
}

.dashboard-placeholder__card {
  width: min(100%, 620px);
  padding: 36px;
  border: 1px solid #E3E7F2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(18, 22, 37, .1);
}

.dashboard-placeholder__card img {
  width: 176px;
  height: auto;
  display: block;
  margin-bottom: 34px;
}

.dashboard-placeholder__card h1 {
  margin: 0;
  color: #121625;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 900;
}

.dashboard-placeholder__card p {
  margin: 16px 0 0;
  color: #6B7280;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .auth-card {
    width: min(100%, 920px);
    grid-template-columns: minmax(330px, .95fr) minmax(360px, 1.05fr);
  }

  .auth-content,
  .auth-visual {
    padding: clamp(34px, 4vw, 50px);
  }

  .mini-chart-card {
    max-width: 360px;
  }

  .marketplace-grid {
    max-width: 900px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-option {
    min-height: 132px;
    padding: 20px;
  }

  .whatsapp-layout {
    max-width: 900px;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 34px;
  }

  .whatsapp-preview {
    display: flex;
  }

  .phone-shell {
    width: 220px;
    height: 400px;
    border-width: 8px;
  }
}

@media (max-width: 900px) {
  .auth-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-content {
    align-items: center;
    text-align: center;
  }

  .auth-logo {
    margin-bottom: 34px;
  }

  .auth-content h2,
  .auth-content p {
    max-width: 560px;
  }

  .auth-visual {
    min-height: 350px;
    padding-block: 40px;
  }

  .auth-visual > .eyebrow {
    align-self: center;
  }

  .marketplace-step.is-active,
  .integration-step.is-active,
  .whatsapp-step.is-active {
    padding: 18px 0 38px;
  }

  .marketplace-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .marketplace-option {
    min-height: 94px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 16px;
  }

  .marketplace-logo,
  .option-check {
    position: static;
  }

  .actions-row {
    width: min(100%, 560px);
  }

  .integration-card,
  .whatsapp-layout {
    margin-top: 18px;
  }

  .whatsapp-layout {
    max-width: 620px;
    grid-template-columns: 1fr;
  }

  .whatsapp-preview {
    display: none;
  }

  .integration-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .onboarding-stage {
    min-height: 100svh;
    padding: 16px;
  }

  .onboarding-topbar {
    width: 100%;
    margin-bottom: 12px;
  }

  .auth-step.is-active,
  .marketplace-step.is-active,
  .integration-step.is-active,
  .whatsapp-step.is-active {
    padding: 8px 0 22px;
  }

  .auth-card,
  .integration-card,
  .whatsapp-layout {
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(18, 22, 37, .1);
  }

  .auth-content,
  .auth-visual,
  .integration-hero,
  .integration-body,
  .whatsapp-layout {
    padding: 28px;
  }

  .step-heading {
    margin-bottom: 22px;
  }

  .step-heading p,
  .whatsapp-layout p {
    font-size: 15px;
  }

  .auth-visual {
    min-height: auto;
  }

  .mini-chart-card {
    width: 100%;
    max-width: 390px;
    padding: 18px;
  }

  .visual-pills {
    gap: 12px;
    margin-top: 28px;
    font-size: 11px;
  }

  .integration-card--connecting .integration-hero {
    min-height: auto;
  }

  .integration-hero p {
    font-size: 15px;
  }

  .integration-orbit {
    width: 176px;
    height: 176px;
  }

  .integration-orbit__ring {
    inset: 26px;
  }

  .integration-orbit__node {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .integration-orbit__node img {
    width: 38px;
    height: 38px;
  }

  .ascendor-node img {
    width: 42px;
    height: 42px;
  }

  .marketplace-node {
    left: 4px;
  }

  .ascendor-node {
    right: 4px;
  }

  .integration-status {
    align-items: flex-start;
    padding: 16px;
  }

  .phone-field {
    width: 100%;
  }

  .integration-button,
  .button,
  .google-button {
    width: 100%;
  }

  .actions-row,
  .actions-row.left {
    width: 100%;
    flex-direction: column-reverse;
  }
}

@media (max-width: 520px) {
  .onboarding-page {
    background: #F8F9FF;
  }

  .onboarding-stage {
    padding: 0;
  }

  .onboarding-topbar {
    padding: 14px 16px;
    margin: 0;
  }

  .onboarding-topbar a {
    padding: 9px 12px;
  }

  .auth-step.is-active,
  .marketplace-step.is-active,
  .integration-step.is-active,
  .whatsapp-step.is-active {
    align-items: start;
    padding: 0 14px 22px;
  }

  .auth-card,
  .integration-card,
  .whatsapp-layout {
    width: 100%;
    border-radius: 16px;
  }

  .auth-content,
  .auth-visual,
  .integration-hero,
  .integration-body,
  .whatsapp-layout {
    padding: 24px;
  }

  .auth-logo {
    width: 144px;
    margin-bottom: 28px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .auth-content h2,
  .step-heading h2,
  .integration-hero h2,
  .whatsapp-layout h2 {
    font-size: 30px;
    letter-spacing: -.02em;
  }

  .auth-content p {
    max-width: 300px;
    font-size: 13px;
  }

  .google-actions,
  .secure-note {
    width: 100%;
  }

  .google-button {
    grid-template-columns: minmax(0, 1fr) 46px;
    font-size: 13px;
  }

  .google-button.is-remembered {
    grid-template-columns: 34px minmax(0, 1fr) 14px 46px;
  }

  .google-icon {
    width: 46px;
  }

  .google-avatar {
    width: 24px;
    height: 24px;
    margin-left: 8px;
  }

  .google-copy {
    padding-left: 8px;
  }

  .google-copy small {
    font-size: 11px;
  }

  .secure-note {
    margin-top: 24px;
    font-size: 11px;
  }

  .auth-visual {
    padding-top: 26px;
    background-size: 34px 34px, 34px 34px, auto;
  }

  .auth-visual > .eyebrow {
    margin-bottom: 22px;
  }

  .mini-chart-card {
    border-radius: 16px;
    padding: 16px;
  }

  .chart-head,
  .chart-metrics {
    gap: 12px;
  }

  .chart-head strong {
    font-size: 12px;
  }

  .chart-head span {
    font-size: 10px;
  }

  .chart-metrics strong {
    font-size: 19px;
  }

  .chart-metrics small {
    font-size: 11px;
  }

  .visual-pills {
    display: none;
  }

  .marketplace-panel {
    width: 100%;
  }

  .step-heading {
    text-align: left;
    margin: 8px 0 20px;
  }

  .step-heading p {
    font-size: 14px;
  }

  .marketplace-grid {
    gap: 12px;
  }

  .marketplace-option {
    min-height: 84px;
    grid-template-columns: 50px minmax(0, 1fr) 28px;
    padding: 16px;
    border-radius: 16px;
  }

  .marketplace-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .marketplace-logo img {
    width: 31px;
    height: 31px;
  }

  .marketplace-copy strong {
    font-size: 17px;
  }

  .option-check {
    width: 26px;
    height: 26px;
  }

  .integration-hero {
    border-radius: 16px 16px 0 0;
  }

  .integration-hero h2 {
    width: 100%;
    margin-top: 18px;
  }

  .integration-hero p {
    width: 100%;
    font-size: 14px;
  }

  .integration-orbit {
    width: 150px;
    height: 150px;
  }

  .integration-orbit__ring {
    inset: 24px;
  }

  .integration-orbit__packet {
    width: 12px;
    height: 12px;
  }

  .integration-orbit__node {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .integration-orbit__node img {
    width: 34px;
    height: 34px;
  }

  .ascendor-node img {
    width: 38px;
    height: 38px;
  }

  .integration-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .integration-steps span {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 0 0 14px;
    border-top: 0;
    border-left: 5px solid #DCE2EC;
  }

  .integration-status {
    gap: 14px;
    margin-top: 22px;
  }

  .integration-status strong {
    font-size: 15px;
  }

  .integration-status p {
    font-size: 13px;
  }

  .success-modal {
    padding: 18px;
  }

  .success-dialog {
    padding: 34px 24px;
  }

  .success-animation {
    width: 78px;
    height: 78px;
  }

  .success-dialog h3 {
    font-size: 23px;
  }

  .whatsapp-form {
    margin-top: 24px;
  }

  .phone-field {
    height: 52px;
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .phone-field input {
    padding-inline: 13px;
    font-size: 14px;
  }
}
