/* ============================================================
   ONBOARDING — MOBILE + DESKTOP DUAL LAYOUT
   
   MOBILE (default): single column phone style with internal header
   DESKTOP (1024px+): two-column split with brand panel left, form right
   ============================================================ */

/* ---------- BASE / MOBILE ---------- */

body.onboarding-wrap {
  background: var(--bg-deep);
  min-height: 100vh;
  position: relative;
}

.brand-panel { display: none; }

.onboarding-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.onboarding-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.progress-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.progress-dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease;
}

.progress-dot.active {
  background: var(--green);
  box-shadow: 0 0 6px rgba(29, 158, 117, 0.6);
}

.skip-btn {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 999px;
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(229, 233, 240, 0.5);
  cursor: pointer;
}

.desktop-skip { display: none; }

.onboarding-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.onboarding-eyebrow {
  text-align: center;
  font-size: 10px;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 8px;
}

.onboarding-title {
  font-size: 26px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: white;
  text-align: center;
  font-weight: 500;
}

.onboarding-subtitle {
  font-size: 13px;
  color: rgba(229, 233, 240, 0.55);
  line-height: 1.5;
  margin: 0 auto 24px;
  text-align: center;
  max-width: 320px;
}

.onboarding-glow {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.18) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* Hero block - welcome/success/activate */
.hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.hero-logo {
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 32px rgba(0, 214, 143, 0.6));
  margin-bottom: 28px;
}

.hero-logo i {
  font-size: 40px;
  color: white;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-greeting {
  font-size: 36px;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 340px;
  font-weight: 500;
  color: white;
}

.hero-greeting span.gradient {
  background: linear-gradient(90deg, var(--green-bright), var(--green-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 15px;
  color: rgba(229, 233, 240, 0.6);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 320px;
}

/* Option card */
.option-card {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.option-card:hover { filter: brightness(1.1); }

.option-card.selected {
  background: rgba(29, 158, 117, 0.1);
  border-color: rgba(29, 158, 117, 0.45);
  box-shadow: 0 0 24px rgba(29, 158, 117, 0.15);
}

.option-card .top-accent { display: none; }
.option-card.selected .top-accent { display: block; }

.option-card .check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(29, 158, 117, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-card.selected .check-circle { display: flex; }
.option-card .check-circle i { font-size: 14px; color: white; }

.option-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.option-text { flex: 1; min-width: 0; }

.option-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.option-title-text {
  font-size: 14px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.1px;
}

.option-desc {
  font-size: 11px;
  color: rgba(229, 233, 240, 0.55);
  line-height: 1.4;
}

.continue-btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 28px var(--green-glow);
  letter-spacing: 0.2px;
  margin-top: 12px;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 0 4px;
}

.or-divider .line {
  flex: 1;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.1);
}

.or-divider .text {
  font-size: 10px;
  color: rgba(229, 233, 240, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.code-display {
  background: linear-gradient(135deg, rgba(29, 158, 117, 0.1) 0%, rgba(15, 110, 86, 0.03) 100%);
  border: 0.5px solid rgba(29, 158, 117, 0.4);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.code-text {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: white;
  letter-spacing: 4px;
  margin: 14px 0;
  text-shadow: 0 0 20px rgba(93, 202, 165, 0.4);
  word-break: break-all;
}

@media (min-width: 480px) {
  .code-text { font-size: 28px; }
}

.code-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.code-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.trust-note {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.trust-note i { font-size: 16px; color: var(--green-bright); flex-shrink: 0; }
.trust-note .text {
  flex: 1;
  font-size: 11px;
  color: rgba(229, 233, 240, 0.55);
  line-height: 1.5;
}

.big-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  margin: 0 auto 24px;
  box-shadow: 0 0 80px rgba(29, 158, 117, 0.6), 0 0 30px rgba(29, 158, 117, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.big-icon i {
  font-size: 52px;
  color: white;
  position: relative;
  z-index: 2;
}

.big-icon-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(29, 158, 117, 0.55);
  animation: ring-expand 2.6s ease-out infinite;
}

.big-icon-ring.r1 { inset: -10px; animation-delay: 0s; }
.big-icon-ring.r2 { inset: -22px; animation-delay: 0.7s; border-width: 0.5px; }
.big-icon-ring.r3 { inset: -34px; animation-delay: 1.4s; border-width: 0.5px; }

@keyframes ring-expand {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

.account-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
  color: rgba(229, 233, 240, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 100;
  max-width: 90vw;
  flex-wrap: wrap;
  justify-content: center;
}

.demo-banner i { color: var(--amber); font-size: 12px; }
.demo-banner a { color: var(--green-bright); text-decoration: underline; }
.demo-banner .sep { opacity: 0.4; }

/* ============================================================
   DESKTOP — 1024px+
   ============================================================ */

@media (min-width: 1024px) {
  body.onboarding-wrap {
    display: grid;
    grid-template-columns: 5fr 7fr;
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  /* LEFT: Brand panel */
  .brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    background: linear-gradient(135deg, rgba(29, 158, 117, 0.12) 0%, rgba(15, 110, 86, 0.04) 50%, rgba(5, 8, 16, 0.4) 100%);
    border-right: 0.5px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
  }
  
  .brand-panel-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
  }
  
  .brand-panel-grid svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
  }
  
  .brand-panel-glow {
    position: absolute;
    top: 30%;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 158, 117, 0.18) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
  }
  
  .brand-panel-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .brand-panel-logo {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(0, 214, 143, 0.55));
  }
  
  .brand-panel-logo i { font-size: 20px; color: white; }
  
  .brand-panel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .brand-panel-name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: white;
  }
  
  .brand-panel-middle {
    position: relative;
    z-index: 2;
    max-width: 460px;
  }
  
  .brand-panel-eyebrow {
    font-size: 11px;
    color: var(--green-bright);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .brand-panel-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(29, 158, 117, 0.15);
    border: 0.5px solid rgba(29, 158, 117, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--green-bright);
    font-weight: 500;
  }
  
  .brand-panel-title {
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: white;
    margin-bottom: 18px;
  }
  
  .brand-panel-desc {
    font-size: 15px;
    color: rgba(229, 233, 240, 0.65);
    line-height: 1.6;
    max-width: 400px;
  }
  
  .brand-panel-feature-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 400px;
  }
  
  .brand-panel-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: rgba(229, 233, 240, 0.75);
    line-height: 1.5;
  }
  
  .brand-panel-feature i {
    font-size: 18px;
    color: var(--green-bright);
    flex-shrink: 0;
    margin-top: 1px;
  }
  
  .brand-panel-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 460px;
  }
  
  .brand-panel-progress {
    display: flex;
    gap: 6px;
  }
  
  .brand-progress-dot {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
  }
  
  .brand-progress-dot.active {
    background: var(--green);
    box-shadow: 0 0 6px rgba(29, 158, 117, 0.6);
  }
  
  .brand-panel-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: rgba(229, 233, 240, 0.55);
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    line-height: 1.5;
  }
  
  .brand-panel-trust i {
    font-size: 16px;
    color: var(--green-bright);
    flex-shrink: 0;
  }
  
  /* RIGHT: Form panel */
  .onboarding-page {
    max-width: 100%;
    margin: 0;
    padding: 48px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    position: relative;
  }
  
  .onboarding-top { display: none; }
  
  .onboarding-page > .algo-grid,
  .onboarding-page > .onboarding-glow { display: none; }
  
  .onboarding-content {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    flex: none;
  }
  
  /* For option-card pages: hide centered headers (brand panel shows them) */
  .onboarding-content.uses-brand .onboarding-eyebrow,
  .onboarding-content.uses-brand > .onboarding-title {
    display: none;
  }
  
  .onboarding-content.uses-brand > .onboarding-subtitle {
    text-align: left;
    margin: 0 0 24px 0;
    max-width: 100%;
    font-size: 14px;
    color: rgba(229, 233, 240, 0.65);
  }
  
  .hero-block {
    max-width: 460px;
    margin: 0 auto;
  }
  
  .desktop-skip {
    display: flex;
    position: fixed;
    top: 32px;
    right: 32px;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(229, 233, 240, 0.65);
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 50;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@media (min-width: 1280px) {
  .brand-panel { padding: 56px 64px; }
  .onboarding-page { padding: 56px 64px; }
  .brand-panel-title { font-size: 52px; }
  .onboarding-content { max-width: 520px; }
}

@media (min-width: 1536px) {
  .brand-panel, .onboarding-page { padding: 64px 80px; }
  .brand-panel-title { font-size: 56px; }
}
