:root {
  --bg: #060d18;
  --text: #ecf2ff;
  --muted: rgba(236, 242, 255, 0.74);
  --card: rgba(8, 17, 32, 0.84);
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.38);
  --blue-1: #7dd3fc;
  --blue-2: #3b82f6;
  --blue-3: #1d4ed8;
  --violet-1: #8b5cf6;
  --glass: rgba(255, 255, 255, 0.045);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    "Sora",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.onboarding-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(860px 520px at 10% -2%, rgba(125, 211, 252, 0.22), transparent 56%),
    radial-gradient(760px 520px at 94% 14%, rgba(59, 130, 246, 0.22), transparent 62%),
    linear-gradient(180deg, #040912, #0a1324 55%, #050a14 100%);
}

.onboarding-app {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 22px 0 56px;
}

.onboarding-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-word {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: linear-gradient(135deg, #ffffff 0%, #aaf4ff 42%, #53bfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(83, 191, 255, 0.12);
}

.top-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(236, 242, 255, 0.94);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 860;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.top-login-btn:hover {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(125, 211, 252, 0.12);
}

.state-screen {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  transition: opacity 220ms ease;
  padding: 8px 0 18px;
}

.hidden {
  display: none !important;
}

.pulse {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue-1), var(--blue-3));
  box-shadow:
    0 0 0 0 rgba(59, 130, 246, 0.35),
    0 0 0 20px rgba(59, 130, 246, 0.08);
  animation: onboardingPulse 1.8s ease-in-out infinite;
}

.boot-loader {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.boot-loader-text {
  margin: 0;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: 0.02em;
  color: rgba(236, 242, 255, 0.86);
}

@keyframes onboardingPulse {
  0% {
    transform: scale(0.92);
    box-shadow:
      0 0 0 0 rgba(59, 130, 246, 0.35),
      0 0 0 20px rgba(59, 130, 246, 0.08);
  }
  70% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 20px rgba(59, 130, 246, 0.05),
      0 0 0 40px rgba(59, 130, 246, 0.02);
  }
  100% {
    transform: scale(0.92);
    box-shadow:
      0 0 0 0 rgba(59, 130, 246, 0.3),
      0 0 0 20px rgba(59, 130, 246, 0.08);
  }
}

.panel,
.flow-card {
  width: min(760px, 100%);
  background:
    radial-gradient(700px 340px at 14% 0%, rgba(125, 211, 252, 0.14), transparent 60%),
    radial-gradient(640px 320px at 98% 0%, rgba(139, 92, 246, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(10, 19, 35, 0.9), rgba(5, 10, 19, 0.95));
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  padding: 32px;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.12);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.panel h1,
.panel h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.04;
}

.panel-sub {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.google-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 34px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  color: #f8fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.google-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.or-divider {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(236, 242, 255, 0.5);
  letter-spacing: 0.24em;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 242, 255, 0.2), transparent);
}

.auth-form label {
  display: block;
  margin: 14px 0 7px;
  font-size: 12px;
  font-weight: 820;
  color: rgba(236, 242, 255, 0.9);
}

input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  padding: 13px 14px;
  outline: none;
  font: inherit;
  min-height: 52px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(96, 165, 250, 0.62);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

.auth-confirm-wrap.hidden {
  display: none;
}

.auth-cta {
  display: block;
  width: min(360px, 100%);
  margin: 26px auto 0;
  min-height: 60px;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-btn,
.ghost-btn {
  border-radius: 16px;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.top-login-btn,
.google-btn,
.primary-btn,
.ghost-btn {
  will-change: transform;
}

.top-login-btn:hover,
.google-btn:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.top-login-btn:active,
.google-btn:active,
.primary-btn:active,
.ghost-btn:active {
  transform: translateY(0);
}

.primary-btn {
  border: 0;
  color: #081427;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(236, 242, 255, 0.94);
}

.primary-btn:disabled,
.ghost-btn:disabled,
.google-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.choice-panel {
  text-align: center;
}

.choice-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.flow-shell {
  width: min(980px, 100%);
}

.flow-progress-top {
  margin-bottom: 18px;
}

.flow-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.flow-progress-head {
  display: none;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(125, 211, 252, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.flow-step-title {
  color: rgba(236, 242, 255, 0.9);
  font-size: 14px;
  font-weight: 780;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  background-size: 220% 100%;
  position: relative;
  overflow: hidden;
  transition: width 540ms cubic-bezier(0.22, 0.61, 0.36, 1);
  animation: progressFlow 2.8s linear infinite;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 34%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: progressShine 1.8s ease-in-out infinite;
}

@keyframes progressFlow {
  0% {
    background-position: 0 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@keyframes progressShine {
  0% {
    transform: translateX(0);
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(300%);
    opacity: 0.2;
  }
}

.flow-card {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.flow-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -50% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.12), transparent 68%);
  pointer-events: none;
}

.flow-card h3 {
  margin: 0;
  font-size: clamp(25px, 3.6vw, 35px);
  line-height: 1.08;
}

.flow-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.flow-placeholder {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px 15px;
  color: rgba(236, 242, 255, 0.78);
  font-size: 14px;
}

.step-head {
  display: grid;
  gap: 6px;
}

.step-stack {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.step-section {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--glass);
  padding: 16px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.step-section:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 10px 26px rgba(7, 15, 30, 0.28);
}

.step-section-glow {
  background:
    radial-gradient(520px 180px at -10% 0%, rgba(125, 211, 252, 0.12), transparent 66%),
    rgba(255, 255, 255, 0.035);
  border-color: rgba(125, 211, 252, 0.32);
}

.step-section label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 820;
  color: rgba(236, 242, 255, 0.94);
}

.step-section label.onboarding-check {
  display: inline-flex;
  margin: 0;
}

.step-section label.upload-dropzone {
  display: grid;
  margin: 0;
}

.step-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.step-identity-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
}

.step-color-row {
  grid-template-columns: minmax(0, 1fr) 74px;
}

.step-search-row {
  grid-template-columns: minmax(0, 1fr) 168px;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: rgba(236, 242, 255, 0.62);
  font-size: 12px;
  font-weight: 650;
}

.field-hint-strong {
  margin-top: 0;
  padding-left: 2px;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.field-label-row label {
  margin: 0;
  font-size: 13.5px;
}

.field-optional {
  color: rgba(236, 242, 255, 0.56);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-inline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.color-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.color-main-row-compact {
  grid-template-columns: 52px minmax(0, 1fr);
}

.color-palette-btn {
  border: 0;
  cursor: pointer;
}

.color-palette-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(236, 242, 255, 0.92);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.color-palette-btn-icon {
  font-size: 22px;
}

.color-palette-btn:hover {
  background: rgba(125, 211, 252, 0.2);
}

.color-visual-input {
  position: relative;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--swatch, #0f172a);
  padding: 0 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.color-visual-input:focus-within {
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

.color-visual-input #stepCompanyColorInput {
  min-height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--swatch-text, #f8fbff);
  font-weight: 780;
  letter-spacing: 0.02em;
}

.color-visual-input #stepCompanyColorInput::placeholder {
  color: var(--swatch-placeholder, rgba(248, 251, 255, 0.78));
}

.color-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.onboarding-logo-preview {
  margin-top: 14px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  background:
    radial-gradient(500px 140px at 50% -10%, rgba(125, 211, 252, 0.16), transparent 64%),
    rgba(255, 255, 255, 0.04);
  padding: 14px;
  display: flex;
  justify-content: center;
}

.onboarding-logo-preview img {
  max-height: 116px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
}

.upload-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone {
  position: relative;
  border-radius: 18px;
  border: 1px dashed rgba(125, 211, 252, 0.46);
  background:
    radial-gradient(560px 180px at 10% 0, rgba(125, 211, 252, 0.1), transparent 65%),
    rgba(255, 255, 255, 0.03);
  padding: 18px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.74);
  box-shadow: 0 18px 36px rgba(14, 27, 54, 0.45);
  background:
    radial-gradient(560px 220px at 10% 0, rgba(125, 211, 252, 0.16), transparent 65%),
    rgba(255, 255, 255, 0.05);
}

.upload-dropzone-icon {
  font-size: 21px;
}

.upload-dropzone-title {
  font-size: 15px;
  font-weight: 860;
  color: #f3f9ff;
}

.upload-dropzone-sub {
  font-size: 12px;
  color: rgba(236, 242, 255, 0.68);
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: stretch;
}

.upload-layout .upload-dropzone {
  height: 100%;
}

.onboarding-logo-preview-side {
  margin-top: 0;
  height: 100%;
  min-height: 124px;
  align-items: center;
}

.step-hours-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hours-prefill-status {
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(125, 211, 252, 0.11);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(236, 242, 255, 0.9);
}

.hours-prefill-status.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(236, 242, 255, 0.26);
  border-top-color: rgba(236, 242, 255, 0.92);
  display: inline-block;
  vertical-align: -2px;
  animation: stepLoaderSpin 0.8s linear infinite;
}

.onboarding-places-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.onboarding-place-item {
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #eaf1ff;
  padding: 12px 13px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease;
}

.onboarding-place-item strong {
  font-size: 14px;
}

.onboarding-place-item span {
  color: var(--muted);
  font-size: 13px;
}

.onboarding-place-item:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.46);
  background: rgba(125, 211, 252, 0.12);
  box-shadow: 0 12px 26px rgba(10, 22, 42, 0.28);
}

.onboarding-toggle-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.onboarding-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(236, 242, 255, 0.92);
  font-size: 13px;
  font-weight: 730;
}

.onboarding-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.onboarding-day-card {
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.onboarding-day-card.is-disabled {
  opacity: 0.6;
}

.onboarding-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.onboarding-day-head strong {
  font-size: 15px;
}

.onboarding-day-state {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.day-state-btn {
  border: 0;
  background: transparent;
  color: rgba(236, 242, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
  padding: 7px 11px;
  cursor: pointer;
}

.day-state-btn.is-active {
  background: rgba(125, 211, 252, 0.2);
  color: #f2f9ff;
}

.onboarding-day-slots {
  margin-top: 10px;
}

.onboarding-slots-list {
  display: grid;
  gap: 8px;
}

.onboarding-slot-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.onboarding-slot-row span {
  color: rgba(236, 242, 255, 0.72);
  font-weight: 800;
}

.onboarding-slot-row .ghost-btn,
.onboarding-day-slots .ghost-btn {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 12px;
}

.summary-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-item {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px 13px;
  display: grid;
  gap: 5px;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.summary-item:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(255, 255, 255, 0.055);
}

.summary-item strong {
  font-size: 12px;
  color: rgba(236, 242, 255, 0.78);
  font-weight: 800;
}

.summary-item span {
  font-size: 14px;
  color: #f4f8ff;
  font-weight: 700;
}

.summary-links-block {
  margin-top: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.summary-links-block strong {
  font-size: 13px;
}

.summary-links-list {
  display: grid;
  gap: 8px;
}

.summary-link-row {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.summary-link-row span {
  font-size: 13px;
  font-weight: 700;
}

.summary-link-row small {
  color: rgba(236, 242, 255, 0.56);
  font-size: 11px;
}

.summary-link-separator {
  border: 1px dashed rgba(148, 163, 184, 0.36);
  border-radius: 12px;
  padding: 7px 10px;
  text-align: center;
  font-size: 12px;
  color: rgba(236, 242, 255, 0.6);
}

.summary-link-empty {
  color: rgba(236, 242, 255, 0.62);
  font-size: 13px;
}

.trial-final-head h3 {
  margin: 0;
  text-align: center;
  color: #44e49f;
  font-size: clamp(28px, 4.4vw, 42px);
}

.trial-separator {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.44), transparent);
}

.trial-final-offer {
  text-align: center;
  font-size: clamp(21px, 3.8vw, 30px);
  font-weight: 850;
  line-height: 1.2;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6, #d8b4fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trial-pro-card {
  margin-top: 14px;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.42);
  background:
    radial-gradient(600px 220px at 50% -10%, rgba(167, 139, 250, 0.28), transparent 68%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 16px 36px rgba(30, 12, 70, 0.3),
    inset 0 0 32px rgba(167, 139, 250, 0.08);
  padding: 18px;
}

.trial-pro-name {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  background: linear-gradient(135deg, #d8b4fe, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trial-pro-price-day {
  margin-top: 6px;
  text-align: center;
  color: #45e7a2;
  font-size: clamp(26px, 4.8vw, 42px);
  font-weight: 930;
}

.trial-pro-price-month {
  margin-top: 2px;
  text-align: center;
  color: rgba(236, 242, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
}

.trial-pro-caption {
  margin-top: 10px;
  text-align: center;
  color: rgba(236, 242, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.trial-benefits {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.trial-benefit {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.02);
  padding: 9px 11px;
  font-size: 14px;
  color: #eaf1ff;
  font-weight: 670;
}

.trial-after-note {
  margin-top: 14px;
  color: rgba(236, 242, 255, 0.82);
  font-size: 14px;
  line-height: 1.58;
}

.flow-actions {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-actions.next-right-only {
  justify-content: flex-end;
}

.flow-next-cta {
  min-height: 58px;
  padding-inline: 22px;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-card.step-enter {
  animation: stepCardEnter 360ms ease both;
}

@keyframes stepCardEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.flow-card.is-loading .flow-actions {
  opacity: 0.55;
  pointer-events: none;
}

.flow-step-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: inherit;
  background: rgba(4, 10, 20, 0.62);
  backdrop-filter: blur(6px);
}

.step-loading-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.step-loading-state p {
  margin: 0;
  color: rgba(236, 242, 255, 0.86);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.step-loading-spinner {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: conic-gradient(
    from 160deg,
    rgba(125, 211, 252, 0.2),
    rgba(59, 130, 246, 0.95),
    rgba(125, 211, 252, 0.18)
  );
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  animation: stepLoaderSpin 0.95s linear infinite;
}

@keyframes stepLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.step-stack > *,
.summary-grid > *,
.summary-links-block {
  opacity: 0;
  transform: translateY(6px);
  animation: stepItemsIn 340ms ease forwards;
}

.step-stack > *:nth-child(1),
.summary-grid > *:nth-child(1) {
  animation-delay: 20ms;
}
.step-stack > *:nth-child(2),
.summary-grid > *:nth-child(2) {
  animation-delay: 70ms;
}
.step-stack > *:nth-child(3),
.summary-grid > *:nth-child(3) {
  animation-delay: 120ms;
}
.step-stack > *:nth-child(4),
.summary-grid > *:nth-child(4) {
  animation-delay: 170ms;
}
.summary-links-block {
  animation-delay: 190ms;
}

@keyframes stepItemsIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 15, 0.68);
  backdrop-filter: blur(12px);
}

.notice-modal {
  width: min(460px, 100%);
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 22, 40, 0.97), rgba(7, 13, 25, 0.99));
  box-shadow: var(--shadow-lg);
  padding: 24px 20px 20px;
}

.notice-modal h3 {
  margin: 0;
  font-size: 24px;
}

.notice-modal p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.notice-actions {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .onboarding-app {
    width: min(100%, 95vw);
  }

  .panel,
  .flow-card {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .state-screen {
    min-height: calc(100vh - 120px);
  }

  .flow-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-step-title {
    font-size: 13px;
  }

  .flow-actions {
    flex-direction: column-reverse;
  }

  .flow-actions .primary-btn,
  .flow-actions .ghost-btn {
    width: 100%;
  }

  .step-inline-row {
    grid-template-columns: 1fr;
  }

  .step-two-cols,
  .step-search-row {
    grid-template-columns: 1fr;
  }

  .step-identity-grid {
    grid-template-columns: 1fr;
  }

  .color-main-row {
    grid-template-columns: 1fr;
  }

  .upload-layout {
    grid-template-columns: 1fr;
  }

  .onboarding-slot-row {
    grid-template-columns: 1fr;
  }

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

  .step-hours-controls {
    align-items: stretch;
  }

  .step-hours-controls .ghost-btn {
    width: 100%;
  }
}
