/* =============================================
   Wizard (onboarding) â€” BEM
   Block: .wizard
   ============================================= */

/* --- Layout --- */
.wizard {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.wizard-header + .wizard,
.wizard-header ~ .wizard {
  padding-top: 5rem;
}

.wizard:before, .wizard:after {
    content: '';
    position: absolute;
    left: 27px;
    width: 1px;
    height: 100%;
    background: #ddd;
    display: block;
    top: 0;
    bottom: 0;
}

.wizard:after {
    right: 27px;
    left: initial;
}
@media (min-width: 768px) {
  .wizard {
    padding: 2.5rem;
  }
}
.wizard--debug {
  flex-direction: column;
  gap: 1.5rem;
}
.wizard--auth {
  flex-direction: column;
}

/* --- Card --- */

.wizard__card {
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
}

/* --- Slide (generic content block inside card) --- */

.wizard__slide {
  padding: 2rem;
  text-align: center;
}

div.wizard__slide--auth {
    padding-top: 2.5rem;
}

input.wizard__input {
    padding: 25px 15px 26px;
    font-size: 16px;
}

input.wizard__input.--login {
    margin-top: 20px;
}

input.wizard__input.--password {margin-bottom: -20px;}

.wizard__auth-legal {
    margin: 10px 0 -7px;
}

/* --- Auth messages --- */

.wizard__auth-message {
  font-size: 0.875rem;
  text-align: center;
}
.wizard__auth-message--error {
  color: #dc2626;
}
.wizard__auth-message--success {
  color: #16a34a;
}

/* --- Debug label --- */

.wizard__debug-label {
  padding-top: 0.75rem;
  text-align: center;
  font-family: monospace;
  font-size: 0.75rem;
}

/* --- Image (mascot) --- */

.wizard__image {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.wizard__image img {
  height: 140px;
  width: 140px;
  -o-object-fit: contain;
  object-fit: contain;
}

/* --- Title & description --- */

h2.wizard__title {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 32px;
}
.wizard__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* --- Primary action (full-width button area) --- */

button.wizard__action, a.wizard__action {
  width: 100%;
  margin-top: 20px;
  padding: 25px 25px 26px;
  /* box-shadow: none; */
  gap: 3px;
  font-size: 16px;
}

.wizard__action svg {
    margin-right: 8px;
}

.wizard__action .lucide-arrow-right {
    top: 1px;
    position: relative;
    left: -2px;
}

/* --- Dots navigation --- */

.wizard__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.wizard__dots-wrap {
  padding-left: 2rem;
  padding-right: 2rem;
  margin-top: 20px;
}
.wizard__dot {
  height: 0.5rem;
  border-radius: 9999px;
  transition: all 150ms ease;
}
.wizard__dot--active {
  width: 1.5rem;
}
.wizard__dot--inactive {
  width: 0.5rem;
}

/* --- Wizard icon (unified: error, success) --- */

.wizard__icon {
  margin: 0 auto 1rem;
  display: flex;
  height: 6rem;
  width: 6rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.wizard__icon-svg {
  height: 3rem;
  width: 3rem;
  position: relative;
  /* top: 2px; */
}

.wizard__icon--success svg {
    top: 2px;
}
.wizard__icon--error {
  background: rgb(255 26 26);
  color: #fff;
}
.wizard__icon--success {
  background: rgb(0 200 81);
  color: #ffffff;
}

/* --- Progress step --- */

.wizard__progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wizard__progress-pct {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- Task list --- */

.wizard__tasks {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wizard__task {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-radius: 0.375rem;
  transition: color 150ms ease, opacity 150ms ease;
}
.wizard__task--done {
  opacity: 0.6;
}
.wizard__task-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 9999px;
  transition: color 150ms ease, background-color 150ms ease;
}
.wizard__task-label {
  flex: 1;
  font-size: 0.875rem;
}
.wizard__task-label--done {
  text-decoration: line-through;
}


/* --- Channel preview --- */

.wizard__channel-avatar {
  display: flex;
  height: 5rem;
  width: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.wizard__channel-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-align: center;
}
.wizard__channel-handle {
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.wizard__channel-subs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.wizard__channel-desc {
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Info box --- */

.wizard__info-box {
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

/* --- Button row (back / continue) --- */

.wizard__actions {
  display: flex;
  gap: 0.75rem;
}
.wizard__actions > * {
  flex: 1;
}

/* --- Form field group --- */

.wizard__field {
  display: grid;
  gap: 0.5rem;
}

/* --- Loading spinner --- */

.wizard__loading {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
}

/* --- Auth link (switch login/register) --- */

.wizard__auth-link {
  color: #000;
  text-decoration: none;
}

.wizard__auth-link:hover {
    color: #000;
}
.wizard__auth-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  /* margin-bottom: -80px; */
}

/* --- Auth Google button --- */

.wizard__auth-google {
  width: 100%;
  gap: 0.5rem;
}

/* --- Auth Email button --- */

.wizard__auth-email {
  width: 100%;
  gap: 0.5rem;
  margin-top: 0 !important;
}

/* --- Action modifiers --- */

.wizard__action--back {}
.wizard__action--continue {}

/* --- Auth form --- */

.wizard__auth {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wizard__auth-header {
  text-align: center;
}
.wizard__auth-title {
  font-size: 1.25rem;
}
.wizard__auth-subtitle {
  font-size: 0.875rem;
}
.wizard__auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wizard__auth-switch {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 8px;
}
.wizard__auth-back {
  text-align: center;
  font-size: 0.75rem;
}
.wizard__auth-back a {
  /* color: var(--muted-foreground); */
  text-decoration: none;
}
.wizard__auth-back a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Auth legal text --- */

.wizard__auth-legal {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.6;
}
.wizard__auth-legal a {
  color: #000;
  text-decoration: none;
}
.wizard__auth-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #000;
}

/* --- Wizard header --- */

.wizard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 48px;
  border-bottom: 1px solid #DDDDDD;
  background: #F5F5F5;
}
.wizard-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
}
.wizard-header__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}
.wizard-header__logo:hover {
  color: inherit;
}
.wizard-header__logo-icon {
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.125rem;
}
.wizard-header__logo-fallback {
  display: flex;
  height: 1.75rem;
  width: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.125rem;
  background: #111;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.wizard-header__logo-text {
  font-size: 20px;
  font-weight: 700;
  margin: -2px 0 0 -1px;
}
