/* Sokoni auth landing — Depop-inspired structure, Sokoni tokens */

.auth-landing {
  --al-surface: #0c0c0c;
  --al-elevated: #161616;
  --al-ink: #ffffff;
  --al-muted: #a1a1aa;
  --al-action: #25d366;
  --al-on-action: #1b1035;
  --al-accent: #ff2300;
  --al-yellow: #f4ff12;
  background: var(--al-surface);
  color: var(--al-ink);
  min-height: 100vh;
}

/* ── Header + search ── */
.auth-landing-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 12, 12, 0.94);
  border-bottom: 1px solid #1f1f1f;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  flex-wrap: wrap;
}

.auth-landing-header .depop-logo {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.auth-search {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 28rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 9999px;
  border: 1px solid #3f3f46;
  background: #111;
}

.auth-search:focus-within {
  border-color: var(--al-action);
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}

.auth-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
}

.auth-search button {
  border: none;
  background: transparent;
  color: var(--al-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  padding: 0 0.25rem;
}

.auth-landing-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--al-ink);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  text-decoration: none;
}

.auth-nav-link:hover,
.auth-nav-link:focus-visible {
  color: var(--al-action);
  outline: none;
}

.auth-nav-outline {
  border: 1px solid #3f3f46;
  padding: 0 0.9rem;
}

.auth-nav-cta {
  background: var(--al-action);
  color: var(--al-on-action);
  font-weight: 700;
  padding: 0 1rem;
}

.auth-nav-cta:hover,
.auth-nav-cta:focus-visible {
  color: var(--al-on-action);
  opacity: 0.92;
}

.auth-subnav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0 1.25rem 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.auth-subnav::-webkit-scrollbar {
  display: none;
}

.auth-subnav a,
.auth-subnav-link {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d4d4d8;
  text-decoration: none;
  border-radius: 9999px;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-subnav a:hover,
.auth-subnav-link:hover {
  color: #fff;
  background: #1a1a1a;
}

/* ── Split hero ── */
.auth-hero-split {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.25rem 2.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(37, 211, 102, 0.1), transparent 55%),
    var(--al-surface);
}

@media (min-width: 900px) {
  .auth-hero-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 2.5rem 3.5rem;
    min-height: min(70vh, 560px);
  }
}

.auth-mode-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #111;
  border: 1px solid #27272a;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.auth-mode-toggle button {
  min-height: 40px;
  min-width: 88px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-mode-toggle button.is-active {
  background: #fff;
  color: #111;
}

.auth-hero-split h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.auth-hero-split .auth-hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--al-muted);
  margin: 0 0 1.25rem;
  max-width: 28rem;
}

.auth-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.auth-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.auth-stat-card {
  background: var(--al-elevated);
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  text-align: left;
}

.auth-stat-card strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.auth-stat-card span {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--al-muted);
}

.auth-hero-stack {
  position: relative;
  height: 360px;
  margin: 0 auto;
  width: 100%;
  max-width: 340px;
}

@media (min-width: 900px) {
  .auth-hero-stack {
    height: 400px;
    max-width: 380px;
  }
}

.auth-float-card {
  position: absolute;
  width: 200px;
  height: 270px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #0c0c0c;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  background: #111;
}

@media (min-width: 900px) {
  .auth-float-card {
    width: 220px;
    height: 300px;
  }
}

.auth-float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-float-card--1 {
  left: 0;
  top: 10%;
  z-index: 1;
  transform: rotate(-6deg);
}

.auth-float-card--2 {
  right: 0;
  top: 0;
  z-index: 2;
  transform: rotate(5deg);
}

.auth-float-card--3 {
  left: 18%;
  bottom: 0;
  z-index: 3;
  transform: rotate(-2deg);
}

/* ── Editorial banner slider ── */
.auth-edit-banner {
  position: relative;
  margin: 0 1.25rem 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #27272a;
  background: #121212;
}

@media (min-width: 800px) {
  .auth-edit-banner {
    margin: 0 2rem 3rem;
    max-height: 340px;
  }
}

.auth-edit-slides {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

@media (min-width: 800px) {
  .auth-edit-slides {
    max-height: 340px;
  }
}

.auth-edit-slides li {
  display: none;
}

.auth-edit-slides li.is-active {
  display: block;
}

@media (min-width: 800px) {
  .auth-edit-slides li.is-active {
    max-height: 340px;
  }
}

.auth-edit-slide-hit {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

@media (min-width: 800px) {
  .auth-edit-slide-hit {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
    min-height: 280px;
    max-height: 340px;
  }
}

.auth-edit-copy {
  padding: 1.25rem 1.35rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

@media (min-width: 800px) {
  .auth-edit-copy {
    padding: 1.5rem 1.75rem;
  }
}

.auth-edit-copy h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-edit-copy p {
  margin: 0;
  color: var(--al-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 28rem;
}

.auth-edit-media {
  min-height: 160px;
  max-height: 200px;
  background: #111;
  overflow: hidden;
}

@media (min-width: 800px) {
  .auth-edit-media {
    min-height: 0;
    max-height: 340px;
    height: 100%;
  }
}

.auth-edit-media img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.auth-edit-dots {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.auth-edit-dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  background: #52525b;
  padding: 0;
  cursor: pointer;
}

.auth-edit-dots button.is-active {
  background: var(--al-action);
  width: 18px;
}

/* ── Category quiz ── */
.auth-quiz {
  padding: 0 0 3rem;
}

.auth-section-head {
  padding: 0 1.25rem 1.25rem;
  max-width: 40rem;
}

@media (min-width: 800px) {
  .auth-section-head {
    padding-left: 2rem;
  }
}

.auth-section-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--al-accent);
  margin: 0 0 0.5rem;
}

.auth-section-head h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.auth-section-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--al-muted);
  line-height: 1.5;
}

.auth-quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1.25rem;
}

@media (min-width: 800px) {
  .auth-quiz-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 2rem;
    gap: 1rem;
  }
}

.auth-quiz-card {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  max-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #27272a;
  text-decoration: none;
  color: #fff;
  background: #111;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.auth-quiz-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.auth-quiz-card:hover img {
  transform: scale(1.04);
}

.auth-quiz-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 0.85rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
}

/* ── Shop by style ── */
.auth-styles {
  padding: 0 0 3rem;
}

.auth-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1.25rem;
}

@media (min-width: 700px) {
  .auth-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .auth-style-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 0 2rem;
  }
}

.auth-style-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--al-elevated);
  border: 1px solid #27272a;
  border-radius: 14px;
  overflow: hidden;
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.2s ease;
}

.auth-style-tile:hover {
  transform: translateY(-2px);
}

.auth-style-media {
  display: block;
  width: 100%;
  height: 160px;
  max-height: 180px;
  background: #222;
  overflow: hidden;
}

.auth-style-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.auth-style-tile strong {
  display: block;
  padding: 0.65rem 0.7rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ── Brands + trends ── */
.auth-discover {
  padding: 0 0 2.5rem;
}

.auth-brand-rail,
.auth-trend-rail {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0 1.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.auth-brand-rail::-webkit-scrollbar,
.auth-trend-rail::-webkit-scrollbar {
  display: none;
}

@media (min-width: 800px) {
  .auth-brand-rail,
  .auth-trend-rail {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.auth-brand-chip {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1.1rem;
  border-radius: 9999px;
  border: 1px solid #3f3f46;
  background: #111;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.auth-brand-chip:hover {
  border-color: var(--al-action);
}

.auth-trend-chip {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #27272a;
  background: var(--al-elevated);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.auth-trend-chip em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--al-action);
  font-weight: 700;
}

/* ── Mobile / WhatsApp banner ── */
.auth-mobile-banner {
  margin: 0 1.25rem 2.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #27272a;
  background: linear-gradient(135deg, #141414, #0c0c0c 60%, rgba(37, 211, 102, 0.08));
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .auth-mobile-banner {
    margin: 0 2rem 3rem;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 2rem;
  }
}

.auth-mobile-banner h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.auth-mobile-banner p {
  margin: 0 0 1rem;
  color: var(--al-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-mobile-mock {
  border-radius: 16px;
  border: 1px solid #3f3f46;
  background: #050505;
  padding: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--al-action);
  line-height: 1.5;
}

/* ── Multi-column footer ── */
.auth-footer-rich {
  border-top: 1px solid #1f1f1f;
  padding: 2.5rem 1.25rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .auth-footer-rich {
    padding: 3rem 2rem 2.5rem;
  }
}

.auth-footer-grid {
  display: grid;
  gap: 1.75rem;
  max-width: 64rem;
  margin: 0 auto 2rem;
}

@media (min-width: 700px) {
  .auth-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.auth-footer-grid h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #fff;
}

.auth-footer-grid a {
  display: block;
  color: var(--al-muted);
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 36px;
  line-height: 36px;
}

.auth-footer-grid a:hover {
  color: #fff;
}

.auth-footer-bottom {
  max-width: 64rem;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid #1f1f1f;
  font-size: 0.75rem;
  color: #71717a;
}

/* ── Modals (unchanged contract) ── */
.auth-modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.auth-modal-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #0a0a0a;
  border: 1px solid #27272a;
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.auth-modal-root.is-open .auth-modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.auth-modal-panel[hidden] {
  display: none !important;
}

.auth-modal-wide {
  width: min(100%, 480px);
}

.auth-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #a1a1aa;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.auth-modal-close:hover,
.auth-modal-close:focus-visible {
  color: #fff;
  outline: none;
}

.auth-modal-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--al-accent);
  margin: 0 0 0.4rem;
}

.auth-modal-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  padding-right: 2rem;
}

.auth-pw-wrap {
  position: relative;
}

.auth-pw-wrap input {
  padding-right: 3rem;
}

.auth-pw-toggle {
  position: absolute;
  right: 0.35rem;
  bottom: 0.2rem;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-pw-toggle:hover,
.auth-pw-toggle:focus-visible {
  color: #fff;
  outline: none;
}

.auth-role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.25rem;
  background: #111;
  border-radius: 9999px;
  border: 1px solid #27272a;
  margin-bottom: 1rem;
}

.auth-role-toggle button {
  min-height: 40px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-role-toggle button.is-active {
  background: #fff;
  color: #111;
}

.auth-ask-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--al-action);
  margin-left: 0.5rem;
}

.auth-ask-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--al-action);
}

.auth-ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.auth-ask-chips button {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #3f3f46;
  background: #111;
  color: #e4e4e7;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.auth-ask-chips button:hover {
  border-color: var(--al-action);
  color: #fff;
}

.auth-ask-log {
  min-height: 160px;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid #27272a;
  background: #050505;
  margin-bottom: 0.75rem;
}

.auth-ask-bubble {
  max-width: 92%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.auth-ask-bubble--bot {
  background: #18181b;
  color: #e4e4e7;
}

.auth-ask-bubble--user {
  background: rgba(37, 211, 102, 0.18);
  color: #fff;
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal-root,
  .auth-modal-panel,
  .auth-quiz-card img {
    transition: none !important;
  }
  .auth-modal-panel {
    transform: none;
  }
  .auth-float-card--1,
  .auth-float-card--2,
  .auth-float-card--3 {
    transform: none;
  }
}
