/* ============================================================
   my247seller — Design System
   Airbnb-inspired · Orange / Black / White · Light Theme
   Font: Plus Jakarta Sans (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --orange:         #FF6B35;
  --orange-hover:   #E85C26;
  --orange-light:   #FFF3EE;
  --orange-mid:     #FFDDCC;
  --black:          #1A1A1A;
  --gray-800:       #484848;
  --gray-600:       #717171;
  --gray-400:       #B0B0B0;
  --gray-200:       #EBEBEB;
  --gray-100:       #F7F7F7;
  --white:          #FFFFFF;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.13);
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;
  --transition:     all .2s cubic-bezier(.4,0,.2,1);
  --font:           'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--black); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { color: var(--gray-800); }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-hover); }

/* ── Navbar ──────────────────────────────────────────────── */
.nav-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-links a:hover { background: var(--gray-100); color: var(--black); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,53,.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--black); background: var(--gray-100); }

.btn-ghost {
  background: transparent;
  color: var(--gray-800);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--black); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .825rem; }
.btn-full { width: 100%; }

.btn:disabled, .btn[disabled] {
  opacity: .5;
  pointer-events: none;
}

/* ── Form Controls ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: .825rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: .01em;
}

.form-label .required { color: var(--orange); margin-left: 2px; }

.form-control,
.form-select {
  font-family: var(--font);
  font-size: .9rem;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  width: 100%;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-control::placeholder { color: var(--gray-400); }

.form-control:hover { border-color: var(--gray-400); }

.form-control:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}

.form-control.is-invalid { border-color: #E53E3E; }
.form-hint {
  font-size: .78rem;
  color: var(--gray-600);
}

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  width: 18px;
  height: 18px;
}
.input-icon-wrap .form-control { padding-left: 44px; }

.input-icon-wrap .icon-right {
  left: unset;
  right: 14px;
  cursor: pointer;
  pointer-events: all;
}
.input-icon-wrap .form-control.has-right-icon { padding-right: 44px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-sm { padding: 20px 24px; border-radius: var(--radius-md); }

/* ── Auth / Onboarding Shell ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--gray-100);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  padding: 48px 44px;
  border: 1px solid var(--gray-200);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  font-size: .9rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 32px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── Onboarding Wizard ───────────────────────────────────── */
.wizard-page {
  min-height: 100vh;
  background: var(--gray-100);
  padding: 40px 24px;
}

.wizard-container {
  max-width: 720px;
  margin: 0 auto;
}

.wizard-header {
  text-align: center;
  margin-bottom: 40px;
}

.wizard-logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 24px;
}

/* Progress stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 0 16px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 1;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
  transition: var(--transition);
}

.step.completed:not(:last-child)::after { background: var(--orange); }

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-400);
  z-index: 1;
  transition: var(--transition);
}

.step.active .step-dot {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(255,107,53,.15);
}

.step.completed .step-dot {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.step-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
  text-align: center;
}

.step.active .step-label { color: var(--orange); }
.step.completed .step-label { color: var(--gray-600); }

/* Wizard card */
.wizard-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.wizard-card-header {
  padding: 32px 40px 28px;
  border-bottom: 1px solid var(--gray-100);
}

.wizard-card-header h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.wizard-card-header p {
  font-size: .875rem;
  color: var(--gray-600);
}

.wizard-card-body {
  padding: 36px 40px;
}

/* Step panels */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeSlideIn .3s ease; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.wizard-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Plan Cards ──────────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.plan-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--white);
  user-select: none;
}

.plan-card:hover {
  border-color: var(--orange-mid);
  box-shadow: var(--shadow-md);
}

.plan-card.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 0 0 4px rgba(255,107,53,.10);
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.plan-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  background: var(--orange);
  color: var(--white);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
  margin-bottom: 2px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

.plan-billing {
  font-size: .8rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-features li {
  font-size: .825rem;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.plan-card.selected .plan-check {
  border-color: var(--orange);
  background: var(--orange);
}

.plan-card.selected .plan-check::after {
  content: '';
  width: 8px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

/* ── Alert / Notice ──────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.alert-info {
  background: #EEF6FF;
  color: #1A5DA8;
  border: 1px solid #BDE0FF;
}

.alert-warning {
  background: var(--orange-light);
  color: #8B3A0F;
  border: 1px solid var(--orange-mid);
}

/* ── Dividers & Spacing Utilities ────────────────────────── */
.section-gap { display: flex; flex-direction: column; gap: 20px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }

/* ── Login Social Buttons ────────────────────────────────── */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--gray-400); background: var(--gray-100); }

/* ── Password Toggle ─────────────────────────────────────── */
.password-toggle { cursor: pointer; color: var(--gray-400); }
.password-toggle:hover { color: var(--black); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--gray-600);
  font-size: .8rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 64px;
}

.site-footer a { color: var(--gray-600); }
.site-footer a:hover { color: var(--orange); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-card { padding: 36px 24px; }
  .wizard-card-body { padding: 28px 24px; }
  .wizard-card-header { padding: 24px 24px 20px; }
  .wizard-footer { padding: 20px 24px; flex-direction: column-reverse; }
  .wizard-footer .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .step-label { display: none; }
}